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