Enum ProcessConstants.TemplateBuildtimeState
- java.lang.Object
-
- java.lang.Enum<ProcessConstants.TemplateBuildtimeState>
-
- de.aristaflow.adept2.model.globals.ProcessConstants.TemplateBuildtimeState
-
- All Implemented Interfaces:
Serializable
,Comparable<ProcessConstants.TemplateBuildtimeState>
- 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.
-
-
Enum Constant Summary
Enum Constants Enum Constant Description IN_CONSTRUCTION
A template is "in construction" while a modeler wants to perform further modifications but is currently not working on 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.VALID
A template in state "valid" conforms to the ADEPT-metamodel and is currently not in modification.
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description int
getCode()
static ProcessConstants.TemplateBuildtimeState
valueOf(int code)
Returns the enum constant of this type with the specified name.static ProcessConstants.TemplateBuildtimeState
valueOf(String name)
Returns the enum constant of this type with the specified name.static ProcessConstants.TemplateBuildtimeState[]
values()
Returns an array containing the constants of this enum type, in the order they are declared.
-
-
-
Enum Constant Detail
-
IN_CONSTRUCTION
public static final ProcessConstants.TemplateBuildtimeState 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
public static final ProcessConstants.TemplateBuildtimeState 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
public static final ProcessConstants.TemplateBuildtimeState 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 Detail
-
values
public static ProcessConstants.TemplateBuildtimeState[] 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 (ProcessConstants.TemplateBuildtimeState c : ProcessConstants.TemplateBuildtimeState.values()) System.out.println(c);
- Returns:
- an array containing the constants of this enum type, in the order they are declared
-
valueOf
public static ProcessConstants.TemplateBuildtimeState 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
-
getCode
public int getCode()
-
valueOf
public static ProcessConstants.TemplateBuildtimeState valueOf(int code)
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:
code
- 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
-
-