techniques.BN
Class BayesNet

java.lang.Object
  |
  +--techniques.BN.BayesNet
All Implemented Interfaces:
Cloneable

public class BayesNet
extends Object
implements Cloneable

Maintains a bayes net


Constructor Summary
BayesNet()
           
 
Method Summary
 void addNode(Variable node)
           
 Object clone()
          Performs a shallow copy (variables are not cloned)
 Object deepCopy()
          Performs a deep copy (variables are cloned)
 Variable getNode(String nodeName)
          Returns node with given name
 LinkedList getNodes()
          Returns nodes in the net sorted.
 LinkedList getNodesWithTopologicalOrdering()
          Returns nodes in the net sorted in topological order from parents to children, i.e.
 int getNumOfNodes()
           
 void printNetwork()
           
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

BayesNet

public BayesNet()
Method Detail

getNode

public Variable getNode(String nodeName)
Returns node with given name

addNode

public void addNode(Variable node)
Parameters:
node -  

getNodes

public LinkedList getNodes()
Returns nodes in the net sorted.
Parameters:
nodeName -  
Returns:
list of nodes

getNodesWithTopologicalOrdering

public LinkedList getNodesWithTopologicalOrdering()
Returns nodes in the net sorted in topological order from parents to children, i.e. if possible makes all parents show up before their children.
Parameters:
nodeName -  
Returns:
list of nodes

getNumOfNodes

public int getNumOfNodes()

clone

public Object clone()
             throws CloneNotSupportedException
Performs a shallow copy (variables are not cloned)

deepCopy

public Object deepCopy()
                throws CloneNotSupportedException
Performs a deep copy (variables are cloned)

printNetwork

public void printNetwork()