public abstract class

ContextualVehicleDataSink

extends Object
implements VehicleDataSink
java.lang.Object
   ↳ com.openxc.sinks.ContextualVehicleDataSink
Known Direct Subclasses

Class Overview

A parent class for data sinks that require access to an Android context.

Summary

Public Constructors
ContextualVehicleDataSink(Context context)
Public Methods
abstract void receive(VehicleMessage message)
Receive a data point with a name, a value and a event value.
abstract void stop()
Release any acquired resources and either stop sending measurements (if a source) or stop expecting to receive them (if a sink).
Protected Methods
Context getContext()
[Expand]
Inherited Methods
From class java.lang.Object
From interface com.openxc.sinks.VehicleDataSink

Public Constructors

public ContextualVehicleDataSink (Context context)

Public Methods

public abstract void receive (VehicleMessage message)

Receive a data point with a name, a value and a event value. The implementation of this method should not block, lest the vehicle data source get behind in processing data from a source potentially external to the system.

Parameters
message The new measurement.

public abstract void stop ()

Release any acquired resources and either stop sending measurements (if a source) or stop expecting to receive them (if a sink).

Protected Methods

protected Context getContext ()