JNodeOS v1.1.5 API

edu.utah.janos.route
Class WriteableRouteTable

java.lang.Object
  |
  +--edu.utah.janosvm.sys.ListNode
        |
        +--edu.utah.janosvm.sys.Importable
              |
              +--edu.utah.janos.route.RouteTable
                    |
                    +--edu.utah.janos.route.WriteableRouteTable

public class WriteableRouteTable
extends RouteTable

Interface for an updatable routing table. The regular route table is read-only. Access to this class is controlled (or, more acurately, supposed to be controlled) by controls on a flow's namespace.

NOTE: If you add/change any interface in here, be sure to update the ANTSR DynamicRouteTable as it has to hide all of these interfaces.

Author:
Janos Ministry of Development
See Also:
RouteTable

Fields inherited from class edu.utah.janosvm.sys.ListNode
pred, succ
 
Constructor Summary
WriteableRouteTable()
          Create a WriteableRouteTable.
 
Method Summary
 void addRoute(int activeDest, int activeNext, java.lang.String physNext)
          Add a route to the table.
 void addRoute(RouteEntry route)
          Add a route to the table.
 RouteEntry getRoute(int activeDest)
          Retrive the current route to get to the given active address.
 RouteEntry getRoute(java.lang.Integer activeDest)
           
 java.util.Enumeration getRoutes()
           
 RouteTable getRouteTable()
          Get the underlying read-only table.
 void removeRoute(RouteEntry r)
          Remove a route from the table.
 
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
 

Constructor Detail

WriteableRouteTable

public WriteableRouteTable()
Create a WriteableRouteTable.
Method Detail

getRouteTable

public RouteTable getRouteTable()
Get the underlying read-only table.

getRoutes

public java.util.Enumeration getRoutes()
Overrides:
getRoutes in class RouteTable

getRoute

public RouteEntry getRoute(int activeDest)
Retrive the current route to get to the given active address.
Overrides:
getRoute in class RouteTable

getRoute

public RouteEntry getRoute(java.lang.Integer activeDest)
Overrides:
getRoute in class RouteTable

removeRoute

public void removeRoute(RouteEntry r)
Remove a route from the table.

addRoute

public void addRoute(RouteEntry route)
Add a route to the table.

addRoute

public void addRoute(int activeDest,
                     int activeNext,
                     java.lang.String physNext)
              throws NoSuchNodeAddress,
                     AddressFormatException
Add a route to the table.

JNodeOS v1.1.5 API

This documentation is Copyright (C) 1998-2001 The University of Utah. All Rights Reserved. See the file LICENSE for distribution terms.
Documentation, software, and mailing list archives for Janos can be found at the Janos Project: http://www.cs.utah.edu/flux/janos/