Solution_ - the solution type, the class with the PlanningSolution annotationpublic class SimpleBigDecimalScoreVerifier<Solution_> extends AbstractScoreVerifier<Solution_>
SolverFactory
that uses a SimpleBigDecimalScore.scoreDirectorFactory| Constructor and Description |
|---|
SimpleBigDecimalScoreVerifier(SolverFactory<Solution_> solverFactory) |
| Modifier and Type | Method and Description |
|---|---|
void |
assertWeight(String constraintName,
BigDecimal expectedWeight,
Solution_ solution)
Assert that the constraint (which is usually a score rule) of
PlanningSolution
has the expected weight for that score level. |
void |
assertWeight(String constraintPackage,
String constraintName,
BigDecimal expectedWeight,
Solution_ solution)
Assert that the constraint (which is usually a score rule) of
PlanningSolution
has the expected weight for that score level. |
assertWeightpublic SimpleBigDecimalScoreVerifier(SolverFactory<Solution_> solverFactory)
solverFactory - never null, the SolverFactory of which you want to test the constraints.public void assertWeight(String constraintName, BigDecimal expectedWeight, Solution_ solution)
PlanningSolution
has the expected weight for that score level.constraintName - never null, the name of the constraint, which is usually the name of the score ruleexpectedWeight - never null, the total weight for all matches of that 1 constraintsolution - never null, the actual PlanningSolutionpublic void assertWeight(String constraintPackage, String constraintName, BigDecimal expectedWeight, Solution_ solution)
PlanningSolution
has the expected weight for that score level.constraintPackage - sometimes null.
When null, constraintName for the scoreLevel must be unique.constraintName - never null, the name of the constraint, which is usually the name of the score ruleexpectedWeight - never null, the total weight for all matches of that 1 constraintsolution - never null, the actual PlanningSolutionCopyright © 2006–2019 JBoss by Red Hat. All rights reserved.