|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectjist.swans.route.RouteAodv.PrecursorSet
private static class RouteAodv.PrecursorSet
Represents the set of neighboring nodes which (likely) route through this node. -A node periodically sends HELLO messages to its precursors, signaling to them that this node is still in range to receive packets. -A node also may send RERR messages to its precursors, informing them of broken routes.
| Field Summary | |
|---|---|
private java.util.Map |
map
Data structure for storing the precursor set. |
private RouteAodv |
thisNode
Reference to this RouteAodv instance. |
| Constructor Summary | |
|---|---|
RouteAodv.PrecursorSet(RouteAodv thisNode)
Constructs a new PrecursorSet object. |
|
| Method Summary | |
|---|---|
void |
add(MacAddress m)
Adds an item to the precursor set. |
RouteAodv.PrecursorInfo |
getInfo(MacAddress m)
Returns information for a precursor node. |
java.util.Iterator |
iterator()
Returns an Iterator for the set. |
void |
remove(MacAddress m)
Removes an item from the precursor set. |
void |
sendRERR(java.util.LinkedList nodes,
byte ttl)
Sends a RERR message to all precursors. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Field Detail |
|---|
private java.util.Map map
private RouteAodv thisNode
| Constructor Detail |
|---|
public RouteAodv.PrecursorSet(RouteAodv thisNode)
thisNode - reference to this RouteAodv instance| Method Detail |
|---|
public java.util.Iterator iterator()
public void add(MacAddress m)
m - Mac address of node to add to setpublic void remove(MacAddress m)
m - Mac address of the node to remove from setpublic RouteAodv.PrecursorInfo getInfo(MacAddress m)
m - mac address of the precursor node
public void sendRERR(java.util.LinkedList nodes,
byte ttl)
nodes - the list of destination addresses (of type NetAddress) to include in RERR messagettl - TTL value to use
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||