|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object avrora.actions.Action avrora.actions.SimAction avrora.actions.BenchmarkAction
The BenchmarkAction
class implements a stub of code that loads the program, runs
it through the simulator several times to collect an average execution time, and reports the
results. This is mostly used in evaluating the performance of the simulator.
Field Summary | |
static java.lang.String |
HELP
|
Option.Long |
REPEAT
|
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 | |
BenchmarkAction()
The default constructor of the BenchmarkAction class simply creates an empty instance with
the appropriate name and help string. |
Method Summary | |
void |
run(java.lang.String[] args)
The run() method is called by the main class. |
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 |
public static final java.lang.String HELP
public final Option.Long REPEAT
Constructor Detail |
public BenchmarkAction()
BenchmarkAction
class simply creates an empty instance with
the appropriate name and help string.
Method Detail |
public void run(java.lang.String[] args) throws java.lang.Exception
run()
method is called by the main class. It loads the program, sets up
the simulator according to the configuration, and begins running the simulator, reporting
the average execution time.
run
in class Action
args
- the command line arguments after the options have been stripped out
java.lang.Exception
- if there is a problem loading the program, or an exception occurs during
simulation
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |