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 thePlanningSolution
annotation
- All Implemented Interfaces:
SolutionManager<Solution_,
Score_>
public final class DefaultSolutionManager<Solution_,Score_ extends Score<Score_>>
extends Object
implements SolutionManager<Solution_,Score_>
-
Constructor Summary
ConstructorDescriptionDefaultSolutionManager
(SolverFactory<Solution_> solverFactory) DefaultSolutionManager
(SolverManager<Solution_, ProblemId_> solverManager) -
Method Summary
Modifier and TypeMethodDescriptionexplain
(Solution_ solution, SolutionUpdatePolicy solutionUpdatePolicy) Calculates and retrievesConstraintMatchTotal
s andIndictment
s 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.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
Methods inherited from interface org.optaplanner.core.api.solver.SolutionManager
explain, update
-
Constructor Details
-
DefaultSolutionManager
-
DefaultSolutionManager
-
-
Method Details
-
getScoreDirectorFactory
-
update
Description copied from interface:SolutionManager
Updates the given solution according to theSolutionUpdatePolicy
.- Specified by:
update
in interfaceSolutionManager<Solution_,
Score_ extends Score<Score_>> - Parameters:
solution
- never nullsolutionUpdatePolicy
- never null; if unsure, pickSolutionUpdatePolicy.UPDATE_ALL
- Returns:
- possibly null if already null and
SolutionUpdatePolicy
didn't cause its update - See Also:
-
explain
public ScoreExplanation<Solution_,Score_> explain(Solution_ solution, SolutionUpdatePolicy solutionUpdatePolicy) Description copied from interface:SolutionManager
Calculates and retrievesConstraintMatchTotal
s andIndictment
s necessary for describing the quality of a particular solution.- Specified by:
explain
in interfaceSolutionManager<Solution_,
Score_ extends Score<Score_>> - Parameters:
solution
- never nullsolutionUpdatePolicy
- never null; if unsure, pickSolutionUpdatePolicy.UPDATE_ALL
- Returns:
- never null
- See Also:
-