ANTS v2.0 API

ants.route
Class DynamicRouteTable

java.lang.Object
  |
  +--ants.route.DynamicRouteTable

public class DynamicRouteTable
extends java.lang.Object

The ANTS DynamicRouteTable contains all of the state and code for maintaining a dynamic routing table. This includes sending out periodic updates, sending out immediate updates, (and receiving both). GC'ing stale routes, etc.

I think there are some problems in here for a node that has more than one physical address. It will probably send the wrong info out to the other nodes...

Based very strongly on the dynamic route table from the original MIT ANTS. I renamed and moved a lot of things around, but I (hopefully) didn't change the update algorithm.

XXX odd interaction with the base routetable

Author:
Utah Janos Team, David Wetherall

Field Summary
static int INFINITY
          Maximum cost of travelling to a node.
 
Constructor Summary
DynamicRouteTable(RouteTable baseRouteTable)
           
 
Method Summary
 void addRoute(ants.route.DynamicRouteEntry re)
          Add a route to the table.
 void removeRoute(ants.route.DynamicRouteEntry re)
          Remove a route from the table.
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

INFINITY

public static final int INFINITY
Maximum cost of travelling to a node. Dunno why 16 is a good number.
Constructor Detail

DynamicRouteTable

public DynamicRouteTable(RouteTable baseRouteTable)
Method Detail

addRoute

public void addRoute(ants.route.DynamicRouteEntry re)
Add a route to the table.

removeRoute

public void removeRoute(ants.route.DynamicRouteEntry re)
Remove a route from the table.

ANTS v2.0 API

This documentation is Copyright (C) 1998-2001 The University of Utah and the University of Washington. All Rights Reserved. See the individual source files for distribution terms.
Documentation, software, and mailing lists for ANTS v2.0 can be found at the Janos Project: http://www.cs.utah.edu/flux/janos/