} for (DataFrame frame : framesToUpdate) { Set<DataFrame> children = frame.findRelations("child", relation); aggregator.updateSlotValue(frame, children, this);
for (DataFrame frame : framesToUpdate) { Set<DataFrame> children = frame.findRelations("child", relation); aggregator.updateSlotValue(frame, children, this); }
    public void execute(BlackboardService bbs) {	if (sub == null) {	    setupSubscriptions(bbs);	}	Set<DataFrame> framesToUpdate = new HashSet<DataFrame>();	if (sub.hasChanged()) {	    Collection addedFrames = sub.getAddedCollection();	    for (Object x : addedFrames) {		addToUpdateSet(x, framesToUpdate);	    }	    Collection removedFrames = sub.getRemovedCollection();	    for (Object x : removedFrames) {		addToUpdateSet(x, framesToUpdate);	    }	    if (childSlot != null) {		Collection changedFrames = sub.getChangedCollection();		for (Object x : changedFrames) {		    Set changeReports = sub.getChangeReports(x);		    boolean relevant = false;		    for (Frame.Change change : (Set<Frame.Change>) changeReports) {			if (change.getSlotName().equals(childSlot)) {			    relevant = true;			    break;			}		    }		    if (relevant) addToUpdateSet(x, framesToUpdate);		}	    }	}	for (DataFrame frame : framesToUpdate) {	    Set<DataFrame> children = frame.findRelations("child", relation);	    aggregator.updateSlotValue(frame, children, this);	}    }