|
SunSPOT API V3.0 |
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object com.sun.spot.peripheral.radio.mhrp.aodv.messages.AODVMessage com.sun.spot.peripheral.radio.mhrp.aodv.messages.RREP
public class RREP
Field Summary |
---|
Fields inherited from class com.sun.spot.peripheral.radio.mhrp.aodv.messages.AODVMessage |
---|
destAddress, destSeqNum, origAddress, origSeqNum, type |
Constructor Summary | |
---|---|
RREP()
constructs a new route reply message |
|
RREP(byte[] newMessage)
constructs a new route reply message |
|
RREP(RREQ message)
constructs a new route reply message |
Method Summary | |
---|---|
boolean |
getACKRequiredFlag()
tells the status of the ackRequiredFlag |
short |
getHopCount()
read the hop count of this route reply |
short |
getRouteCost()
get the route cost |
short |
incrementHopCount()
increment the hop count |
void |
setACKRequiredFlag(boolean flag)
sets the ackRequiredFlag |
byte[] |
writeMessage()
writes the properties into the appropriate bytes of the buffer |
Methods inherited from class com.sun.spot.peripheral.radio.mhrp.aodv.messages.AODVMessage |
---|
getDestAddress, getDestSeqNum, getOrigAddress, getOrigSeqNum, getType |
Methods inherited from class java.lang.Object |
---|
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public RREP()
public RREP(RREQ message)
message
- the route request that caused this route replypublic RREP(byte[] newMessage)
newMessage
- Method Detail |
---|
public byte[] writeMessage()
writeMessage
in class AODVMessage
public boolean getACKRequiredFlag()
public void setACKRequiredFlag(boolean flag)
public short getHopCount()
public short incrementHopCount()
public short getRouteCost()
|
SunSPOT API V3.0 |
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |