edu.ucla.belief.recursiveconditioning
Class RCNodeInternalBinaryCache
Object
RCNode
RCNodeInternalBinaryCache
public final class RCNodeInternalBinaryCache
- extends RCNode
This class represents Internal RCNode objects which always have two children and a cache.
- Author:
- David Allen
Constructor Summary |
RCNodeInternalBinaryCache(RC rc,
Collection cutset,
Collection context,
RCNode left,
RCNode right,
double cf,
Collection mpeVars)
Warning: by using this constructor you must later call initCacheOrder. |
RCNodeInternalBinaryCache(RC rc,
Collection cutset,
List context,
RCNode left,
RCNode right,
double cf,
Collection mpeVars,
ArrayList eo)
Creates a new RCNodeInternalCache. |
RCNodeInternalBinaryCache(RC rc,
RCNode left,
RCNode right)
Warning: by using this constructor you must later call init. |
RCNodeInternalBinaryCache
public RCNodeInternalBinaryCache(RC rc,
RCNode left,
RCNode right)
- Warning: by using this constructor you must later call init.
RCNodeInternalBinaryCache
public RCNodeInternalBinaryCache(RC rc,
Collection cutset,
Collection context,
RCNode left,
RCNode right,
double cf,
Collection mpeVars)
- Warning: by using this constructor you must later call initCacheOrder.
RCNodeInternalBinaryCache
public RCNodeInternalBinaryCache(RC rc,
Collection cutset,
List context,
RCNode left,
RCNode right,
double cf,
Collection mpeVars,
ArrayList eo)
- Creates a new RCNodeInternalCache.
orderVars
public static ArrayList orderVars(List globalOrd,
Collection localVars)
initCacheOrder
public void initCacheOrder(ArrayList eo)
- Specified by:
initCacheOrder
in class RCNode
left
public RCNode left()
right
public RCNode right()
children
public HashSet children()
childrenArr
public RCNode[] childrenArr()
childIterator
public RCIterator childIterator()
numChildren
public int numChildren()
getCacheFactor
public double getCacheFactor()
- Overrides:
getCacheFactor
in class RCNode
changeCacheFactor
public void changeCacheFactor(double cf)
- Overrides:
changeCacheFactor
in class RCNode
allocRCCaches
public void allocRCCaches()
- Overrides:
allocRCCaches
in class RCNode
allocRCMPECaches
public void allocRCMPECaches()
- Overrides:
allocRCMPECaches
in class RCNode
allocRCMPE3Caches
public void allocRCMPE3Caches()
- Overrides:
allocRCMPE3Caches
in class RCNode
allocRCMPE4Caches
public void allocRCMPE4Caches()
- Overrides:
allocRCMPE4Caches
in class RCNode
getCutset
public HashSet getCutset(HashSet ret)
resetLocal
public void resetLocal()
- Overrides:
resetLocal
in class RCNode
numCacheEntries_local_total
public long numCacheEntries_local_total()
- Overrides:
numCacheEntries_local_total
in class RCNode
numCacheEntriesMpe_local_total
public long numCacheEntriesMpe_local_total()
- Overrides:
numCacheEntriesMpe_local_total
in class RCNode
numCacheEntries_local_used
public long numCacheEntries_local_used()
- Overrides:
numCacheEntries_local_used
in class RCNode
numCacheEntriesMpe_local_used
public long numCacheEntriesMpe_local_used()
- Overrides:
numCacheEntriesMpe_local_used
in class RCNode
isLeaf
public boolean isLeaf()
- Specified by:
isLeaf
in class RCNode
getHeight
public int getHeight()
- Description copied from class:
RCNode
- This height is calculated by how many levels of nodes
there are, not by how many edges there are between them.
(e.g. leaf nodes have height of 1, their parents have
a height of 2...)
- Specified by:
getHeight
in class RCNode
vars
public Collection vars()
- Specified by:
vars
in class RCNode
vars
public Collection vars(Collection ret)
- Specified by:
vars
in class RCNode
Copyright 2010 UCLA Automated Reasoning Group