|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.drools.planner.core.score.definition.AbstractScoreDefinition<SimpleScore>
org.drools.planner.core.score.buildin.simple.SimpleScoreDefinition
public class SimpleScoreDefinition
Constructor Summary | |
---|---|
SimpleScoreDefinition()
|
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(SimpleScore startScore,
SimpleScore endScore,
SimpleScore score)
See explanation in Termination.calculateSolverTimeGradient(DefaultSolverScope) . |
SimpleScore |
getPerfectMaximumScore()
The perfect maximum score is the score of which there is no better in any problem instance. |
SimpleScore |
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. |
void |
setPerfectMaximumScore(SimpleScore perfectMaximumScore)
|
void |
setPerfectMinimumScore(SimpleScore perfectMinimumScore)
|
Double |
translateScoreToGraphValue(SimpleScore score)
|
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public SimpleScoreDefinition()
Method Detail |
---|
public void setPerfectMaximumScore(SimpleScore perfectMaximumScore)
public void setPerfectMinimumScore(SimpleScore perfectMinimumScore)
public SimpleScore getPerfectMaximumScore()
ScoreDefinition
getPerfectMaximumScore
in interface ScoreDefinition<SimpleScore>
getPerfectMaximumScore
in class AbstractScoreDefinition<SimpleScore>
public SimpleScore getPerfectMinimumScore()
ScoreDefinition
getPerfectMinimumScore
in interface ScoreDefinition<SimpleScore>
getPerfectMinimumScore
in class AbstractScoreDefinition<SimpleScore>
public Score parseScore(String scoreString)
ScoreDefinition
scoreString
- never null
public double calculateTimeGradient(SimpleScore startScore, SimpleScore endScore, SimpleScore score)
ScoreDefinition
Termination.calculateSolverTimeGradient(DefaultSolverScope)
.
startScore
- never nullendScore
- never nullscore
- never null
public Double translateScoreToGraphValue(SimpleScore score)
score
- never null
public ScoreCalculator buildScoreCalculator()
ScoreDefinition
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |