SunSPOT API V3.0


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

java.lang.Object
  extended by com.sun.spot.peripheral.radio.mhrp.aodv.messages.AODVMessage
      extended by com.sun.spot.peripheral.radio.mhrp.aodv.messages.RERR

public class RERR
extends AODVMessage

Version:
0.1
Author:
Allen Ajit George

Field Summary
 
Fields inherited from class com.sun.spot.peripheral.radio.mhrp.aodv.messages.AODVMessage
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.aodv.messages.AODVMessage
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 AODVMessage
Returns:
message

getOrigSeqNum

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

Overrides:
getOrigSeqNum in class AODVMessage
Returns:
origSeqNum

getDestSeqNum

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

Overrides:
getDestSeqNum in class AODVMessage
Returns:
destSeqNum

SunSPOT API V3.0


Copyright © 2006, 2007 Sun Microsystems, Inc. All Rights Reserved.