de.cau.cs.kieler.sim.kiem.automated.data
Enum ResultStatus

java.lang.Object
  extended by java.lang.Enum<ResultStatus>
      extended by de.cau.cs.kieler.sim.kiem.automated.data.ResultStatus
All Implemented Interfaces:
Comparable<ResultStatus>

public enum ResultStatus
extends Enum<ResultStatus>

This enumeration contains the different states that an execution can be in from the point of view of the iteration result.

Rating proposed yellow
(2010-01-29)

Enum Constant Summary
ABORTED
          The execution was canceled by the user.
CREATED
          The execution was just created.
DONE
          The execution is finished.
ERROR
          The execution was aborted due to an error.
RUNNING
          The execution is running.
 
Method Summary
static String labelOf(ResultStatus status)
          Get a readable String for the given status.
static ResultStatus valueOf(String name)
          Returns the enum constant of this type with the specified name.
static ResultStatus[] 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

CREATED

public static final ResultStatus CREATED
The execution was just created.


RUNNING

public static final ResultStatus RUNNING
The execution is running.


DONE

public static final ResultStatus DONE
The execution is finished.


ERROR

public static final ResultStatus ERROR
The execution was aborted due to an error.


ABORTED

public static final ResultStatus ABORTED
The execution was canceled by the user.

Method Detail

values

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

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

valueOf

public static ResultStatus 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

labelOf

public static String labelOf(ResultStatus status)
Get a readable String for the given status.

Parameters:
status - the status
Returns:
the name