Annotation Type PlanningVariableReference
-
public @interface PlanningVariableReference
A reference to a genuinePlanningVariable
or a shadow variable.
-
-
Required Element Summary
Required Elements Modifier and Type Required Element Description String
variableName
The name of the planning variable that is referenced.
-
Optional Element Summary
Optional Elements Modifier and Type Optional Element Description Class<?>
entityClass
ThePlanningEntity
class 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
ThePlanningEntity
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
-
-