Overview | Package | Class | Use | Tree | Deprecated | Index | Help
| OptaPlanner distribution 6.2.0.Final
PREV CLASS NEXT CLASS | FRAMES NO FRAMES
SUMMARY: REQUIRED | OPTIONAL | DETAIL: ELEMENT

## org.optaplanner.core.api.domain.variable
Annotation Type AnchorShadowVariable

    @Target(value=METHOD)
    @Retention(value=RUNTIME)
    public @interface AnchorShadowVariable

Specifies that a bean property 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 of a `PlanningEntity` class.

Required Element Summary
`String` | `sourceVariableName` The source planning variable is a chained planning variable that leads to the anchor.

Element Detail

### sourceVariableName

    public abstract String sourceVariableName

  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 `Solver` changes a genuine variable, it adjusts the shadow variable accordingly. In practice, the `Solver` ignores shadow variables (except for consistency housekeeping).

  Returns:
    the variable property name on this entity class that leads to the anchor

Overview | Package | Class | Use | Tree | Deprecated | Index | Help
| OptaPlanner distribution 6.2.0.Final
PREV CLASS NEXT CLASS | FRAMES NO FRAMES
SUMMARY: REQUIRED | OPTIONAL | DETAIL: ELEMENT

Copyright © 2006-2015 JBoss by Red Hat. All Rights Reserved.