Interface IBendableScore<Score_ extends IBendableScore<Score_>>
-
- Type Parameters:
Score_- the actual score type to allow addition, subtraction and other arithmetic
- All Superinterfaces:
Comparable<Score_>,Score<Score_>,Serializable
- All Known Implementing Classes:
AbstractBendableScore,BendableBigDecimalScore,BendableLongScore,BendableScore
public interface IBendableScore<Score_ extends IBendableScore<Score_>> extends Score<Score_>, Serializable
-
-
Method Summary
All Methods Instance Methods Abstract Methods Default Methods Deprecated Methods Modifier and Type Method Description default intgetHardLevelsSize()Deprecated, for removal: This API element is subject to removal in a future version.UsehardLevelsSize()instead.default intgetLevelsSize()Deprecated, for removal: This API element is subject to removal in a future version.UselevelsSize()instead.default intgetSoftLevelsSize()Deprecated, for removal: This API element is subject to removal in a future version.UsesoftLevelsSize()instead.inthardLevelsSize()The sum of this andsoftLevelsSize()equalslevelsSize().default intlevelsSize()intsoftLevelsSize()The sum ofhardLevelsSize()and this equalslevelsSize().-
Methods inherited from interface java.lang.Comparable
compareTo
-
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
-
-
-
-
Method Detail
-
hardLevelsSize
int hardLevelsSize()
The sum of this andsoftLevelsSize()equalslevelsSize().- Returns:
>= 0and<levelsSize()
-
getHardLevelsSize
@Deprecated(forRemoval=true) default int getHardLevelsSize()
Deprecated, for removal: This API element is subject to removal in a future version.UsehardLevelsSize()instead.As defined byhardLevelsSize().
-
softLevelsSize
int softLevelsSize()
The sum ofhardLevelsSize()and this equalslevelsSize().- Returns:
>= 0and<levelsSize()
-
getSoftLevelsSize
@Deprecated(forRemoval=true) default int getSoftLevelsSize()
Deprecated, for removal: This API element is subject to removal in a future version.UsesoftLevelsSize()instead.As defined bysoftLevelsSize().
-
levelsSize
default int levelsSize()
- Returns:
hardLevelsSize()+softLevelsSize()
-
getLevelsSize
@Deprecated(forRemoval=true) default int getLevelsSize()
Deprecated, for removal: This API element is subject to removal in a future version.UselevelsSize()instead.As defined bylevelsSize().
-
-