Annotation Type PlanningVariableReference
public @interface PlanningVariableReference
A reference to a genuine 
PlanningVariable or a shadow variable.- 
Nested Class SummaryNested ClassesModifier and TypeClassDescriptionstatic interfaceWorkaround for annotation limitation inentityClass().
- 
Required Element SummaryRequired ElementsModifier and TypeRequired ElementDescriptionThe name of the planning variable that is referenced.
- 
Optional Element SummaryOptional ElementsModifier and TypeOptional ElementDescriptionClass<?>ThePlanningEntityclass of the planning variable.
- 
Element Details- 
variableNameString variableNameThe name of the planning variable that is referenced.- Returns:
- never null, a genuine or shadow variable name
 
 
- 
- 
- 
entityClassClass<?> entityClassThePlanningEntityclass of the planning variable.Specified if the planning variable is on a different Classthan the class that uses this referencing annotation.- Returns:
- PlanningVariableReference.NullEntityClasswhen it is null (workaround for annotation limitation). Defaults to the same- Classas the one that uses this annotation.
 - Default:
- org.optaplanner.core.api.domain.variable.PlanningVariableReference.NullEntityClass.class
 
 
-