- java.lang.Object
-
- java.lang.Enum<AbstractRoot.State>
-
- org.praxislive.base.AbstractRoot.State
-
- All Implemented Interfaces:
Serializable
,Comparable<AbstractRoot.State>
- Enclosing class:
- AbstractRoot
protected static enum AbstractRoot.State extends Enum<AbstractRoot.State>
The possible states this implementation may transition through. All transitions occur in order, except that an implementation may transition back and forth betweenACTIVE_IDLE
andACTIVE_RUNNING
- seeAbstractRoot.setRunning()
andAbstractRoot.setIdle()
The default activation state is ACTIVE_IDLE. Use
AbstractRoot.setRunning()
insideAbstractRoot.activating()
if required.
-
-
Enum Constant Summary
Enum Constants Enum Constant Description ACTIVE_IDLE
ACTIVE_RUNNING
INITIALIZED
INITIALIZING
NEW
TERMINATED
TERMINATING
-
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method Description static AbstractRoot.State
valueOf(String name)
Returns the enum constant of this type with the specified name.static AbstractRoot.State[]
values()
Returns an array containing the constants of this enum type, in the order they are declared.
-
-
-
Enum Constant Detail
-
NEW
public static final AbstractRoot.State NEW
-
INITIALIZING
public static final AbstractRoot.State INITIALIZING
-
INITIALIZED
public static final AbstractRoot.State INITIALIZED
-
ACTIVE_IDLE
public static final AbstractRoot.State ACTIVE_IDLE
-
ACTIVE_RUNNING
public static final AbstractRoot.State ACTIVE_RUNNING
-
TERMINATING
public static final AbstractRoot.State TERMINATING
-
TERMINATED
public static final AbstractRoot.State TERMINATED
-
-
Method Detail
-
values
public static AbstractRoot.State[] values()
Returns an array containing the constants of this enum type, in the order they are declared. This method may be used to iterate over the constants as follows:for (AbstractRoot.State c : AbstractRoot.State.values()) System.out.println(c);
- Returns:
- an array containing the constants of this enum type, in the order they are declared
-
valueOf
public static AbstractRoot.State 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 nameNullPointerException
- if the argument is null
-
-