ants.core
Class RouteTable
java.lang.Object
|
+--edu.utah.janosvm.sys.ListNode
|
+--edu.utah.janosvm.sys.Importable
|
+--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
Fields inherited from class edu.utah.janosvm.sys.ListNode |
pred,
succ |
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. |
Methods inherited from class edu.utah.janos.route.WriteableRouteTable |
addRoute,
addRoute,
getRoute,
getRoute,
getRoutes,
getRouteTable,
removeRoute |
Methods inherited from class edu.utah.janos.route.RouteTable |
getNeighbors,
neighborCount,
routeCount |
Methods inherited from class edu.utah.janosvm.sys.Importable |
clone,
equals,
pointsTo |
Methods inherited from class edu.utah.janosvm.sys.ListNode |
append,
prepend,
remove |
Methods inherited from class java.lang.Object |
getClass,
hashCode,
notify,
notifyAll,
toString,
wait,
wait,
wait |
RouteTable
public RouteTable()
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 flowrouteFile
- 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.
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/