org.optaplanner.core.api.score.constraint
Class ConstraintMatchTotal
java.lang.Object
org.optaplanner.core.api.score.constraint.ConstraintMatchTotal
- All Implemented Interfaces:
- Serializable, Comparable<ConstraintMatchTotal>
- Direct Known Subclasses:
- BigDecimalConstraintMatchTotal, DoubleConstraintMatchTotal, IntConstraintMatchTotal, LongConstraintMatchTotal
public abstract class ConstraintMatchTotal
- extends Object
- implements Serializable, Comparable<ConstraintMatchTotal>
- See Also:
- Serialized Form
constraintPackage
protected final String constraintPackage
constraintName
protected final String constraintName
scoreLevel
protected final int scoreLevel
ConstraintMatchTotal
protected ConstraintMatchTotal(String constraintPackage,
String constraintName,
int scoreLevel)
getConstraintPackage
public String getConstraintPackage()
getConstraintName
public String getConstraintName()
getScoreLevel
public int getScoreLevel()
getConstraintMatchSet
public abstract Set<? extends ConstraintMatch> getConstraintMatchSet()
getWeightTotalAsNumber
public abstract Number getWeightTotalAsNumber()
extractJustificationList
protected List<Object> extractJustificationList(org.kie.api.runtime.rule.RuleContext kcontext)
getIdentificationString
public String getIdentificationString()
compareTo
public int compareTo(ConstraintMatchTotal other)
- Specified by:
compareTo
in interface Comparable<ConstraintMatchTotal>
toString
public String toString()
- Overrides:
toString
in class Object
Copyright © 2006-2013 JBoss by Red Hat. All Rights Reserved.