jarol
Interface SensorInterface


public interface SensorInterface

The SensorInterface should be implemented by any class whose instances should be a sensor interface.

NOTE: The internal Jarol components are called interfaces, e.g., sensor interface, whereas the outside components are called units, e.g., navigation unit.

Version:
0.1
Author:
Bernhard Kast

Method Summary
 void awaitExternalSensor()
          Waits for input from the sensor unit.
 void forwardToJarolCore(MessageInterface[] sensorData)
          Forwards the sensor data to the Jarol Core.
 MessageInterface[] readSensorData()
          Reads the sensor data.
 void signalJarolCore()
          Signals the Jarol Core to continue.
 

Method Detail

awaitExternalSensor

void awaitExternalSensor()
Waits for input from the sensor unit. In an event-triggered architecture this would be an event, whereas in a time-triggered architecture this would contain a timer/wait call.


readSensorData

MessageInterface[] readSensorData()
Reads the sensor data.

Returns:
sensordata from the sensor

forwardToJarolCore

void forwardToJarolCore(MessageInterface[] sensorData)
Forwards the sensor data to the Jarol Core.


signalJarolCore

void signalJarolCore()
Signals the Jarol Core to continue.