Enum ModeTransitionRequest.MTRMode

java.lang.Object
java.lang.Enum<ModeTransitionRequest.MTRMode>
org.see.skf.util.models.ModeTransitionRequest.MTRMode
All Implemented Interfaces:
Serializable, Comparable<ModeTransitionRequest.MTRMode>
Enclosing class:
ModeTransitionRequest

public static enum ModeTransitionRequest.MTRMode extends Enum<ModeTransitionRequest.MTRMode>
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:
  1. EXEC_MODE_UNINITIALIZED -> EXEC_MODE_SHUTDOWN
  2. EXEC_MODE_INITIALIZED -> EXEC_MODE_FREEZE
  3. EXEC_MODE_INITIALIZED -> EXEC_MODE_SHUTDOWN
  4. EXEC_MODE_RUNNING -> EXEC_MODE_FREEZE
  5. EXEC_MODE_RUNNING -> EXEC_MODE_SHUTDOWN
  6. EXEC_MODE_FREEZE -> EXEC_MODE_RUNNING
  7. EXEC_MODE_FREEZE -> EXEC_MODE_SHUTDOWN
Since:
1.5
  • Enum Constant Details

  • Method Details

    • values

      public static ModeTransitionRequest.MTRMode[] 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

      public static ModeTransitionRequest.MTRMode valueOf(String name)
      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 name
      NullPointerException - if the argument is null
    • query

      public static ModeTransitionRequest.MTRMode query(short value)
    • getValue

      public short getValue()