public class HardSoftBigDecimalScoreHolder extends AbstractScoreHolder
HardSoftBigDecimalScore
,
Serialized FormAbstractScoreHolder.BigDecimalConstraintUndoListener, AbstractScoreHolder.ConstraintUndoListener, AbstractScoreHolder.DoubleConstraintUndoListener, AbstractScoreHolder.IntConstraintUndoListener, AbstractScoreHolder.LongConstraintUndoListener
Modifier and Type | Field and Description |
---|---|
protected BigDecimal |
hardScore |
protected BigDecimal |
softScore |
constraintMatchEnabled, constraintMatchTotalMap
Constructor and Description |
---|
HardSoftBigDecimalScoreHolder(boolean constraintMatchEnabled) |
Modifier and Type | Method and Description |
---|---|
void |
addHardConstraintMatch(org.kie.api.runtime.rule.RuleContext kcontext,
BigDecimal weight) |
void |
addSoftConstraintMatch(org.kie.api.runtime.rule.RuleContext kcontext,
BigDecimal weight) |
Score |
extractScore()
|
BigDecimal |
getHardScore() |
BigDecimal |
getSoftScore() |
void |
setHardScore(BigDecimal hardScore)
Deprecated.
|
void |
setSoftScore(BigDecimal softScore)
Deprecated.
|
getConstraintMatchTotals, isConstraintMatchEnabled, registerBigDecimalConstraintMatch, registerDoubleConstraintMatch, registerIntConstraintMatch, registerLongConstraintMatch
protected BigDecimal hardScore
protected BigDecimal softScore
public HardSoftBigDecimalScoreHolder(boolean constraintMatchEnabled)
public BigDecimal getHardScore()
@Deprecated public void setHardScore(BigDecimal hardScore)
public BigDecimal getSoftScore()
@Deprecated public void setSoftScore(BigDecimal softScore)
public void addHardConstraintMatch(org.kie.api.runtime.rule.RuleContext kcontext, BigDecimal weight)
public void addSoftConstraintMatch(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.