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 theScoreof 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 voidaddConstraintMatch(ConstraintMatch constraintMatch)intcompareTo(Indictment other)booleanequals(Object o)intgetConstraintMatchCount()Set<ConstraintMatch>getConstraintMatchSet()ObjectgetJustification()ScoregetScore()Sum of thegetConstraintMatchSet()'sConstraintMatch.getScore().ScoregetScoreTotal()Deprecated.in favor ofgetScore()inthashCode()voidremoveConstraintMatch(ConstraintMatch constraintMatch)StringtoString()
-
-
-
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:
compareToin interfaceComparable<Indictment>
-
-