|
JNodeOS v1.1.5 API | |||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object | +--edu.utah.janos.route.RouteEntry
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.
RouteTable
Constructor Summary | |
RouteEntry(int dst,
int nxt,
Address addr)
Create a new RouteEntry for the given destination whose next hop is the given nxt/addr. |
|
RouteEntry(int dst,
int nxt,
java.lang.String a)
Create a new RouteEntry for the given destination whose next hop is the given next/addr. |
|
RouteEntry(RouteEntry other)
Create a new RouteEntry which is a copy of the given RouteEntry. |
Method Summary | |
java.lang.Object |
clone()
|
boolean |
equals(java.lang.Object obj)
|
int |
getLogicalDest()
|
int |
getLogicalNext()
|
Address |
getPhysicalNext()
|
int |
hashCode()
|
java.lang.String |
toString()
|
Methods inherited from class java.lang.Object |
getClass,
notify,
notifyAll,
wait,
wait,
wait |
Constructor Detail |
public RouteEntry(RouteEntry other)
public RouteEntry(int dst, int nxt, Address addr)
XXX 'nxt' is redundant with the addr.getANAddress().
dst
- the destination for the route, as an active addressnxt
- the next hop for the route, as an active addressaddr
- the next hop for the route, as a physical addresspublic RouteEntry(int dst, int nxt, java.lang.String a) throws java.lang.NumberFormatException, AddressFormatException, NoSuchNodeAddress
XXX port default to 4242 if not provided?
XXX transport defaults to 'udp' if not provided. 'if/ipv4/' is prefixed on transport, regardless. Which is bogus.
XXX why is there string address parsing code here? Why not use the code in Address??
d
- destinMethod Detail |
public final int getLogicalDest()
public final int getLogicalNext()
public final Address getPhysicalNext()
public java.lang.Object clone()
public int hashCode()
public boolean equals(java.lang.Object obj)
public java.lang.String toString()
|
JNodeOS v1.1.5 API | |||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |