@Override public void flush() { // Process the changes Set<OWLAxiom> added = new HashSet<>(); Set<OWLAxiom> removed = new HashSet<>(); computeDiff(added, removed); reasonerAxioms.removeAll(removed); reasonerAxioms.addAll(added); rawChanges.clear(); if (!added.isEmpty() || !removed.isEmpty()) { handleChanges(added, removed); } }
@Override public void flush() { // Process the changes Set<OWLAxiom> added = new HashSet<>(); Set<OWLAxiom> removed = new HashSet<>(); computeDiff(added, removed); reasonerAxioms.removeAll(removed); reasonerAxioms.addAll(added); rawChanges.clear(); if (!added.isEmpty() || !removed.isEmpty()) { handleChanges(added, removed); } }
@Override public void flush() { // Process the changes Set<OWLAxiom> added = new HashSet<>(); Set<OWLAxiom> removed = new HashSet<>(); computeDiff(added, removed); reasonerAxioms.removeAll(removed); reasonerAxioms.addAll(added); rawChanges.clear(); if (!added.isEmpty() || !removed.isEmpty()) { handleChanges(added, removed); } }
@Override public void flush() { // Process the changes Set<OWLAxiom> added = new HashSet<>(); Set<OWLAxiom> removed = new HashSet<>(); computeDiff(added, removed); reasonerAxioms.removeAll(removed); reasonerAxioms.addAll(added); rawChanges.clear(); if (!added.isEmpty() || !removed.isEmpty()) { handleChanges(added, removed); } }
/** * Flushes the pending changes from the pending change list. The changes will be analysed to dermine which * axioms have actually been added and removed from the imports closure of the root ontology and then the * reasoner will be asked to handle these changes via the {@link #handleChanges(java.util.Set, java.util.Set)} * method. */ public void flush() { // Process the changes final Set<OWLAxiom> added = new HashSet<OWLAxiom>(); final Set<OWLAxiom> removed = new HashSet<OWLAxiom>(); computeDiff(added, removed); reasonerAxioms.removeAll(removed); reasonerAxioms.addAll(added); rawChanges.clear(); if (!added.isEmpty() || !removed.isEmpty()) { handleChanges(added, removed); } }
/** * Flushes the pending changes from the pending change list. The changes will be analysed to determine which * axioms have actually been added and removed from the imports closure of the root ontology and then the * reasoner will be asked to handle these changes via the handleChanges(java.util.Set, java.util.Set) * method. */ public void flush() { // Process the changes final Set<OWLAxiom> added = new HashSet<OWLAxiom>(); final Set<OWLAxiom> removed = new HashSet<OWLAxiom>(); computeDiff(added, removed); reasonerAxioms.removeAll(removed); reasonerAxioms.addAll(added); rawChanges.clear(); if (!added.isEmpty() || !removed.isEmpty()) { handleChanges(added, removed); } }