jist.swans.route
Class RouteAodv.PrecursorInfo

java.lang.Object
  extended by jist.swans.route.RouteAodv.PrecursorInfo
Enclosing class:
RouteAodv

private static class RouteAodv.PrecursorInfo
extends java.lang.Object

Information stored for each precursor node.


Field Summary
private  long lastMsgTime
          time of last message sent to precursor.
 
Constructor Summary
RouteAodv.PrecursorInfo()
          Constructs a new precursor entry.
 
Method Summary
 long getLastMsgTime()
          Returns the time that the last message was sent to this precursor.
 void renew()
          Updates the precursor entry with the current time, indicating the most recent time that a message was sent to the precursor.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

lastMsgTime

private long lastMsgTime
time of last message sent to precursor.

Constructor Detail

RouteAodv.PrecursorInfo

public RouteAodv.PrecursorInfo()
Constructs a new precursor entry.

Method Detail

getLastMsgTime

public long getLastMsgTime()
Returns the time that the last message was sent to this precursor.

Returns:
time that last message was sent to precursor

renew

public void renew()
Updates the precursor entry with the current time, indicating the most recent time that a message was sent to the precursor. This should be called whenever any message is sent to the precursor.