public class SimpleScoreHolder extends AbstractScoreHolder
SimpleScore
,
Serialized FormAbstractScoreHolder.BigDecimalConstraintUndoListener, AbstractScoreHolder.ConstraintUndoListener, AbstractScoreHolder.DoubleConstraintUndoListener, AbstractScoreHolder.IntConstraintUndoListener, AbstractScoreHolder.LongConstraintUndoListener
Modifier and Type | Field and Description |
---|---|
protected int |
score |
constraintMatchEnabled, constraintMatchTotalMap
Constructor and Description |
---|
SimpleScoreHolder(boolean constraintMatchEnabled) |
Modifier and Type | Method and Description |
---|---|
void |
addConstraintMatch(org.kie.api.runtime.rule.RuleContext kcontext,
int weight) |
Score |
extractScore()
|
int |
getScore() |
void |
setScore(int score)
Deprecated.
|
getConstraintMatchTotals, isConstraintMatchEnabled, registerBigDecimalConstraintMatch, registerDoubleConstraintMatch, registerIntConstraintMatch, registerLongConstraintMatch
public int getScore()
@Deprecated public void setScore(int score)
public void addConstraintMatch(org.kie.api.runtime.rule.RuleContext kcontext, int 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.