public class SimpleLongScoreDefinition extends AbstractScoreDefinition<SimpleLongScore>
| Constructor and Description |
|---|
SimpleLongScoreDefinition() |
| Modifier and Type | Method and Description |
|---|---|
SimpleLongScore |
buildOptimisticBound(InitializingScoreTrend initializingScoreTrend,
SimpleLongScore score)
|
SimpleLongScore |
buildPessimisticBound(InitializingScoreTrend initializingScoreTrend,
SimpleLongScore score)
|
SimpleLongScoreHolder |
buildScoreHolder(boolean constraintMatchEnabled)
Used by
DroolsScoreDirector. |
int |
getLevelsSize()
Returns the length of
Score.toLevelNumbers() for every Score of this definition. |
Class<SimpleLongScore> |
getScoreClass()
|
SimpleLongScore |
parseScore(String scoreString)
|
formatScore, toStringpublic int getLevelsSize()
ScoreDefinitionScore.toLevelNumbers() for every Score of this definition.public Class<SimpleLongScore> getScoreClass()
ScoreDefinitionpublic SimpleLongScore parseScore(String scoreString)
ScoreDefinitionscoreString - never nullScoreDefinition.formatScore(Score)public SimpleLongScoreHolder buildScoreHolder(boolean constraintMatchEnabled)
ScoreDefinitionDroolsScoreDirector.constraintMatchEnabled - true if ScoreHolder.isConstraintMatchEnabled() should be truepublic SimpleLongScore buildOptimisticBound(InitializingScoreTrend initializingScoreTrend, SimpleLongScore 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 nullpublic SimpleLongScore buildPessimisticBound(InitializingScoreTrend initializingScoreTrend, SimpleLongScore 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 nullCopyright © 2006–2015 JBoss by Red Hat. All rights reserved.