Enum Class ActivityState.State
java.lang.Object
java.lang.Enum<ActivityState.State>
de.aristaflow.adept2.model.runtimeenvironment.ActivityState.State
- All Implemented Interfaces:
Serializable,Comparable<ActivityState.State>,java.lang.constant.Constable
- Enclosing class:
- ActivityState
An enumeration for the state of the component of an activity. This is just
a simple enumeration, in state
RUNNING there may also be a
signal which can be obtained from an ActivityState.- Author:
- Ulrich Kreher
-
Nested Class Summary
Nested classes/interfaces inherited from class java.lang.Enum
Enum.EnumDesc<E extends Enum<E>> -
Enum Constant Summary
Enum ConstantsEnum ConstantDescriptionThe component for the activity is currently initialising.The activity is registered for execution but the corresponding component is not initialised yet.The component for the activity is currently executing.The component for the activity has finished executing and has terminated.The component for the activity has finished executing and has terminated but activity termination could not be signalled to the execution manager.The component for the activity has finished executing and is currently terminating. -
Method Summary
Modifier and TypeMethodDescriptionstatic ActivityState.StateReturns the enum constant of this class with the specified name.static ActivityState.State[]values()Returns an array containing the constants of this enum class, in the order they are declared.
-
Enum Constant Details
-
REGISTERED
The activity is registered for execution but the corresponding component is not initialised yet. -
INITIALISING
The component for the activity is currently initialising. -
RUNNING
The component for the activity is currently executing. -
TERMINATING
The component for the activity has finished executing and is currently terminating. -
TERMINATED
The component for the activity has finished executing and has terminated. This is only relevant in case the component has just terminated or some information need to be kept in the runtime manager, for instance a URL for notifying the resume of the activity. -
TERMINATED_PENDING
The component for the activity has finished executing and has terminated but activity termination could not be signalled to the execution manager. The termination signal is pending. This is only relevant in case of a persisting activity termination.
-
-
Method Details
-
values
Returns an array containing the constants of this enum class, in the order they are declared.- Returns:
- an array containing the constants of this enum class, in the order they are declared
-
valueOf
Returns the enum constant of this class with the specified name. The string must match exactly an identifier used to declare an enum constant in this class. (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 class has no constant with the specified nameNullPointerException- if the argument is null
-