test_class.declarator: test
test_class.modifier: private
test_class.original_string: private TestRoboStroke test;
test_class.type: TestRoboStroke
test_class.var_name: test
test_class.file: common/src/test/java/org/nargila/robostroke/RoboStrokeTest.java
test_class.identifier: RoboStrokeTest
test_class.superclass: extends TestProperties
test_case.body: @Test
  	public void testSplitRowingContinuousMode() throws Exception {
  		
  		
  		test = new TestRoboStroke(v("dataInput"));
          
  		final int strokesVal = v("strokes", Integer.class);
  		
  		BusEventListener listener = new BusEventListener() {
  			
  			@SuppressWarnings("incomplete-switch")
  			@Override
  			public void onBusEvent(DataRecord event) {
  				switch (event.type) {
  				case ROWING_COUNT:
  					if ((Integer)event.data == strokesVal) {
  						test.roboStroke.getParameters().setParam(ParamKeys.PARAM_ROWING_MODE.getId(), RowingSplitMode.AUTO + "");
  					}
  
  					break;
  				}
  			}
  		};
  		
  		test.bus.addBusListener(listener);
  		DataRecord event;
  		
  		try {							
  			
  			event = splitRowing(RowingSplitMode.CONTINUOUS, false);
  		
  		} finally {
  			test.bus.removeBusListener(listener);
  		}
  		
  		/* ROWING_STOP 169103868297216 169098851909632 114.224663 36272340992 37000 12 */
  		Object[] data = (Object[]) event.data;
  		
  		float distance = (Float)data[1];
  		long splitTime = (Long) data[2];
  		long travelTime = (Long) data[3];
  		int strokes = (Integer) data[4];
  		
  		Assert.assertEquals(v("splitTime", Double.class), splitTime / 1000000000.0, 0.5);
  		Assert.assertEquals(v("distance", Double.class), distance, 1);
  		Assert.assertEquals(v("travelTime", Double.class), travelTime / 1000.0, 1);
  		Assert.assertEquals((double)strokesVal, strokes, 1);
  		
  	}
