public class TestSink extends java.lang.Object implements VehicleDataSink
| Modifier and Type | Field and Description |
|---|---|
boolean |
received |
| Constructor and Description |
|---|
TestSink() |
| Modifier and Type | Method and Description |
|---|---|
void |
receive(VehicleMessage measurement)
Receive a data point with a name, a value and a event value.
|
void |
stop()
Release any acquired resources and either stop sending measurements (if a
source) or stop expecting to receive them (if a sink).
|
public void receive(VehicleMessage measurement)
VehicleDataSinkreceive in interface VehicleDataSinkmeasurement - The new measurement.public void stop()
VehicleDataSinkstop in interface VehicleDataSink