SunSPOT API V3.0


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

java.lang.Object
  extended by com.sun.spot.peripheral.radio.mhrp.aodv.messages.AODVMessage
Direct Known Subclasses:
RERR, RREP, RREQ

public abstract class AODVMessage
extends Object

Version:
0.1
Author:
Allen Ajit George

Field Summary
protected  long destAddress
           
protected  int destSeqNum
           
protected  long origAddress
           
protected  int origSeqNum
           
protected  byte type
           
 
Constructor Summary
AODVMessage()
           
 
Method Summary
 long getDestAddress()
          get the destination address of this message
 int getDestSeqNum()
          get the destination sequence number of this message.
 long getOrigAddress()
          get the originator's address.
 int getOrigSeqNum()
          get the originator sequence number.
 byte getType()
          get the type of this message.
abstract  byte[] writeMessage()
           
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

type

protected byte type

destSeqNum

protected int destSeqNum

destAddress

protected long destAddress

origSeqNum

protected int origSeqNum

origAddress

protected long origAddress
Constructor Detail

AODVMessage

public AODVMessage()
Method Detail

writeMessage

public abstract byte[] writeMessage()

getType

public byte getType()
get the type of this message.

Returns:
type can be RREQ_TYPE = 0x01, RREP_TYPE = 0x02 or RERR_TYPE = 0x03

getDestSeqNum

public int getDestSeqNum()
get the destination sequence number of this message.

Returns:
destSeqNum

getDestAddress

public long getDestAddress()
get the destination address of this message

Returns:
destinationAddress

getOrigSeqNum

public int getOrigSeqNum()
get the originator sequence number.

Returns:
origSeqNum

getOrigAddress

public long getOrigAddress()
get the originator's address.

Returns:
origAddress

SunSPOT API V3.0


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