Package jasima.shopSim.core
Enum WorkStation.WorkStationMessage
- java.lang.Object
-
- java.lang.Enum<WorkStation.WorkStationMessage>
-
- jasima.shopSim.core.WorkStation.WorkStationMessage
-
- All Implemented Interfaces:
SimComponent.SimComponentEvent,Serializable,Comparable<WorkStation.WorkStationMessage>
- Enclosing class:
- WorkStation
public static enum WorkStation.WorkStationMessage extends Enum<WorkStation.WorkStationMessage> implements SimComponent.SimComponentEvent
-
-
Enum Constant Summary
Enum Constants Enum Constant Description WS_ACTIVATEDWS_DEACTIVATEDWS_JOB_ARRIVALWS_JOB_COMPLETEDWS_JOB_SELECTED
-
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method Description static WorkStation.WorkStationMessagevalueOf(String name)Returns the enum constant of this type with the specified name.static WorkStation.WorkStationMessage[]values()Returns an array containing the constants of this enum type, in the order they are declared.
-
-
-
Enum Constant Detail
-
WS_ACTIVATED
public static final WorkStation.WorkStationMessage WS_ACTIVATED
-
WS_DEACTIVATED
public static final WorkStation.WorkStationMessage WS_DEACTIVATED
-
WS_JOB_ARRIVAL
public static final WorkStation.WorkStationMessage WS_JOB_ARRIVAL
-
WS_JOB_SELECTED
public static final WorkStation.WorkStationMessage WS_JOB_SELECTED
-
WS_JOB_COMPLETED
public static final WorkStation.WorkStationMessage WS_JOB_COMPLETED
-
-
Method Detail
-
values
public static WorkStation.WorkStationMessage[] 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 (WorkStation.WorkStationMessage c : WorkStation.WorkStationMessage.values()) System.out.println(c);
- Returns:
- an array containing the constants of this enum type, in the order they are declared
-
valueOf
public static WorkStation.WorkStationMessage 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
-
-