public class DoubleConstraintMatchTotal extends ConstraintMatchTotal
Modifier and Type | Field and Description |
---|---|
protected Set<DoubleConstraintMatch> |
constraintMatchSet |
protected double |
weightTotal |
constraintName, constraintPackage, scoreLevel
Constructor and Description |
---|
DoubleConstraintMatchTotal(String constraintPackage,
String constraintName,
int scoreLevel) |
Modifier and Type | Method and Description |
---|---|
DoubleConstraintMatch |
addConstraintMatch(List<Object> justificationList,
double weight) |
DoubleConstraintMatch |
addConstraintMatch(org.kie.api.runtime.rule.RuleContext kcontext,
double weight) |
Set<DoubleConstraintMatch> |
getConstraintMatchSet() |
double |
getWeightTotal() |
Number |
getWeightTotalAsNumber() |
void |
removeConstraintMatch(DoubleConstraintMatch constraintMatch) |
compareTo, extractJustificationList, getConstraintId, getConstraintMatchCount, getConstraintName, getConstraintPackage, getIdentificationString, getScoreLevel, toString
protected final Set<DoubleConstraintMatch> constraintMatchSet
protected double weightTotal
public Set<DoubleConstraintMatch> getConstraintMatchSet()
getConstraintMatchSet
in class ConstraintMatchTotal
public double getWeightTotal()
public Number getWeightTotalAsNumber()
getWeightTotalAsNumber
in class ConstraintMatchTotal
public DoubleConstraintMatch addConstraintMatch(org.kie.api.runtime.rule.RuleContext kcontext, double weight)
public DoubleConstraintMatch addConstraintMatch(List<Object> justificationList, double weight)
public void removeConstraintMatch(DoubleConstraintMatch constraintMatch)
Copyright © 2006–2016 JBoss by Red Hat. All rights reserved.