|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectdriver.bordercast
public class bordercast
Bordercast evaluation. Derived from CBR.java
| Nested Class Summary | |
|---|---|
private static class |
bordercast.CommandLineOptions
Simulation parameters with default values. |
| Field Summary | |
|---|---|
private static java.lang.reflect.Method |
method_addNode
addNode method stub. |
private static int |
PORT
Default port number to send and receive packets. |
| Constructor Summary | |
|---|---|
bordercast()
|
|
| Method Summary | |
|---|---|
static void |
addNode(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. |
private static void |
buildField(bordercast.CommandLineOptions opts,
java.util.Vector routers,
RouteZrp.ZrpStats stats)
Constructs field and nodes with given command-line options, establishes client/server pairs and starts them. |
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. |
private static bordercast.CommandLineOptions |
parseCommandLineOptions(java.lang.String[] args)
Parses command-line arguments. |
static void |
showStats(java.util.Vector routers,
RouteZrp.ZrpStats stats)
Display statistics at end of simulation. |
private static void |
showUsage()
Prints a usage statement. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Field Detail |
|---|
private static final int PORT
private static java.lang.reflect.Method method_addNode
| Constructor Detail |
|---|
public bordercast()
| Method Detail |
|---|
private static void showUsage()
private static bordercast.CommandLineOptions parseCommandLineOptions(java.lang.String[] args)
throws jargs.gnu.CmdLineParser.OptionException
args - command-line arguments
CmdLineParser.OptionException - if the command-line arguments are not well-formed.
public static java.lang.reflect.Method findUniqueMethod(java.lang.Class c,
java.lang.String name)
throws java.lang.NoSuchMethodException
c - class to scanname - method name
java.lang.NoSuchMethodException - if method not found or not unique
public static void addNode(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)
opts - command-line optionsi - node number, which also serves as its addressrouters - list of zrp entities to be appended tostats - statistics collectorfield - simulation fieldplace - node placement modelradioInfo - shared radio informationprotMap - registered protocol mapinLoss - packet incoming loss modeloutLoss - packet outgoing loss model
private static void buildField(bordercast.CommandLineOptions opts,
java.util.Vector routers,
RouteZrp.ZrpStats stats)
opts - command-line parametersrouters - vectors to place zrp objects intostats - zrp statistics collection object
public static void showStats(java.util.Vector routers,
RouteZrp.ZrpStats stats)
routers - vectors to place zrp objects intostats - zrp statistics collection objectpublic static void main(java.lang.String[] args)
args - command-line arguments that may determine the parameters
of the simulation
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||