Package org.optaplanner.core.api.score
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
Modifier and TypeMethodDescriptiondefault int
Deprecated, for removal: This API element is subject to removal in a future version.default int
Deprecated, for removal: This API element is subject to removal in a future version.UselevelsSize()
instead.default int
Deprecated, for removal: This API element is subject to removal in a future version.UsesoftLevelsSize()
instead.int
The sum of this andsoftLevelsSize()
equalslevelsSize()
.default int
int
The sum ofhardLevelsSize()
and this equalslevelsSize()
.Methods inherited from interface java.lang.Comparable
compareTo
Methods inherited from interface org.optaplanner.core.api.score.Score
abs, add, divide, getInitScore, initScore, isFeasible, isSolutionInitialized, isZero, multiply, negate, power, subtract, toLevelDoubles, toLevelNumbers, toShortString, withInitScore, zero
-
Method Details
-
hardLevelsSize
int hardLevelsSize()The sum of this andsoftLevelsSize()
equalslevelsSize()
.- Returns:
>= 0
and<
levelsSize()
-
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:
>= 0
and<
levelsSize()
-
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, for removal: This API element is subject to removal in a future version.UselevelsSize()
instead.As defined bylevelsSize()
.
-
hardLevelsSize()
instead.