|
||||||||||
| 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 | |
|---|---|
ScoreHolder |
buildScoreHolder()
TODO JBRULES-2238 remove when the rule that sums the final score can be written as a single rule and ScoreHolder 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. |
| 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
ScoreHolder buildScoreHolder()
ScoreHolder is dead
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||