|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectdriver.aodvsim
public class aodvsim
AODV simulation. Derived from bordercast
| Nested Class Summary | |
|---|---|
private static class |
aodvsim.CommandLineOptions
Simulation parameters with default values. |
| Field Summary | |
|---|---|
private static int |
PORT
Default port number to send and receive packets. |
| Constructor Summary | |
|---|---|
aodvsim()
|
|
| Method Summary | |
|---|---|
static void |
addNode(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. |
private static void |
buildField(aodvsim.CommandLineOptions opts,
java.util.Vector routers,
RouteAodv.AodvStats stats)
Constructs field and nodes with given command-line options, establishes client/server pairs and starts them. |
static void |
main(java.lang.String[] args)
Main entry point. |
private static aodvsim.CommandLineOptions |
parseCommandLineOptions(java.lang.String[] args)
Parses command-line arguments. |
static void |
showStats(java.util.Vector routers,
RouteAodv.AodvStats stats,
aodvsim.CommandLineOptions opt,
java.util.Date startTime)
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
| Constructor Detail |
|---|
public aodvsim()
| Method Detail |
|---|
private static void showUsage()
private static aodvsim.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 void addNode(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)
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(aodvsim.CommandLineOptions opts,
java.util.Vector routers,
RouteAodv.AodvStats stats)
opts - command-line parametersrouters - vectors to place zrp objects intostats - zrp statistics collection object
public static void showStats(java.util.Vector routers,
RouteAodv.AodvStats stats,
aodvsim.CommandLineOptions opt,
java.util.Date startTime)
routers - vectors to place zrp objects intostats - zrp statistics collection objectpublic static void main(java.lang.String[] args)
args - command-line arguments
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||