Class ConstraintConfigurationBasedConstraintWeightSupplier<Score_ extends Score<Score_>,Solution_>
java.lang.Object
ai.timefold.solver.core.impl.domain.solution.ConstraintConfigurationBasedConstraintWeightSupplier<Score_,Solution_>
- All Implemented Interfaces:
ConstraintWeightSupplier<Solution_,Score_>
@Deprecated(forRemoval=true,
since="1.13.0")
public final class ConstraintConfigurationBasedConstraintWeightSupplier<Score_ extends Score<Score_>,Solution_>
extends Object
implements ConstraintWeightSupplier<Solution_,Score_>
Deprecated, for removal: This API element is subject to removal in a future version.
-
Method Summary
Modifier and TypeMethodDescriptionstatic <Solution_,Score_ extends Score<Score_>>
ConstraintWeightSupplier<Solution_,Score_> create(SolutionDescriptor<Solution_> solutionDescriptor, Class<?> constraintConfigurationClass) Deprecated, for removal: This API element is subject to removal in a future version.getConstraintWeight(ConstraintRef constraintRef, Solution_ workingSolution) Deprecated, for removal: This API element is subject to removal in a future version.Get the weight for the constraint if known to the supplier.Deprecated, for removal: This API element is subject to removal in a future version.Class<?>Deprecated, for removal: This API element is subject to removal in a future version.The class that carries the constraint weights.voidinitialize(SolutionDescriptor<Solution_> solutionDescriptor, MemberAccessorFactory memberAccessorFactory, DomainAccessType domainAccessType) Deprecated, for removal: This API element is subject to removal in a future version.toString()Deprecated, for removal: This API element is subject to removal in a future version.voidvalidate(Solution_ workingSolution, Set<ConstraintRef> userDefinedConstraints) Deprecated, for removal: This API element is subject to removal in a future version.
-
Method Details
-
create
public static <Solution_,Score_ extends Score<Score_>> ConstraintWeightSupplier<Solution_,Score_> create(SolutionDescriptor<Solution_> solutionDescriptor, Class<?> constraintConfigurationClass) Deprecated, for removal: This API element is subject to removal in a future version. -
initialize
public void initialize(SolutionDescriptor<Solution_> solutionDescriptor, MemberAccessorFactory memberAccessorFactory, DomainAccessType domainAccessType) Deprecated, for removal: This API element is subject to removal in a future version.- Specified by:
initializein interfaceConstraintWeightSupplier<Score_ extends Score<Score_>,Solution_>
-
validate
Deprecated, for removal: This API element is subject to removal in a future version.Description copied from interface:ConstraintWeightSupplierWill be called afterConstraintWeightSupplier.initialize(SolutionDescriptor, MemberAccessorFactory, DomainAccessType). Has the option of failing fast in case of discrepancies between the constraints defined inConstraintProviderand the constraints defined in the configuration. -
getProblemFactClass
Deprecated, for removal: This API element is subject to removal in a future version.Description copied from interface:ConstraintWeightSupplierThe class that carries the constraint weights. It will either be annotated byConstraintConfiguration, or beConstraintWeightOverrides.- Specified by:
getProblemFactClassin interfaceConstraintWeightSupplier<Score_ extends Score<Score_>,Solution_> - Returns:
- never null
-
getDefaultConstraintPackage
Deprecated, for removal: This API element is subject to removal in a future version.- Specified by:
getDefaultConstraintPackagein interfaceConstraintWeightSupplier<Score_ extends Score<Score_>,Solution_>
-
getConstraintWeight
Deprecated, for removal: This API element is subject to removal in a future version.Description copied from interface:ConstraintWeightSupplierGet the weight for the constraint if known to the supplier. Supplies may choose not to provide a value for unknown constraints, which is the case forOverridesBasedConstraintWeightSupplier.ConstraintConfigurationBasedConstraintWeightSupplierwill always provide a value.- Specified by:
getConstraintWeightin interfaceConstraintWeightSupplier<Score_ extends Score<Score_>,Solution_> - Parameters:
constraintRef- never nullworkingSolution- never null- Returns:
- may be null, if the provider does not know the constraint
-
toString
Deprecated, for removal: This API element is subject to removal in a future version.
-
ConstraintWeightOverridesinstead.