public abstract class AbstractBendableScore<S extends FeasibilityScore<S>> extends AbstractScore<S>
Score types.
Subclasses must be immutable.
BendableScore,
Serialized Form| Modifier and Type | Field and Description |
|---|---|
protected static String |
HARD_LABEL |
protected static String[] |
LEVEL_SUFFIXES |
protected static String |
SOFT_LABEL |
INIT_LABEL, initScore| Modifier | Constructor and Description |
|---|---|
protected |
AbstractBendableScore(int initScore) |
| Modifier and Type | Method and Description |
|---|---|
protected String |
buildBendableShortString(Predicate<Number> notZero) |
abstract int |
getHardLevelsSize()
The sum of this and
getSoftLevelsSize() equals getLevelsSize(). |
abstract int |
getLevelsSize() |
abstract int |
getSoftLevelsSize()
The sum of
getHardLevelsSize() and this equals getLevelsSize(). |
protected static String[][] |
parseBendableScoreTokens(Class<? extends Score> scoreClass,
String scoreString) |
assertNoInitScore, buildScorePattern, buildShortString, getInitPrefix, getInitScore, isSolutionInitialized, parseInitScore, parseLevelAsBigDecimal, parseLevelAsDouble, parseLevelAsInt, parseLevelAsLong, parseScoreTokensclone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitadd, divide, isCompatibleArithmeticArgument, multiply, negate, power, subtract, toInitializedScore, toLevelNumbers, toShortString, withInitScorecompareToprotected static final String HARD_LABEL
protected static final String SOFT_LABEL
protected static final String[] LEVEL_SUFFIXES
protected AbstractBendableScore(int initScore)
initScore - see Score.getInitScore()protected static String[][] parseBendableScoreTokens(Class<? extends Score> scoreClass, String scoreString)
public abstract int getHardLevelsSize()
getSoftLevelsSize() equals getLevelsSize().>= 0 and < getLevelsSize()public abstract int getSoftLevelsSize()
getHardLevelsSize() and this equals getLevelsSize().>= 0 and < getLevelsSize()public abstract int getLevelsSize()
getHardLevelsSize() + getSoftLevelsSize()Copyright © 2006–2018 JBoss by Red Hat. All rights reserved.