public class

RemoteListenerSource

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

Class Overview

Pass messages from a VehicleService to an in-process callback. This source is a bit of a special case - it's used by the VehicleManager to inject message updates from a VehicleService into an in-process data pipeline. By using the same workflow as on the remote process side, we can share code between remote and in-process data sources and sinks. This makes adding new sources and sinks possible for end users, since the VehicleService doesn't need to have every possible implementation.

Summary

Public Constructors
RemoteListenerSource(VehicleServiceInterface service)
Registers a message listener with the remote service.
Public Methods
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.
void stop()
Clear the callback so no further updates are sent.
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 RemoteListenerSource (VehicleServiceInterface service)

Registers a message listener with the remote service.

Public Methods

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 void stop ()

Clear the callback so no further updates are sent. Subclasses should be sure to call super.stop() so they also stop sending updates when killed by a user.

public String toString ()