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