File tree Expand file tree Collapse file tree 4 files changed +27
-2
lines changed
java/br/unb/biologiaanimal/edf
test/br/unb/biologiaanimal/test Expand file tree Collapse file tree 4 files changed +27
-2
lines changed Original file line number Diff line number Diff line change @@ -217,6 +217,12 @@ public void toCsv(String filePath)
217217 writer .close ();
218218 }
219219
220+ // TODO Read annotations
221+ public String [] getAnnotations ()
222+ {
223+ return reader .getAnnotations ();
224+ }
225+
220226 /* ##########################
221227 # LABEL SPECIFIC METHODS #
222228 ########################## */
Original file line number Diff line number Diff line change @@ -271,8 +271,8 @@ public long[] getPhysicalMinima()
271271
272272 private long [] getLimits (String param )
273273 {
274- String [] stuff = EDFUtil . separateString (( String ) header .get (param ),
275- numberSignals );
274+ String rawLimits = ( String ) header .get (param );
275+ String [] stuff = EDFUtil . separateString ( rawLimits , numberSignals );
276276 long [] outlet = new long [numberSignals ];
277277
278278 for (int i = 0 ; i < numberSignals ; ++i )
@@ -282,4 +282,10 @@ private long[] getLimits(String param)
282282
283283 return outlet ;
284284 }
285+
286+ // TODO Get annotations
287+ public String [] getAnnotations ()
288+ {
289+ throw new UnsupportedOperationException ();
290+ }
285291}
Original file line number Diff line number Diff line change @@ -40,6 +40,19 @@ public static void main(String[] args) {
4040 System .out .println ("-- + To CSV" );
4141 try { edf .toCsv ("data\\ edf\\ HCT-4-23.java.ascii" ); }
4242 catch (Exception any ) { System .out .println (any ); }
43+ System .out .println ("-- + Getting annotations" );
44+ try
45+ {
46+ String [] annotations = edf .getAnnotations ();
47+ for (int i = 0 ; i < annotations .length ; ++i )
48+ {
49+ System .out .println ("- " + annotations [i ]);
50+ }
51+ }
52+ catch (Exception any )
53+ {
54+ System .out .println (any );
55+ }
4356
4457 System .out .println ("..." );
4558 }
You can’t perform that action at this time.
0 commit comments