java.lang.Object
java.lang.Enum<GraphStructure>
ai.timefold.solver.core.impl.domain.variable.declarative.GraphStructure
All Implemented Interfaces:
Serializable, Comparable<GraphStructure>, Constable

@NullMarked public enum GraphStructure extends Enum<GraphStructure>
  • Enum Constant Details

    • EMPTY

      public static final GraphStructure EMPTY
      A graph structure that only accepts the empty graph.
    • NO_DYNAMIC_EDGES

      public static final GraphStructure NO_DYNAMIC_EDGES
      A graph structure without dynamic edges. The topological order of such a graph is fixed, since edges are neither added nor removed.
    • SINGLE_DIRECTIONAL_PARENT

      public static final GraphStructure SINGLE_DIRECTIONAL_PARENT
      A graph structure where there is at most one directional parent for each graph node, and no indirect parents. For example, when the only input variable from a different entity is previous. This allows us to use a successor function to find affected entities. Since there is at most a single parent node, such a graph cannot be looped.
    • ARBITRARY_SINGLE_ENTITY_SINGLE_DIRECTIONAL_PARENT_TYPE

      public static final GraphStructure ARBITRARY_SINGLE_ENTITY_SINGLE_DIRECTIONAL_PARENT_TYPE
      A graph structure that accepts all graphs that only have a single entity that uses declarative shadow variables with all directional parents being the same type.
    • ARBITRARY

      public static final GraphStructure ARBITRARY
      A graph structure that accepts all graphs.
  • Method Details

    • values

      public static GraphStructure[] 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 GraphStructure 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
    • determineGraphStructure

      public static <Solution_> GraphStructure.GraphStructureAndDirection determineGraphStructure(SolutionDescriptor<Solution_> solutionDescriptor, Object... entities)