|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectsimnet.RIPEntry
An object used to store a single entry for RIP Routing.
| Field Summary | |
(package private) int |
destination
|
(package private) int |
distance
|
static int |
EXPIRY
Time that must elapse (in ms) before a route is considered expired. |
(package private) int |
fixed_bits
|
static int |
GARBAGE
Time that must elapse (in ms) before an expired route forgotten. |
(package private) int |
nextHop
|
(package private) long |
time_stamp
|
| Constructor Summary | |
RIPEntry(int dest,
int nh,
int dist,
int fb)
Create a new RIP entry with the specified values. |
|
| Method Summary | |
void |
expire()
Exipire this route. |
long |
getAge()
Returns how long it has been (in ms) since this route was confirmed. |
boolean |
isExpired()
Returns if this route has expired. |
boolean |
isStale()
Returns if this route has expired and should be garbage collected. |
void |
resetTimeStamp()
Called when this route is reconfirmed (updates the time stamp to now). |
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Field Detail |
public static final int EXPIRY
public static final int GARBAGE
int destination
int nextHop
int distance
int fixed_bits
long time_stamp
| Constructor Detail |
public RIPEntry(int dest,
int nh,
int dist,
int fb)
| Method Detail |
public long getAge()
public void resetTimeStamp()
public void expire()
public boolean isExpired()
public boolean isStale()
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||