Class DefaultConstraintMatchTotal<Score_ extends Score<Score_>>
- java.lang.Object
 - 
- org.optaplanner.core.impl.score.constraint.DefaultConstraintMatchTotal<Score_>
 
 
- 
- All Implemented Interfaces:
 Comparable<DefaultConstraintMatchTotal<Score_>>,ConstraintMatchTotal<Score_>
public final class DefaultConstraintMatchTotal<Score_ extends Score<Score_>> extends Object implements ConstraintMatchTotal<Score_>, Comparable<DefaultConstraintMatchTotal<Score_>>
 
- 
- 
Constructor Summary
Constructors Constructor Description DefaultConstraintMatchTotal(String constraintPackage, String constraintName)DefaultConstraintMatchTotal(String constraintPackage, String constraintName, Score_ constraintWeight) 
- 
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description ConstraintMatch<Score_>addConstraintMatch(List<Object> justificationList, Score_ score)intcompareTo(DefaultConstraintMatchTotal<Score_> other)booleanequals(Object o)StringgetConstraintId()To create a constraintId, useConstraintMatchTotal.composeConstraintId(String, String).Set<ConstraintMatch<Score_>>getConstraintMatchSet()StringgetConstraintName()StringgetConstraintPackage()Score_getConstraintWeight()The value of theConstraintWeightannotated member of theConstraintConfiguration.Score_getScore()inthashCode()voidremoveConstraintMatch(ConstraintMatch<Score_> constraintMatch)StringtoString()- 
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, wait 
- 
Methods inherited from interface org.optaplanner.core.api.score.constraint.ConstraintMatchTotal
getConstraintMatchCount 
 - 
 
 - 
 
- 
- 
Method Detail
- 
getConstraintPackage
public String getConstraintPackage()
- Specified by:
 getConstraintPackagein interfaceConstraintMatchTotal<Score_ extends Score<Score_>>- Returns:
 - never null
 
 
- 
getConstraintName
public String getConstraintName()
- Specified by:
 getConstraintNamein interfaceConstraintMatchTotal<Score_ extends Score<Score_>>- Returns:
 - never null
 
 
- 
getConstraintWeight
public Score_ getConstraintWeight()
Description copied from interface:ConstraintMatchTotalThe value of theConstraintWeightannotated member of theConstraintConfiguration. It's independent to the state of theplanning variables. Do not confuse withConstraintMatchTotal.getScore().- Specified by:
 getConstraintWeightin interfaceConstraintMatchTotal<Score_ extends Score<Score_>>- Returns:
 - null if 
ConstraintWeightisn't used for this constraint 
 
- 
getConstraintMatchSet
public Set<ConstraintMatch<Score_>> getConstraintMatchSet()
- Specified by:
 getConstraintMatchSetin interfaceConstraintMatchTotal<Score_ extends Score<Score_>>- Returns:
 - never null
 
 
- 
getScore
public Score_ getScore()
Description copied from interface:ConstraintMatchTotal- Specified by:
 getScorein interfaceConstraintMatchTotal<Score_ extends Score<Score_>>- Returns:
 - never null
 
 
- 
addConstraintMatch
public ConstraintMatch<Score_> addConstraintMatch(List<Object> justificationList, Score_ score)
 
- 
removeConstraintMatch
public void removeConstraintMatch(ConstraintMatch<Score_> constraintMatch)
 
- 
getConstraintId
public String getConstraintId()
Description copied from interface:ConstraintMatchTotalTo create a constraintId, useConstraintMatchTotal.composeConstraintId(String, String).- Specified by:
 getConstraintIdin interfaceConstraintMatchTotal<Score_ extends Score<Score_>>- Returns:
 - never null
 
 
- 
compareTo
public int compareTo(DefaultConstraintMatchTotal<Score_> other)
- Specified by:
 compareToin interfaceComparable<Score_ extends Score<Score_>>
 
 - 
 
 -