Package mars.venus

Class RunSpeedPanel

All Implemented Interfaces:
ImageObserver, MenuContainer, Serializable, Accessible

public class RunSpeedPanel extends JPanel
Class for the Run speed slider control. One is created and can be obtained using getInstance().
Version:
August 2005
Author:
Pete Sanderson
See Also:
Serialized Form
  • Field Details

    • UNLIMITED_SPEED

      public static final double UNLIMITED_SPEED
      Constant that represents unlimited run speed. Compare with return value of getRunSpeed() to determine if set to unlimited. At the unlimited setting, the GUI will not attempt to update register and memory contents as each instruction is executed. This is the only possible value for command-line use of Mars.
      See Also:
      Constant Field Values
  • Method Details

    • getInstance

      public static RunSpeedPanel getInstance()
      Retrieve the run speed panel object
      Returns:
      the run speed panel
    • getRunSpeed

      public double getRunSpeed()
      returns current run speed setting, in instructions/second. Unlimited speed setting is equal to RunSpeedPanel.UNLIMITED_SPEED
      Returns:
      run speed setting in instructions/second.