示例#1
0
 /**
  * Call this method to tell this condition-checker whether or not to notify its parent of any
  * changes occurred to its conflict set.
  */
 public void setNotifyParent(boolean value) {
   this.notifyParent = value;
   for (ConditionChecker cc : this.getSubConditionCheckers()) {
     if (cc.getCondition().isPositive()) {
       cc.setNotifyParent(value);
     }
   }
 }
示例#2
0
 private void addSubConditionChecker(ConditionChecker cc) {
   if (!this.subConditionCheckers.contains(cc)) {
     this.subConditionCheckers.add(cc);
     if (cc instanceof CompositeConditionChecker) {
       this.hasNacSubconditions = true;
     }
     if (this.condition.getCountNode() != null) {
       cc.setNotifyParent(true);
     }
   }
 }