SunSPOT API V5.0


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

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

public class RERR
extends LQRPMessage

Version:
0.1
Author:
Allen Ajit George

Field Summary
 
Fields inherited from class com.sun.spot.peripheral.radio.mhrp.lqrp.messages.LQRPMessage
destAddress, destSeqNum, origAddress, origSeqNum, type
 
Constructor Summary
RERR(byte[] newMessage)
          constructs a new route error message
RERR(long originator, long destination)
          constructs a new route error message
 
Method Summary
 int getDestSeqNum()
          get the destination sequence number of this message.
 int getOrigSeqNum()
          get the originator sequence number.
 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, getOrigAddress, getType
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

RERR

public RERR(long originator,
            long destination)
constructs a new route error message

Parameters:
originator -
destination -

RERR

public RERR(byte[] newMessage)
constructs a new route error 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

getOrigSeqNum

public int getOrigSeqNum()
Description copied from class: LQRPMessage
get the originator sequence number.

Overrides:
getOrigSeqNum in class LQRPMessage
Returns:
origSeqNum

getDestSeqNum

public int getDestSeqNum()
Description copied from class: LQRPMessage
get the destination sequence number of this message.

Overrides:
getDestSeqNum in class LQRPMessage
Returns:
destSeqNum

SunSPOT API V5.0


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