Package org.optaplanner.core.api.score
Class AbstractBendableScore<Score_ extends AbstractBendableScore<Score_>>
java.lang.Object
org.optaplanner.core.api.score.AbstractScore<Score_>
org.optaplanner.core.api.score.AbstractBendableScore<Score_>
- All Implemented Interfaces:
Serializable
,Comparable<Score_>
,IBendableScore<Score_>
,Score<Score_>
@Deprecated(forRemoval=true)
public abstract class AbstractBendableScore<Score_ extends AbstractBendableScore<Score_>>
extends AbstractScore<Score_>
implements IBendableScore<Score_>
Deprecated, for removal: This API element is subject to removal in a future version.
Abstract superclass for bendable
Score
types.
Subclasses must be immutable.
- See Also:
-
Field Summary
Modifier and TypeFieldDescriptionprotected static final String
Deprecated, for removal: This API element is subject to removal in a future version.protected static final String[]
Deprecated, for removal: This API element is subject to removal in a future version.protected static final String
Deprecated, for removal: This API element is subject to removal in a future version.Fields inherited from class org.optaplanner.core.api.score.AbstractScore
INIT_LABEL, initScore
-
Constructor Summary
ModifierConstructorDescriptionprotected
AbstractBendableScore
(int initScore) Deprecated, for removal: This API element is subject to removal in a future version. -
Method Summary
Modifier and TypeMethodDescriptionprotected String
buildBendableShortString
(Predicate<Number> notZero) Deprecated, for removal: This API element is subject to removal in a future version.protected static String[][]
parseBendableScoreTokens
(Class<? extends AbstractBendableScore<?>> scoreClass, String scoreString) Deprecated, for removal: This API element is subject to removal in a future version.Methods inherited from class org.optaplanner.core.api.score.AbstractScore
buildScorePattern, buildShortString, getInitPrefix, initScore, parseInitScore, parseLevelAsBigDecimal, parseLevelAsInt, parseLevelAsLong, parseScoreTokens
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
Methods inherited from interface java.lang.Comparable
compareTo
Methods inherited from interface org.optaplanner.core.api.score.IBendableScore
getHardLevelsSize, getLevelsSize, getSoftLevelsSize, hardLevelsSize, levelsSize, softLevelsSize
Methods inherited from interface org.optaplanner.core.api.score.Score
abs, add, divide, getInitScore, initScore, isFeasible, isSolutionInitialized, isZero, multiply, negate, power, subtract, toLevelDoubles, toLevelNumbers, toShortString, withInitScore, zero
-
Field Details
-
HARD_LABEL
Deprecated, for removal: This API element is subject to removal in a future version.- See Also:
-
SOFT_LABEL
Deprecated, for removal: This API element is subject to removal in a future version.- See Also:
-
LEVEL_SUFFIXES
Deprecated, for removal: This API element is subject to removal in a future version.
-
-
Constructor Details
-
AbstractBendableScore
protected AbstractBendableScore(int initScore) Deprecated, for removal: This API element is subject to removal in a future version.- Parameters:
initScore
- seeScore.initScore()
-
-
Method Details
-
parseBendableScoreTokens
protected static String[][] parseBendableScoreTokens(Class<? extends AbstractBendableScore<?>> scoreClass, String scoreString) Deprecated, for removal: This API element is subject to removal in a future version. -
buildBendableShortString
Deprecated, for removal: This API element is subject to removal in a future version.
-
IBendableScore
instead.