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)
VehicleDataSink
receive
in interface VehicleDataSink
measurement
- The new measurement.public void stop()
VehicleDataSink
stop
in interface VehicleDataSink