|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectmoteaccess.MoteResult
This class carries the information of the result of a reading from the motes.
Field Summary | |
private int |
epochTime
The epoch time that the mote was in when it generated the reading |
private RequestID |
rid
The requestID of the operation that generated this reading. |
private int |
sensorReading
The value of the reading. |
private SensorType |
sensorType
The kind of sensor this reading came from. |
private MoteID |
sourceID
The mote this reading came from. |
private java.util.Date |
timeStamp
The timeStamp generated by the base station when this MoteResult was created. |
Constructor Summary | |
MoteResult(SensorType sensorType,
int sensorReading,
MoteID sourceMote,
int epochTime,
RequestID rid)
Standard contructor of the MoteResult, all the values of the result are passed as parameters, but the timestamp which is generated. |
Method Summary | |
int |
getEpochTime()
|
RequestID |
getRid()
|
int |
getSensorReading()
|
SensorType |
getSensorType()
|
MoteID |
getSourceID()
|
java.util.Date |
getTimeStamp()
|
void |
setRid(RequestID rid)
|
void |
setSensorType(SensorType type)
Sets the sensor type associated to this result. |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
private SensorType sensorType
private int sensorReading
private MoteID sourceID
private int epochTime
private java.util.Date timeStamp
private RequestID rid
Constructor Detail |
public MoteResult(SensorType sensorType, int sensorReading, MoteID sourceMote, int epochTime, RequestID rid)
sensorType
- the type of the sensor.sensorReading
- the value of the reading of the sensor.sourceMote
- the mote that gave the reading.epochTime
- the epoch time of the mote.rid
- the request id this reading is responding to.Method Detail |
public void setSensorType(SensorType type)
public SensorType getSensorType()
public java.util.Date getTimeStamp()
public int getEpochTime()
public int getSensorReading()
public MoteID getSourceID()
public RequestID getRid()
public void setRid(RequestID rid)
|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |