Interface ConstraintMatchTotal<Score_ extends Score<Score_>>
- Type Parameters:
Score_- the actual score type
- All Known Implementing Classes:
DefaultConstraintMatchTotal
public interface ConstraintMatchTotal<Score_ extends Score<Score_>>
Explains the
Score of a PlanningSolution, from the opposite side than Indictment.
Retrievable from ScoreExplanation.getConstraintMatchTotalMap().
If possible, prefer using SolutionManager.analyze(Object) instead.
-
Method Summary
Modifier and TypeMethodDescriptionstatic StringcomposeConstraintId(String constraintPackage, String constraintName) Deprecated, for removal: This API element is subject to removal in a future version.default StringDeprecated, for removal: This API element is subject to removal in a future version.PrefergetConstraintRef().default int@NonNull Set<ConstraintMatch<Score_>>default StringDeprecated, for removal: This API element is subject to removal in a future version.PrefergetConstraintRef().default StringDeprecated, for removal: This API element is subject to removal in a future version.PrefergetConstraintRef().@NonNull ConstraintRef@NonNull Score_The effective value of constraint weight after applying optional overrides.@NonNull Score_getScore()Sum of thegetConstraintMatchSet()'sConstraintMatch.getScore().
-
Method Details
-
composeConstraintId
@Deprecated(forRemoval=true, since="1.4.0") static String composeConstraintId(String constraintPackage, String constraintName) Deprecated, for removal: This API element is subject to removal in a future version.PreferConstraintRef.of(String, String).- Parameters:
constraintPackage- never nullconstraintName- never null- Returns:
- never null
-
getConstraintRef
@NonNull ConstraintRef getConstraintRef() -
getConstraintPackage
Deprecated, for removal: This API element is subject to removal in a future version.PrefergetConstraintRef().- Returns:
- never null
-
getConstraintName
Deprecated, for removal: This API element is subject to removal in a future version.PrefergetConstraintRef().- Returns:
- never null
-
getConstraintWeight
@NonNull Score_ getConstraintWeight()The effective value of constraint weight after applying optional overrides. It is independent to the state of theplanning variables. Do not confuse withgetScore(). -
getConstraintMatchSet
@NonNull Set<ConstraintMatch<Score_>> getConstraintMatchSet() -
getConstraintMatchCount
default int getConstraintMatchCount()- Returns:
>= 0
-
getScore
@NonNull Score_ getScore()Sum of thegetConstraintMatchSet()'sConstraintMatch.getScore(). -
getConstraintId
Deprecated, for removal: This API element is subject to removal in a future version.PrefergetConstraintRef().- Returns:
- never null
-
ConstraintRef.of(String, String).