Solution_ - the solution type, the class with the PlanningSolution annotationpublic abstract class AbstractScoreVerifier<Solution_> extends Object
ScoreDirectorFactoryConfig.setAssertionScoreDirectorFactory(ScoreDirectorFactoryConfig) for that instead.
 
 Do not use this class directly, instead use the specific subclass for your Score type,
 such as HardSoftScoreVerifier.
HardSoftScoreVerifier| Modifier and Type | Field and Description | 
|---|---|
protected InnerScoreDirectorFactory<Solution_> | 
scoreDirectorFactory  | 
| Constructor and Description | 
|---|
AbstractScoreVerifier(SolverFactory<Solution_> solverFactory,
                     Class<? extends Score> expectedScoreClass)  | 
| Modifier and Type | Method and Description | 
|---|---|
protected void | 
assertWeight(String constraintPackage,
            String constraintName,
            int scoreLevel,
            Number expectedWeight,
            Solution_ solution)
Assert that the constraint of  
PlanningSolution has the expected weight for that score level. | 
protected final InnerScoreDirectorFactory<Solution_> scoreDirectorFactory
public AbstractScoreVerifier(SolverFactory<Solution_> solverFactory, Class<? extends Score> expectedScoreClass)
solverFactory - never null, the SolverFactory of which you want to test the constraints.expectedScoreClass - never null, used to fail fast if a SolverFactory with another Score type is
        used.protected void assertWeight(String constraintPackage, String constraintName, int scoreLevel, Number expectedWeight, Solution_ solution)
PlanningSolution has the expected weight for that score level.constraintPackage - sometimes null.
        When null, constraintName for the scoreLevel must be unique.scoreLevel - at least 0constraintName - never null, the name of the constraintexpectedWeight - never null, the total weight for all matches of that 1 constraintsolution - never nullCopyright © 2006–2021 JBoss by Red Hat. All rights reserved.