Enum Class SimulatorPauseEvent.Reason

java.lang.Object
java.lang.Enum<SimulatorPauseEvent.Reason>
mars.simulator.SimulatorPauseEvent.Reason
All Implemented Interfaces:
Serializable, Comparable<SimulatorPauseEvent.Reason>, Constable
Enclosing class:
SimulatorPauseEvent

public static enum SimulatorPauseEvent.Reason extends Enum<SimulatorPauseEvent.Reason>
Enumeration of reasons for why the simulator might pause.
  • Enum Constant Details

    • STEP_LIMIT_REACHED

      public static final SimulatorPauseEvent.Reason STEP_LIMIT_REACHED
      The requested number of steps have completed successfully, causing execution to pause. This is also used when stepping one step at a time.
    • BREAKPOINT

      public static final SimulatorPauseEvent.Reason BREAKPOINT
      A breakpoint was reached, causing execution to pause.
    • EXTERNAL

      public static final SimulatorPauseEvent.Reason EXTERNAL
      Execution was paused by something outside of the simulator. This is usually caused by the Pause action.
  • Method Details

    • values

      public static SimulatorPauseEvent.Reason[] values()
      Returns an array containing the constants of this enum class, in the order they are declared.
      Returns:
      an array containing the constants of this enum class, in the order they are declared
    • valueOf

      public static SimulatorPauseEvent.Reason valueOf(String name)
      Returns the enum constant of this class with the specified name. The string must match exactly an identifier used to declare an enum constant in this class. (Extraneous whitespace characters are not permitted.)
      Parameters:
      name - the name of the enum constant to be returned.
      Returns:
      the enum constant with the specified name
      Throws:
      IllegalArgumentException - if this enum class has no constant with the specified name
      NullPointerException - if the argument is null