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()
.-
Method Summary
Modifier and TypeMethodDescriptionstatic String
composeConstraintId
(String constraintPackage, String constraintName) To create a constraintId, usecomposeConstraintId(String, String)
.default int
The value of theConstraintWeight
annotated member of theConstraintConfiguration
.getScore()
Sum of thegetConstraintMatchSet()
'sConstraintMatch.getScore()
.
-
Method Details
-
composeConstraintId
- Parameters:
constraintPackage
- never nullconstraintName
- never null- Returns:
- never null
-
getConstraintPackage
String getConstraintPackage()- Returns:
- never null
-
getConstraintName
String getConstraintName()- Returns:
- never null
-
getConstraintWeight
Score_ getConstraintWeight()The value of theConstraintWeight
annotated member of theConstraintConfiguration
. It's independent to the state of theplanning variables
. Do not confuse withgetScore()
.- Returns:
- null if
ConstraintWeight
isn't used for this constraint
-
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
String getConstraintId()To create a constraintId, usecomposeConstraintId(String, String)
.- Returns:
- never null
-