void doOnce(){
switch (mode.getSelectedIndex()) {
default :
    log.error("Did not expect selected mode " + mode.getSelectedIndex());
  return;
case 0:
doReadingFromTimeFields();
return;
case 1:
doMeasurementFromPositionFields();
return;
case 2:
try {
doLoadReadingFromFile();
doReadingFromTimeFields();
}
 catch (java.io.IOException e) {
log.error("exception " + e);
}
return;
case 3:
try {
doLoadMeasurementFromFile();
}
 catch (java.io.IOException e) {
log.error("exception " + e);
}
return;
}
}

void doOnce ( ) { switch ( mode . getSelectedIndex ( ) ) { default : log . error ( "Did not expect selected mode " + mode . getSelectedIndex ( ) ) ; return ; case 0 : doReadingFromTimeFields ( ) ; return ; case 1 : doMeasurementFromPositionFields ( ) ; return ; case 2 : try { doLoadReadingFromFile ( ) ; doReadingFromTimeFields ( ) ; } catch ( java . io . IOException e ) { log . error ( "exception " + e ) ; } return ; case 3 : try { doLoadMeasurementFromFile ( ) ; } catch ( java . io . IOException e ) { log . error ( "exception " + e ) ; } return ; } }
invoked by button to do one cycle
