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