org.optaplanner.core.api.score.constraint.primdouble
Class DoubleConstraintMatchTotal
java.lang.Object
org.optaplanner.core.api.score.constraint.ConstraintMatchTotal
org.optaplanner.core.api.score.constraint.primdouble.DoubleConstraintMatchTotal
- All Implemented Interfaces:
- Serializable, Comparable<ConstraintMatchTotal>
public class DoubleConstraintMatchTotal
- extends ConstraintMatchTotal
- See Also:
- Serialized Form
constraintMatchSet
protected final Set<DoubleConstraintMatch> constraintMatchSet
weightTotal
protected double weightTotal
DoubleConstraintMatchTotal
public DoubleConstraintMatchTotal(String constraintPackage,
String constraintName,
int scoreLevel)
getConstraintMatchSet
public Set<DoubleConstraintMatch> getConstraintMatchSet()
- Specified by:
getConstraintMatchSet
in class ConstraintMatchTotal
getWeightTotal
public double getWeightTotal()
getWeightTotalAsNumber
public Number getWeightTotalAsNumber()
- Specified by:
getWeightTotalAsNumber
in class ConstraintMatchTotal
addConstraintMatch
public DoubleConstraintMatch addConstraintMatch(org.kie.api.runtime.rule.RuleContext kcontext,
double weight)
removeConstraintMatch
public void removeConstraintMatch(DoubleConstraintMatch constraintMatch)
Copyright © 2006-2013 JBoss by Red Hat. All Rights Reserved.