avrora.sim.platform.sensors
Class Sensor

java.lang.Object
  extended byavrora.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