Enum NodeRelations.NodeRelation
- java.lang.Object
-
- java.lang.Enum<NodeRelations.NodeRelation>
-
- de.aristaflow.adept2.model.processmodel.tools.NodeRelations.NodeRelation
-
- All Implemented Interfaces:
Serializable
,Comparable<NodeRelations.NodeRelation>
- Enclosing class:
- NodeRelations
public static enum NodeRelations.NodeRelation extends Enum<NodeRelations.NodeRelation>
This represents the relation between two nodes.
-
-
Enum Constant Summary
Enum Constants Enum Constant Description AFTER
there exists an AFTER relation, no BEFORE / parallel / exclusive relationEXCLUSIVE
the execution of the two nodes is exclusiveONE_BEFORE_TWO
If the nodes are executed, they are both executed.ONE_BEFORE_TWO_OPTIONAL
If one is executed, it is executed before two.ONE_OPTIONAL_BEFORE_TWO
If two is executed, one is optionally executed before twoONE_OPTIONAL_BEFORE_TWO_OPTIONAL
One or two might be executed, one always before two.PARALLEL
the execution of the two nodes is parallel
-
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method Description static NodeRelations.NodeRelation
valueOf(String name)
Returns the enum constant of this type with the specified name.static NodeRelations.NodeRelation[]
values()
Returns an array containing the constants of this enum type, in the order they are declared.
-
-
-
Enum Constant Detail
-
ONE_BEFORE_TWO
public static final NodeRelations.NodeRelation ONE_BEFORE_TWO
If the nodes are executed, they are both executed. And one is executed, before two is executed
-
ONE_OPTIONAL_BEFORE_TWO
public static final NodeRelations.NodeRelation ONE_OPTIONAL_BEFORE_TWO
If two is executed, one is optionally executed before two
-
ONE_BEFORE_TWO_OPTIONAL
public static final NodeRelations.NodeRelation ONE_BEFORE_TWO_OPTIONAL
If one is executed, it is executed before two. But, the execution of two is optional.
-
ONE_OPTIONAL_BEFORE_TWO_OPTIONAL
public static final NodeRelations.NodeRelation ONE_OPTIONAL_BEFORE_TWO_OPTIONAL
One or two might be executed, one always before two. If one executed, two might be executed afterwards. If two is executed, one might have been executed before.
-
EXCLUSIVE
public static final NodeRelations.NodeRelation EXCLUSIVE
the execution of the two nodes is exclusive
-
PARALLEL
public static final NodeRelations.NodeRelation PARALLEL
the execution of the two nodes is parallel
-
AFTER
public static final NodeRelations.NodeRelation AFTER
there exists an AFTER relation, no BEFORE / parallel / exclusive relation
-
-
Method Detail
-
values
public static NodeRelations.NodeRelation[] 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 (NodeRelations.NodeRelation c : NodeRelations.NodeRelation.values()) System.out.println(c);
- Returns:
- an array containing the constants of this enum type, in the order they are declared
-
valueOf
public static NodeRelations.NodeRelation 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
-
-