for (ConstraintData constraintData : constraints) {
if (monitor.isCanceled()) {
return Status.CANCEL_STATUS;
}
String[] partialResult = new String[2];
IRutaConstraint constraint = constraintData.getConstraint();
if (constraint instanceof IRutaRuleConstraint) {
((IRutaRuleConstraint) constraint).setTypeSystemLocation(typeSystem
.getAbsolutePath());
}
// Calculating and adding results to the
// documentData object
Double partResult = constraint.processConstraint(inputCAS);
if (partResult != null) {
partialResult[0] = constraint.getDescription();
partialResult[1] = String.valueOf(partResult);
int weight = constraintData.getWeight();
count += weight;
double weightedResult = partResult * weight;
augResult += weightedResult;