All Packages  This Package  Class Hierarchy  Class Search  Index

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

  Summary

class  DynamicRouteEntry
     extends edu.utah.janos.route.RouteEntry
{
          // Fields 3
     boolean change;
     private int cost;
     private long expires;

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

          // Methods 8
     public boolean changed();
     public void clearChanged();
     public int getCost();
     public long getExpiration();
     public void markChanged();
     public void setCost(int);
     public void setExpiration(long);
     public String toString();
}

A DynamicRouteEntry is a RouteEntry with weight.

Unlike a base RouteEntry, which is immutable, a DynamicRouteEntry's cost, expires and change fields are mutable.

Author:
Janos Ministry of Development , David Wetherall




  Fields

· cost

Summary  |  Top

   private int cost


· expires

Summary  |  Top
   private long expires


· change

Summary  |  Top
   boolean change


  Constructors

· DynamicRouteEntry

Summary  |  Top

   public DynamicRouteEntry(int dest, 
                            int next, 
                            String physAddr)  throws NumberFormatException, AddressFormatException, NoSuchNodeAddress


· DynamicRouteEntry

Summary  |  Top
   public DynamicRouteEntry(DynamicRouteEntry other) 


  Methods

· getCost

Summary  |  Top
   public int getCost() 


· setCost

Summary  |  Top
   public void setCost(int cost) 


· getExpiration

Summary  |  Top
   public long getExpiration() 


· setExpiration

Summary  |  Top
   public void setExpiration(long expires) 


· changed

Summary  |  Top
   public boolean changed() 


· markChanged

Summary  |  Top
   public void markChanged() 


· clearChanged

Summary  |  Top
   public void clearChanged() 


· toString

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


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