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, registerLongConstraintMatchpublic 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()
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.