test_case.class_method_signature: RoboStrokeTest.testSplitRowingContinuousMode()
test_case.full_signature: @Test public void testSplitRowingContinuousMode()
test_case.identifier: testSplitRowingContinuousMode
test_case.invocations: v v setParam getParameters getId addBusListener splitRowing removeBusListener assertEquals v assertEquals v assertEquals v assertEquals
test_case.modifiers: @Test public
test_case.parameters: ()
test_case.return: void
test_case.signature: void testSplitRowingContinuousMode()
focal_class.declarator: logger = LoggerFactory.getLogger(RoboStroke.class)
focal_class.modifier: private static final
focal_class.original_string: private static final Logger logger = LoggerFactory.getLogger(RoboStroke.class);
focal_class.type: Logger
focal_class.var_name: logger
focal_class.declarator: dataInput
focal_class.modifier: private
focal_class.original_string: private SensorDataInput dataInput;
focal_class.type: SensorDataInput
focal_class.var_name: dataInput
focal_class.declarator: inputLock = new SimpleLock()
focal_class.modifier: private final
focal_class.original_string: private final SimpleLock inputLock = new SimpleLock();
focal_class.type: SimpleLock
focal_class.var_name: inputLock
focal_class.declarator: gravityFilter
focal_class.modifier: private
focal_class.original_string: private GravityFilter gravityFilter;
focal_class.type: GravityFilter
focal_class.var_name: gravityFilter
focal_class.declarator: strokeRateScanner
focal_class.modifier: private
focal_class.original_string: private StrokeRateScanner strokeRateScanner;
focal_class.type: StrokeRateScanner
focal_class.var_name: strokeRateScanner
focal_class.declarator: rowingDetector
focal_class.modifier: private
focal_class.original_string: private RowingDetector rowingDetector;
focal_class.type: RowingDetector
focal_class.var_name: rowingDetector
focal_class.declarator: strokePowerScanner
focal_class.modifier: private
focal_class.original_string: private StrokePowerScanner strokePowerScanner;
focal_class.type: StrokePowerScanner
focal_class.var_name: strokePowerScanner
focal_class.declarator: rollScanner
focal_class.modifier: private
focal_class.original_string: private RollScanner rollScanner;
focal_class.type: RollScanner
focal_class.var_name: rollScanner
focal_class.declarator: accelerationFilter
focal_class.modifier: private
focal_class.original_string: private SensorDataFilter accelerationFilter;
focal_class.type: SensorDataFilter
focal_class.var_name: accelerationFilter
focal_class.declarator: gpsFilter
focal_class.modifier: private
focal_class.original_string: private GPSDataFilter gpsFilter;
focal_class.type: GPSDataFilter
focal_class.var_name: gpsFilter
focal_class.declarator: errorListener
focal_class.modifier: private
focal_class.original_string: private ErrorListener errorListener;
focal_class.type: ErrorListener
focal_class.var_name: errorListener
focal_class.declarator: bus = new RoboStrokeEventBus()
focal_class.modifier: private final
focal_class.original_string: private final RoboStrokeEventBus bus = new RoboStrokeEventBus();
focal_class.type: RoboStrokeEventBus
focal_class.var_name: bus
focal_class.declarator: parameters = new ParameterService(bus)
focal_class.modifier: private final
focal_class.original_string: private final ParameterService parameters = new ParameterService(bus);
focal_class.type: ParameterService
focal_class.var_name: parameters
focal_class.declarator: recorder = new SessionRecorder(this)
focal_class.modifier: private final
focal_class.original_string: private final SessionRecorder recorder = new SessionRecorder(this);
focal_class.type: SessionRecorder
focal_class.var_name: recorder
focal_class.declarator: sessionBroadcaster
focal_class.modifier: private
focal_class.original_string: private SessionBroadcaster sessionBroadcaster;
focal_class.type: SessionBroadcaster
focal_class.var_name: sessionBroadcaster
focal_class.declarator: broadcastOn
focal_class.modifier: private
focal_class.original_string: private boolean broadcastOn;
focal_class.type: boolean
focal_class.var_name: broadcastOn
focal_class.declarator: coaxModeOrientationFilter
focal_class.modifier: private
focal_class.original_string: private AxisDataReverseFilter coaxModeOrientationFilter;
focal_class.type: AxisDataReverseFilter
focal_class.var_name: coaxModeOrientationFilter
focal_class.declarator: landscapeAccelFilter
focal_class.modifier: private
focal_class.original_string: private AxisDataSwapFilter landscapeAccelFilter;
focal_class.type: AxisDataSwapFilter
focal_class.var_name: landscapeAccelFilter
focal_class.declarator: landscapeOrientationFilter
focal_class.modifier: private
focal_class.original_string: private AxisDataSwapFilter landscapeOrientationFilter;
focal_class.type: AxisDataSwapFilter
focal_class.var_name: landscapeOrientationFilter
focal_class.declarator: sessionParamChangeListener
focal_class.modifier: private final
focal_class.original_string: private final BusEventListener sessionParamChangeListener;
focal_class.type: BusEventListener
focal_class.var_name: sessionParamChangeListener
focal_class.declarator: sessionParamList = {
  			ParamKeys.PARAM_SENSOR_ORIENTATION_REVERSED
  	}
focal_class.modifier: private final
focal_class.original_string: private final ParamKeys[] sessionParamList = {
  			ParamKeys.PARAM_SENSOR_ORIENTATION_REVERSED
  	};
