|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectjist.swans.route.RouteAodv.RouteRequestMessage
private static class RouteAodv.RouteRequestMessage
Represents a Route Request (RREQ) message.
Field Summary | |
---|---|
private NetAddress |
destIp
Destination node IP address. |
private int |
destSeqNum
Latest known destination node sequence number. |
private int |
hopCount
Hop count from originator node. |
private static int |
MESSAGE_SIZE
RREQ message size in bytes. |
private NetAddress |
origIp
Originator node IP address. |
private int |
origSeqNum
Originator node sequence number. |
private int |
rreqId
Route Request identification number. |
private boolean |
unknownDestSeqNum
Flag which indicates an unknown destination node sequence number. |
Fields inherited from interface jist.swans.misc.Message |
---|
NULL |
Constructor Summary | |
---|---|
RouteAodv.RouteRequestMessage(int rreqId,
NetAddress destIp,
NetAddress origIp,
int destSeqNum,
int origSeqNum,
boolean unknownDestSeqNum,
int hopCount)
Constructs a new RREQ Message object. |
|
RouteAodv.RouteRequestMessage(RouteAodv.RouteRequestMessage rreq)
Constructs a copy of an existing RREQ message object. |
Method Summary | |
---|---|
void |
getBytes(byte[] msg,
int offset)
Store packet into byte array. |
NetAddress |
getDestIp()
Returns destination net address. |
int |
getDestSeqNum()
Returns destination sequence number. |
int |
getHopCount()
Returns hop count. |
NetAddress |
getOrigIp()
Returns originator net address. |
int |
getOrigSeqNum()
Returns originator sequence number. |
int |
getRreqId()
Returns RREQ id. |
int |
getSize()
Return packet size. |
boolean |
getUnknownDestSeqNum()
Returns unknown destination sequence number flag. |
void |
incHopCount()
Increment hop count for this message. |
void |
setDestSeqNum(int dsn)
Sets the destination sequence number. |
void |
setUnknownDestSeqNum(boolean flag)
Sets the unknown destination sequence number flag. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
---|
private static final int MESSAGE_SIZE
private int rreqId
private NetAddress destIp
private NetAddress origIp
private int destSeqNum
private int origSeqNum
private int hopCount
private boolean unknownDestSeqNum
Constructor Detail |
---|
public RouteAodv.RouteRequestMessage(int rreqId, NetAddress destIp, NetAddress origIp, int destSeqNum, int origSeqNum, boolean unknownDestSeqNum, int hopCount)
rreqId
- RREQ message identification numberdestIp
- Destination node net addressorigIp
- Originator node net addressdestSeqNum
- Destination node sequence numberorigSeqNum
- Originator node sequence numberunknownDestSeqNum
- Flag indicating an unknown destination node sequence numberhopCount
- hop countpublic RouteAodv.RouteRequestMessage(RouteAodv.RouteRequestMessage rreq)
rreq
- An existing RREQ messageMethod Detail |
---|
public int getRreqId()
public NetAddress getDestIp()
public NetAddress getOrigIp()
public int getDestSeqNum()
public int getOrigSeqNum()
public int getHopCount()
public boolean getUnknownDestSeqNum()
public void incHopCount()
public void setDestSeqNum(int dsn)
dsn
- destination sequence numberpublic void setUnknownDestSeqNum(boolean flag)
flag
- unknown destination sequence number flagpublic int getSize()
getSize
in interface Message
public void getBytes(byte[] msg, int offset)
getBytes
in interface Message
msg
- destination byte arrayoffset
- byte array starting offset
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |