use of org.drools.core.common.LogicalDependency in project drools by kiegroup.
the class JTMSBeliefSetImpl method cancel.
public void cancel(PropagationContext context) {
// note we don't update negative, conflict counters. It's needed for the last cleanup operation
for (JTMSMode<M> entry = getFirst(); entry != getLast(); ) {
// get next, as we are about to remove it
JTMSMode<M> temp = entry.getNext();
final LogicalDependency<M> node = entry.getLogicalDependency();
node.getJustifier().getLogicalDependencies().remove(node);
remove((M) entry);
entry = temp;
}
JTMSMode<M> last = getFirst();
final LogicalDependency node = last.getLogicalDependency();
node.getJustifier().getLogicalDependencies().remove(node);
beliefSystem.delete(node, this, context);
}
Aggregations