public class SimpleBigDecimalScoreHolder extends AbstractScoreHolder
SimpleBigDecimalScore
,
Serialized FormAbstractScoreHolder.BigDecimalConstraintUndoListener, AbstractScoreHolder.ConstraintUndoListener, AbstractScoreHolder.DoubleConstraintUndoListener, AbstractScoreHolder.IntConstraintUndoListener, AbstractScoreHolder.LongConstraintUndoListener
Modifier and Type | Field and Description |
---|---|
protected BigDecimal |
score |
constraintMatchEnabled, constraintMatchTotalMap
Constructor and Description |
---|
SimpleBigDecimalScoreHolder(boolean constraintMatchEnabled) |
Modifier and Type | Method and Description |
---|---|
void |
addConstraintMatch(org.kie.api.runtime.rule.RuleContext kcontext,
BigDecimal weight) |
Score |
extractScore()
|
BigDecimal |
getScore() |
void |
setScore(BigDecimal score)
Deprecated.
|
getConstraintMatchTotals, isConstraintMatchEnabled, registerBigDecimalConstraintMatch, registerDoubleConstraintMatch, registerIntConstraintMatch, registerLongConstraintMatch
protected BigDecimal score
public SimpleBigDecimalScoreHolder(boolean constraintMatchEnabled)
public BigDecimal getScore()
@Deprecated public void setScore(BigDecimal score)
public void addConstraintMatch(org.kie.api.runtime.rule.RuleContext kcontext, BigDecimal weight)
public Score extractScore()
ScoreHolder
Score
, calculated by the KieSession
for DroolsScoreDirector
.
Should not be called directly, use ScoreDirector.calculateScore()
instead.
Copyright © 2006–2016 JBoss by Red Hat. All rights reserved.