Score_
- the Score
typepublic interface ScoreHolder<Score_ extends Score<Score_>>
DroolsScoreDirector
into the Drools DRL.
Other ScoreDirector
implementations do not use this class.
An implementation must extend AbstractScoreHolder
to ensure backwards compatibility in future versions.
AbstractScoreHolder
Modifier and Type | Method and Description |
---|---|
void |
configureConstraintWeight(org.kie.api.definition.rule.Rule rule,
Score_ constraintWeight)
Deprecated.
for removal from public API
|
Score_ |
extractScore(int initScore)
Deprecated.
for removal from public API, see
ScoreManager . |
Map<String,ConstraintMatchTotal> |
getConstraintMatchTotalMap()
Deprecated.
for removal from public API, see
ScoreManager |
Collection<ConstraintMatchTotal> |
getConstraintMatchTotals()
Deprecated.
for removal from public API, see
ScoreManager |
Map<Object,Indictment> |
getIndictmentMap()
Deprecated.
for removal from public API, see
ScoreManager |
boolean |
isConstraintMatchEnabled()
Deprecated.
for removal from public API
|
@Deprecated Score_ extractScore(int initScore)
ScoreManager
.Score
, calculated by the KieSession
for DroolsScoreDirector
.
Should not be called directly, use ScoreDirector.calculateScore()
instead.
initScore
- <= 0
, managed by OptaPlanner, needed as a parameter in the Score
's creation
method, see Score.getInitScore()
Score
of the working PlanningSolution
@Deprecated void configureConstraintWeight(org.kie.api.definition.rule.Rule rule, Score_ constraintWeight)
ConstraintWeight
from the ConstraintConfiguration
during initialization.rule
- never nullconstraintWeight
- never null, with Score.getInitScore()
equal to 0.@Deprecated 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()
@Deprecated Collection<ConstraintMatchTotal> getConstraintMatchTotals()
ScoreManager
Score
of extractScore(int)
.
Should not be called directly, use ScoreDirector.getConstraintMatchTotals()
instead.
IllegalStateException
- if isConstraintMatchEnabled()
is falseScoreDirector.getConstraintMatchTotals()
@Deprecated Map<String,ConstraintMatchTotal> getConstraintMatchTotalMap()
ScoreManager
Score
of extractScore(int)
.
Should not be called directly, use ScoreDirector.getConstraintMatchTotalMap()
instead.
IllegalStateException
- if isConstraintMatchEnabled()
is falseScoreDirector.getConstraintMatchTotalMap()
@Deprecated Map<Object,Indictment> getIndictmentMap()
ScoreManager
Score
.
Should not be called directly, use ScoreDirector.getIndictmentMap()
instead.
IllegalStateException
- if isConstraintMatchEnabled()
returns falseScoreDirector.getIndictmentMap()
Copyright © 2006–2021 JBoss by Red Hat. All rights reserved.