SunSPOT API V5.0


com.sun.spot.peripheral.radio.mhrp.lqrp.messages
Class LQREP

java.lang.Object
  extended by com.sun.spot.peripheral.radio.mhrp.lqrp.messages.LQRPMessage
      extended by com.sun.spot.peripheral.radio.mhrp.lqrp.messages.LQREP

public class LQREP
extends LQRPMessage

Author:
Ron Goldman

Field Summary
 
Fields inherited from class com.sun.spot.peripheral.radio.mhrp.lqrp.messages.LQRPMessage
destAddress, destSeqNum, origAddress, origSeqNum, type
 
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
 
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

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 reply
cost - the average link quality for messages received on this link

LQREP

public LQREP(byte[] newMessage)
constructs a new route request message

Parameters:
newMessage -
Method Detail

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()

SunSPOT API V5.0


Copyright � 2006-2008 Sun Microsystems, Inc. All Rights Reserved.