Package jasima.shopSim.core
Enum Job.JobMessage
- java.lang.Object
-
- java.lang.Enum<Job.JobMessage>
-
- jasima.shopSim.core.Job.JobMessage
-
- All Implemented Interfaces:
Job.JobEvent,Serializable,Comparable<Job.JobMessage>
- Enclosing class:
- Job
public static enum Job.JobMessage extends Enum<Job.JobMessage> implements Job.JobEvent
-
-
Enum Constant Summary
Enum Constants Enum Constant Description JOB_ARRIVED_IN_QUEUEJOB_END_OPERATIONJOB_FINISHEDJOB_RELEASEDJOB_REMOVED_FROM_QUEUEJOB_START_OPERATION
-
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method Description static Job.JobMessagevalueOf(String name)Returns the enum constant of this type with the specified name.static Job.JobMessage[]values()Returns an array containing the constants of this enum type, in the order they are declared.
-
-
-
Enum Constant Detail
-
JOB_RELEASED
public static final Job.JobMessage JOB_RELEASED
-
JOB_FINISHED
public static final Job.JobMessage JOB_FINISHED
-
JOB_ARRIVED_IN_QUEUE
public static final Job.JobMessage JOB_ARRIVED_IN_QUEUE
-
JOB_REMOVED_FROM_QUEUE
public static final Job.JobMessage JOB_REMOVED_FROM_QUEUE
-
JOB_START_OPERATION
public static final Job.JobMessage JOB_START_OPERATION
-
JOB_END_OPERATION
public static final Job.JobMessage JOB_END_OPERATION
-
-
Method Detail
-
values
public static Job.JobMessage[] 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 (Job.JobMessage c : Job.JobMessage.values()) System.out.println(c);
- Returns:
- an array containing the constants of this enum type, in the order they are declared
-
valueOf
public static Job.JobMessage 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
-
-