avrora.sim.platform.sensors
Interface SensorData

All Known Implementing Classes:
RandomSensorData, ReplaySensorData

public interface SensorData

The SensorData interface represents a source of sensor data for the simulation. It could be randomly generated, played back from a file, or computed dynamically from the simulation.


Method Summary
 int reading()
          The reading() method is called by the simulation when a new reading of the sensor is requested or needed.
 

Method Detail

reading

public int reading()
The reading() method is called by the simulation when a new reading of the sensor is requested or needed.

Returns:
a raw ADC reading which should be returned to the software