|
SunSPOT API V5.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.lqrp.messages.LQRPMessage com.sun.spot.peripheral.radio.mhrp.lqrp.messages.RREP
public class RREP
Field Summary |
---|
Fields inherited from class com.sun.spot.peripheral.radio.mhrp.lqrp.messages.LQRPMessage |
---|
destAddress, destSeqNum, origAddress, origSeqNum, type |
Constructor Summary | |
---|---|
RREP(byte[] newMessage)
constructs a new route reply message |
|
RREP(RREQ request)
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 |
int |
getLowLQlinkCount()
|
double |
getRevLastHopCost()
get the link cost for the last hop |
double |
getRouteCostToDest()
get the route cost |
short |
incrementHopCount()
increment the hop count |
void |
setACKRequiredFlag(boolean flag)
sets the ackRequiredFlag |
double |
updateRouteCostToDest(long nextHop)
update the route cost metric of this message |
byte[] |
writeMessage()
writes the properties into the appropriate bytes of the buffer |
Methods inherited from class com.sun.spot.peripheral.radio.mhrp.lqrp.messages.LQRPMessage |
---|
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(RREQ request)
request
- the route request that caused this route replypublic RREP(byte[] newMessage)
newMessage
- Method Detail |
---|
public byte[] writeMessage()
writeMessage
in class LQRPMessage
public boolean getACKRequiredFlag()
public void setACKRequiredFlag(boolean flag)
public short getHopCount()
public short incrementHopCount()
public double updateRouteCostToDest(long nextHop)
public double getRouteCostToDest()
public double getRevLastHopCost()
public int getLowLQlinkCount()
|
SunSPOT API V5.0 |
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |