Class DefaultScoreManager<Solution_,Score_ extends Score<Score_>>
- java.lang.Object
-
- ai.timefold.solver.core.impl.score.DefaultScoreManager<Solution_,Score_>
-
- Type Parameters:
Solution_- the solution type, the class with thePlanningSolutionannotation
- All Implemented Interfaces:
ScoreManager<Solution_,Score_>
@Deprecated(forRemoval=true) public final class DefaultScoreManager<Solution_,Score_ extends Score<Score_>> extends Object implements ScoreManager<Solution_,Score_>
Deprecated, for removal: This API element is subject to removal in a future version.UseDefaultSolutionManagerinstead.
-
-
Constructor Summary
Constructors Constructor Description DefaultScoreManager(SolutionManager<Solution_,Score_> solutionManager)Deprecated, for removal: This API element is subject to removal in a future version.
-
Method Summary
All Methods Instance Methods Concrete Methods Deprecated Methods Modifier and Type Method Description ScoreExplanation<Solution_,Score_>explain(Solution_ solution, SolutionUpdatePolicy solutionUpdatePolicy)Deprecated, for removal: This API element is subject to removal in a future version.Calculates and retrievesConstraintMatchTotals andIndictments necessary for describing the quality of a particular solution.ScoreExplanation<Solution_,Score_>explainScore(Solution_ solution)Deprecated, for removal: This API element is subject to removal in a future version.Calculates and retrievesConstraintMatchTotals andIndictments necessary for describing the quality of a particular solution.StringgetSummary(Solution_ solution)Deprecated, for removal: This API element is subject to removal in a future version.Returns a diagnostic text that explains the solution through theConstraintMatchAPI to identify which constraints or planning entities cause that score quality.Score_update(Solution_ solution, SolutionUpdatePolicy solutionUpdatePolicy)Deprecated, for removal: This API element is subject to removal in a future version.Updates the given solution according to theSolutionUpdatePolicy.Score_updateScore(Solution_ solution)Deprecated, for removal: This API element is subject to removal in a future version.-
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
-
Methods inherited from interface ai.timefold.solver.core.api.score.ScoreManager
explain, update
-
-
-
-
Constructor Detail
-
DefaultScoreManager
public DefaultScoreManager(SolutionManager<Solution_,Score_> solutionManager)
Deprecated, for removal: This API element is subject to removal in a future version.
-
-
Method Detail
-
updateScore
public Score_ updateScore(Solution_ solution)
Deprecated, for removal: This API element is subject to removal in a future version.Description copied from interface:ScoreManager- Specified by:
updateScorein interfaceScoreManager<Solution_,Score_ extends Score<Score_>>- Parameters:
solution- never null
-
getSummary
public String getSummary(Solution_ solution)
Deprecated, for removal: This API element is subject to removal in a future version.Description copied from interface:ScoreManagerReturns a diagnostic text that explains the solution through theConstraintMatchAPI to identify which constraints or planning entities cause that score quality. In case of aninfeasiblesolution, this can help diagnose the cause of that.Do not parse this string. Instead, to provide this information in a UI or a service, use
ScoreManager.explainScore(Object)to retrieveScoreExplanation.getConstraintMatchTotalMap()andScoreExplanation.getIndictmentMap()and convert those into a domain specific API.- Specified by:
getSummaryin interfaceScoreManager<Solution_,Score_ extends Score<Score_>>- Parameters:
solution- never null- Returns:
- null if
ScoreManager.updateScore(Object)returns null with the same solution
-
explainScore
public ScoreExplanation<Solution_,Score_> explainScore(Solution_ solution)
Deprecated, for removal: This API element is subject to removal in a future version.Description copied from interface:ScoreManagerCalculates and retrievesConstraintMatchTotals andIndictments necessary for describing the quality of a particular solution.- Specified by:
explainScorein interfaceScoreManager<Solution_,Score_ extends Score<Score_>>- Parameters:
solution- never null- Returns:
- never null
-
update
public Score_ update(Solution_ solution, SolutionUpdatePolicy solutionUpdatePolicy)
Deprecated, for removal: This API element is subject to removal in a future version.Description copied from interface:ScoreManagerUpdates the given solution according to theSolutionUpdatePolicy.- Specified by:
updatein interfaceScoreManager<Solution_,Score_ extends Score<Score_>>- Parameters:
solution- never nullsolutionUpdatePolicy- never null; if unsure, pickSolutionUpdatePolicy.UPDATE_ALL- Returns:
- possibly null if already null and
SolutionUpdatePolicydidn't cause its update - See Also:
Description of individual policies with respect to performance trade-offs.
-
explain
public ScoreExplanation<Solution_,Score_> explain(Solution_ solution, SolutionUpdatePolicy solutionUpdatePolicy)
Deprecated, for removal: This API element is subject to removal in a future version.Description copied from interface:ScoreManagerCalculates and retrievesConstraintMatchTotals andIndictments necessary for describing the quality of a particular solution.- Specified by:
explainin interfaceScoreManager<Solution_,Score_ extends Score<Score_>>- Parameters:
solution- never nullsolutionUpdatePolicy- never null; if unsure, pickSolutionUpdatePolicy.UPDATE_ALL- Returns:
- never null
- See Also:
Description of individual policies with respect to performance trade-offs.
-
-