Package mars.simulator
Enum Class SimulatorPauseEvent.Reason
- All Implemented Interfaces:
Serializable
,Comparable<SimulatorPauseEvent.Reason>
,Constable
- Enclosing class:
- SimulatorPauseEvent
Enumeration of reasons for why the simulator might pause.
-
Nested Class Summary
Nested classes/interfaces inherited from class java.lang.Enum
Enum.EnumDesc<E extends Enum<E>>
-
Enum Constant Summary
Enum ConstantsEnum ConstantDescriptionA breakpoint was reached, causing execution to pause.Execution was paused by something outside of the simulator.The requested number of steps have completed successfully, causing execution to pause. -
Method Summary
Modifier and TypeMethodDescriptionstatic SimulatorPauseEvent.Reason
Returns the enum constant of this class with the specified name.static SimulatorPauseEvent.Reason[]
values()
Returns an array containing the constants of this enum class, in the order they are declared.
-
Enum Constant Details
-
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
A breakpoint was reached, causing execution to pause. -
EXTERNAL
Execution was paused by something outside of the simulator. This is usually caused by the Pause action.
-
-
Method Details
-
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
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 nameNullPointerException
- if the argument is null
-