/[fenfire]/fenfire/org/fenfire/swamp/CachedNodeFunction.java
ViewVC logotype

Diff of /fenfire/org/fenfire/swamp/CachedNodeFunction.java

Parent Directory Parent Directory | Revision Log Revision Log | View Patch Patch

revision 1.6 by mudyc, Tue May 13 22:08:57 2003 UTC revision 1.7 by mudyc, Wed May 14 11:54:45 2003 UTC
# Line 77  public class CachedNodeFunction implemen Line 77  public class CachedNodeFunction implemen
77              cac.addObs(o);              cac.addObs(o);
78          return cac.value;          return cac.value;
79      }      }
   
   
     // AAaarrgghh, tried to find a few hours to how to set nodes dirty  
     // mudyc, XXX  
     public void makeAllDirty(Object node) {  
         CacheEntry cac = (CacheEntry)cache.get(node);  
         if(cac == null) {  
             cac = new CacheEntry();  
             cac.node = node;  
             cache.put(node, cac);  
         }  
   
         Iterator it = cache.entrySet().iterator();  
         while(it.hasNext()) {  
             Map.Entry entry = (Map.Entry) it.next();  
             Object o = cache.get(entry.getKey());  
             CacheEntry ce = (CacheEntry)o;  
             ce.value = DIRTY;  
             cache.put(ce.node, ce);  
         }  
     }  
80  }  }

Legend:
Removed from v.1.6  
changed lines
  Added in v.1.7

savannah-hackers-public@gnu.org
ViewVC Help
Powered by ViewVC 1.1.26