Package jasima.core.experiment
Enum ExperimentMessage
- java.lang.Object
-
- java.lang.Enum<ExperimentMessage>
-
- jasima.core.experiment.ExperimentMessage
-
- All Implemented Interfaces:
Experiment.ExperimentEvent,Serializable,Comparable<ExperimentMessage>
public enum ExperimentMessage extends Enum<ExperimentMessage> implements Experiment.ExperimentEvent
Simple base class for messages used by the notification mechanism of anExperiment.
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static classExperimentMessage.ExpPrintMessageClass to store print messages of an experiment.
-
Enum Constant Summary
-
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method Description static ExperimentMessagevalueOf(String name)Returns the enum constant of this type with the specified name.static ExperimentMessage[]values()Returns an array containing the constants of this enum type, in the order they are declared.
-
-
-
Enum Constant Detail
-
EXPERIMENT_STARTING
public static final ExperimentMessage EXPERIMENT_STARTING
-
EXPERIMENT_INITIALIZED
public static final ExperimentMessage EXPERIMENT_INITIALIZED
-
EXPERIMENT_BEFORE_RUN
public static final ExperimentMessage EXPERIMENT_BEFORE_RUN
-
EXPERIMENT_RUN_PERFORMED
public static final ExperimentMessage EXPERIMENT_RUN_PERFORMED
-
EXPERIMENT_AFTER_RUN
public static final ExperimentMessage EXPERIMENT_AFTER_RUN
-
EXPERIMENT_DONE
public static final ExperimentMessage EXPERIMENT_DONE
-
EXPERIMENT_COLLECTING_RESULTS
public static final ExperimentMessage EXPERIMENT_COLLECTING_RESULTS
-
EXPERIMENT_FINISHING
public static final ExperimentMessage EXPERIMENT_FINISHING
-
EXPERIMENT_FINISHED
public static final ExperimentMessage EXPERIMENT_FINISHED
-
EXPERIMENT_ERROR
public static final ExperimentMessage EXPERIMENT_ERROR
-
EXPERIMENT_FINALLY
public static final ExperimentMessage EXPERIMENT_FINALLY
-
-
Method Detail
-
values
public static ExperimentMessage[] 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 (ExperimentMessage c : ExperimentMessage.values()) System.out.println(c);
- Returns:
- an array containing the constants of this enum type, in the order they are declared
-
valueOf
public static ExperimentMessage 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 nameNullPointerException- if the argument is null
-
-