avrora.actions
Class MultiSimulateAction

java.lang.Object
  extended byavrora.actions.Action
      extended byavrora.actions.SimAction
          extended byavrora.actions.MultiSimulateAction

public class MultiSimulateAction
extends SimAction

The MultiSimulateAction class represents an action available to the simulator where multiple nodes are run in simulation.


Field Summary
 Option.Bool CHANNEL_UTIL
           
static java.lang.String HELP
           
 Option.List NODECOUNT
           
 Option.Interval RANDOM_START
           
 Option.Long RANDOMSEED
           
 Option.Long STAGGER_START
           
 Option.Str TOPOLOGY
           
 
Fields inherited from class avrora.actions.SimAction
CHIP, ICOUNT, monitorFactoryList, monitorListMap, monitorMap, MONITORS, PLATFORM, REPORT_SECONDS, SECONDS, SECONDS_PRECISION, TIMEOUT, VISUAL
 
Fields inherited from class avrora.actions.Action
help, options, shortName
 
Constructor Summary
MultiSimulateAction()
           
 
Method Summary
 void run(java.lang.String[] args)
          The run() method starts the multiple node simulation.
 
Methods inherited from class avrora.actions.SimAction
getLocationList, getMicrocontroller, getPlatform, hasMonitors, initializeSimulatorStatics, newSimulator, newSimulator, printSeparator, printSimHeader, processMonitorList, processTimeout, reportMonitors, reportQuantity, reportQuantity, reportQuantity
 
Methods inherited from class avrora.actions.Action
getHelp, getShortName, newOption, newOption, newOption, newOption, newOption, newOptionList
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

HELP

public static final java.lang.String HELP
See Also:
Constant Field Values

NODECOUNT

public final Option.List NODECOUNT

RANDOMSEED

public final Option.Long RANDOMSEED

TOPOLOGY

public final Option.Str TOPOLOGY

RANDOM_START

public final Option.Interval RANDOM_START

STAGGER_START

public final Option.Long STAGGER_START

CHANNEL_UTIL

public final Option.Bool CHANNEL_UTIL
Constructor Detail

MultiSimulateAction

public MultiSimulateAction()
Method Detail

run

public void run(java.lang.String[] args)
         throws java.lang.Exception
The run() method starts the multiple node simulation. It accepts command line arguments that are a list of programs. The programs are instantiating on nodes according to the -nodecount option, which specifies a list of the number of nodes to instantiate with each program. Optionally, a topology file can be specified.

Specified by:
run in class Action
Parameters:
args - the arguments to the action, including a list of programs
Throws:
java.lang.Exception