org.optaplanner.core.api.score.buildin.bendablebigdecimal
Class BendableBigDecimalScoreHolder
java.lang.Object
org.optaplanner.core.api.score.holder.AbstractScoreHolder
org.optaplanner.core.api.score.buildin.bendablebigdecimal.BendableBigDecimalScoreHolder
- All Implemented Interfaces:
- Serializable, ScoreHolder
public class BendableBigDecimalScoreHolder
- extends AbstractScoreHolder
- See Also:
BendableBigDecimalScore
,
Serialized Form
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
BendableBigDecimalScoreHolder
public BendableBigDecimalScoreHolder(boolean constraintMatchEnabled,
int hardLevelsSize,
int softLevelsSize)
getHardLevelsSize
public int getHardLevelsSize()
getHardScore
public BigDecimal getHardScore(int hardLevel)
setHardScore
@Deprecated
public void setHardScore(int hardLevel,
BigDecimal hardScore)
- Deprecated.
getSoftLevelsSize
public int getSoftLevelsSize()
getSoftScore
public BigDecimal getSoftScore(int softLevel)
setSoftScore
@Deprecated
public void setSoftScore(int softLevel,
BigDecimal softScore)
- Deprecated.
addHardConstraintMatch
public void addHardConstraintMatch(org.kie.api.runtime.rule.RuleContext kcontext,
int hardLevel,
BigDecimal weight)
addSoftConstraintMatch
public void addSoftConstraintMatch(org.kie.api.runtime.rule.RuleContext kcontext,
int softLevel,
BigDecimal weight)
extractScore
public Score extractScore()
- Description copied from interface:
ScoreHolder
- Extracts the
Score
, calculated by the KieSession
for DroolsScoreDirector
.
Should not be called directly, use ScoreDirector.calculateScore()
instead.
- Returns:
- never null, the
Score
of the working Solution
Copyright © 2006-2014 JBoss by Red Hat. All Rights Reserved.