|
OptaPlanner distribution 6.1.0.CR2 | |||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
public interface ScoreHolder
This class is injected as a global by DroolsScoreDirector into the Drools DRL.
Other ScoreDirector implementations do not use this class.
AbstractScoreHolder to ensure backwards compatibility in future versions.
AbstractScoreHolder| Method Summary | |
|---|---|
Score |
extractScore()
Extracts the Score, calculated by the KieSession for DroolsScoreDirector. |
Collection<ConstraintMatchTotal> |
getConstraintMatchTotals()
Explains the Score of extractScore(). |
boolean |
isConstraintMatchEnabled()
Must be in sync with ScoreDirector.isConstraintMatchEnabled()
for the ScoreDirector which contains this ScoreHolder. |
| Method Detail |
|---|
Score extractScore()
Score, calculated by the KieSession for DroolsScoreDirector.
Should not be called directly, use ScoreDirector.calculateScore() instead.
Score of the working Solutionboolean isConstraintMatchEnabled()
ScoreDirector.isConstraintMatchEnabled()
for the ScoreDirector which contains this ScoreHolder.
Defaults to true.
ConstraintMatchs and ConstraintMatchTotals do not need to be collected
which is a performance boostgetConstraintMatchTotals()Collection<ConstraintMatchTotal> getConstraintMatchTotals()
Score of extractScore().
RuntimeException - if isConstraintMatchEnabled() is false
|
OptaPlanner distribution 6.1.0.CR2 | |||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||