Package nl.tno.imb.mc

Enum ModelState

java.lang.Object
java.lang.Enum<ModelState>
nl.tno.imb.mc.ModelState
All Implemented Interfaces:
Serializable, Comparable<ModelState>, java.lang.constant.Constable

public enum ModelState
extends Enum<ModelState>
The possible states of a model.
  • Enum Constant Details

  • Field Details

  • Method Details

    • values

      public static ModelState[] 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 ModelState 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
    • getValue

      public int getValue()
      Retrieve the integer value that represents this ModelState for transmission over IMB.
      Returns:
      int; the value that represents this ModelState in transmission over IMB
    • byValue

      protected static ModelState byValue​(int value)
      Lookup the ModelState that corresponds to the value.
      Parameters:
      value - int; the value to look up
      Returns:
      ModelState; the ModelState that corresponds to the value, or null if no ModelState with the specified value is defined