|
OptaPlanner core 6.1.0.Final | |||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
public interface ScoreDefinition<S extends Score>
A ScoreDefinition knows how to compare Score
s and what the perfect maximum/minimum Score
is.
AbstractScoreDefinition
,
HardSoftScoreDefinition
Method Summary | |
---|---|
S |
buildOptimisticBound(InitializingScoreTrend initializingScoreTrend,
S score)
Builds a Score which is equal or better than any other Score with more variables initialized
(while the already variables don't change). |
S |
buildPessimisticBound(InitializingScoreTrend initializingScoreTrend,
S score)
Builds a Score which is equal or worse than any other Score with more variables initialized
(while the already variables don't change). |
ScoreHolder |
buildScoreHolder(boolean constraintMatchEnabled)
Used by DroolsScoreDirector . |
String |
formatScore(S score)
Returns a String representation of the Score . |
int |
getLevelsSize()
Returns the length of Score.toLevelNumbers() for every Score of this definition. |
Class<S> |
getScoreClass()
Returns the Class of the actual Score implementation |
S |
parseScore(String scoreString)
Parses the String and returns a Score . |
Method Detail |
---|
int getLevelsSize()
Score.toLevelNumbers()
for every Score
of this definition.
Class<S> getScoreClass()
Class
of the actual Score
implementation
String formatScore(S score)
String
representation of the Score
.
score
- never null
parseScore(String)
S parseScore(String scoreString)
String
and returns a Score
.
scoreString
- never null
formatScore(Score)
ScoreHolder buildScoreHolder(boolean constraintMatchEnabled)
DroolsScoreDirector
.
constraintMatchEnabled
- true if ScoreHolder.isConstraintMatchEnabled()
should be true
S 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 null
S 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 null
|
OptaPlanner core 6.1.0.Final | |||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |