Package org.optaplanner.core.impl.solver
Class DefaultSolutionManager<Solution_,Score_ extends Score<Score_>> 
java.lang.Object
org.optaplanner.core.impl.solver.DefaultSolutionManager<Solution_,Score_> 
- Type Parameters:
- Solution_- the solution type, the class with the- PlanningSolutionannotation
- All Implemented Interfaces:
- SolutionManager<Solution_,- Score_> 
public final class DefaultSolutionManager<Solution_,Score_ extends Score<Score_>> 
extends Object
implements SolutionManager<Solution_,Score_> 
- 
Constructor SummaryConstructorsConstructorDescriptionDefaultSolutionManager(SolverFactory<Solution_> solverFactory) DefaultSolutionManager(SolverManager<Solution_, ProblemId_> solverManager) 
- 
Method SummaryModifier and TypeMethodDescriptionexplain(Solution_ solution, SolutionUpdatePolicy solutionUpdatePolicy) Calculates and retrievesConstraintMatchTotals andIndictments necessary for describing the quality of a particular solution.update(Solution_ solution, SolutionUpdatePolicy solutionUpdatePolicy) Updates the given solution according to theSolutionUpdatePolicy.Methods inherited from class java.lang.Objectclone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface org.optaplanner.core.api.solver.SolutionManagerexplain, update
- 
Constructor Details- 
DefaultSolutionManager
- 
DefaultSolutionManager
 
- 
- 
Method Details- 
getScoreDirectorFactory
- 
updateDescription copied from interface:SolutionManagerUpdates the given solution according to theSolutionUpdatePolicy.- Specified by:
- updatein interface- SolutionManager<Solution_,- Score_ extends Score<Score_>> 
- Parameters:
- solution- never null
- solutionUpdatePolicy- never null; if unsure, pick- SolutionUpdatePolicy.UPDATE_ALL
- Returns:
- possibly null if already null and SolutionUpdatePolicydidn't cause its update
- See Also:
 
- 
explainpublic ScoreExplanation<Solution_,Score_> explain(Solution_ solution, SolutionUpdatePolicy solutionUpdatePolicy) Description copied from interface:SolutionManagerCalculates and retrievesConstraintMatchTotals andIndictments necessary for describing the quality of a particular solution.- Specified by:
- explainin interface- SolutionManager<Solution_,- Score_ extends Score<Score_>> 
- Parameters:
- solution- never null
- solutionUpdatePolicy- never null; if unsure, pick- SolutionUpdatePolicy.UPDATE_ALL
- Returns:
- never null
- See Also:
 
 
-