- java.lang.Object
-
- java.lang.Enum<ExecutionContext.State>
-
- org.praxislive.core.ExecutionContext.State
-
- All Implemented Interfaces:
Serializable
,Comparable<ExecutionContext.State>
- Enclosing interface:
- ExecutionContext
public static enum ExecutionContext.State extends Enum<ExecutionContext.State>
Possible states of a Root.
-
-
Enum Constant Summary
Enum Constants Enum Constant Description ACTIVE
Actively running.IDLE
Idle (optional state).NEW
Newly created.TERMINATED
Terminated.
-
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method Description static ExecutionContext.State
valueOf(String name)
Returns the enum constant of this type with the specified name.static ExecutionContext.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 ExecutionContext.State NEW
Newly created.
-
ACTIVE
public static final ExecutionContext.State ACTIVE
Actively running.
-
IDLE
public static final ExecutionContext.State IDLE
Idle (optional state). Clock listeners will not be fired when idle, and other specific root behaviour (eg. display) may be switched off.
-
TERMINATED
public static final ExecutionContext.State TERMINATED
Terminated.
-
-
Method Detail
-
values
public static ExecutionContext.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 (ExecutionContext.State c : ExecutionContext.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 ExecutionContext.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
-
-