Package org.scictrl.mp.orbitcorrect.mvc
Enum Class ApplicationEngine.State
- All Implemented Interfaces:
Serializable,Comparable<ApplicationEngine.State>,Constable
- Enclosing class:
ApplicationEngine
Engine state.
-
Nested Class Summary
Nested classes/interfaces inherited from class java.lang.Enum
Enum.EnumDesc<E extends Enum<E>> -
Enum Constant Summary
Enum ConstantsEnum ConstantDescriptionOperation is active.Engine closed.Last operation failed.Initial state.Initialized. -
Method Summary
Modifier and TypeMethodDescriptionbooleanisActive()State is active.booleanisClosed()State is closedbooleanisFailed()State is failed.booleanState is initial.booleanState is initialized.static ApplicationEngine.StateReturns the enum constant of this class with the specified name.static ApplicationEngine.State[]values()Returns an array containing the constants of this enum class, in the order they are declared.
-
Enum Constant Details
-
INITIAL
Initial state. -
FAILED
Last operation failed. -
INITIALIZED
Initialized. -
ACTIVE
Operation is active. -
CLOSED
Engine closed.
-
-
Method Details
-
values
Returns an array containing the constants of this enum class, in the order they are declared.- Returns:
- an array containing the constants of this enum class, in the order they are declared
-
valueOf
Returns the enum constant of this class with the specified name. The string must match exactly an identifier used to declare an enum constant in this class. (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 class has no constant with the specified nameNullPointerException- if the argument is null
-
isInitial
public boolean isInitial()State is initial.- Returns:
trueif initial
-
isFailed
public boolean isFailed()State is failed.- Returns:
trueif state failed
-
isInitialized
public boolean isInitialized()State is initialized.- Returns:
trueif state initial
-
isActive
public boolean isActive()State is active.- Returns:
trueif state active
-
isClosed
public boolean isClosed()State is closed- Returns:
trueif state closed
-