|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectjava.util.EventObject
cat.sensor.event.SensorEvent
cat.sensor.event.SensorStatusEvent
This status event carries specific information about a sensor. It might be used to signal that a sensor is broken or failing.
Field Summary | |
private int |
status
The status of the sensor sending this event. |
static int |
STATUS_DOWN
status variable. |
static int |
STATUS_ERROR
status variable. |
static int |
STATUS_RUNNING
status variable. |
Fields inherited from class java.util.EventObject |
source |
Constructor Summary | |
SensorStatusEvent(java.lang.String id,
int s)
This constructor sets the id of the sensor sending the status event. |
Method Summary | |
int |
getStatus()
This returns the status of the sensor that published this event. |
Methods inherited from class java.util.EventObject |
getSource, toString |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
Field Detail |
public static int STATUS_RUNNING
public static int STATUS_DOWN
public static int STATUS_ERROR
private int status
Constructor Detail |
public SensorStatusEvent(java.lang.String id, int s)
id
- The unique id of the sensor sending the status event.s
- The status of the sensor.Method Detail |
public int getStatus()
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |