Package org.optaplanner.core.api.domain.variable
package org.optaplanner.core.api.domain.variable
Domain annotations and support classes for a planning variable.
-
ClassDescriptionAbstractVariableListener<Solution_,
Entity_> Common ancestor for specialized planning variable listeners.Specifies that a bean property (or a field) is the anchor of a chainedPlanningVariable, which implies it's a shadow variable.Deprecated, for removal: This API element is subject to removal in a future version.Workaround for annotation limitation inCustomShadowVariable.variableListenerClass().Specifies that a bean property (or a field) is an index of this planning value in another entity'sPlanningListVariable.Specifies that a bean property (or a field) is the inverse of aPlanningVariable, which implies it's a shadow variable.ListVariableListener<Solution_,Entity_, Element_> A listener sourced on aPlanningListVariable.Specifies that a bean property (or a field) references the next element in the samePlanningListVariable.Specifies that a bean property (or a field) is a custom shadow variable that is updated by another shadow variable's variable listener.Workaround for annotation limitation inPiggybackShadowVariable.shadowEntityClass().Specifies that a bean property (or a field) can be changed and should be optimized by the optimization algorithms.Specifies that a bean property (or a field) can be changed and should be optimized by the optimization algorithms.Workaround for annotation limitation inPlanningVariable.strengthComparatorClass().Workaround for annotation limitation inPlanningVariable.strengthWeightFactoryClass().A reference to a genuinePlanningVariableor a shadow variable.Workaround for annotation limitation inPlanningVariableReference.entityClass().Specifies that a bean property (or a field) references the previous element in the samePlanningListVariable.Specifies that a bean property (or a field) is a custom shadow variable of 1 or more source variables.Defines severalShadowVariableannotations on the same element.Workaround for annotation limitation inShadowVariable.sourceEntityClass().VariableListener<Solution_,Entity_> A listener sourced on a basicPlanningVariable.
ShadowVariable(normal shadow variable withCustomShadowVariable.variableListenerClass()) andPiggybackShadowVariable(ifCustomShadowVariable.variableListenerRef()is used).