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