Enum Class ProcessConstants.TemplateBuildtimeState
java.lang.Object
java.lang.Enum<ProcessConstants.TemplateBuildtimeState>
de.aristaflow.adept2.model.globals.ProcessConstants.TemplateBuildtimeState
- All Implemented Interfaces:
Serializable,Comparable<ProcessConstants.TemplateBuildtimeState>,java.lang.constant.Constable
- Enclosing class:
- ProcessConstants
public static enum ProcessConstants.TemplateBuildtimeState
extends Enum<ProcessConstants.TemplateBuildtimeState>
The buildtime state of a template specifies the modelling phase a template
is in. Initially a new process template is in construction, while a modeler
is performing changes it is locked to prevent concurrent changes. After
modelling has finished, the template is valid. This includes the
conformance to the constraints of the ADEPT-metamodel.
For further information about valid status changes, please refer to the template state chart.
For further information about valid status changes, please refer to the template state chart.
-
Nested Class Summary
Nested classes/interfaces inherited from class java.lang.Enum
Enum.EnumDesc<E extends Enum<E>> -
Enum Constant Summary
Enum ConstantsEnum ConstantDescriptionA template is "in construction" while a modeler wants to perform further modifications but is currently not working on the template.A "released" template may be used for instantiation (unless the instantiable-state prevents this) and normal usage but it must not be changed.A template in state "valid" conforms to the ADEPT-metamodel and is currently not in modification. -
Method Summary
Modifier and TypeMethodDescriptionintgetCode()valueOf(int code) Returns the enum constant of this class with the specified name.Returns the enum constant of this class with the specified name.values()Returns an array containing the constants of this enum class, in the order they are declared.
-
Enum Constant Details
-
IN_CONSTRUCTION
A template is "in construction" while a modeler wants to perform further modifications but is currently not working on the template. While "in construction" the template may not be not be derived nor instantiated. -
VALID
A template in state "valid" conforms to the ADEPT-metamodel and is currently not in modification. This state concludes the modelling phase but allows to perform further modifications (by transitioning back to "in construction") as well as releasing the template. This state also allows to instantiate the template by the agents specified by the corresponding starter rule. This allows for testing the template. -
RELEASED
A "released" template may be used for instantiation (unless the instantiable-state prevents this) and normal usage but it must not be changed. Changing a released template has to carried out by deriving a new child template."Released" has five substates concerning the usage of a template, to be specific whether it is deprecated, child templates may be derived, instances may be created, instances of parent templates may be migrated to this template, and instances running on this template may be changed.
-
-
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
-
getCode
public int getCode() -
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:
code- 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
-