jist.swans.route
Class RouteAodv.RreqBufferEntry

java.lang.Object
  extended by jist.swans.route.RouteAodv.RreqBufferEntry
Enclosing class:
RouteAodv

private static class RouteAodv.RreqBufferEntry
extends java.lang.Object

A single entry of the RREQ Buffer.


Field Summary
private  NetAddress originIp
          Net address of node that originating the RREQ message.
private  int rreqId
          RREQ id of RREQ message sent.
private  long timeSent
          Time (simulation time) that this entry was created.
 
Constructor Summary
RouteAodv.RreqBufferEntry(int rreqId, NetAddress originIp)
          Constructs a RREQ Buffer Entry object.
 
Method Summary
 boolean equals(java.lang.Object o)
          Checks whether given RreqBufferEntry is equal to this one.
 long getTimeSent()
          Returns timestamp for creation of this entry.
 int hashCode()
          Returns a hash code.
 
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

rreqId

private int rreqId
RREQ id of RREQ message sent.


originIp

private NetAddress originIp
Net address of node that originating the RREQ message.


timeSent

private long timeSent
Time (simulation time) that this entry was created.

Constructor Detail

RouteAodv.RreqBufferEntry

public RouteAodv.RreqBufferEntry(int rreqId,
                                 NetAddress originIp)
Constructs a RREQ Buffer Entry object.

Parameters:
rreqId - RREQ id of RREQ message
originIp - Net address of node that originated the RREQ message
Method Detail

getTimeSent

public long getTimeSent()
Returns timestamp for creation of this entry.

Returns:
time that entry was created

equals

public boolean equals(java.lang.Object o)
Checks whether given RreqBufferEntry is equal to this one. Two entries are equal if the RREQ id and origin IP's are the same.

Overrides:
equals in class java.lang.Object
Parameters:
o - An object of type RreqBufferEntry
Returns:
True, if objects are equal

hashCode

public int hashCode()
Returns a hash code.

Overrides:
hashCode in class java.lang.Object
Returns:
hash code