|
|||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||
java.lang.Objectmoteaccess.MoteRequest
Class describing an unconditional read request.
| Field Summary | |
protected MoteID |
moteID
ID of the mote to be queried |
protected SensorType |
sensorType
The desired sensor. |
protected boolean |
timedMode
If this flag is active, then the request is timed, i.e. |
| Constructor Summary | |
MoteRequest()
Default constructor. |
|
MoteRequest(MoteID m,
SensorType sensorType,
boolean timedMode)
Public constructor for a new MoteRequest. |
|
MoteRequest(MoteRequest mr2)
Copy constructor. |
|
| Method Summary | |
MoteID |
getMoteID()
Getter method for the ID of the mote that has performed the reading. |
SensorType |
getSensorType()
Getter method for the Type of sensor requested. |
boolean |
isTimed()
Returns true if this request is timed, false if it is to be run until a reading is obtained. |
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Field Detail |
protected SensorType sensorType
protected boolean timedMode
protected MoteID moteID
| Constructor Detail |
public MoteRequest()
public MoteRequest(MoteID m,
SensorType sensorType,
boolean timedMode)
m - the mote IdentifiersensorType - the type of sensor to be readtimedMode - Query mode : if true, the query stops itself after the timeout expires. Otherwise, it runs indefinitely until a reply is received.public MoteRequest(MoteRequest mr2)
| Method Detail |
public MoteID getMoteID()
public SensorType getSensorType()
public boolean isTimed()
|
|||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||