All Packages Class Hierarchy This Package Previous Next Index
Class ants.RouteTable
java.lang.Object
|
+----java.util.Dictionary
|
+----java.util.Hashtable
|
+----ants.RouteTable
- public class RouteTable
- extends Hashtable
- implements Runnable
routing table
-
DELETEINTERVAL
-
-
GCINTERVAL
-
-
INFINITY
-
-
LOGGING
-
-
MAXROUTESPERUPDATE
-
-
node
-
-
TRIGGERINTERVAL
-
-
TRIGGERSPREAD
-
-
UPDATEINTERVAL
-
-
UPDATESPREAD
-
-
RouteTable(int)
-
-
RouteTable(Node)
-
-
clearChangeFlags()
-
-
clearDeleteTimer(RouteEntry)
-
-
clearGCTimer(RouteEntry)
-
-
clearTimer(RouteEvent)
-
-
deleteEntries(RouteEvent)
-
-
findFirstTimer()
-
-
findTimer(long)
-
-
gcEntries(RouteEvent)
-
-
get(int)
-
-
getEvents()
-
-
getGCPool()
-
-
getGWs()
-
-
getTrigger()
-
-
getUpdates()
-
-
main(String[])
-
-
put(int, RouteEntry)
-
-
read(String)
-
-
remove(int)
-
-
run()
-
-
sendRouteMessages(int)
-
-
sendRouteWorker(RouteEntry, ChannelAddress, int)
-
-
sendUpdate(RouteEntry, ChannelAddress, Vector)
-
-
setDeleteTimer(RouteEntry, long)
-
-
setGCTimer(RouteEntry, long)
-
-
setPeriodicTimer(long)
-
-
setTimer(long, int)
-
-
setTriggerTimer(long)
-
-
setUpdates(boolean)
-
-
start()
-
-
updateEntry(int, int, int, String, long)
-
DELETEINTERVAL
public static final int DELETEINTERVAL
GCINTERVAL
public static final int GCINTERVAL
UPDATEINTERVAL
public static final int UPDATEINTERVAL
UPDATESPREAD
public static final int UPDATESPREAD
TRIGGERINTERVAL
public static final int TRIGGERINTERVAL
TRIGGERSPREAD
public static final int TRIGGERSPREAD
MAXROUTESPERUPDATE
public static final int MAXROUTESPERUPDATE
INFINITY
public static final int INFINITY
LOGGING
public static final boolean LOGGING
node
public int node
RouteTable
public RouteTable(int n)
RouteTable
public RouteTable(Node n)
setUpdates
public void setUpdates(boolean dynamic)
getUpdates
public boolean getUpdates()
getEvents
public Vector getEvents()
getTrigger
public boolean getTrigger()
getGCPool
public Hashtable getGCPool()
getGWs
public Hashtable getGWs()
put
public RouteEntry put(int key,
RouteEntry element)
get
public RouteEntry get(int key)
remove
public RouteEntry remove(int key)
read
public void read(String file) throws Exception
sendUpdate
public void sendUpdate(RouteEntry g,
ChannelAddress addr,
Vector r)
findTimer
public RouteEvent findTimer(long when)
findFirstTimer
public RouteEvent findFirstTimer()
setTimer
public RouteEvent setTimer(long when,
int type)
clearTimer
public void clearTimer(RouteEvent r)
setDeleteTimer
public void setDeleteTimer(RouteEntry r,
long now)
clearDeleteTimer
public void clearDeleteTimer(RouteEntry r)
setGCTimer
public void setGCTimer(RouteEntry r,
long now)
clearGCTimer
public void clearGCTimer(RouteEntry r)
setPeriodicTimer
public void setPeriodicTimer(long now)
setTriggerTimer
public void setTriggerTimer(long now)
updateEntry
public boolean updateEntry(int dest,
int dist,
int gw,
String link,
long now)
deleteEntries
public void deleteEntries(RouteEvent e)
gcEntries
public void gcEntries(RouteEvent e)
clearChangeFlags
public void clearChangeFlags()
sendRouteWorker
public void sendRouteWorker(RouteEntry r,
ChannelAddress addr,
int cause)
sendRouteMessages
public void sendRouteMessages(int cause)
run
public void run()
start
public void start() throws Exception
main
public static void main(String args[]) throws Exception
All Packages Class Hierarchy This Package Previous Next Index