Class Indictment
- java.lang.Object
-
- org.optaplanner.core.api.score.constraint.Indictment
-
- All Implemented Interfaces:
Serializable
,Comparable<Indictment>
public final class Indictment extends Object implements Serializable, Comparable<Indictment>
Explains theScore
of aPlanningSolution
, from the opposite side thanConstraintMatchTotal
. Retrievable fromScoreDirector.getIndictmentMap()
.- See Also:
- Serialized Form
-
-
Constructor Summary
Constructors Constructor Description Indictment(Object justification, Score zeroScore)
-
Method Summary
All Methods Instance Methods Concrete Methods Deprecated Methods Modifier and Type Method Description void
addConstraintMatch(ConstraintMatch constraintMatch)
int
compareTo(Indictment other)
boolean
equals(Object o)
int
getConstraintMatchCount()
Set<ConstraintMatch>
getConstraintMatchSet()
Object
getJustification()
Score
getScore()
Sum of thegetConstraintMatchSet()
'sConstraintMatch.getScore()
.Score
getScoreTotal()
Deprecated.in favor ofgetScore()
int
hashCode()
void
removeConstraintMatch(ConstraintMatch constraintMatch)
String
toString()
-
-
-
Method Detail
-
getJustification
public Object getJustification()
- Returns:
- never null
-
getConstraintMatchSet
public Set<ConstraintMatch> getConstraintMatchSet()
- Returns:
- never null
-
getConstraintMatchCount
public int getConstraintMatchCount()
- Returns:
>= 0
-
getScore
public Score getScore()
Sum of thegetConstraintMatchSet()
'sConstraintMatch.getScore()
.- Returns:
- never null
-
getScoreTotal
@Deprecated public Score getScoreTotal()
Deprecated.in favor ofgetScore()
- Returns:
- never null
-
addConstraintMatch
public void addConstraintMatch(ConstraintMatch constraintMatch)
-
removeConstraintMatch
public void removeConstraintMatch(ConstraintMatch constraintMatch)
-
compareTo
public int compareTo(Indictment other)
- Specified by:
compareTo
in interfaceComparable<Indictment>
-
-