All Packages  This Package  Class Hierarchy  Class Search  Index

Interface edu.utah.janos.antsr.core.RouteTable

  Summary

public interface  RouteTable
{
          // Methods 4
     public abstract void configure(int, boolean, String) throws IOException, AddressFormatException, NoSuchNodeAddress;
     public abstract Enumeration getNeighbors();
     public abstract RouteEntry getRoute(int);
     public abstract int neighborCount();
}

This is the interface the ants.ants package expects a route table to satisfy.

This class only exists to avoid circular dependencies between the ants.ants package and any dynamic routing table implementation. XXX We may be going to far.

XXX notice that we're still dependent upon the Janos route package's RouteEntry type. Ah, well.

XXX The name is a bit confusing, especially for code that can see this class and janos/route/RouteTable.


  Cross Reference

Returned By:
Node.getRouteTable(), PrimordialNode.getRouteTable(), PrimordialNode.loadRouteTableImpl()

Implemented By:
DynamicRouteTable, StaticRouteTable





  Methods

· configure

Summary  |  Top
   public abstract void configure(int nodeAddr, 
                                  boolean doUpdates, 
                                  String configFile)  throws IOException, AddressFormatException, NoSuchNodeAddress

Configure the table.

XXX the exception throw is a bit overkill...



· getNeighbors

Summary  |  Top
   public abstract Enumeration getNeighbors() 

Must return an enumeration of RouteEntry objects.



· neighborCount

Summary  |  Top
   public abstract int neighborCount() 


· getRoute

Summary  |  Top
   public abstract RouteEntry getRoute(int addr) 


All Packages  This Package  Class Hierarchy  Class Search  Index
Freshly brewed Java API Documentation automatically generated with polardoc Version 1.0.7