Enum EventSimEntity.EntityLifecyclePhase
- java.lang.Object
-
- java.lang.Enum<EventSimEntity.EntityLifecyclePhase>
-
- edu.kit.ipd.sdq.eventsim.entities.EventSimEntity.EntityLifecyclePhase
-
- All Implemented Interfaces:
Serializable
,Comparable<EventSimEntity.EntityLifecyclePhase>
- Enclosing class:
- EventSimEntity
public static enum EventSimEntity.EntityLifecyclePhase extends Enum<EventSimEntity.EntityLifecyclePhase>
The lifecycle phase of an entity. A newly created entity in the phase . Once the entity enters the simulate system, the phase changes to . Finally, after the entity has left the system, the associated phase is .
-
-
Enum Constant Summary
Enum Constants Enum Constant Description CREATED
The phase of a newly created entity.ENTERED_SYSTEM
The phase after the entity has entered the simulated system, i.e.LEFT_SYSTEM
The phase after the entity has left the simulated system, i.e.
-
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method Description static EventSimEntity.EntityLifecyclePhase
valueOf(String name)
Returns the enum constant of this type with the specified name.static EventSimEntity.EntityLifecyclePhase[]
values()
Returns an array containing the constants of this enum type, in the order they are declared.
-
-
-
Enum Constant Detail
-
CREATED
public static final EventSimEntity.EntityLifecyclePhase CREATED
The phase of a newly created entity.
-
ENTERED_SYSTEM
public static final EventSimEntity.EntityLifecyclePhase ENTERED_SYSTEM
The phase after the entity has entered the simulated system, i.e. after calling the methodEventSimEntity.notifyEnteredSystem()
.
-
LEFT_SYSTEM
public static final EventSimEntity.EntityLifecyclePhase LEFT_SYSTEM
The phase after the entity has left the simulated system, i.e. after calling the methodEventSimEntity.notifyLeftSystem()
.
-
-
Method Detail
-
values
public static EventSimEntity.EntityLifecyclePhase[] 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 (EventSimEntity.EntityLifecyclePhase c : EventSimEntity.EntityLifecyclePhase.values()) System.out.println(c);
- Returns:
- an array containing the constants of this enum type, in the order they are declared
-
valueOf
public static EventSimEntity.EntityLifecyclePhase 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
-
-