|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectjist.swans.route.RouteAodv.RreqBuffer
private static class RouteAodv.RreqBuffer
Buffer for keeping track of recently sent RREQ messages (so they are not resent). Also keeps track of recent RREQ messages that were answered with a RREP.
Field Summary | |
---|---|
private java.util.LinkedList |
list
List of RreqBufferEntry objects. |
private NetAddress |
localAddr
Local net address. |
Constructor Summary | |
---|---|
RouteAodv.RreqBuffer(NetAddress netAddr)
Constructs a Route Request Buffer object. |
Method Summary | |
---|---|
void |
addEntry(RouteAodv.RreqBufferEntry entry)
Adds an entry to the RREQ buffer. |
void |
clearExpiredEntries()
Remove all expired entries. |
boolean |
contains(RouteAodv.RreqBufferEntry entry)
Checks if a given RouteBufferEntry exists in the RREQ Buffer. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
---|
private java.util.LinkedList list
private NetAddress localAddr
Constructor Detail |
---|
public RouteAodv.RreqBuffer(NetAddress netAddr)
netAddr
- local net addressMethod Detail |
---|
public void addEntry(RouteAodv.RreqBufferEntry entry)
entry
- RreqBufferEntry to be addedpublic boolean contains(RouteAodv.RreqBufferEntry entry)
entry
- the RouteBufferEntry
public void clearExpiredEntries()
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |