cz.cuni.pogamut.experiments
Enum ExperimentExecutionState

java.lang.Object
  extended by java.lang.Enum<ExperimentExecutionState>
      extended by cz.cuni.pogamut.experiments.ExperimentExecutionState
All Implemented Interfaces:
java.io.Serializable, java.lang.Comparable<ExperimentExecutionState>

public enum ExperimentExecutionState
extends java.lang.Enum<ExperimentExecutionState>

Enum of all possible states of experiment.


Enum Constant Summary
FAILED
          Experiment failed due to error.
FINISHED
          Experiment was unregistered from the world.
FINISHING
          Terminating the experiment (flushing logs, disconecting bots etc.)
INIT
          Experiment was created
PAUSED
          Experiment has been paused, maybe due to perforamnce reasons.
RUNNING
          Experiment is running in the world.
 
Field Summary
protected static java.util.EnumSet<ExperimentExecutionState> runningSet
           
protected static java.util.EnumSet<ExperimentExecutionState> terminalSet
           
 
Method Summary
 boolean isEndState()
           
 boolean isRunning()
           
static ExperimentExecutionState valueOf(java.lang.String name)
          Returns the enum constant of this type with the specified name.
static ExperimentExecutionState[] 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

INIT

public static final ExperimentExecutionState INIT
Experiment was created


RUNNING

public static final ExperimentExecutionState RUNNING
Experiment is running in the world.


FINISHING

public static final ExperimentExecutionState FINISHING
Terminating the experiment (flushing logs, disconecting bots etc.)


PAUSED

public static final ExperimentExecutionState PAUSED
Experiment has been paused, maybe due to perforamnce reasons.


FINISHED

public static final ExperimentExecutionState FINISHED
Experiment was unregistered from the world. No other operation will be issued by this experiment.


FAILED

public static final ExperimentExecutionState FAILED
Experiment failed due to error.

Field Detail

terminalSet

protected static final java.util.EnumSet<ExperimentExecutionState> terminalSet

runningSet

protected static final java.util.EnumSet<ExperimentExecutionState> runningSet
Method Detail

values

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

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

valueOf

public static ExperimentExecutionState valueOf(java.lang.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:
java.lang.IllegalArgumentException - if this enum type has no constant with the specified name
java.lang.NullPointerException - if the argument is null

isEndState

public boolean isEndState()
Returns:
true if this state is final state

isRunning

public boolean isRunning()