ANTS v2.0 API

ants.core
Class RouteTable

java.lang.Object
  |
  +--edu.utah.janos.route.RouteTable
        |
        +--edu.utah.janos.route.WriteableRouteTable
              |
              +--ants.core.RouteTable

public class RouteTable
extends edu.utah.janos.route.WriteableRouteTable

The basic ANTS route table.

Author:
David Wetherall, Utah Janos Team

Method Summary
static void initializeTables(int nodeAddr, java.lang.String routeFile, RouteTable routeTable, NeighborTable neighborTable)
          Initialize the route table and the neighbor table from the given routeFile.
static edu.utah.janos.nodeos.Address parseAddress(int nxt, java.lang.String addr)
           
 
Methods inherited from class edu.utah.janos.route.WriteableRouteTable
addRoute, removeHop, removeRoute, toString
 
Methods inherited from class edu.utah.janos.route.RouteTable
getEntries, getRoute, getRouteCount, getRoutes
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Method Detail

parseAddress

public static edu.utah.janos.nodeos.Address parseAddress(int nxt,
                                                         java.lang.String addr)
                                                  throws java.lang.NumberFormatException,
                                                         edu.utah.janos.nodeos.AddressFormatException,
                                                         edu.utah.janos.nodeos.NoSuchNodeAddress

initializeTables

public static void initializeTables(int nodeAddr,
                                    java.lang.String routeFile,
                                    RouteTable routeTable,
                                    NeighborTable neighborTable)
                             throws java.io.IOException,
                                    edu.utah.janos.nodeos.AddressFormatException,
                                    edu.utah.janos.nodeos.NoSuchNodeAddress
Initialize the route table and the neighbor table from the given routeFile. A null routeFile implies that there are no pre-defined routes. nodeAddr may be zero, implying the current node has no address (yet). If nodeAddr is zero, routeFile must be null.
Parameters:
nodeAddr - the address of this node 0 if this node does not have an address yet.
node - the node for the primordial flow
routeFile - the name of the file to load and read route information from. May be null.
routeTable - an instance of route table to fill in with data from the file.
neighborTable - an instance of a neighbor table to fill in with data from the file.

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/