|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Object | +--bbn.BBN
Title: BBN.java Description: Core Bayesian Network class Copyright: Copyright (c) 2001 Company: KSU / KDD
| Constructor Summary | |
BBN()
BBN creates the network and initializes the nodes. |
|
BBN(BBN all)
|
|
| Method Summary | |
void |
addNode(Node node)
|
BBN |
copy()
|
BBN |
copyShell()
|
void |
generateEvidenceFile(java.lang.String fileName)
|
Node |
getNodeAt(int index)
getNodeAt will return a node at the specified index. |
Node |
getNodeByName(java.lang.String nodeName)
getNodeByName will return the Node object matching the specified string name. |
java.util.Vector |
getNodes()
getNodes returns a vector containing all of the node objects in the network. |
int |
indexOf(Node node)
indexOf will return the index of a Node. |
int |
indexOf(java.lang.String nodeName)
indexOf will return the index of a Node. |
java.lang.String |
listHead()
list the first(head) part of the xml file |
java.lang.String |
listNode()
|
java.lang.String |
listPosition(int i)
|
java.lang.String |
listProbability()
|
void |
loadFromXML(java.lang.String xmlFileName)
loadFromXML will open an bayesian network from an XML file. |
void |
loadNodeXMLBIF(java.lang.String sbuf)
This function gets all of the information for one node and creates a new Block that is a representation of this node and adds it to the Bayesian Network. |
void |
loadVariablesXMLBIF(java.lang.String sbuf)
Loads all of the nodes that are located into the file. |
java.util.Vector |
pred(java.lang.String nodename)
pred will return a Vector of the string names of the nodes that are immediate predecessors (parents) to the Node object matching the specified string name. |
void |
removeNodeByName(java.lang.String name)
removeNodeByName will remove the Node object matching the specified string name from the network. |
void |
report()
|
void |
reportVerbose()
|
void |
saveToXML(java.lang.String xmlFileName)
saveToXML will reconstruct a bayesian network in an XML file. |
void |
setName(java.lang.String networkName)
|
void |
setNetwork(BBN all)
|
void |
setNodeAt(int index,
Node node)
|
void |
setNodeList(java.util.Vector nodeList)
|
int |
size()
|
void |
writeToXML(java.lang.String outputXMLFileName)
|
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
public BBN()
public BBN(BBN all)
| Method Detail |
public void setNetwork(BBN all)
public BBN copy()
public BBN copyShell()
public void setName(java.lang.String networkName)
public void setNodeAt(int index,
Node node)
public void setNodeList(java.util.Vector nodeList)
public void report()
public void reportVerbose()
public void loadFromXML(java.lang.String xmlFileName)
xmlFileName - - the name of the file being loadedpublic void saveToXML(java.lang.String xmlFileName)
xmlFileName - - the file name to be written.public Node getNodeAt(int index)
index - - the index of the node being requested.public java.util.Vector getNodes()
public Node getNodeByName(java.lang.String nodeName)
nodeName - - the name of the node to be searched forpublic void addNode(Node node)
public void removeNodeByName(java.lang.String name)
name - - the name of the node to be removedpublic java.util.Vector pred(java.lang.String nodename)
nodename - - the name of the node to be searched forpublic int indexOf(Node node)
node - - the Node object being searched for.public int indexOf(java.lang.String nodeName)
node - - the Node object being searched for.public int size()
public void loadVariablesXMLBIF(java.lang.String sbuf)
sbuf - a string of the entire filepublic void loadNodeXMLBIF(java.lang.String sbuf)
sbuf - a string that contians all of the information for
one nodepublic void writeToXML(java.lang.String outputXMLFileName)
public java.lang.String listNode()
public java.lang.String listPosition(int i)
public java.lang.String listProbability()
public java.lang.String listHead()
public void generateEvidenceFile(java.lang.String fileName)
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||