edu.ucla.belief.recursiveconditioning
Class RCNodeLeaf

Object
  extended by RCNode
      extended by RCNodeLeaf

public final class RCNodeLeaf
extends RCNode

This class represents Leaf RCNode objects.

Author:
David Allen

Field Summary
 
Fields inherited from class RCNode
isRoot, userDefinedInt
 
Constructor Summary
RCNodeLeaf(RC rc, FiniteVariable fv)
          Warning: by using this constructor you must later call init.
RCNodeLeaf(RC rc, FiniteVariable fv, Collection context)
          Creates a new RCNodeLeaf.
 
Method Summary
 int getHeight()
          This height is calculated by how many levels of nodes there are, not by how many edges there are between them.
 FiniteVariable getLeafVar()
          Get the "child" variable of this leaf (family).
 void init(Collection acutset, Collection context, boolean includeMPE, ArrayList eo)
          Function which should be called if using non-complete constructor.
 void initCacheOrder(ArrayList eo)
           
 boolean isLeaf()
           
 Collection vars()
           
 Collection vars(Collection ret)
           
 
Methods inherited from class RCNode
allocRCCaches, allocRCMPE3Caches, allocRCMPE4Caches, allocRCMPECaches, cache, changeCacheFactor, contextInstantiations, cutsetInstantiations, getCacheFactor, numCacheEntries_local_total, numCacheEntries_local_used, numCacheEntriesMpe_local_total, numCacheEntriesMpe_local_used, parentNodes, resetLocal, toString
 
Methods inherited from class Object
equals, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

RCNodeLeaf

public RCNodeLeaf(RC rc,
                  FiniteVariable fv)
Warning: by using this constructor you must later call init.


RCNodeLeaf

public RCNodeLeaf(RC rc,
                  FiniteVariable fv,
                  Collection context)
Creates a new RCNodeLeaf.

Method Detail

init

public void init(Collection acutset,
                 Collection context,
                 boolean includeMPE,
                 ArrayList eo)
Function which should be called if using non-complete constructor.


initCacheOrder

public void initCacheOrder(ArrayList eo)
Specified by:
initCacheOrder in class RCNode

isLeaf

public final boolean isLeaf()
Specified by:
isLeaf in class RCNode

getHeight

public final 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 final Collection vars()
Specified by:
vars in class RCNode

vars

public final Collection vars(Collection ret)
Specified by:
vars in class RCNode

getLeafVar

public final FiniteVariable getLeafVar()
Get the "child" variable of this leaf (family).



Copyright 2010 UCLA Automated Reasoning Group