edu.ucla.belief.recursiveconditioning
Class CachingScheme

Object
  extended by CachingScheme
Direct Known Subclasses:
CachingDFBnB, CachingGreedy, CachingNone, CachingNonOptimalSize, CachingUniform

public abstract class CachingScheme
extends Object

This abstract class creates RC objects (RCDtrees and RCDgraphs) by giving assigning the caching to the nodes.

Author:
David Allen

Nested Class Summary
static interface CachingScheme.RCCreateListener
           
 
Constructor Summary
CachingScheme(double cacheFactor)
           
 
Method Summary
abstract  void allocateMemory(RC rc, CachingScheme.RCCreateListener listnr)
          Have this CachingScheme allocate the memory for the RC object.
 void allocateMemory(RCDgraph graph, CachingScheme.RCCreateListener listnr)
          Have this CachingScheme allocate the memory for the RC object.
 void allocateMemory(RCDtree tree, CachingScheme.RCCreateListener listnr)
          Have this CachingScheme allocate the memory for the RC object.
 double getCacheFactor()
           
 void setCacheFactor(double cacheFactor)
          Fraction of maximum possible cache to use.
 String toString()
           
 
Methods inherited from class Object
equals, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

CachingScheme

public CachingScheme(double cacheFactor)
Method Detail

toString

public String toString()
Overrides:
toString in class Object

getCacheFactor

public double getCacheFactor()

setCacheFactor

public void setCacheFactor(double cacheFactor)
Fraction of maximum possible cache to use.


allocateMemory

public void allocateMemory(RCDtree tree,
                           CachingScheme.RCCreateListener listnr)
Have this CachingScheme allocate the memory for the RC object.

Parameters:
listnr - Some CachingSchemes use this to return updates to (can be null).

allocateMemory

public void allocateMemory(RCDgraph graph,
                           CachingScheme.RCCreateListener listnr)
Have this CachingScheme allocate the memory for the RC object.

Parameters:
listnr - Some CachingSchemes use this to return updates to (can be null).

allocateMemory

public abstract void allocateMemory(RC rc,
                                    CachingScheme.RCCreateListener listnr)
Have this CachingScheme allocate the memory for the RC object.

Parameters:
listnr - Some CachingSchemes use this to return updates to (can be null).


Copyright 2010 UCLA Automated Reasoning Group