org.optaplanner.core.impl.score.definition

## Interface FeasibilityScoreDefinition<S extends FeasibilityScore<S>>

- All Superinterfaces:
    ScoreDefinition<S>
  All Known Implementing Classes:
    AbstractBendableScoreDefinition, AbstractFeasibilityScoreDefinition, BendableBigDecimalScoreDefinition, BendableLongScoreDefinition, BendableScoreDefinition, HardMediumSoftBigDecimalScoreDefinition, HardMediumSoftLongScoreDefinition, HardMediumSoftScoreDefinition, HardSoftBigDecimalScoreDefinition, HardSoftDoubleScoreDefinition, HardSoftLongScoreDefinition, HardSoftScoreDefinition

      public interface FeasibilityScoreDefinition<S extends FeasibilityScore<S>>
      extends ScoreDefinition<S>

- - ### Method Summary

    All Methods Instance Methods Abstract Methods
    Modifier and Type | Method and Description
    --- | ---
    `int` | `getFeasibleLevelsSize()` Returns the number of levels of `Score.toLevelNumbers()`.

    - ### Methods inherited from interface org.optaplanner.core.impl.score.definition.ScoreDefinition

      `buildOptimisticBound, buildPessimisticBound, buildScoreHolder, buildScoreInliner, formatScore, fromLevelNumbers, getInitLabel, getLevelLabels, getLevelsSize, getOneSoftestScore, getScoreClass, getZeroScore, isNegativeOrZero, isPositiveOrZero, parseScore`

- - ### Method Detail

    - #### getFeasibleLevelsSize

          int getFeasibleLevelsSize()

      Returns the number of levels of `Score.toLevelNumbers()`. that are used to determine `FeasibilityScore.isFeasible()`.
      Returns:
        at least 0, at most `ScoreDefinition.getLevelsSize()`

Copyright © 2006–2020 JBoss by Red Hat. All rights reserved.