Class BendableLongScoreVerifier<Solution_>
java.lang.Object
org.optaplanner.test.impl.score.AbstractScoreVerifier<Solution_>
org.optaplanner.test.impl.score.buildin.bendablelong.BendableLongScoreVerifier<Solution_>
- Type Parameters:
Solution_- the solution type, the class with thePlanningSolutionannotation
@Deprecated(forRemoval=true)
public class BendableLongScoreVerifier<Solution_>
extends AbstractScoreVerifier<Solution_>
Deprecated, for removal: This API element is subject to removal in a future version.
Score DRL is deprecated and will be removed in a future major version of OptaPlanner.
See DRL to
Constraint Streams migration recipe.
To assert the constraints of a
SolverFactory
that uses a BendableLongScore.
If you're using ConstraintStreams, use ConstraintVerifier instead.-
Field Summary
FieldsModifier and TypeFieldDescriptionprotected final intDeprecated, for removal: This API element is subject to removal in a future version.Fields inherited from class org.optaplanner.test.impl.score.AbstractScoreVerifier
scoreDirectorFactory -
Constructor Summary
ConstructorsConstructorDescriptionBendableLongScoreVerifier(SolverFactory<Solution_> solverFactory) Deprecated, for removal: This API element is subject to removal in a future version. -
Method Summary
Modifier and TypeMethodDescriptionvoidassertHardWeight(String constraintName, int hardLevel, long expectedWeight, Solution_ solution) Deprecated, for removal: This API element is subject to removal in a future version.Assert that the constraint ofPlanningSolutionhas the expected weight for that score level.voidassertHardWeight(String constraintPackage, String constraintName, int hardLevel, long expectedWeight, Solution_ solution) Deprecated, for removal: This API element is subject to removal in a future version.Assert that the constraint ofPlanningSolutionhas the expected weight for that score level.voidassertSoftWeight(String constraintName, int softLevel, long expectedWeight, Solution_ solution) Deprecated, for removal: This API element is subject to removal in a future version.Assert that the constraint ofPlanningSolutionhas the expected weight for that score level.voidassertSoftWeight(String constraintPackage, String constraintName, int softLevel, long expectedWeight, Solution_ solution) Deprecated, for removal: This API element is subject to removal in a future version.Assert that the constraint ofPlanningSolutionhas the expected weight for that score level.Methods inherited from class org.optaplanner.test.impl.score.AbstractScoreVerifier
assertWeight
-
Field Details
-
hardLevelsSize
protected final int hardLevelsSizeDeprecated, for removal: This API element is subject to removal in a future version.
-
-
Constructor Details
-
BendableLongScoreVerifier
Deprecated, for removal: This API element is subject to removal in a future version.- Parameters:
solverFactory- never null, theSolverFactoryof which you want to test the constraints.
-
-
Method Details
-
assertHardWeight
public void assertHardWeight(String constraintName, int hardLevel, long expectedWeight, Solution_ solution) Deprecated, for removal: This API element is subject to removal in a future version.Assert that the constraint ofPlanningSolutionhas the expected weight for that score level.- Parameters:
constraintName- never null, the name of the constrainthardLevel-0 <= hardLevel <hardLevelSize. ThescoreLevelishardLevelfor hard levels andsoftLevel + hardLevelSizefor soft levels.expectedWeight- the total weight for all matches of that 1 constraintsolution- never null, the actualPlanningSolution
-
assertHardWeight
public void assertHardWeight(String constraintPackage, String constraintName, int hardLevel, long expectedWeight, Solution_ solution) Deprecated, for removal: This API element is subject to removal in a future version.Assert that the constraint ofPlanningSolutionhas the expected weight for that score level.- Parameters:
constraintPackage- sometimes null. When null,constraintNamefor thescoreLevelmust be unique.constraintName- never null, the name of the constrainthardLevel-0 <= hardLevel <hardLevelSize. ThescoreLevelishardLevelfor hard levels andsoftLevel + hardLevelSizefor soft levels.expectedWeight- the total weight for all matches of that 1 constraintsolution- never null, the actualPlanningSolution
-
assertSoftWeight
public void assertSoftWeight(String constraintName, int softLevel, long expectedWeight, Solution_ solution) Deprecated, for removal: This API element is subject to removal in a future version.Assert that the constraint ofPlanningSolutionhas the expected weight for that score level.- Parameters:
constraintName- never null, the name of the constraintsoftLevel-0 <= softLevel <softLevelSize. ThescoreLevelishardLevelfor hard levels andsoftLevel + hardLevelSizefor soft levels.expectedWeight- the total weight for all matches of that 1 constraintsolution- never null, the actualPlanningSolution
-
assertSoftWeight
public void assertSoftWeight(String constraintPackage, String constraintName, int softLevel, long expectedWeight, Solution_ solution) Deprecated, for removal: This API element is subject to removal in a future version.Assert that the constraint ofPlanningSolutionhas the expected weight for that score level.- Parameters:
constraintPackage- sometimes null. When null,constraintNamefor thescoreLevelmust be unique.constraintName- never null, the name of the constraintsoftLevel-0 <= softLevel <softLevelSize. ThescoreLevelishardLevelfor hard levels andsoftLevel + hardLevelSizefor soft levels.expectedWeight- the total weight for all matches of that 1 constraintsolution- never null, the actualPlanningSolution
-