|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | ENUM CONSTANTS | FIELD | METHOD | DETAIL: ENUM CONSTANTS | FIELD | METHOD | |||||||||
java.lang.Objectjava.lang.Enum<TaskState>
com.kuka.task.TaskState
public enum TaskState
Represents the state of a task instance.
| Enum Constant Summary | |
|---|---|
CREATING
Task instance is being created (constructor of the main class implementing IRoboticsAPITask is called). |
|
DISPOSING
Task is being disposed. |
|
ERROR
Task has stopped with an error. |
|
INITIAL
Task is ready to be created. |
|
INITIALIZING
Task is initializing. |
|
RUNNING
Task is running. |
|
STOPPED
Task has stopped without any error. |
|
STOPPING
Task is stopping. |
|
| Method Summary | |
|---|---|
boolean |
isActive()
Indicates whether the task state is an active state. |
boolean |
isFinished()
Indicates whether the task state is a finished state ( STOPPED or ERROR). |
boolean |
isStartable()
Indicates whether a task instance is startable in this state. |
boolean |
isStopping()
Indicates whether the task state is a stopping state. |
static TaskState |
valueOf(String name)
Returns the enum constant of this type with the specified name. |
static TaskState[] |
values()
Returns an array containing the constants of this enum type, in the order they are declared. |
| Methods inherited from class java.lang.Enum |
|---|
clone, compareTo, equals, finalize, getDeclaringClass, hashCode, name, ordinal, toString, valueOf |
| Methods inherited from class java.lang.Object |
|---|
getClass, notify, notifyAll, wait, wait, wait |
| Enum Constant Detail |
|---|
public static final TaskState INITIAL
public static final TaskState CREATING
IRoboticsAPITask is called).
public static final TaskState INITIALIZING
IRoboticsAPITask.initialize() is called).
public static final TaskState RUNNING
IRoboticsAPITask.run() is called).
public static final TaskState DISPOSING
IRoboticsAPITask.dispose() is called).
public static final TaskState STOPPING
public static final TaskState STOPPED
public static final TaskState ERROR
| Method Detail |
|---|
public static TaskState[] values()
for (TaskState c : TaskState.values()) System.out.println(c);
public static TaskState valueOf(String name)
name - the name of the enum constant to be returned.
IllegalArgumentException - if this enum type has no constant
with the specified name
NullPointerException - if the argument is nullpublic boolean isActive()
true if the task state is active; otherwise false.public boolean isStartable()
true if this is a startable state; otherwise false.public boolean isFinished()
STOPPED or ERROR).
true if this is a finished state; otherwise false.public boolean isStopping()
A task is considered to be in a stopping state while in DISPOSING or STOPPING.
true if this is a stopping state; otherwise false.
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | ENUM CONSTANTS | FIELD | METHOD | DETAIL: ENUM CONSTANTS | FIELD | METHOD | |||||||||