|
OptaPlanner distribution 6.2.0.Final | |||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.optaplanner.core.api.score.holder.AbstractScoreHolder
org.optaplanner.core.api.score.buildin.bendablebigdecimal.BendableBigDecimalScoreHolder
public class BendableBigDecimalScoreHolder
BendableBigDecimalScore,
Serialized Form| Nested Class Summary |
|---|
| Nested classes/interfaces inherited from class org.optaplanner.core.api.score.holder.AbstractScoreHolder |
|---|
AbstractScoreHolder.BigDecimalConstraintUndoListener, AbstractScoreHolder.DoubleConstraintUndoListener, AbstractScoreHolder.IntConstraintUndoListener, AbstractScoreHolder.LongConstraintUndoListener |
| Field Summary |
|---|
| Fields inherited from class org.optaplanner.core.api.score.holder.AbstractScoreHolder |
|---|
constraintMatchEnabled, constraintMatchTotalMap |
| Constructor Summary | |
|---|---|
BendableBigDecimalScoreHolder(boolean constraintMatchEnabled,
int hardLevelsSize,
int softLevelsSize)
|
|
| Method Summary | |
|---|---|
void |
addHardConstraintMatch(org.kie.api.runtime.rule.RuleContext kcontext,
int hardLevel,
BigDecimal weight)
|
void |
addSoftConstraintMatch(org.kie.api.runtime.rule.RuleContext kcontext,
int softLevel,
BigDecimal weight)
|
Score |
extractScore()
Extracts the Score, calculated by the KieSession for DroolsScoreDirector. |
int |
getHardLevelsSize()
|
BigDecimal |
getHardScore(int hardLevel)
|
int |
getSoftLevelsSize()
|
BigDecimal |
getSoftScore(int softLevel)
|
void |
setHardScore(int hardLevel,
BigDecimal hardScore)
Deprecated. |
void |
setSoftScore(int softLevel,
BigDecimal softScore)
Deprecated. |
| Methods inherited from class org.optaplanner.core.api.score.holder.AbstractScoreHolder |
|---|
getConstraintMatchTotals, isConstraintMatchEnabled, registerBigDecimalConstraintMatch, registerDoubleConstraintMatch, registerIntConstraintMatch, registerLongConstraintMatch |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public BendableBigDecimalScoreHolder(boolean constraintMatchEnabled,
int hardLevelsSize,
int softLevelsSize)
| Method Detail |
|---|
public int getHardLevelsSize()
public BigDecimal getHardScore(int hardLevel)
@Deprecated
public void setHardScore(int hardLevel,
BigDecimal hardScore)
public int getSoftLevelsSize()
public BigDecimal getSoftScore(int softLevel)
@Deprecated
public void setSoftScore(int softLevel,
BigDecimal softScore)
public void addHardConstraintMatch(org.kie.api.runtime.rule.RuleContext kcontext,
int hardLevel,
BigDecimal weight)
public void addSoftConstraintMatch(org.kie.api.runtime.rule.RuleContext kcontext,
int softLevel,
BigDecimal weight)
public Score extractScore()
ScoreHolderScore, calculated by the KieSession for DroolsScoreDirector.
Should not be called directly, use ScoreDirector.calculateScore() instead.
Score of the working Solution
|
OptaPlanner distribution 6.2.0.Final | |||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||