All Packages This Package Class Hierarchy Class Search Index
Class edu.utah.janos.route.RouteEntry
java.lang.Object
|
+----edu.utah.janos.route.RouteEntry
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
- Extended By:
- DynamicRouteEntry
- Returned By:
- RouteTable.getRoute(), DynamicRouteTable.getRoute(), DynamicRouteTable.getRoute(), RouteTable.castToRouteEntry(), RouteTable.getRoute(), RouteTable.getRoute(), WriteableRouteTable.getRoute(), WriteableRouteTable.getRoute()
private final int dst
private final int nxt
private Address addr
Physical address of next hop.
public RouteEntry(RouteEntry other)
public RouteEntry(int d,
int n,
String a) throws NumberFormatException, AddressFormatException, NoSuchNodeAddress
public final int getLogicalDest()
public final int getLogicalNext()
public final Address getPhysicalNext()
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