simnet
Class AggregateShortestPath

java.lang.Object
  extended bysimnet.RoutingTable
      extended bysimnet.ShortestPath
          extended bysimnet.AggregateShortestPath
All Implemented Interfaces:
Pluggable, PlugoutListener

public class AggregateShortestPath
extends ShortestPath

A routing table that uses global knowledge to route packets on the shortest path. If changes are made to the topology, the update shortest path (usp) command must be run. If an ip does not exist, an attempt is made to route to the /16 subnet it is in


Field Summary
 
Fields inherited from class simnet.ShortestPath
 
Fields inherited from class simnet.RoutingTable
node, NODE_ID
 
Constructor Summary
AggregateShortestPath()
           
 
Method Summary
 int lookup(int to)
          Determines the ID of the next hop in the path to the specified node.
 
Methods inherited from class simnet.ShortestPath
applicableLink, build, getDist, initialize, prePlugout
 
Methods inherited from class simnet.RoutingTable
finalize, plugoutNotification
 
Methods inherited from class java.lang.Object
clone, equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

AggregateShortestPath

public AggregateShortestPath()
Method Detail

lookup

public int lookup(int to)
Determines the ID of the next hop in the path to the specified node. If no path can be found, try to route to the /16 subnet.

Overrides:
lookup in class ShortestPath
Parameters:
to - the end of the path
Returns:
the node ID of the next hop