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


Variable Index

 o DELETEINTERVAL
 o GCINTERVAL
 o INFINITY
 o LOGGING
 o MAXROUTESPERUPDATE
 o node
 o TRIGGERINTERVAL
 o TRIGGERSPREAD
 o UPDATEINTERVAL
 o UPDATESPREAD

Constructor Index

 o RouteTable(int)
 o RouteTable(Node)

Method Index

 o clearChangeFlags()
 o clearDeleteTimer(RouteEntry)
 o clearGCTimer(RouteEntry)
 o clearTimer(RouteEvent)
 o deleteEntries(RouteEvent)
 o findFirstTimer()
 o findTimer(long)
 o gcEntries(RouteEvent)
 o get(int)
 o getEvents()
 o getGCPool()
 o getGWs()
 o getTrigger()
 o getUpdates()
 o main(String[])
 o put(int, RouteEntry)
 o read(String)
 o remove(int)
 o run()
 o sendRouteMessages(int)
 o sendRouteWorker(RouteEntry, ChannelAddress, int)
 o sendUpdate(RouteEntry, ChannelAddress, Vector)
 o setDeleteTimer(RouteEntry, long)
 o setGCTimer(RouteEntry, long)
 o setPeriodicTimer(long)
 o setTimer(long, int)
 o setTriggerTimer(long)
 o setUpdates(boolean)
 o start()
 o updateEntry(int, int, int, String, long)

Variables

 o DELETEINTERVAL
 public static final int DELETEINTERVAL
 o GCINTERVAL
 public static final int GCINTERVAL
 o UPDATEINTERVAL
 public static final int UPDATEINTERVAL
 o UPDATESPREAD
 public static final int UPDATESPREAD
 o TRIGGERINTERVAL
 public static final int TRIGGERINTERVAL
 o TRIGGERSPREAD
 public static final int TRIGGERSPREAD
 o MAXROUTESPERUPDATE
 public static final int MAXROUTESPERUPDATE
 o INFINITY
 public static final int INFINITY
 o LOGGING
 public static final boolean LOGGING
 o node
 public int node

Constructors

 o RouteTable
 public RouteTable(int n)
 o RouteTable
 public RouteTable(Node n)

Methods

 o setUpdates
 public void setUpdates(boolean dynamic)
 o getUpdates
 public boolean getUpdates()
 o getEvents
 public Vector getEvents()
 o getTrigger
 public boolean getTrigger()
 o getGCPool
 public Hashtable getGCPool()
 o getGWs
 public Hashtable getGWs()
 o put
 public RouteEntry put(int key,
                       RouteEntry element)
 o get
 public RouteEntry get(int key)
 o remove
 public RouteEntry remove(int key)
 o read
 public void read(String file) throws Exception
 o sendUpdate
 public void sendUpdate(RouteEntry g,
                        ChannelAddress addr,
                        Vector r)
 o findTimer
 public RouteEvent findTimer(long when)
 o findFirstTimer
 public RouteEvent findFirstTimer()
 o setTimer
 public RouteEvent setTimer(long when,
                            int type)
 o clearTimer
 public void clearTimer(RouteEvent r)
 o setDeleteTimer
 public void setDeleteTimer(RouteEntry r,
                            long now)
 o clearDeleteTimer
 public void clearDeleteTimer(RouteEntry r)
 o setGCTimer
 public void setGCTimer(RouteEntry r,
                        long now)
 o clearGCTimer
 public void clearGCTimer(RouteEntry r)
 o setPeriodicTimer
 public void setPeriodicTimer(long now)
 o setTriggerTimer
 public void setTriggerTimer(long now)
 o updateEntry
 public boolean updateEntry(int dest,
                            int dist,
                            int gw,
                            String link,
                            long now)
 o deleteEntries
 public void deleteEntries(RouteEvent e)
 o gcEntries
 public void gcEntries(RouteEvent e)
 o clearChangeFlags
 public void clearChangeFlags()
 o sendRouteWorker
 public void sendRouteWorker(RouteEntry r,
                             ChannelAddress addr,
                             int cause)
 o sendRouteMessages
 public void sendRouteMessages(int cause)
 o run
 public void run()
 o start
 public void start() throws Exception
 o main
 public static void main(String args[]) throws Exception

All Packages  Class Hierarchy  This Package  Previous  Next  Index