Package org.see.skf.util.models
Enum ModeTransitionRequest.MTRMode
- All Implemented Interfaces:
Serializable,Comparable<ModeTransitionRequest.MTRMode>
- Enclosing class:
ModeTransitionRequest
The run mode that can be requested by a federate other than the Master federate. There are only 3 valid Mode Transition Request (MTR) mode values: MTR_GOTO_RUN, MTR_GOTO_FREEZE, MTR_GOTO_SHUTDOWN.
Of these three valid mode requests, only 7 combinations of current execution mode and requested mode are valid:
- EXEC_MODE_UNINITIALIZED -> EXEC_MODE_SHUTDOWN
- EXEC_MODE_INITIALIZED -> EXEC_MODE_FREEZE
- EXEC_MODE_INITIALIZED -> EXEC_MODE_SHUTDOWN
- EXEC_MODE_RUNNING -> EXEC_MODE_FREEZE
- EXEC_MODE_RUNNING -> EXEC_MODE_SHUTDOWN
- EXEC_MODE_FREEZE -> EXEC_MODE_RUNNING
- EXEC_MODE_FREEZE -> EXEC_MODE_SHUTDOWN
- Since:
- 1.5
-
Enum Constant Summary
Enum Constants -
Method Summary
Modifier and TypeMethodDescriptionshortgetValue()query(short value) Returns the enum constant of this type with the specified name.static ModeTransitionRequest.MTRMode[]values()Returns an array containing the constants of this enum type, in the order they are declared.
-
Enum Constant Details
-
MTR_UNDESIGNATED
-
MTR_GOTO_RUN
-
MTR_GOTO_FREEZE
-
MTR_GOTO_SHUTDOWN
-
-
Method Details
-
values
Returns an array containing the constants of this enum type, in the order they are declared.- Returns:
- an array containing the constants of this enum type, in the order they are declared
-
valueOf
Returns the enum constant of this type with the specified name. The string must match exactly an identifier used to declare an enum constant in this type. (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 type has no constant with the specified nameNullPointerException- if the argument is null
-
query
-
getValue
public short getValue()
-