|
OptaPlanner distribution 6.2.0.Beta3 | |||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.optaplanner.core.impl.score.definition.AbstractScoreDefinition<S>
org.optaplanner.core.impl.score.definition.AbstractFeasibilityScoreDefinition<BendableBigDecimalScore>
org.optaplanner.core.impl.score.buildin.bendablebigdecimal.BendableBigDecimalScoreDefinition
public class BendableBigDecimalScoreDefinition
| Constructor Summary | |
|---|---|
BendableBigDecimalScoreDefinition(int hardLevelsSize,
int softLevelsSize)
|
|
| Method Summary | |
|---|---|
BendableBigDecimalScore |
buildOptimisticBound(InitializingScoreTrend initializingScoreTrend,
BendableBigDecimalScore score)
Builds a Score which is equal or better than any other Score with more variables initialized
(while the already variables don't change). |
BendableBigDecimalScore |
buildPessimisticBound(InitializingScoreTrend initializingScoreTrend,
BendableBigDecimalScore score)
Builds a Score which is equal or worse than any other Score with more variables initialized
(while the already variables don't change). |
BendableBigDecimalScoreHolder |
buildScoreHolder(boolean constraintMatchEnabled)
Used by DroolsScoreDirector. |
BendableBigDecimalScore |
createScore(BigDecimal... scores)
|
int |
getFeasibleLevelsSize()
Returns the number of levels of Score.toLevelNumbers(). |
int |
getHardLevelsSize()
|
int |
getLevelsSize()
Returns the length of Score.toLevelNumbers() for every Score of this definition. |
Class<BendableBigDecimalScore> |
getScoreClass()
Returns the Class of the actual Score implementation |
int |
getSoftLevelsSize()
|
BendableBigDecimalScore |
parseScore(String scoreString)
Parses the String and returns a Score. |
| Methods inherited from class org.optaplanner.core.impl.score.definition.AbstractScoreDefinition |
|---|
formatScore, toString |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
| Methods inherited from interface org.optaplanner.core.impl.score.definition.ScoreDefinition |
|---|
formatScore |
| Constructor Detail |
|---|
public BendableBigDecimalScoreDefinition(int hardLevelsSize,
int softLevelsSize)
| Method Detail |
|---|
public int getHardLevelsSize()
public int getSoftLevelsSize()
public int getLevelsSize()
ScoreDefinitionScore.toLevelNumbers() for every Score of this definition.
public int getFeasibleLevelsSize()
FeasibilityScoreDefinitionScore.toLevelNumbers().
that are used to determine FeasibilityScore.isFeasible().
ScoreDefinition.getLevelsSize()public Class<BendableBigDecimalScore> getScoreClass()
ScoreDefinitionClass of the actual Score implementation
public BendableBigDecimalScore parseScore(String scoreString)
ScoreDefinitionString and returns a Score.
scoreString - never null
ScoreDefinition.formatScore(Score)public BendableBigDecimalScore createScore(BigDecimal... scores)
public BendableBigDecimalScoreHolder buildScoreHolder(boolean constraintMatchEnabled)
ScoreDefinitionDroolsScoreDirector.
constraintMatchEnabled - true if ScoreHolder.isConstraintMatchEnabled() should be true
public BendableBigDecimalScore buildOptimisticBound(InitializingScoreTrend initializingScoreTrend,
BendableBigDecimalScore score)
ScoreDefinitionScore which is equal or better than any other Score with more variables initialized
(while the already variables don't change).
initializingScoreTrend - never null, with InitializingScoreTrend.getLevelsSize()
equal to ScoreDefinition.getLevelsSize().score - never null
public BendableBigDecimalScore buildPessimisticBound(InitializingScoreTrend initializingScoreTrend,
BendableBigDecimalScore score)
ScoreDefinitionScore which is equal or worse than any other Score with more variables initialized
(while the already variables don't change).
initializingScoreTrend - never null, with InitializingScoreTrend.getLevelsSize()
equal to ScoreDefinition.getLevelsSize().score - never null
|
OptaPlanner distribution 6.2.0.Beta3 | |||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||