|Enum Constant and Description|
Changes to this variable need to trigger chain correction.
This is the default.
|Modifier and Type||Method and Description|
Returns the enum constant of this type with the specified name.
Returns an array containing the constants of this enum type, in the order they are declared.
clone, compareTo, equals, finalize, getDeclaringClass, hashCode, name, ordinal, toString, valueOf
public static final PlanningVariableGraphType NONE
public static final PlanningVariableGraphType CHAINED
In some use cases, such as Vehicle Routing, planning entities are chained. A chained variable recursively points to a problem fact, which is called the anchor. So either it points directly to the anchor (that problem fact) or it points to another planning entity which recursively points to the anchor. Chains always have exactly 1 anchor, thus they never loop and the tail is always open. Chains never split into a tree: a anchor or planning entity has at most 1 trailing planning entity.
When a chained planning entity changes position, then chain correction must happen:
A <- B <- C <- D <- X <- Y, when B moves between X and Y, pointing to X, then Y is also changed to point to B and C is also changed to point to A, giving the result
A <- C <- D <- X <- B <- Y.
PlanningVariable.nullable() true is not compatible with this.
public static PlanningVariableGraphType values()
for (PlanningVariableGraphType c : PlanningVariableGraphType.values()) System.out.println(c);
public static PlanningVariableGraphType valueOf(String name)
Copyright © 2006–2018 JBoss by Red Hat. All rights reserved.