public class Sensor<V> extends Object
| Modifier and Type | Method and Description |
|---|---|
static Sensor |
Each(int frequency,
TimeUnit unit) |
Sensor<V> |
into(IDataProcessor<V,?> target)
Specify the destination that will receive the values from the generator
|
Sensor<V> |
pipe(Generator<V> gen)
Specify where the sensor will get its values from
|
void |
start()
Starting a sensor will schedule a timer task that pushes values from the
generator to the target at the specified rate of this sensor.
|
void |
stop()
Stop a formerly started sensor.
|
public Sensor(int frequency,
TimeUnit unit)
public Sensor<V> pipe(Generator<V> gen)
gen - The source for the values this sensor will push to its destinationpublic Sensor<V> into(IDataProcessor<V,?> target)
target - The destination to receive the valuespublic void start()
public void stop()
Copyright © 2016. All rights reserved.