|
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.RREQ
public class RREQ
Field Summary |
---|
Fields inherited from class com.sun.spot.peripheral.radio.mhrp.aodv.messages.AODVMessage |
---|
destAddress, destSeqNum, origAddress, origSeqNum, type |
Constructor Summary | |
---|---|
RREQ(byte[] newMessage)
constructs a new route request message |
|
RREQ(long origAddress,
long destinationMACaddress)
constructs a new route request message |
Method Summary | |
---|---|
boolean |
getDestinationOnlyFlag()
get the state of the destination only flag |
boolean |
getGratuitousRREPFlag()
get the state of the gratuitous route reply flag |
short |
getHopCount()
get the hop count of this message |
int |
getRequestID()
get the ID of this request |
short |
getRouteCost()
|
short |
incrementHopCount()
increment the hop count of this message |
void |
setDestinationOnlyFlag(boolean flag)
set the destination only flag |
void |
setDestinationSequenceNumber(int destinationSequenceNumber)
set the destination sequence number of this route request |
void |
setGratuitousRREPFlag(boolean flag)
set the gratuitous route reply flag |
void |
setRequestID(int requestID)
set ID of this request |
short |
setRouteCost()
|
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 RREQ(long origAddress, long destinationMACaddress)
destinationMACaddress
- node to which a route shall be discoveredpublic RREQ(byte[] newMessage)
newMessage
- Method Detail |
---|
public byte[] writeMessage()
writeMessage
in class AODVMessage
public boolean getDestinationOnlyFlag()
public void setDestinationOnlyFlag(boolean flag)
flag
- public boolean getGratuitousRREPFlag()
public void setGratuitousRREPFlag(boolean flag)
flag
- public int getRequestID()
public void setRequestID(int requestID)
requestID
- public short getHopCount()
public short incrementHopCount()
public short getRouteCost()
public short setRouteCost()
public void setDestinationSequenceNumber(int destinationSequenceNumber)
destinationSequenceNumber
-
|
SunSPOT API V3.0 |
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |