Class HardSoftBigDecimalScoreVerifier<Solution_>

    • Constructor Detail

      • HardSoftBigDecimalScoreVerifier

        public HardSoftBigDecimalScoreVerifier​(SolverFactory<Solution_> solverFactory)
        Deprecated, for removal: This API element is subject to removal in a future version.
        Parameters:
        solverFactory - never null, the SolverFactory of which you want to test the constraints.
    • Method Detail

      • assertHardWeight

        public void assertHardWeight​(String constraintName,
                                     BigDecimal expectedWeight,
                                     Solution_ solution)
        Deprecated, for removal: This API element is subject to removal in a future version.
        Assert that the constraint of PlanningSolution has the expected weight for that score level.
        Parameters:
        constraintName - never null, the name of the constraint
        expectedWeight - never null, the total weight for all matches of that 1 constraint
        solution - never null, the actual PlanningSolution
      • assertHardWeight

        public void assertHardWeight​(String constraintPackage,
                                     String constraintName,
                                     BigDecimal expectedWeight,
                                     Solution_ solution)
        Deprecated, for removal: This API element is subject to removal in a future version.
        Assert that the constraint of PlanningSolution has the expected weight for that score level.
        Parameters:
        constraintPackage - sometimes null. When null, constraintName for the scoreLevel must be unique.
        constraintName - never null, the name of the constraint
        expectedWeight - never null, the total weight for all matches of that 1 constraint
        solution - never null, the actual PlanningSolution
      • assertSoftWeight

        public void assertSoftWeight​(String constraintName,
                                     BigDecimal expectedWeight,
                                     Solution_ solution)
        Deprecated, for removal: This API element is subject to removal in a future version.
        Assert that the constraint of PlanningSolution has the expected weight for that score level.
        Parameters:
        constraintName - never null, the name of the constraint
        expectedWeight - never null, the total weight for all matches of that 1 constraint
        solution - never null, the actual PlanningSolution
      • assertSoftWeight

        public void assertSoftWeight​(String constraintPackage,
                                     String constraintName,
                                     BigDecimal expectedWeight,
                                     Solution_ solution)
        Deprecated, for removal: This API element is subject to removal in a future version.
        Assert that the constraint of PlanningSolution has the expected weight for that score level.
        Parameters:
        constraintPackage - sometimes null. When null, constraintName for the scoreLevel must be unique.
        constraintName - never null, the name of the constraint
        expectedWeight - never null, the total weight for all matches of that 1 constraint
        solution - never null, the actual PlanningSolution