Overview | Package | Class | Tree | Deprecated | Index | Help
PREV CLASS NEXT CLASS | FRAMES NO FRAMES
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD

## avrora.actions
Class SimulateAction

    java.lang.Object
      avrora.util.help.HelpCategory
          avrora.actions.Action
              avrora.actions.SimAction
                  avrora.actions.SimulateAction

All Implemented Interfaces:
  HelpItem

public class SimulateAction
extends SimAction

The `SimulateAction` implements the bridge between the functionality in the `avrora.sim` package and the entrypoint to Avrora in `avrora.Main`. This class has a `run()` method that is called by the main class after the options have been processed. The `run()` reads in the program, processes breakpoints, profiling counters, and other options, and begins the simulation.

Nested Class Summary

Nested classes inherited from class avrora.actions.SimAction
`SimAction.BreakPointException, SimAction.TimeoutException`

Field Summary
`static java.lang.String` | `HELP`

Fields inherited from class avrora.actions.SimAction
`monitorListMap, REPORT_SECONDS, SECONDS_PRECISION, SIMULATION`

Fields inherited from class avrora.actions.Action
`options`

Fields inherited from class avrora.util.help.HelpCategory
`COMPARATOR, help, name`

Constructor Summary
`SimulateAction()`

Method Summary
`protected void` | `reportMonitors(Simulation sim)`
`protected void` | `reportTime(Simulation sim, long diff)`
`void` | `run(java.lang.String[] args)` The `run()` method is called by the main class.

Methods inherited from class avrora.actions.SimAction
`getLocationList, printSimHeader`

Methods inherited from class avrora.actions.Action
`newOption, newOption, newOption, newOption, newOption, newOptionList`

Methods inherited from class avrora.util.help.HelpCategory
`addCommandExample, addListSection, addOptionSection, addSection, addSubcategorySection, getHelp, getName, printHelp, setName`

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

Constructor Detail

### SimulateAction

    public SimulateAction()

Method Detail

### run

    public void run(java.lang.String[] args)
             throws java.lang.Exception

  The `run()` method is called by the main class.

  Specified by:
    `run` in class `Action`
  Parameters:
    `args` - the command line arguments after the options have been stripped out
  Throws:
    `java.lang.Exception` - if there is a problem loading the program, or an exception occurs during simulation

### reportMonitors

    protected void reportMonitors(Simulation sim)

### reportTime

    protected void reportTime(Simulation sim,
                              long diff)

Overview | Package | Class | Tree | Deprecated | Index | Help
PREV CLASS NEXT CLASS | FRAMES NO FRAMES
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD