|
||||||||||
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 scores and what the perfect maximum/minimum Score is.
AbstractScoreDefinition
,
HardAndSoftScoreDefinition
Method Summary | |
---|---|
ScoreCalculator |
buildScoreCalculator()
TODO remove when the rule that sums the final score can be written as a single rule and ScoreCalculator is dead |
double |
calculateTimeGradient(S startScore,
S endScore,
S score)
See explanation in Termination.calculateSolverTimeGradient(DefaultSolverScope) . |
S |
getPerfectMaximumScore()
The perfect maximum score is the score of which there is no better in any problem instance. |
S |
getPerfectMinimumScore()
The perfect minimum score is the score of which there is no worser in any problem instance. |
Score |
parseScore(String scoreString)
Parses the String and returns a Score. |
Double |
translateScoreToGraphValue(S score)
|
Method Detail |
---|
S getPerfectMaximumScore()
S getPerfectMinimumScore()
Score parseScore(String scoreString)
scoreString
- never null
double calculateTimeGradient(S startScore, S endScore, S score)
Termination.calculateSolverTimeGradient(DefaultSolverScope)
.
startScore
- never nullendScore
- never nullscore
- never null
Double translateScoreToGraphValue(S score)
score
- never null
ScoreCalculator buildScoreCalculator()
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |