|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object avrora.sim.platform.sensors.RandomSensorData
Field Summary | |
protected java.util.Random |
random
|
Constructor Summary | |
RandomSensorData(java.util.Random r)
|
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 |
Field Detail |
protected final java.util.Random random
Constructor Detail |
public RandomSensorData(java.util.Random r)
Method Detail |
public int reading()
SensorData
reading()
method is called by the simulation when a new
reading of the sensor is requested or needed.
reading
in interface SensorData
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |