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, waitForCallbackpublic void handleMessage(VehicleMessage measurement)
handleMessage in class BaseVehicleDataSourcemeasurement - the new message object.public boolean isConnected()
VehicleDataSourceisConnected in interface VehicleDataSourceisConnected in class BaseVehicleDataSourcepublic java.lang.String toString()
toString in class java.lang.Object