Enum Class GraphStructure
java.lang.Object
java.lang.Enum<GraphStructure>
ai.timefold.solver.core.impl.domain.variable.declarative.GraphStructure
- All Implemented Interfaces:
Serializable,Comparable<GraphStructure>,Constable
-
Nested Class Summary
Nested ClassesNested classes/interfaces inherited from class java.lang.Enum
Enum.EnumDesc<E extends Enum<E>> -
Enum Constant Summary
Enum ConstantsEnum ConstantDescriptionA graph structure that accepts all graphs.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.A graph structure that only accepts the empty graph.A graph structure without dynamic edges.A graph structure where there is at most one directional parent for each graph node, and no indirect parents. -
Method Summary
Modifier and TypeMethodDescriptionstatic <Solution_>
GraphStructure.GraphStructureAndDirectiondetermineGraphStructure(SolutionDescriptor<Solution_> solutionDescriptor, Object... entities) static GraphStructureReturns the enum constant of this class with the specified name.static GraphStructure[]values()Returns an array containing the constants of this enum class, in the order they are declared.
-
Enum Constant Details
-
EMPTY
A graph structure that only accepts the empty graph. -
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
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
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
A graph structure that accepts all graphs.
-
-
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
-
determineGraphStructure
public static <Solution_> GraphStructure.GraphStructureAndDirection determineGraphStructure(SolutionDescriptor<Solution_> solutionDescriptor, Object... entities)
-