public enum PlanningVariableGraphType extends Enum<PlanningVariableGraphType>
Enum Constant and Description |
---|
CHAINED
Changes to this variable need to trigger chain correction.
|
NONE
This is the default.
|
Modifier and Type | Method and Description |
---|---|
static PlanningVariableGraphType |
valueOf(String name)
Returns the enum constant of this type with the specified name.
|
static PlanningVariableGraphType[] |
values()
Returns an array containing the constants of this enum type, in
the order they are declared.
|
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)
name
- the name of the enum constant to be returned.IllegalArgumentException
- if this enum type has no constant with the specified nameNullPointerException
- if the argument is nullCopyright © 2006–2020 JBoss by Red Hat. All rights reserved.