public interface

VehicleServiceInterface

implements IInterface
com.openxc.remote.VehicleServiceInterface
Known Indirect Subclasses

Class Overview

The AIDL interface for a VehicleService running in a separate process. This interface is used to bind to an AIDL interface in order to interact with a centralized VehicleService that is reading data from a vehicle, trace file or other source. Applications should use the in-process VehicleManager, as that builds the proper Measurement types before returning - the data at this level is very loosely typed in order to slip through the limited AIDL interface.

Summary

Nested Classes
class VehicleServiceInterface.Stub Local-side IPC implementation stub class. 
Public Methods
abstract void addViConnectionListener(ViConnectionListener listener)
abstract VehicleMessage get(MessageKey key)
Retreive the most recent value for the measurement.
abstract int getMessageCount()
abstract VehicleInterfaceDescriptor getVehicleInterfaceDescriptor()
Return list of tokens identifying the data sources that are enabled and the connection status for each.
abstract boolean isViConnected()
abstract void receive(VehicleMessage measurement)
Receive a new measurement that originates from an application.
abstract void register(VehicleServiceListener listener)
Register to receive asynchronous updates when measurements are received.
abstract boolean send(VehicleMessage measurement)
Set a new value for the measurement class on the vehicle.
abstract void setBluetoothPollingStatus(boolean enabled)
The one vehicle interface specific function, control whether polling is used to find Bluetooth vehicle interfaces.
abstract void setNativeGpsStatus(boolean enabled)
Set the VehicleService to use or not use the device's built-in GPS for location, to augment a vehicle that does no have GPS.
abstract void setVehicleInterface(String interfaceName, String resource)
abstract void unregister(VehicleServiceListener listener)
Stop sending asynchronous measurement updates to a remote listener.
abstract void userPipelineActivated()
abstract void userPipelineDeactivated()
[Expand]
Inherited Methods
From interface android.os.IInterface

Public Methods

public abstract void addViConnectionListener (ViConnectionListener listener)

Throws
RemoteException

public abstract VehicleMessage get (MessageKey key)

Retreive the most recent value for the measurement.

Parameters
key the key of the message to retreive.
Returns
  • the last VehicleMessage received with this key, or null if neve received.
Throws
RemoteException

public abstract int getMessageCount ()

Returns
  • number of messages received since instantiation.
Throws
RemoteException

public abstract VehicleInterfaceDescriptor getVehicleInterfaceDescriptor ()

Return list of tokens identifying the data sources that are enabled and the connection status for each.

Throws
RemoteException

public abstract boolean isViConnected ()

Throws
RemoteException

public abstract void receive (VehicleMessage measurement)

Receive a new measurement that originates from an application. Applications may have alternative data sources that cannot be instantiated in the remote process (e.g. a trace file playback source). As an application's source receive updates, it can pass them back into the remote process using this method.

Throws
RemoteException

public abstract void register (VehicleServiceListener listener)

Register to receive asynchronous updates when measurements are received. All instances of VehicleManager in application processes must register themselves if they want to use the asynchronous interface.

Throws
RemoteException

public abstract boolean send (VehicleMessage measurement)

Set a new value for the measurement class on the vehicle.

Parameters
measurement The measurement to set on the vehicle.
Throws
RemoteException

public abstract void setBluetoothPollingStatus (boolean enabled)

The one vehicle interface specific function, control whether polling is used to find Bluetooth vehicle interfaces.

Throws
RemoteException

public abstract void setNativeGpsStatus (boolean enabled)

Set the VehicleService to use or not use the device's built-in GPS for location, to augment a vehicle that does no have GPS.

Throws
RemoteException

public abstract void setVehicleInterface (String interfaceName, String resource)

Throws
RemoteException

public abstract void unregister (VehicleServiceListener listener)

Stop sending asynchronous measurement updates to a remote listener. Instances of VehicleManager should unregister themselves if they no longer require real-time updates.

Throws
RemoteException

public abstract void userPipelineActivated ()

Throws
RemoteException

public abstract void userPipelineDeactivated ()

Throws
RemoteException