Annotation Interface AnchorShadowVariable
@Deprecated(forRemoval=true,
since="1.31.0")
@Target({METHOD,FIELD})
@Retention(RUNTIME)
public @interface AnchorShadowVariable
Deprecated, for removal: This API element is subject to removal in a future version.
Specifies that a bean property (or a field) is the anchor of a chained
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.
-
Required Element Summary
Required ElementsModifier and TypeRequired ElementDescriptionDeprecated, for removal: This API element is subject to removal in a future version.The source planning variable is a chained planning variable that leads to the anchor.
-
Element Details
-
sourceVariableName
String sourceVariableNameDeprecated, for removal: This API element is subject to removal in a future version.The source planning variable is a chained planning variable that leads to the anchor.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
Solverchanges a genuine variable, it adjusts the shadow variable accordingly. In practice, theSolverignores shadow variables (except for consistency housekeeping).- Returns:
- the variable property name on this entity class that leads to the anchor
-
list variableinstead.