com.sun.spot.peripheral.radio.mhrp.lqrp.messages
Class LQREP
java.lang.Object
com.sun.spot.peripheral.radio.mhrp.lqrp.messages.LQRPMessage
com.sun.spot.peripheral.radio.mhrp.lqrp.messages.LQREP
public class LQREP
- extends LQRPMessage
- Author:
- Ron Goldman
Constructor Summary |
LQREP(byte[] newMessage)
constructs a new route request message |
LQREP(LQREQ request,
double cost)
constructs a new link quality reply message |
Method Summary |
double |
getRouteCost()
|
byte[] |
writeMessage()
writes the properties into the appropriate bytes of the buffer |
LQREP
public LQREP(LQREQ request,
double cost)
- constructs a new link quality reply message
- Parameters:
request
- the link quality request that caused this link quality replycost
- the average link quality for messages received on this link
LQREP
public LQREP(byte[] newMessage)
- constructs a new route request message
- Parameters:
newMessage
-
writeMessage
public byte[] writeMessage()
- writes the properties into the appropriate bytes of the buffer
- Specified by:
writeMessage
in class LQRPMessage
- Returns:
- message
getRouteCost
public double getRouteCost()
Copyright � 2006-2008 Sun Microsystems, Inc. All Rights Reserved.