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 Sensor

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

Direct Known Subclasses:
  LightSensor

public class Sensor
extends java.lang.Object

The `Sensor` class represents a sensor device that contains a reference to the `SensorData` instance feeding data to the device.

Field Summary
`protected SensorData` | `data`

Constructor Summary
`Sensor()`

Method Summary
`void` | `setSensorData(SensorData d)` The `setSensorData()` method sets the reference to the sensor data for this sensor device.

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

Field Detail

### data

    protected SensorData data

Constructor Detail

### Sensor

    public Sensor()

Method Detail

### setSensorData

    public void setSensorData(SensorData d)

  The `setSensorData()` method sets the reference to the sensor data for this sensor device.

  Parameters:
    `d` - the new sensor data source

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