public class

ApplicationSource

extends BaseVehicleDataSource
java.lang.Object
   ↳ com.openxc.sources.BaseVehicleDataSource
     ↳ com.openxc.sources.ApplicationSource

Class Overview

A "reverse" source to pass externally generated measurements to the callback. This class is used by the VehicleService to pass measurements received from applications (e.g. from a trace file source in an app) into the normal measurement workflow.

Summary

Public Constructors
ApplicationSource()
Public Methods
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.
String toString()
[Expand]
Inherited Methods
From class com.openxc.sources.BaseVehicleDataSource
From class java.lang.Object
From interface com.openxc.DataPipeline.Operator
From interface com.openxc.sources.VehicleDataSource

Public Constructors

public ApplicationSource ()

Public Methods

public void handleMessage (VehicleMessage measurement)

Pass a raw measurement received from an external caller to the callback. Note that this method is public - users of this class can directly force it to send new values.

Parameters
measurement the new message object.

public 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. The source is capable of providing new vehicle data. Returns true if connected, false otherwise.

public String toString ()