public class BendableScoreHolder extends AbstractScoreHolder
BendableScore
,
Serialized FormconstraintMatchEnabled, constraintMatchTotalMap
Constructor and Description |
---|
BendableScoreHolder(boolean constraintMatchEnabled,
int hardLevelCount,
int softLevelCount) |
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 |
getHardLevelCount() |
int |
getHardScore(int hardLevel) |
int |
getSoftLevelCount() |
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 hardLevelCount, int softLevelCount)
public int getHardLevelCount()
public int getHardScore(int hardLevel)
@Deprecated public void setHardScore(int hardLevel, int hardScore)
public int getSoftLevelCount()
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-2014 JBoss by Red Hat. All Rights Reserved.