test_class.declarator: dataSrc
test_class.modifier: private
test_class.original_string: private SensorDataSource dataSrc;
test_class.type: SensorDataSource
test_class.var_name: dataSrc
test_class.file: common/src/test/java/org/nargila/robostroke/data/SensorDataSourceTest.java
test_class.identifier: SensorDataSourceTest
test_case.body: @Test
  	public void testSinkWeight() {
  		SensorDataSink ds0 = new SensorDataSink() {
  			
  			@Override
  			public void onSensorData(long timestamp, Object value) {
  				
  			}
  		};
  		
  		SensorDataSink ds1 = new SensorDataSink() {
  			
  			@Override
  			public void onSensorData(long timestamp, Object value) {
  				
  			}
  		};
  		
  		SensorDataSink ds2 = new SensorDataSink() {
  			
  			@Override
  			public void onSensorData(long timestamp, Object value) {
  				
  			}
  		};
  		
  		SensorDataSink ds3 = new SensorDataSink() {
  			
  			@Override
  			public void onSensorData(long timestamp, Object value) {
  				
  			}
  		};
  		
  		SensorDataSink ds4 = new SensorDataSink() {
  			
  			@Override
  			public void onSensorData(long timestamp, Object value) {
  				
  			}
  		};
  		
  		dataSrc.addSensorDataSink(ds0, 0.0);
  		dataSrc.addSensorDataSink(ds3);
  		dataSrc.addSensorDataSink(ds4);
  		dataSrc.addSensorDataSink(ds1, 0.0);
  		dataSrc.addSensorDataSink(ds2, 0.1);
  		
  		assertEquals(ds0, dataSrc.sinkList.get(0));
  		assertEquals(ds1, dataSrc.sinkList.get(1));
  		assertEquals(ds2, dataSrc.sinkList.get(2));
  		assertEquals(ds3, dataSrc.sinkList.get(3));
  		assertEquals(ds4, dataSrc.sinkList.get(4));
  	}
test_case.class_method_signature: SensorDataSourceTest.testSinkWeight()
test_case.full_signature: @Test public void testSinkWeight()
test_case.identifier: testSinkWeight
test_case.invocations: addSensorDataSink addSensorDataSink addSensorDataSink addSensorDataSink addSensorDataSink assertEquals get assertEquals get assertEquals get assertEquals get assertEquals get
test_case.modifiers: @Test public
test_case.parameters: ()
test_case.return: void
test_case.signature: void testSinkWeight()
focal_class.declarator: sink
focal_class.modifier: private
focal_class.original_string: private SensorDataSink sink;
focal_class.type: SensorDataSink
focal_class.var_name: sink
focal_class.declarator: sinkList
focal_class.original_string: LinkedList<SensorDataSink> sinkList;
focal_class.type: LinkedList<SensorDataSink>
focal_class.var_name: sinkList
focal_class.declarator: weightMap = new HashMap<SensorDataSink, Double>()
focal_class.modifier: private final
focal_class.original_string: private final HashMap<SensorDataSink, Double> weightMap = new HashMap<SensorDataSink, Double>();
focal_class.type: HashMap<SensorDataSink, Double>
focal_class.var_name: weightMap
focal_class.file: common/src/main/java/org/nargila/robostroke/data/SensorDataSource.java
focal_class.identifier: SensorDataSource
focal_class.class_method_signature: SensorDataSource.SensorDataSource()
focal_class.full_signature: public  SensorDataSource()
focal_class.identifier: SensorDataSource
focal_class.modifiers: public
focal_class.parameters: ()
focal_class.signature:  SensorDataSource()
focal_class.class_method_signature: SensorDataSource.SensorDataSource(SensorDataSink sink)
focal_class.full_signature: public  SensorDataSource(SensorDataSink sink)
focal_class.identifier: SensorDataSource
focal_class.modifiers: public
focal_class.parameters: (SensorDataSink sink)
focal_class.signature:  SensorDataSource(SensorDataSink sink)
focal_class.class_method_signature: SensorDataSource.addSensorDataSink(SensorDataSink sink)
focal_class.full_signature: public void addSensorDataSink(SensorDataSink sink)
focal_class.identifier: addSensorDataSink
focal_class.modifiers: public
focal_class.parameters: (SensorDataSink sink)
focal_class.return: void
focal_class.signature: void addSensorDataSink(SensorDataSink sink)
focal_class.class_method_signature: SensorDataSource.addSensorDataSink(SensorDataSink sink, double weight)
focal_class.full_signature: public synchronized void addSensorDataSink(SensorDataSink sink, double weight)
focal_class.identifier: addSensorDataSink
focal_class.modifiers: public synchronized
focal_class.parameters: (SensorDataSink sink, double weight)
focal_class.return: void
focal_class.signature: void addSensorDataSink(SensorDataSink sink, double weight)
focal_class.class_method_signature: SensorDataSource.removeSensorDataSink(SensorDataSink sink)
focal_class.full_signature: public synchronized void removeSensorDataSink(SensorDataSink sink)
focal_class.identifier: removeSensorDataSink
focal_class.modifiers: public synchronized
focal_class.parameters: (SensorDataSink sink)
focal_class.return: void
focal_class.signature: void removeSensorDataSink(SensorDataSink sink)
focal_class.class_method_signature: SensorDataSource.pushData(long timestamp, Object value)
focal_class.full_signature: public synchronized void pushData(long timestamp, Object value)
focal_class.identifier: pushData
focal_class.modifiers: public synchronized
focal_class.parameters: (long timestamp, Object value)
focal_class.return: void
focal_class.signature: void pushData(long timestamp, Object value)
focal_class.class_method_signature: SensorDataSource.clearSensorDataSinks()
focal_class.full_signature: public synchronized void clearSensorDataSinks()
focal_class.identifier: clearSensorDataSinks
focal_class.modifiers: public synchronized
focal_class.parameters: ()
focal_class.return: void
focal_class.signature: void clearSensorDataSinks()
focal_method.body: public void addSensorDataSink(SensorDataSink sink) {
  		addSensorDataSink(sink, 1.0);
  	}
focal_method.class_method_signature: SensorDataSource.addSensorDataSink(SensorDataSink sink)
focal_method.full_signature: public void addSensorDataSink(SensorDataSink sink)
focal_method.identifier: addSensorDataSink
focal_method.invocations: addSensorDataSink
focal_method.modifiers: public
focal_method.parameters: (SensorDataSink sink)
focal_method.return: void
focal_method.signature: void addSensorDataSink(SensorDataSink sink)