focal_class.type: ParamKeys[]
focal_class.var_name: sessionParamList
focal_class.file: common/src/main/java/org/nargila/robostroke/RoboStroke.java
focal_class.identifier: RoboStroke
focal_class.class_method_signature: RoboStroke.RoboStroke()
focal_class.full_signature: public  RoboStroke()
focal_class.identifier: RoboStroke
focal_class.modifiers: public
focal_class.parameters: ()
focal_class.signature:  RoboStroke()
focal_class.class_method_signature: RoboStroke.RoboStroke(DistanceResolver distanceResolver)
focal_class.full_signature: public  RoboStroke(DistanceResolver distanceResolver)
focal_class.identifier: RoboStroke
focal_class.modifiers: public
focal_class.parameters: (DistanceResolver distanceResolver)
focal_class.signature:  RoboStroke(DistanceResolver distanceResolver)
focal_class.class_method_signature: RoboStroke.RoboStroke(DistanceResolver distanceResolver, DataSender dataSenderImpl)
focal_class.full_signature: public  RoboStroke(DistanceResolver distanceResolver, DataSender dataSenderImpl)
focal_class.identifier: RoboStroke
focal_class.modifiers: public
focal_class.parameters: (DistanceResolver distanceResolver, DataSender dataSenderImpl)
focal_class.signature:  RoboStroke(DistanceResolver distanceResolver, DataSender dataSenderImpl)
focal_class.class_method_signature: RoboStroke.setLandscapeMode(boolean value)
focal_class.full_signature: private void setLandscapeMode(boolean value)
focal_class.identifier: setLandscapeMode
focal_class.modifiers: private
focal_class.parameters: (boolean value)
focal_class.return: void
focal_class.signature: void setLandscapeMode(boolean value)
focal_class.class_method_signature: RoboStroke.setCoaxMode(boolean value)
focal_class.full_signature: private void setCoaxMode(boolean value)
focal_class.identifier: setCoaxMode
focal_class.modifiers: private
focal_class.parameters: (boolean value)
focal_class.return: void
focal_class.signature: void setCoaxMode(boolean value)
focal_class.class_method_signature: RoboStroke.getBus()
focal_class.full_signature: public RoboStrokeEventBus getBus()
focal_class.identifier: getBus
focal_class.modifiers: public
focal_class.parameters: ()
focal_class.return: RoboStrokeEventBus
focal_class.signature: RoboStrokeEventBus getBus()
focal_class.class_method_signature: RoboStroke.setErrorListener(ErrorListener errorListener)
focal_class.full_signature: public void setErrorListener(ErrorListener errorListener)
focal_class.identifier: setErrorListener
focal_class.modifiers: public
focal_class.parameters: (ErrorListener errorListener)
focal_class.return: void
focal_class.signature: void setErrorListener(ErrorListener errorListener)
focal_class.class_method_signature: RoboStroke.initPipeline(DistanceResolver distanceResolver)
focal_class.full_signature: private void initPipeline(DistanceResolver distanceResolver)
focal_class.identifier: initPipeline
focal_class.modifiers: private
focal_class.parameters: (DistanceResolver distanceResolver)
focal_class.return: void
focal_class.signature: void initPipeline(DistanceResolver distanceResolver)
focal_class.class_method_signature: RoboStroke.setFileInput(File file)
focal_class.full_signature: public void setFileInput(File file)
focal_class.identifier: setFileInput
focal_class.modifiers: public
focal_class.parameters: (File file)
focal_class.return: void
focal_class.signature: void setFileInput(File file)
focal_class.class_method_signature: RoboStroke.setInput(SensorDataInput dataInput)
focal_class.full_signature: public void setInput(SensorDataInput dataInput)
focal_class.identifier: setInput
focal_class.modifiers: public
focal_class.parameters: (SensorDataInput dataInput)
focal_class.return: void
focal_class.signature: void setInput(SensorDataInput dataInput)
focal_class.class_method_signature: RoboStroke.isSeekableDataInput()
focal_class.full_signature: public boolean isSeekableDataInput()
focal_class.identifier: isSeekableDataInput
focal_class.modifiers: public
focal_class.parameters: ()
focal_class.return: boolean
focal_class.signature: boolean isSeekableDataInput()
focal_class.class_method_signature: RoboStroke.stop()
focal_class.full_signature: public void stop()
focal_class.identifier: stop
focal_class.modifiers: public
focal_class.parameters: ()
focal_class.return: void
focal_class.signature: void stop()
focal_class.class_method_signature: RoboStroke.getDataInput()
focal_class.full_signature: public SensorDataInput getDataInput()
focal_class.identifier: getDataInput
focal_class.modifiers: public
focal_class.parameters: ()
focal_class.return: SensorDataInput
focal_class.signature: SensorDataInput getDataInput()
focal_class.class_method_signature: RoboStroke.getGravityFilter()
focal_class.full_signature: public GravityFilter getGravityFilter()
focal_class.identifier: getGravityFilter
focal_class.modifiers: public
focal_class.parameters: ()
focal_class.return: GravityFilter
focal_class.signature: GravityFilter getGravityFilter()
focal_class.class_method_signature: RoboStroke.getStrokeRateScanner()
focal_class.full_signature: public StrokeRateScanner getStrokeRateScanner()
focal_class.identifier: getStrokeRateScanner
focal_class.modifiers: public
focal_class.parameters: ()
focal_class.return: StrokeRateScanner
focal_class.signature: StrokeRateScanner getStrokeRateScanner()
focal_class.class_method_signature: RoboStroke.getStrokePowerScanner()
focal_class.full_signature: public StrokePowerScanner getStrokePowerScanner()
focal_class.identifier: getStrokePowerScanner
focal_class.modifiers: public
focal_class.parameters: ()
focal_class.return: StrokePowerScanner
focal_class.signature: StrokePowerScanner getStrokePowerScanner()
focal_class.class_method_signature: RoboStroke.getAccelerationSource()
focal_class.full_signature: public SensorDataSource getAccelerationSource()
focal_class.identifier: getAccelerationSource
focal_class.modifiers: public
focal_class.parameters: ()
focal_class.return: SensorDataSource
focal_class.signature: SensorDataSource getAccelerationSource()
focal_class.class_method_signature: RoboStroke.getGpsFilter()
focal_class.full_signature: public GPSDataFilter getGpsFilter()
focal_class.identifier: getGpsFilter
focal_class.modifiers: public
focal_class.parameters: ()
focal_class.return: GPSDataFilter
focal_class.signature: GPSDataFilter getGpsFilter()
focal_class.class_method_signature: RoboStroke.getOrientationSource()
focal_class.full_signature: public SensorDataSource getOrientationSource()
focal_class.identifier: getOrientationSource
focal_class.modifiers: public
focal_class.parameters: ()
focal_class.return: SensorDataSource
focal_class.signature: SensorDataSource getOrientationSource()
focal_class.class_method_signature: RoboStroke.connectPipeline()
focal_class.full_signature: private void connectPipeline()
focal_class.identifier: connectPipeline
focal_class.modifiers: private
focal_class.parameters: ()
focal_class.return: void
focal_class.signature: void connectPipeline()
focal_class.class_method_signature: RoboStroke.setDataLogger(File logFile)
focal_class.full_signature: public void setDataLogger(File logFile)
focal_class.identifier: setDataLogger
focal_class.modifiers: public
focal_class.parameters: (File logFile)
focal_class.return: void
focal_class.signature: void setDataLogger(File logFile)
focal_class.class_method_signature: RoboStroke.getParameters()
focal_class.full_signature: public ParameterService getParameters()
focal_class.identifier: getParameters
focal_class.modifiers: public
focal_class.parameters: ()
focal_class.return: ParameterService
focal_class.signature: ParameterService getParameters()
focal_class.class_method_signature: RoboStroke.finalize()
focal_class.full_signature: @Override protected void finalize()
focal_class.identifier: finalize
focal_class.modifiers: @Override protected
focal_class.parameters: ()
focal_class.return: void
focal_class.signature: void finalize()
focal_class.class_method_signature: RoboStroke.destroy()
focal_class.full_signature: public void destroy()
focal_class.identifier: destroy
focal_class.modifiers: public
focal_class.parameters: ()
focal_class.return: void
focal_class.signature: void destroy()
focal_method.body: public ParameterService getParameters() {
  		return parameters;
  	}
focal_method.class_method_signature: RoboStroke.getParameters()
focal_method.full_signature: public ParameterService getParameters()
focal_method.identifier: getParameters
focal_method.modifiers: public
focal_method.parameters: ()
focal_method.return: ParameterService
focal_method.signature: ParameterService getParameters()