edu.rice.cs.plt.concurrent
Enum TaskController.Status

java.lang.Object
  extended by java.lang.Enum<TaskController.Status>
      extended by edu.rice.cs.plt.concurrent.TaskController.Status
All Implemented Interfaces:
Serializable, Comparable<TaskController.Status>
Enclosing class:
TaskController<R>

public static enum TaskController.Status
extends Enum<TaskController.Status>


Enum Constant Summary
CANCELED
          The task has been stopped and cannot be restarted.
FINISHED
          The task has completed, and the result is available.
PAUSED
          The task is not currently running, but can be started.
RUNNING
          The task is currently executing.
 
Method Summary
static TaskController.Status valueOf(String name)
          Returns the enum constant of this type with the specified name.
static TaskController.Status[] 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

PAUSED

public static final TaskController.Status PAUSED
The task is not currently running, but can be started.


RUNNING

public static final TaskController.Status RUNNING
The task is currently executing.


FINISHED

public static final TaskController.Status FINISHED
The task has completed, and the result is available.


CANCELED

public static final TaskController.Status CANCELED
The task has been stopped and cannot be restarted. No result is available.

Method Detail

values

public static TaskController.Status[] 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 (TaskController.Status c : TaskController.Status.values())
    System.out.println(c);

Returns:
an array containing the constants of this enum type, in the order they are declared

valueOf

public static TaskController.Status 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 name
NullPointerException - if the argument is null