edu.ucla.belief.recursiveconditioning
Class RCNodeInternalBinaryCache

Object
  extended by RCNode
      extended by RCNodeInternalBinaryCache

public final class RCNodeInternalBinaryCache
extends RCNode

This class represents Internal RCNode objects which always have two children and a cache.

Author:
David Allen

Nested Class Summary
 class RCNodeInternalBinaryCache.ChildIterator
           
 
Field Summary
 
Fields inherited from class RCNode
isRoot, userDefinedInt
 
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.
 
Method Summary
 void allocRCCaches()
           
 void allocRCMPE3Caches()
           
 void allocRCMPE4Caches()
           
 void allocRCMPECaches()
           
 void changeCacheFactor(double cf)
           
 RCIterator childIterator()
           
 HashSet children()
           
 RCNode[] childrenArr()
           
 double getCacheFactor()
           
 HashSet getCutset(HashSet ret)
           
 int getHeight()
          This height is calculated by how many levels of nodes there are, not by how many edges there are between them.
 void initCacheOrder(ArrayList eo)
           
 boolean isLeaf()
           
 RCNode left()
           
 long numCacheEntries_local_total()
           
 long numCacheEntries_local_used()
           
 long numCacheEntriesMpe_local_total()
           
 long numCacheEntriesMpe_local_used()
           
 int numChildren()
           
static ArrayList orderVars(List globalOrd, Collection localVars)
           
 void resetLocal()
           
 RCNode right()
           
 Collection vars()
           
 Collection vars(Collection ret)
           
 
Methods inherited from class RCNode
cache, contextInstantiations, cutsetInstantiations, parentNodes, toString
 
Methods inherited from class Object
equals, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

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.

Method Detail

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