public final class TaskState
extends java.lang.Object
implements java.io.Serializable
CmTask
object.
For a complete description of each state, see Task State Machine.Modifier and Type | Field and Description |
---|---|
static TaskState |
COMPLETE
Indicates that the task has been successfully completed.
|
static int |
COMPLETE_AS_INT
An
int value associated with the COMPLETE instance of this class. |
static TaskState |
FAILED
Indicates that execution of the task failed.
|
static int |
FAILED_AS_INT
An
int value associated with the FAILED instance of this class. |
static TaskState |
READY
Indicates that the task is no longer blocked either by predecessors that have not completed or by a precondition,
and, therefore, it is ready to be worked on.
|
static int |
READY_AS_INT
An
int value associated with the READY instance of this class. |
static TaskState |
WAITING_ALL
Indicates that the task is blocked by both incomplete predecessors and an unsatisfied precondition.
|
static int |
WAITING_ALL_AS_INT
An
int value associated with the WAITING_ALL instance of this class. |
static TaskState |
WAITING_PRECONDITION
Indicates that the task is yet to satisfy its precondition, but is not blocked by any incomplete predecessors.
|
static int |
WAITING_PRECONDITION_AS_INT
An
int value associated with the WAITING_PRECONDITION instance of this class. |
static TaskState |
WAITING_PREDECESSORS
Indicates that the task has satisfied its precondition but is blocked by incomplete predecessors.
|
static int |
WAITING_PREDECESSORS_AS_INT
An
int value associated with the WAITING_PREDECESSORS instance of this class. |
static TaskState |
WORKING
Indicates that the task is being actively worked on.
|
static int |
WORKING_AS_INT
An
int value associated with the WORKING instance of this class. |
Modifier and Type | Method and Description |
---|---|
static TaskState |
getInstanceFromInt(int value)
Returns an instance of this class using its associated integer value.
|
int |
getValue()
Returns the internal integer value associated with a specific instance of this class.
|
java.lang.String |
toString()
Returns a
String representation of this enumeration instance. |
public static final int WAITING_ALL_AS_INT
int
value associated with the WAITING_ALL instance of this class. Consider using the static instances of this class instead of the associated int values. The int values risk binary incompatibility (but not source incompatibility) from release to release.public static final TaskState WAITING_ALL
public static final int WAITING_PREDECESSORS_AS_INT
int
value associated with the WAITING_PREDECESSORS instance of this class. Consider using the static instances of this class instead of the associated int values. The int values risk binary incompatibility (but not source incompatibility) from release to release.public static final TaskState WAITING_PREDECESSORS
public static final int COMPLETE_AS_INT
int
value associated with the COMPLETE instance of this class. Consider using the static instances of this class instead of the associated int values. The int values risk binary incompatibility (but not source incompatibility) from release to release.public static final TaskState COMPLETE
public static final int WAITING_PRECONDITION_AS_INT
int
value associated with the WAITING_PRECONDITION instance of this class. Consider using the static instances of this class instead of the associated int values. The int values risk binary incompatibility (but not source incompatibility) from release to release.public static final TaskState WAITING_PRECONDITION
CmTask
instances.public static final int FAILED_AS_INT
int
value associated with the FAILED instance of this class. Consider using the static instances of this class instead of the associated int values. The int values risk binary incompatibility (but not source incompatibility) from release to release.public static final TaskState FAILED
public static final int WORKING_AS_INT
int
value associated with the WORKING instance of this class. Consider using the static instances of this class instead of the associated int values. The int values risk binary incompatibility (but not source incompatibility) from release to release.public static final TaskState WORKING
public static final int READY_AS_INT
int
value associated with the READY instance of this class. Consider using the static instances of this class instead of the associated int values. The int values risk binary incompatibility (but not source incompatibility) from release to release.public static final TaskState READY
public int getValue()
getInstanceFromInt(int)
public java.lang.String toString()
String
representation of this enumeration instance.toString
in class java.lang.Object
public static TaskState getInstanceFromInt(int value)
value
- The integer value. (See the *_AS_INT fields.)EngineRuntimeException
- If an enumeration instance with the given
ordinal value does not exist.getValue()
© Copyright IBM Corporation 2006, 2015. All rights reserved.