org.optaplanner.core.api.score.holder
public interface ScoreHolder
DroolsScoreDirector
into the Drools DRL.
Other ScoreDirector
implementations do not use this class.AbstractScoreHolder
Modifier and Type | Method and Description |
---|---|
Score |
extractScore()
|
Collection<ConstraintMatchTotal> |
getConstraintMatchTotals()
Explains the
Score of extractScore() . |
boolean |
isConstraintMatchEnabled()
Must be in sync with
ScoreDirector.isConstraintMatchEnabled()
for the ScoreDirector which contains this ScoreHolder . |
Score extractScore()
Score
, calculated by the KieSession
for DroolsScoreDirector
.
Should not be called directly, use ScoreDirector.calculateScore()
instead.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 falseCopyright © 2006-2013 JBoss by Red Hat. All Rights Reserved.