All Packages  This Package  Class Hierarchy  Class Search  Index

Class edu.utah.janos.route.RouteEntry
java.lang.Object
   |
   +----edu.utah.janos.route.RouteEntry

  Summary

public class  RouteEntry
     extends java.lang.Object
{
          // Fields 3
     private Address addr;
     private final int dst;
     private final int nxt;

          // Constructors 2
     public RouteEntry(RouteEntry);
     public RouteEntry(int, int, String) throws NumberFormatException, AddressFormatException, NoSuchNodeAddress;

          // Methods 4
     public final int getLogicalDest();
     public final int getLogicalNext();
     public final Address getPhysicalNext();
     public String toString();
}

A single entry of route table. A route entry contains both the "logical" address and "physical" address of a Node.

A RouteEntry is immutable. That way code can read the table but be trusted to not mess with it. Note that this immutablity depends on Address also being immutable.

XXX rename "logical" to "active" in all names. XXX fixup names of local variables.

Author:
David Wetherall

See Also: RouteTable


  Cross Reference

Extended By:
DynamicRouteEntry

Returned By:
RouteTable.getRoute(), DynamicRouteTable.getRoute(), DynamicRouteTable.getRoute(), RouteTable.castToRouteEntry(), RouteTable.getRoute(), RouteTable.getRoute(), WriteableRouteTable.getRoute(), WriteableRouteTable.getRoute()





  Fields

· dst

Summary  |  Top
   private final int dst


· nxt

Summary  |  Top
   private final int nxt


· addr

Summary  |  Top
   private Address addr

Physical address of next hop.


  Constructors

· RouteEntry

Summary  |  Top

   public RouteEntry(RouteEntry other) 


· RouteEntry

Summary  |  Top
   public RouteEntry(int d, 
                     int n, 
                     String a)  throws NumberFormatException, AddressFormatException, NoSuchNodeAddress


  Methods

· getLogicalDest

Summary  |  Top
   public final int getLogicalDest() 


· getLogicalNext

Summary  |  Top
   public final int getLogicalNext() 


· getPhysicalNext

Summary  |  Top
   public final Address getPhysicalNext() 


· toString

Summary  |  Top
   public String toString() 
Overrides:
toString in class Object


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