public final class ConstraintMatchTotal extends Object implements Serializable, Comparable<ConstraintMatchTotal>
ScoreDirector.getConstraintMatchTotals().| Constructor and Description |
|---|
ConstraintMatchTotal(String constraintPackage,
String constraintName,
Score zeroScore) |
ConstraintMatchTotal(String constraintPackage,
String constraintName,
Score constraintWeight,
Score zeroScore) |
| Modifier and Type | Method and Description |
|---|---|
ConstraintMatch |
addConstraintMatch(List<Object> justificationList,
Score score) |
int |
compareTo(ConstraintMatchTotal other) |
boolean |
equals(Object o) |
String |
getConstraintId() |
int |
getConstraintMatchCount() |
Set<ConstraintMatch> |
getConstraintMatchSet() |
String |
getConstraintName() |
String |
getConstraintPackage() |
Score |
getConstraintWeight()
The value of the
ConstraintWeight annotated member of the ConstraintConfiguration. |
Score |
getScore()
Sum of the
getConstraintMatchSet()'s ConstraintMatch.getScore(). |
Score |
getScoreTotal()
Deprecated.
in favor of
getScore() |
int |
hashCode() |
void |
removeConstraintMatch(ConstraintMatch constraintMatch) |
String |
toString() |
public ConstraintMatchTotal(String constraintPackage, String constraintName, Score zeroScore)
constraintPackage - never nullconstraintName - never nullzeroScore - never nullpublic ConstraintMatchTotal(String constraintPackage, String constraintName, Score constraintWeight, Score zeroScore)
constraintPackage - never nullconstraintName - never nullconstraintWeight - null if ConstraintWeight isn't used for this constraintzeroScore - never nullpublic String getConstraintPackage()
public String getConstraintName()
public Score getConstraintWeight()
ConstraintWeight annotated member of the ConstraintConfiguration.
It's independent to the state of the planning variables.
Do not confuse with getScore().ConstraintWeight isn't used for this constraintpublic Set<ConstraintMatch> getConstraintMatchSet()
public int getConstraintMatchCount()
>= 0public Score getScore()
getConstraintMatchSet()'s ConstraintMatch.getScore().@Deprecated public Score getScoreTotal()
getScore()public ConstraintMatch addConstraintMatch(List<Object> justificationList, Score score)
public void removeConstraintMatch(ConstraintMatch constraintMatch)
public String getConstraintId()
public int compareTo(ConstraintMatchTotal other)
compareTo in interface Comparable<ConstraintMatchTotal>Copyright © 2006–2019 JBoss by Red Hat. All rights reserved.