driver
Class bordercast

java.lang.Object
  extended by driver.bordercast

public class bordercast
extends java.lang.Object

Bordercast evaluation. Derived from CBR.java


Constructor Summary
bordercast()
           
 
Method Summary
static void addNode(driver.bordercast.CommandLineOptions opts, int i, java.util.Vector routers, RouteZrp.ZrpStats stats, Field field, Placement place, RadioInfo.RadioInfoShared radioInfo, Mapper protMap, PacketLoss inLoss, PacketLoss outLoss)
          Add node to the field and start it.
static java.lang.reflect.Method findUniqueMethod(java.lang.Class c, java.lang.String name)
          Lookup method in a class by name.
static void main(java.lang.String[] args)
          Starts the bordercast simulation.
static void showStats(java.util.Vector routers, RouteZrp.ZrpStats stats)
          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

bordercast

public bordercast()
Method Detail

findUniqueMethod

public static java.lang.reflect.Method findUniqueMethod(java.lang.Class c,
                                                        java.lang.String name)
                                                 throws java.lang.NoSuchMethodException
Lookup method in a class by name.

Parameters:
c - class to scan
name - method name
Returns:
method, if found and unique
Throws:
java.lang.NoSuchMethodException - if method not found or not unique

addNode

public static void addNode(driver.bordercast.CommandLineOptions opts,
                           int i,
                           java.util.Vector routers,
                           RouteZrp.ZrpStats 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,
                             RouteZrp.ZrpStats stats)
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)
Starts the bordercast simulation.

Parameters:
args - command-line arguments that may determine the parameters of the simulation