public class ApplicationSource extends BaseVehicleDataSource
VehicleService
to
pass measurements received from applications (e.g. from a trace file source
in an app) into the normal measurement workflow.Constructor and Description |
---|
ApplicationSource() |
Modifier and Type | Method and Description |
---|---|
void |
handleMessage(VehicleMessage measurement)
Pass a raw measurement received from an external caller to the callback.
|
boolean |
isConnected()
Return true if the data source is actively connected to its target, be it
a USB endpoint, a Bluetooth channel, a trace file, etc.
|
java.lang.String |
toString() |
connected, disconnected, getCallback, getTag, onPipelineActivated, onPipelineDeactivated, setCallback, stop, waitForCallback
public void handleMessage(VehicleMessage measurement)
handleMessage
in class BaseVehicleDataSource
measurement
- the new message object.public boolean isConnected()
VehicleDataSource
isConnected
in interface VehicleDataSource
isConnected
in class BaseVehicleDataSource
public java.lang.String toString()
toString
in class java.lang.Object