public abstract class AbstractBendableScoreDefinition<S extends FeasibilityScore<S>> extends AbstractFeasibilityScoreDefinition<S>
Modifier and Type | Field and Description |
---|---|
protected int |
hardLevelsSize |
protected int |
softLevelsSize |
Constructor and Description |
---|
AbstractBendableScoreDefinition(int hardLevelsSize,
int softLevelsSize) |
Modifier and Type | Method and Description |
---|---|
protected static String[] |
generateLevelLabels(int hardLevelsSize,
int softLevelsSize) |
int |
getFeasibleLevelsSize()
Returns the number of levels of
Score.toLevelNumbers() . |
int |
getHardLevelsSize() |
int |
getLevelsSize()
Returns the length of
Score.toLevelNumbers() for every Score of this definition. |
int |
getSoftLevelsSize() |
formatScore, getInitLabel, getLevelLabels, toString
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
buildOptimisticBound, buildPessimisticBound, buildScoreHolder, buildScoreInliner, formatScore, fromLevelNumbers, getInitLabel, getLevelLabels, getScoreClass, getZeroScore, isNegativeOrZero, isPositiveOrZero, parseScore
protected final int hardLevelsSize
protected final int softLevelsSize
public AbstractBendableScoreDefinition(int hardLevelsSize, int softLevelsSize)
protected static String[] generateLevelLabels(int hardLevelsSize, int softLevelsSize)
public int getHardLevelsSize()
public int getSoftLevelsSize()
public int getLevelsSize()
ScoreDefinition
Score.toLevelNumbers()
for every Score
of this definition.
For example: returns 2 on HardSoftScoreDefinition
.getLevelsSize
in interface ScoreDefinition<S extends FeasibilityScore<S>>
getLevelsSize
in class AbstractScoreDefinition<S extends FeasibilityScore<S>>
public int getFeasibleLevelsSize()
FeasibilityScoreDefinition
Score.toLevelNumbers()
.
that are used to determine FeasibilityScore.isFeasible()
.ScoreDefinition.getLevelsSize()
Copyright © 2006–2020 JBoss by Red Hat. All rights reserved.