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

## avrora
Class Main.Action

    java.lang.Object
      avrora.Main.Action

Direct Known Subclasses:
  AnalyzeStackAction, MultiSimulateAction, SimulateAction

Enclosing class:
  Main

public abstract static class Main.Action
extends java.lang.Object

The `Action` class defines a new action that the main driver is capable of executing. Each instance of `Action` is inserted into a hash map in the main class, with the key being its name. For example, the action to simulate a program is inserted into this hash map with the key "simulate", and an instance of `avrora.sim.SimulateAction`.

Constructor Summary
`Main.Action()`

Method Summary
`abstract java.lang.String` | `getHelp()`
`abstract void` | `run(java.lang.String[] args)` The `run()` method is called by the main class and is passed the remaining command line arguments after options have been stripped out.

Methods inherited from class java.lang.Object
`clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait`

Constructor Detail

### Main.Action

    public Main.Action()

Method Detail

### run

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

  The `run()` method is called by the main class and is passed the remaining command line arguments after options have been stripped out.

  Parameters:
    `args` - the command line arguments
  Throws:
    `java.lang.Exception`

### getHelp

    public abstract java.lang.String getHelp()

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