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, toString
public int getLevelsSize()
ScoreDefinition
Score.toLevelNumbers()
for every Score
of this definition.public Class<SimpleLongScore> getScoreClass()
ScoreDefinition
public SimpleLongScore parseScore(String scoreString)
ScoreDefinition
scoreString
- never nullScoreDefinition.formatScore(Score)
public SimpleLongScoreHolder buildScoreHolder(boolean constraintMatchEnabled)
ScoreDefinition
DroolsScoreDirector
.constraintMatchEnabled
- true if ScoreHolder.isConstraintMatchEnabled()
should be truepublic SimpleLongScore buildOptimisticBound(InitializingScoreTrend initializingScoreTrend, SimpleLongScore score)
ScoreDefinition
Score
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)
ScoreDefinition
Score
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.