Annotation Type PlanningVariableReference
- 
public @interface PlanningVariableReferenceA reference to a genuinePlanningVariableor a shadow variable. 
- 
- 
Required Element Summary
Required Elements Modifier and Type Required Element Description StringvariableNameThe name of the planning variable that is referenced. 
- 
Optional Element Summary
Optional Elements Modifier and Type Optional Element Description Class<?>entityClassThePlanningEntityclass of the planning variable. 
 - 
 
- 
- 
Element Detail
- 
variableName
String variableName
The name of the planning variable that is referenced.- Returns:
 - never null, a genuine or shadow variable name
 
 
 - 
 
- 
- 
entityClass
Class<?> entityClass
ThePlanningEntityclass 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 sameClassas the one that uses this annotation.
- Default:
 - org.optaplanner.core.api.domain.variable.PlanningVariableReference.NullEntityClass.class
 
 
 - 
 
 -