jist.swans.route
Class RouteAodv.OutgoingSet

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

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

Represents the set of neighboring nodes through which this node routes messages. The node expects to periodically receive messages (HELLO or other) from each neighbor in its outgoing set. If it does not receive any messages from a particular neighbor over a certain period of time, it can assume that neighbor is no longer within range. Each node in this set is mapped to a corresponding OutgoingInfo object.


Field Summary
private  NetAddress localAddr
          Local net address.
private  java.util.Map map
          Data structure for the outgoing node set.
 
Constructor Summary
RouteAodv.OutgoingSet(NetAddress netAddr)
          Constructs a new outgoingSet object.
 
Method Summary
 void add(MacAddress m)
          Adds an entry to the outgoing node set.
 RouteAodv.OutgoingInfo getInfo(MacAddress m)
          Returns the outgoing node info for a given MAC address.
 java.util.Iterator iterator()
          Returns an iterator for this outgoing set.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

map

private java.util.Map map
Data structure for the outgoing node set.


localAddr

private NetAddress localAddr
Local net address.

Constructor Detail

RouteAodv.OutgoingSet

public RouteAodv.OutgoingSet(NetAddress netAddr)
Constructs a new outgoingSet object.

Parameters:
netAddr - local net address
Method Detail

iterator

public java.util.Iterator iterator()
Returns an iterator for this outgoing set.

Returns:
the iterator

add

public void add(MacAddress m)
Adds an entry to the outgoing node set.

Parameters:
m - mac address of node to add

getInfo

public RouteAodv.OutgoingInfo getInfo(MacAddress m)
Returns the outgoing node info for a given MAC address.

Parameters:
m - the given MAC address
Returns:
the corresponding outgoing node info