Class AbstractBendableScore<Score_ extends AbstractBendableScore<Score_>>
- java.lang.Object
-
- ai.timefold.solver.core.api.score.AbstractScore<Score_>
-
- ai.timefold.solver.core.api.score.AbstractBendableScore<Score_>
-
- All Implemented Interfaces:
IBendableScore<Score_>,Score<Score_>,Serializable,Comparable<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.ImplementIBendableScoreinstead.Abstract superclass for bendableScoretypes.Subclasses must be immutable.
- See Also:
- Serialized Form
-
-
Field Summary
Fields Modifier and Type Field Description protected static StringHARD_LABELDeprecated, for removal: This API element is subject to removal in a future version.protected static String[]LEVEL_SUFFIXESDeprecated, for removal: This API element is subject to removal in a future version.protected static StringSOFT_LABELDeprecated, for removal: This API element is subject to removal in a future version.-
Fields inherited from class ai.timefold.solver.core.api.score.AbstractScore
INIT_LABEL, initScore
-
-
Constructor Summary
Constructors Modifier Constructor Description protectedAbstractBendableScore(int initScore)Deprecated, for removal: This API element is subject to removal in a future version.
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Deprecated Methods Modifier and Type Method Description protected StringbuildBendableShortString(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 ai.timefold.solver.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 ai.timefold.solver.core.api.score.IBendableScore
getHardLevelsSize, getLevelsSize, getSoftLevelsSize, hardLevelsSize, levelsSize, softLevelsSize
-
Methods inherited from interface ai.timefold.solver.core.api.score.Score
abs, add, divide, getInitScore, initScore, isFeasible, isSolutionInitialized, isZero, multiply, negate, power, subtract, toLevelDoubles, toLevelNumbers, toShortString, withInitScore, zero
-
-
-
-
Field Detail
-
HARD_LABEL
protected static final String HARD_LABEL
Deprecated, for removal: This API element is subject to removal in a future version.- See Also:
- Constant Field Values
-
SOFT_LABEL
protected static final String SOFT_LABEL
Deprecated, for removal: This API element is subject to removal in a future version.- See Also:
- Constant Field Values
-
LEVEL_SUFFIXES
protected static final String[] LEVEL_SUFFIXES
Deprecated, for removal: This API element is subject to removal in a future version.
-
-
Constructor Detail
-
AbstractBendableScore
protected AbstractBendableScore(int initScore)
Deprecated, for removal: This API element is subject to removal in a future version.- Parameters:
initScore- seeScore.initScore()
-
-
Method Detail
-
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.
-
-