Enum Class 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>, java.lang.constant.Constable
Enclosing class:
NodeRelations

public static enum NodeRelations.NodeRelation extends Enum<NodeRelations.NodeRelation>
This represents the relation between two nodes.
  • Enum Constant Details

    • 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 Details

    • values

      public static NodeRelations.NodeRelation[] 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

      public static NodeRelations.NodeRelation valueOf(String name)
      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 name
      NullPointerException - if the argument is null