Class HardMediumSoftLongScoreVerifier<Solution_>
java.lang.Object
org.optaplanner.test.impl.score.AbstractScoreVerifier<Solution_>
org.optaplanner.test.impl.score.buildin.hardmediumsoftlong.HardMediumSoftLongScoreVerifier<Solution_>
- Type Parameters:
Solution_
- the solution type, the class with thePlanningSolution
annotation
@Deprecated(forRemoval=true)
public class HardMediumSoftLongScoreVerifier<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 HardMediumSoftLongScore
.
If you're using ConstraintStream
s, use ConstraintVerifier
instead.-
Field Summary
Fields inherited from class org.optaplanner.test.impl.score.AbstractScoreVerifier
scoreDirectorFactory
-
Constructor Summary
ConstructorsConstructorDescriptionHardMediumSoftLongScoreVerifier
(SolverFactory<Solution_> solverFactory) Deprecated, for removal: This API element is subject to removal in a future version. -
Method Summary
Modifier and TypeMethodDescriptionvoid
assertHardWeight
(String constraintName, long expectedWeight, Solution_ solution) Deprecated, for removal: This API element is subject to removal in a future version.Assert that the constraint ofPlanningSolution
has the expected weight for that score level.void
assertHardWeight
(String constraintPackage, String constraintName, long expectedWeight, Solution_ solution) Deprecated, for removal: This API element is subject to removal in a future version.Assert that the constraint ofPlanningSolution
has the expected weight for that score level.void
assertMediumWeight
(String constraintName, long expectedWeight, Solution_ solution) Deprecated, for removal: This API element is subject to removal in a future version.Assert that the constraint ofPlanningSolution
has the expected weight for that score level.void
assertMediumWeight
(String constraintPackage, String constraintName, long expectedWeight, Solution_ solution) Deprecated, for removal: This API element is subject to removal in a future version.Assert that the constraint ofPlanningSolution
has the expected weight for that score level.void
assertSoftWeight
(String constraintName, long expectedWeight, Solution_ solution) Deprecated, for removal: This API element is subject to removal in a future version.Assert that the constraint ofPlanningSolution
has the expected weight for that score level.void
assertSoftWeight
(String constraintPackage, String constraintName, long expectedWeight, Solution_ solution) Deprecated, for removal: This API element is subject to removal in a future version.Assert that the constraint ofPlanningSolution
has the expected weight for that score level.Methods inherited from class org.optaplanner.test.impl.score.AbstractScoreVerifier
assertWeight
-
Constructor Details
-
HardMediumSoftLongScoreVerifier
Deprecated, for removal: This API element is subject to removal in a future version.- Parameters:
solverFactory
- never null, theSolverFactory
of which you want to test the constraints.
-
-
Method Details
-
assertHardWeight
Deprecated, for removal: This API element is subject to removal in a future version.Assert that the constraint ofPlanningSolution
has the expected weight for that score level.- Parameters:
constraintName
- never null, the name of the constraintexpectedWeight
- the total weight for all matches of that 1 constraintsolution
- never null, the actualPlanningSolution
-
assertHardWeight
public void assertHardWeight(String constraintPackage, String constraintName, long expectedWeight, Solution_ solution) Deprecated, for removal: This API element is subject to removal in a future version.Assert that the constraint ofPlanningSolution
has the expected weight for that score level.- Parameters:
constraintPackage
- sometimes null. When null,constraintName
for thescoreLevel
must be unique.constraintName
- never null, the name of the constraintexpectedWeight
- the total weight for all matches of that 1 constraintsolution
- never null, the actualPlanningSolution
-
assertMediumWeight
Deprecated, for removal: This API element is subject to removal in a future version.Assert that the constraint ofPlanningSolution
has the expected weight for that score level.- Parameters:
constraintName
- never null, the name of the constraintexpectedWeight
- the total weight for all matches of that 1 constraintsolution
- never null, the actualPlanningSolution
-
assertMediumWeight
public void assertMediumWeight(String constraintPackage, String constraintName, long expectedWeight, Solution_ solution) Deprecated, for removal: This API element is subject to removal in a future version.Assert that the constraint ofPlanningSolution
has the expected weight for that score level.- Parameters:
constraintPackage
- sometimes null. When null,constraintName
for thescoreLevel
must be unique.constraintName
- never null, the name of the constraintexpectedWeight
- the total weight for all matches of that 1 constraintsolution
- never null, the actualPlanningSolution
-
assertSoftWeight
Deprecated, for removal: This API element is subject to removal in a future version.Assert that the constraint ofPlanningSolution
has the expected weight for that score level.- Parameters:
constraintName
- never null, the name of the constraintexpectedWeight
- the total weight for all matches of that 1 constraintsolution
- never null, the actualPlanningSolution
-
assertSoftWeight
public void assertSoftWeight(String constraintPackage, String constraintName, long expectedWeight, Solution_ solution) Deprecated, for removal: This API element is subject to removal in a future version.Assert that the constraint ofPlanningSolution
has the expected weight for that score level.- Parameters:
constraintPackage
- sometimes null. When null,constraintName
for thescoreLevel
must be unique.constraintName
- never null, the name of the constraintexpectedWeight
- the total weight for all matches of that 1 constraintsolution
- never null, the actualPlanningSolution
-