public interface ScoreDefinition<S extends Score>
| Modifier and Type | Method and Description |
|---|---|
S |
buildOptimisticBound(InitializingScoreTrend initializingScoreTrend,
S score)
|
S |
buildPessimisticBound(InitializingScoreTrend initializingScoreTrend,
S score)
|
ScoreHolder |
buildScoreHolder(boolean constraintMatchEnabled)
Used by
DroolsScoreDirector. |
String |
formatScore(S score)
|
int |
getLevelsSize()
Returns the length of
Score.toLevelNumbers() for every Score of this definition. |
Class<S> |
getScoreClass()
|
S |
parseScore(String scoreString)
|
int getLevelsSize()
Score.toLevelNumbers() for every Score of this definition.String formatScore(S score)
score - never nullparseScore(String)S parseScore(String scoreString)
scoreString - never nullformatScore(Score)ScoreHolder buildScoreHolder(boolean constraintMatchEnabled)
DroolsScoreDirector.constraintMatchEnabled - true if ScoreHolder.isConstraintMatchEnabled() should be trueS buildOptimisticBound(InitializingScoreTrend initializingScoreTrend, S score)
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 getLevelsSize().score - never nullS buildPessimisticBound(InitializingScoreTrend initializingScoreTrend, S score)
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 getLevelsSize().score - never nullCopyright © 2006–2015 JBoss by Red Hat. All rights reserved.