RBNinference
Class SimpleBNNode

java.lang.Object
  extended by RBNinference.BNNode
      extended by RBNinference.SimpleBNNode
Direct Known Subclasses:
SimpleBNGroundAtomNode

public class SimpleBNNode
extends BNNode


Field Summary
 
Fields inherited from class RBNinference.BNNode
children, depth, instantiated, name, parents
 
Constructor Summary
SimpleBNNode()
          Creates new SimpleBNNode
SimpleBNNode(java.lang.String name)
           
SimpleBNNode(java.lang.String name, double[] cpt, java.util.LinkedList parents, java.util.LinkedList children)
           
 
Method Summary
 boolean isDetEquivalent(SimpleBNNode sbnn)
          returns true if this and sbnn are equivalent deterministic nodes, i.e.
 boolean isIsolatedZeroNode()
           
 void setCPT(double[] cpt)
           
 
Methods inherited from class RBNinference.BNNode
addToChildren, addToParents, buildNodeStack, depth, familyXcenter, instantiate, instantiatedTo, parentsSubset, replaceInChildrenList, replaceInParentList, resetParents, resetVisited, resetVisitedUpDownstream, resetVisitedUpstream, setDepth, showAllReachable, sizeFamily, xSum
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

SimpleBNNode

public SimpleBNNode()
Creates new SimpleBNNode


SimpleBNNode

public SimpleBNNode(java.lang.String name)

SimpleBNNode

public SimpleBNNode(java.lang.String name,
                    double[] cpt,
                    java.util.LinkedList parents,
                    java.util.LinkedList children)
Method Detail

setCPT

public void setCPT(double[] cpt)

isIsolatedZeroNode

public boolean isIsolatedZeroNode()

isDetEquivalent

public boolean isDetEquivalent(SimpleBNNode sbnn)
returns true if this and sbnn are equivalent deterministic nodes, i.e. they are both deterministic, with the same set of parents, and equivalent cpts.