|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object moteaccess.MoteReaction
This class carries the information regarding a reaction that are passed to the IMoteAccess in order to register a reaction.
Field Summary | |
protected Condition |
cond
The condition of the reaction. |
protected MoteID |
mid
The mote id. |
protected java.lang.Boolean |
persistentMode
This value is true when the reaction is not deregistered after the
first firing; false if the reaction keeps on returning data and is not deregistered
after the first firing. |
protected SensorType |
st
The type of the sensor. |
Constructor Summary | |
MoteReaction(MoteID m,
SensorType st,
Condition c,
boolean persistent)
Public constructor of a mote reaction. |
|
MoteReaction(MoteID m,
SensorType sensorType,
Condition cond,
java.lang.Boolean persistentMode)
Public constructor of a mote reaction. |
|
MoteReaction(MoteReaction mr2)
Copy constructor. |
Method Summary | |
Condition |
getCondition()
Getter for the condition. |
MoteID |
getMoteID()
Return the required MoteID |
SensorType |
getSensorType()
Return the desired sensor |
boolean |
isOnce()
True if the reaction is "one-shot". |
boolean |
isPersistent()
True if the reaction is persistent. |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
protected MoteID mid
protected SensorType st
protected java.lang.Boolean persistentMode
true
when the reaction is not deregistered after the
first firing; false
if the reaction keeps on returning data and is not deregistered
after the first firing.
protected Condition cond
Constructor Detail |
public MoteReaction(MoteID m, SensorType sensorType, Condition cond, java.lang.Boolean persistentMode)
m
- the mote id.sensorType
- the sensor type.cond
- the condition of the reaction.persistentMode
- true for persistent mode (lime's once per tuple).public MoteReaction(MoteID m, SensorType st, Condition c, boolean persistent)
m
- the mote id.st
- the sensor type.c
- the conditionpersistent
- true for persistent mode.public MoteReaction(MoteReaction mr2)
Method Detail |
public MoteID getMoteID()
public boolean isOnce()
public boolean isPersistent()
public SensorType getSensorType()
public Condition getCondition()
|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |