Package nl.tno.imb.mc
Enum ModelState
- All Implemented Interfaces:
Serializable,Comparable<ModelState>,java.lang.constant.Constable
public enum ModelState extends Enum<ModelState>
The possible states of a model.
-
Nested Class Summary
-
Enum Constant Summary
-
Field Summary
Fields Modifier and Type Field Description protected static Map<Integer,ModelState>commandMapMap to translate numeric value to enum. -
Method Summary
Modifier and Type Method Description protected static ModelStatebyValue(int value)Lookup the ModelState that corresponds to the value.intgetValue()Retrieve the integer value that represents this ModelState for transmission over IMB.static ModelStatevalueOf(String name)Returns the enum constant of this type with the specified name.static ModelState[]values()Returns an array containing the constants of this enum type, in the order they are declared.
-
Enum Constant Details
-
Field Details
-
commandMap
Map to translate numeric value to enum.
-
-
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
-
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
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
-