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