Package mars.venus
Class RunGoAction
java.lang.Object
javax.swing.AbstractAction
mars.venus.GuiAction
mars.venus.RunGoAction
- All Implemented Interfaces:
ActionListener
,Serializable
,Cloneable
,EventListener
,Action
Action class for the Run -> Go menu item (and toolbar icon)
- See Also:
- Serialized Form
-
Field Summary
FieldsFields inherited from interface javax.swing.Action
ACCELERATOR_KEY, ACTION_COMMAND_KEY, DEFAULT, DISPLAYED_MNEMONIC_INDEX_KEY, LARGE_ICON_KEY, LONG_DESCRIPTION, MNEMONIC_KEY, NAME, SELECTED_KEY, SHORT_DESCRIPTION, SMALL_ICON
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoid
Action to take when GO is selected -- run the MIPS program!void
paused(boolean done, int pauseReason, ProcessingException pe)
Method to be called when Pause is selected through menu/toolbar/shortcut.static void
Reset max steps limit to default value at termination of a simulated execution.void
stopped(ProcessingException pe, int reason)
Method to be called when Stop is selected through menu/toolbar/shortcut.Methods inherited from class javax.swing.AbstractAction
addPropertyChangeListener, getKeys, getPropertyChangeListeners, getValue, isEnabled, putValue, removePropertyChangeListener, setEnabled
-
Field Details
-
defaultMaxSteps
public static int defaultMaxSteps -
maxSteps
public static int maxSteps
-
-
Constructor Details
-
RunGoAction
-
-
Method Details
-
actionPerformed
Action to take when GO is selected -- run the MIPS program!- Specified by:
actionPerformed
in interfaceActionListener
- Overrides:
actionPerformed
in classGuiAction
-
paused
Method to be called when Pause is selected through menu/toolbar/shortcut. This should only happen when MIPS program is running (FileStatus.RUNNING). See VenusUI.java for enabled status of menu items based on FileStatus. Set GUI as if at breakpoint or executing step by step. -
stopped
Method to be called when Stop is selected through menu/toolbar/shortcut. This should only happen when MIPS program is running (FileStatus.RUNNING). See VenusUI.java for enabled status of menu items based on FileStatus. Display finalized values as if execution terminated due to completion or exception. -
resetMaxSteps
public static void resetMaxSteps()Reset max steps limit to default value at termination of a simulated execution.
-