edu.ucla.belief.rc2.caching
Class RC2CachingSchemeUtils

Object
  extended by RC2CachingSchemeUtils

public class RC2CachingSchemeUtils
extends Object

Utility functions for Caching Scheme objects.


Method Summary
static long expectedMemoryUsage(Collection cachedNodes)
          Will traverse the RC2Nodes in cachedNodes and count up the size of their expected caches.
static void removeLargeCaches(RC2 rc, Collection cachedNodes)
          Remove nodes which have caches which are too large for a cache to be created.
static void removeWorthlessCaches(RC2 rc, Collection cachedNodes)
          Will traverse all nodes in rc and attempt to remove any worthless caches from cachedNodes (will recognize when a state space is too large and won't be cached and will adjust usefulness based on them).
 
Methods inherited from class Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Method Detail

removeLargeCaches

public static final void removeLargeCaches(RC2 rc,
                                           Collection cachedNodes)
Remove nodes which have caches which are too large for a cache to be created.


removeWorthlessCaches

public static final void removeWorthlessCaches(RC2 rc,
                                               Collection cachedNodes)
Will traverse all nodes in rc and attempt to remove any worthless caches from cachedNodes (will recognize when a state space is too large and won't be cached and will adjust usefulness based on them).


expectedMemoryUsage

public static final long expectedMemoryUsage(Collection cachedNodes)
Will traverse the RC2Nodes in cachedNodes and count up the size of their expected caches.



Copyright 2010 UCLA Automated Reasoning Group