public class

TestSink

extends Object
implements VehicleDataSink
java.lang.Object
   ↳ com.openxc.sinks.TestSink

Summary

Fields
public boolean received
Public Constructors
TestSink()
Public Methods
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).
[Expand]
Inherited Methods
From class java.lang.Object
From interface com.openxc.sinks.VehicleDataSink

Fields

public boolean received

Public Constructors

public TestSink ()

Public Methods

public void receive (VehicleMessage measurement)

Receive a data point with a name, a value and a event value. The implementation of this method should not block, lest the vehicle data source get behind in processing data from a source potentially external to the system.

Parameters
measurement The new measurement.

public void stop ()

Release any acquired resources and either stop sending measurements (if a source) or stop expecting to receive them (if a sink).