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