optaplanner-core/src/main/java/org/optaplanner/core/impl/solver/termination/ScoreCalculationCountTermination.java
@Override
    public ScoreCalculationCountTermination createChildThreadTermination(
            DefaultSolverScope solverScope, ChildThreadType childThreadType) {
        if (childThreadType == ChildThreadType.PART_THREAD) {
            // The ScoreDirector.calculationCount of partitions is maxed, not summed.
            return new ScoreCalculationCountTermination(scoreCalculationCountLimit);
        } else {
            throw new IllegalStateException("The childThreadType (" + childThreadType + ") is not implemented.");
        }
    }
@Override
    public ScoreCalculationCountTermination createChildThreadTermination(
            DefaultSolverScope solverScope, ChildThreadType childThreadType) {
        if (childThreadType == ChildThreadType.PART_THREAD) {
            // The ScoreDirector.calculationCount of partitions is maxed, not summed.
            return new ScoreCalculationCountTermination(scoreCalculationCountLimit);
        } else {
            throw new IllegalStateException("The childThreadType (" + childThreadType + ") is not implemented.");
        }
    }
@ Override public ScoreCalculationCountTermination createChildThreadTermination ( DefaultSolverScope solverScope , ChildThreadType childThreadType ) { if ( childThreadType == ChildThreadType . PART_THREAD ) { // The ScoreDirector.calculationCount of partitions is maxed, not summed. return new ScoreCalculationCountTermination ( scoreCalculationCountLimit ) ; } else { throw new IllegalStateException ( "The childThreadType (" + childThreadType + ") is not implemented." ) ; } }
************************************************************************
************************************************************************