// Builder methods
// ************************************************************************
public LocalSearchSolverPhase buildSolverPhase(EnvironmentMode environmentMode,
SolutionDescriptor solutionDescriptor, ScoreDefinition scoreDefinition, Termination solverTermination) {
DefaultLocalSearchSolverPhase localSearchSolverPhase = new DefaultLocalSearchSolverPhase();
configureSolverPhase(localSearchSolverPhase, environmentMode, scoreDefinition, solverTermination);
localSearchSolverPhase.setDecider(buildDecider(environmentMode, solutionDescriptor, scoreDefinition,
localSearchSolverPhase.getTermination()));
if (environmentMode == EnvironmentMode.DEBUG || environmentMode == EnvironmentMode.TRACE) {
localSearchSolverPhase.setAssertStepScoreIsUncorrupted(true);
}
return localSearchSolverPhase;
}