|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectcat.sig.SensorMonitor
This class is a tool used by SigManager. It listens to all sensors in CAT, so that the sensor data can be shared to SIGs if there are any. Sensor data is given to the SigManager who can distribute it to the SIGs.
Field Summary | |
private java.util.Vector |
eventQueue
Contains unprocessed sensor events. |
private SigManager |
parent
The manager which we give sensor data to. |
Constructor Summary | |
SensorMonitor(SigManager manager)
This constructor initializes the monitor by setting the SigManager, and starting the thread to process Sensor events. |
Method Summary | |
void |
run()
This method loops through any and all sensor events that this class listens to. |
void |
update(java.lang.Object event)
Being an Observer, we must implement this method to get sensor events from those that we observe. |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
private SigManager parent
private java.util.Vector eventQueue
Constructor Detail |
public SensorMonitor(SigManager manager)
manager
- The manager who will get the sensor data and share it.Method Detail |
public void run()
run
in interface java.lang.Runnable
public void update(java.lang.Object event)
update
in interface SensorListener
event
- The incoming sensor event.
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |