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 SummaryConstructors Constructor Description DefaultConstraintMatchTotal(String constraintPackage, String constraintName, Score_ zeroScore)DefaultConstraintMatchTotal(String constraintPackage, String constraintName, Score_ constraintWeight, Score_ zeroScore)
 - 
Method SummaryAll 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.Objectclone, finalize, getClass, notify, notifyAll, wait, wait, wait
 - 
Methods inherited from interface org.optaplanner.core.api.score.constraint.ConstraintMatchTotalgetConstraintMatchCount
 
- 
 
- 
- 
- 
Method Detail- 
getConstraintPackagepublic String getConstraintPackage() - Specified by:
- getConstraintPackagein interface- ConstraintMatchTotal<Score_ extends Score<Score_>>
- Returns:
- never null
 
 - 
getConstraintNamepublic String getConstraintName() - Specified by:
- getConstraintNamein interface- ConstraintMatchTotal<Score_ extends Score<Score_>>
- Returns:
- never null
 
 - 
getConstraintWeightpublic 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 interface- ConstraintMatchTotal<Score_ extends Score<Score_>>
- Returns:
- null if ConstraintWeightisn't used for this constraint
 
 - 
getConstraintMatchSetpublic Set<ConstraintMatch<Score_>> getConstraintMatchSet() - Specified by:
- getConstraintMatchSetin interface- ConstraintMatchTotal<Score_ extends Score<Score_>>
- Returns:
- never null
 
 - 
getScorepublic Score_ getScore() Description copied from interface:ConstraintMatchTotal- Specified by:
- getScorein interface- ConstraintMatchTotal<Score_ extends Score<Score_>>
- Returns:
- never null
 
 - 
addConstraintMatchpublic ConstraintMatch<Score_> addConstraintMatch(List<Object> justificationList, Score_ score) 
 - 
removeConstraintMatchpublic void removeConstraintMatch(ConstraintMatch<Score_> constraintMatch) 
 - 
getConstraintIdpublic String getConstraintId() Description copied from interface:ConstraintMatchTotalTo create a constraintId, useConstraintMatchTotal.composeConstraintId(String, String).- Specified by:
- getConstraintIdin interface- ConstraintMatchTotal<Score_ extends Score<Score_>>
- Returns:
- never null
 
 - 
compareTopublic int compareTo(DefaultConstraintMatchTotal<Score_> other) - Specified by:
- compareToin interface- Comparable<Score_ extends Score<Score_>>
 
 
- 
 
-