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, getLevelLabels, toStringclone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, waitbuildOptimisticBound, buildPessimisticBound, buildScoreHolder, formatScore, fromLevelNumbers, getLevelLabels, getScoreClass, parseScoreprotected 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()
ScoreDefinitionScore.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()
FeasibilityScoreDefinitionScore.toLevelNumbers().
that are used to determine FeasibilityScore.isFeasible().ScoreDefinition.getLevelsSize()Copyright © 2006–2016 JBoss by Red Hat. All rights reserved.