Ejemplo n.º 1
0
 private boolean prune(BranchPoint restoreTarget, Map<Concept, TracedConcept> map) {
   boolean hasChanged = false;
   for (Iterator<TracedConcept> it = map.values().iterator(); it.hasNext(); ) {
     TracedConcept tc = it.next();
     if (tc.getDependency().hasSameOrAfter(restoreTarget)) {
       it.remove();
       hasChanged = true;
     }
   }
   return hasChanged;
 }
Ejemplo n.º 2
0
 public void reopen(TracedConcept tc) {
   m_Expanded.remove(tc.getConcept());
   m_Open.put(tc.getConcept(), tc);
 }
Ejemplo n.º 3
0
 public boolean add(TracedConcept tc) {
   Concept c = tc.getConcept();
   if (m_Expanded.containsKey(c)) return false;
   return m_Open.put(c, tc) == null;
 }