public enum ModelState extends Enum<ModelState>
Enum Constant and Description |
---|
BUSY
Busy.
|
CALCULATING
Calculating.
|
IDLE
Model is available for use.
|
LOCK
Claim model for use in this session.
|
READY
Ready.
|
REMOVED
Model is no longer available.
|
UNLOCK
Free model to be used in other session.
|
Modifier and Type | Field and Description |
---|---|
protected static Map<Integer,ModelState> |
commandMap
Map to translate numeric value to enum.
|
Modifier and Type | Method and Description |
---|---|
protected static ModelState |
byValue(int value)
Lookup the ModelState that corresponds to the value.
|
int |
getValue()
Retrieve the integer value that represents this ModelState for transmission over IMB.
|
static ModelState |
valueOf(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.
|
public static final ModelState READY
public static final ModelState CALCULATING
public static final ModelState BUSY
public static final ModelState IDLE
public static final ModelState LOCK
public static final ModelState UNLOCK
public static final ModelState REMOVED
protected static Map<Integer,ModelState> commandMap
public static ModelState[] values()
for (ModelState c : ModelState.values()) System.out.println(c);
public static ModelState valueOf(String name)
name
- the name of the enum constant to be returned.IllegalArgumentException
- if this enum type has no constant with the specified nameNullPointerException
- if the argument is nullpublic int getValue()
protected static ModelState byValue(int value)
value
- int; the value to look upCopyright © 2014–2016 Delft University of Technology. All rights reserved.