Package mars.venus

Class RunGoAction

All Implemented Interfaces:
ActionListener, Serializable, Cloneable, EventListener, Action

public class RunGoAction extends GuiAction
Action class for the Run -> Go menu item (and toolbar icon)
See Also:
Serialized Form
  • Field Details

    • defaultMaxSteps

      public static int defaultMaxSteps
    • maxSteps

      public static int maxSteps
  • Constructor Details

  • Method Details

    • actionPerformed

      public void actionPerformed(ActionEvent e)
      Action to take when GO is selected -- run the MIPS program!
      Specified by:
      actionPerformed in interface ActionListener
      Overrides:
      actionPerformed in class GuiAction
    • paused

      public void paused(boolean done, int pauseReason, ProcessingException pe)
      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

      public void stopped(ProcessingException pe, int reason)
      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.