org.optaplanner.core.api.domain.variable

## Annotation Type PlanningVariableReference

-     public @interface PlanningVariableReference

  A reference to a genuine `PlanningVariable` or a shadow variable.

- - ### Required Element Summary

    Required Elements
    Modifier and Type | Required Element and Description
    --- | ---
    `String` | `variableName` The name of the planning variable that is referenced.

  - ### Optional Element Summary

    Optional Elements
    Modifier and Type | Optional Element and Description
    --- | ---
    `Class<?>` | `entityClass` The `PlanningEntity` class of the planning variable.

- - ### Element Detail

    - #### variableName

          public abstract String variableName

      The name of the planning variable that is referenced.
      Returns:
        never null, a genuine or shadow variable name

  - - #### entityClass

          public abstract Class<?> entityClass

      The `PlanningEntity` class of the planning variable.

      Specified if the planning variable is on a different `Class` than the class that uses this referencing annotation.

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

Copyright © 2006–2020 JBoss by Red Hat. All rights reserved.