public class HardSoftLongScoreHolder extends AbstractScoreHolder
HardSoftLongScore
,
Serialized FormAbstractScoreHolder.BigDecimalConstraintUndoListener, AbstractScoreHolder.ConstraintUndoListener, AbstractScoreHolder.DoubleConstraintUndoListener, AbstractScoreHolder.IntConstraintUndoListener, AbstractScoreHolder.LongConstraintUndoListener
Modifier and Type | Field and Description |
---|---|
protected long |
hardScore |
protected long |
softScore |
constraintMatchEnabled, constraintMatchTotalMap
Constructor and Description |
---|
HardSoftLongScoreHolder(boolean constraintMatchEnabled) |
Modifier and Type | Method and Description |
---|---|
void |
addHardConstraintMatch(org.kie.api.runtime.rule.RuleContext kcontext,
long weight) |
void |
addSoftConstraintMatch(org.kie.api.runtime.rule.RuleContext kcontext,
long weight) |
Score |
extractScore()
|
long |
getHardScore() |
long |
getSoftScore() |
void |
setHardScore(long hardScore)
Deprecated.
|
void |
setSoftScore(long softScore)
Deprecated.
|
getConstraintMatchTotals, isConstraintMatchEnabled, registerBigDecimalConstraintMatch, registerDoubleConstraintMatch, registerIntConstraintMatch, registerLongConstraintMatch
public HardSoftLongScoreHolder(boolean constraintMatchEnabled)
public long getHardScore()
@Deprecated public void setHardScore(long hardScore)
public long getSoftScore()
@Deprecated public void setSoftScore(long softScore)
public void addHardConstraintMatch(org.kie.api.runtime.rule.RuleContext kcontext, long weight)
public void addSoftConstraintMatch(org.kie.api.runtime.rule.RuleContext kcontext, long weight)
public Score extractScore()
ScoreHolder
Score
, calculated by the KieSession
for DroolsScoreDirector
.
Should not be called directly, use ScoreDirector.calculateScore()
instead.
Copyright © 2006–2015 JBoss by Red Hat. All rights reserved.