|
OptaPlanner core 6.0.0.CR3 | |||||||||
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
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 Solution
boolean isConstraintMatchEnabled()
ScoreDirector.isConstraintMatchEnabled()
for the ScoreDirector
which contains this ScoreHolder
.
Defaults to true.
ConstraintMatch
s and ConstraintMatchTotal
s do not need to be collected
which is a performance boostgetConstraintMatchTotals()
Collection<ConstraintMatchTotal> getConstraintMatchTotals()
Score
of extractScore()
.
RuntimeException
- if isConstraintMatchEnabled()
is false
|
OptaPlanner core 6.0.0.CR3 | |||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |