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