|
OptaPlanner core 6.1.0.Beta2 | |||||||||
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 . |
double |
calculateTimeGradient(S startScore,
S endScore,
S score)
See explanation in Termination.calculateSolverTimeGradient(DefaultSolverScope) . |
String |
formatScore(S score)
Returns a String representation of the Score . |
int |
getLevelCount()
|
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 getLevelCount()
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)
double calculateTimeGradient(S startScore, S endScore, S score)
Termination.calculateSolverTimeGradient(DefaultSolverScope)
.
startScore
- never nullendScore
- never nullscore
- never null
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.getLevelCount()
equal to getLevelCount()
.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.getLevelCount()
equal to getLevelCount()
.score
- never null
|
OptaPlanner core 6.1.0.Beta2 | |||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |