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

## org.optaplanner.core.api.domain.variable
Annotation Type CustomShadowVariable.Source

    public static @interface CustomShadowVariable.Source

Declares which genuine variable (or other shadow variable) causes the shadow variable to change.

Required Element Summary
`String` | `variableName` A source variable that causes the shadow variable to change.

Optional Element Summary
`Class<?>` | `entityClass` Specified if the source variable is on a different `CustomShadowVariable.Source.NullEntityClass` than the shadow variable.

Element Detail

### variableName

    public abstract String variableName

  A source variable that causes the shadow variable to change.

  Returns:
    never null, a genuine or shadow variable

### entityClass

    public abstract Class<?> entityClass

  Specified if the source variable is on a different `CustomShadowVariable.Source.NullEntityClass` than the shadow variable.

  Returns:
    `CustomShadowVariable.Source.NullEntityClass` when it is null (workaround for annotation limitation). Defaults to the same `CustomShadowVariable.Source.NullEntityClass` as the one that contains the `CustomShadowVariable` annotation.
  Default:
    org.optaplanner.core.api.domain.variable.CustomShadowVariable.Source.NullEntityClass.class

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

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