|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectcat.sensor.core.Sensor
cat.sensor.core.LeafSensor
LeafSensor is a Sensor which is a leaf on the heirarchy of Sensors. It does not listen to any other sensors. It only gets data directly from real physical sensors (or simulated ones).
Field Summary |
Fields inherited from class cat.sensor.core.Sensor |
remote, sensorID, sensorType |
Constructor Summary | |
LeafSensor(java.lang.String id)
This constructor initializes the Sensor object by setting the id. |
Method Summary | |
void |
newRawData(Value newValue)
This method is how the LeafSensor gets data from the real sensor. |
void |
setStatus(int status)
This method sets the status of the sensor. |
Methods inherited from class cat.sensor.core.Sensor |
addSensorListener, countSensorListeners, deleteSensorListener, deleteSensorListeners, getID, getSensorType, isRemote, notifySensorListeners, setID, setRemote, setSensorType |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
public LeafSensor(java.lang.String id)
id
- The sensor's unique id.Method Detail |
public void newRawData(Value newValue)
newValue
- The sensor's data.public void setStatus(int status)
status
- The sensor's status.
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |