driver
Class aodvsim

java.lang.Object
  extended by driver.aodvsim

public class aodvsim
extends java.lang.Object

AODV simulation. Derived from bordercast


Constructor Summary
aodvsim()
           
 
Method Summary
static void addNode(driver.aodvsim.CommandLineOptions opts, int i, java.util.Vector routers, RouteAodv.AodvStats stats, Field field, Placement place, RadioInfo.RadioInfoShared radioInfo, Mapper protMap, PacketLoss inLoss, PacketLoss outLoss)
          Add node to the field and start it.
static void main(java.lang.String[] args)
          Main entry point.
static void showStats(java.util.Vector routers, RouteAodv.AodvStats stats, driver.aodvsim.CommandLineOptions opt, java.util.Date startTime)
          Display statistics at end of simulation.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

aodvsim

public aodvsim()
Method Detail

addNode

public static void addNode(driver.aodvsim.CommandLineOptions opts,
                           int i,
                           java.util.Vector routers,
                           RouteAodv.AodvStats stats,
                           Field field,
                           Placement place,
                           RadioInfo.RadioInfoShared radioInfo,
                           Mapper protMap,
                           PacketLoss inLoss,
                           PacketLoss outLoss)
Add node to the field and start it.

Parameters:
opts - command-line options
i - node number, which also serves as its address
routers - list of zrp entities to be appended to
stats - statistics collector
field - simulation field
place - node placement model
radioInfo - shared radio information
protMap - registered protocol map
inLoss - packet incoming loss model
outLoss - packet outgoing loss model

showStats

public static void showStats(java.util.Vector routers,
                             RouteAodv.AodvStats stats,
                             driver.aodvsim.CommandLineOptions opt,
                             java.util.Date startTime)
Display statistics at end of simulation.

Parameters:
routers - vectors to place zrp objects into
stats - zrp statistics collection object

main

public static void main(java.lang.String[] args)
Main entry point.

Parameters:
args - command-line arguments