Package ai.timefold.solver.core.api.domain.variable
package ai.timefold.solver.core.api.domain.variable
Domain annotations and support classes for a planning variable.
-
ClassDescriptionAbstractVariableListener<Solution_,
Entity_> Deprecated, for removal: This API element is subject to removal in a future version.Deprecated, for removal: This API element is subject to removal in a future version.Chained variable is deprecated.Specifies that a field may be updated by the target method when any of its variables change, genuine or shadow.Deprecated, for removal: This API element is subject to removal in a future version.Deprecated in favor ofShadowVariable(normal shadow variable withCustomShadowVariable.variableListenerClass()) andPiggybackShadowVariable(ifCustomShadowVariable.variableListenerRef()is used).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_> Deprecated, for removal: This API element is subject to removal in a future version.Specifies that a bean property (or a field) references the next element in the samePlanningListVariable.Deprecated, for removal: This API element is subject to removal in a future version.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.PlanningVariable.NullComparatorFactory<Solution_,T> Deprecated, for removal: This API element is subject to removal in a future version.Deprecated in favor ofPlanningVariable.NullComparator.PlanningVariable.NullStrengthWeightFactory<Solution_,T> Deprecated, for removal: This API element is subject to removal in a future version.Deprecated in favor ofPlanningVariable.NullComparatorFactory.Deprecated, for removal: This API element is subject to removal in a future version.Chained variable is deprecated.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 the paths to variables that a method referenced byShadowVariable.supplierName()uses to compute the value of aShadowVariable.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().Workaround for annotation limitation inShadowVariable.variableListenerClass().Specifies that a boolean property (or field) of aPlanningEntitytracks if any of itssupplier variablesare inconsistent.VariableListener<Solution_,Entity_> Deprecated, for removal: This API element is subject to removal in a future version.
ShadowVariablewith asupplierandsourcesinstead.