org.optaplanner.core.impl.score.definition
public abstract class AbstractScoreDefinition<S extends Score> extends Object implements ScoreDefinition<S>, Serializable
ScoreDefinition
.Constructor and Description |
---|
AbstractScoreDefinition() |
Modifier and Type | Method and Description |
---|---|
String |
formatScore(Score score)
|
S |
getPerfectMaximumScore()
|
S |
getPerfectMinimumScore()
|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
buildScoreHolder, calculateTimeGradient, getScoreClass, parseScore
public S getPerfectMaximumScore()
ScoreDefinition
Score
is the Score
of which there is no better in any problem instance.
This doesn't mean that the current problem instance, or any problem instance for that matter,
could ever attain that Score
.
For example, most cases have a perfect maximum Score
of zero, as most use cases only have negative
constraints.getPerfectMaximumScore
in interface ScoreDefinition<S extends Score>
public S getPerfectMinimumScore()
ScoreDefinition
Score
is the Score
of which there is no worse in any problem instance.
This doesn't mean that the current problem instance, or any problem instance for that matter,
could ever attain such a bad Score
.
For example, most cases have a perfect minimum Score
of negative infinity.getPerfectMinimumScore
in interface ScoreDefinition<S extends Score>
public String formatScore(Score score)
ScoreDefinition
formatScore
in interface ScoreDefinition<S extends Score>
score
- never nullScoreDefinition.parseScore(String)
Copyright © 2006-2013 JBoss by Red Hat. All Rights Reserved.