@Target(value={METHOD,FIELD}) @Retention(value=RUNTIME) public @interface AnchorShadowVariable
PlanningVariable
, which implies it's a shadow variable.
It is specified on a getter of a java bean property (or a field) of a PlanningEntity
class.
Modifier and Type | Required Element and Description |
---|---|
String |
sourceVariableName
The source planning variable is a chained planning variable that leads to the anchor.
|
public abstract String sourceVariableName
Both the genuine variable and the shadow variable should be consistent: if A chains to B, then A must have the same anchor as B (unless B is the anchor).
When the Solver
changes a genuine variable, it adjusts the shadow variable accordingly.
In practice, the Solver
ignores shadow variables (except for consistency housekeeping).
Copyright © 2006–2018 JBoss by Red Hat. All rights reserved.