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 intdefault 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().The effective value of constraint weight after applying optional overrides.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
ConstraintRef getConstraintRef()- Returns:
- never null
-
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
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().- Returns:
- never null
-
getConstraintMatchSet
Set<ConstraintMatch<Score_>> getConstraintMatchSet()- Returns:
- never null
-
getConstraintMatchCount
default int getConstraintMatchCount()- Returns:
>= 0
-
getScore
Score_ getScore()Sum of thegetConstraintMatchSet()'sConstraintMatch.getScore().- Returns:
- never null
-
getConstraintId
Deprecated, for removal: This API element is subject to removal in a future version.PrefergetConstraintRef().- Returns:
- never null
-
ConstraintRef.of(String, String).