Overview | Package | Class | Tree | Deprecated | Index | Help
PREV CLASS NEXT CLASS | FRAMES NO FRAMES
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD

## avrora.sim.platform.sensors
Class ReplaySensorData

    java.lang.Object
      avrora.sim.platform.sensors.ReplaySensorData

All Implemented Interfaces:
  SensorData

public class ReplaySensorData
extends java.lang.Object
implements SensorData

The `ReplaySensorData` class implements a sensor data source that replays the sensor data from a file.

Constructor Summary
`ReplaySensorData(Microcontroller m, java.lang.String fn)`

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

Methods inherited from class java.lang.Object
`clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait`

Constructor Detail

### ReplaySensorData

    public ReplaySensorData(Microcontroller m,
                            java.lang.String fn)
                     throws java.io.IOException

Method Detail

### reading

    public int reading()

  Description copied from interface: `SensorData`
  The `reading()` method is called by the simulation when a new reading of the sensor is requested or needed.

  Specified by:
    `reading` in interface `SensorData`
  Returns:
    a raw ADC reading which should be returned to the software

Overview | Package | Class | Tree | Deprecated | Index | Help
PREV CLASS NEXT CLASS | FRAMES NO FRAMES
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD