Annotation Interface PlanningVariableReference
public @interface PlanningVariableReference
A reference to a genuine
PlanningVariable
or a shadow variable.-
Nested Class Summary
Modifier and TypeClassDescriptionstatic interface
Workaround for annotation limitation inentityClass()
. -
Required Element Summary
Modifier and TypeRequired ElementDescriptionThe name of the planning variable that is referenced. -
Optional Element Summary
Modifier and TypeOptional ElementDescriptionClass<?>
ThePlanningEntity
class of the planning variable.
-
Element Details
-
variableName
String variableNameThe name of the planning variable that is referenced.- Returns:
- never null, a genuine or shadow variable name
-
-
-
entityClass
Class<?> entityClassThePlanningEntity
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 sameClass
as the one that uses this annotation.
- Default:
- org.optaplanner.core.api.domain.variable.PlanningVariableReference.NullEntityClass.class
-