org.optaplanner.core.impl.score.definition
Class AbstractScoreDefinition<S extends Score>
java.lang.Object
org.optaplanner.core.impl.score.definition.AbstractScoreDefinition<S>
- All Implemented Interfaces:
- Serializable, ScoreDefinition<S>
- Direct Known Subclasses:
- AbstractFeasibilityScoreDefinition, SimpleBigDecimalScoreDefinition, SimpleDoubleScoreDefinition, SimpleLongScoreDefinition, SimpleScoreDefinition
public abstract class AbstractScoreDefinition<S extends Score>
- extends Object
- implements ScoreDefinition<S>, Serializable
Abstract superclass for ScoreDefinition
.
- See Also:
ScoreDefinition
,
HardSoftScoreDefinition
,
Serialized Form
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
AbstractScoreDefinition
public AbstractScoreDefinition()
formatScore
public String formatScore(S score)
- Description copied from interface:
ScoreDefinition
- Returns a
String
representation of the Score
.
- Specified by:
formatScore
in interface ScoreDefinition<S extends Score>
- Parameters:
score
- never null
- Returns:
- never null
- See Also:
ScoreDefinition.parseScore(String)
Copyright © 2006-2014 JBoss by Red Hat. All Rights Reserved.