|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectedu.ksu.cis.bnj.bbn.converter.xbn.XBNParser
Field Summary | |
protected BBNGraph |
graph
|
protected static java.lang.String |
ln
|
protected java.util.Hashtable |
nodeCache
|
protected java.util.Hashtable |
valueCache
|
protected static java.lang.String |
XBNDTD
|
Constructor Summary | |
XBNParser()
|
Method Summary | |
protected java.lang.String |
getElementValue(org.w3c.dom.Node parent)
|
void |
initialize()
|
BBNGraph |
load(java.io.InputStream stream)
|
static void |
main(java.lang.String[] args)
Driver for testing this parser |
protected java.lang.String |
mangleXMLString(java.lang.String s)
Escape the string s to oblige to the XML rules (e.g.: "'" becomes ', "&" becomes &, and so on). |
void |
save(java.io.OutputStream stream,
BBNGraph graph)
This routine is supposed to save the BBN Graph into MS XBN format. |
protected void |
visit(org.w3c.dom.Node domNode)
Used only for testing. |
protected void |
visitArc(org.w3c.dom.Node parent)
|
protected java.lang.String |
visitCondElem(org.w3c.dom.Node parent)
|
protected java.util.List |
visitCondSet(org.w3c.dom.Node parent)
|
protected void |
visitDistribution(org.w3c.dom.Node parent)
Fill in the CPF/CPT of a given node. |
protected void |
visitDistributions(org.w3c.dom.Node parent)
|
protected void |
visitDocument(org.w3c.dom.Node parent)
|
protected java.lang.Object[] |
visitDPI(org.w3c.dom.Node parent)
|
protected java.util.List |
visitDPIs(org.w3c.dom.Node parent)
|
protected void |
visitDynamicProperties(org.w3c.dom.Node parent,
java.util.Hashtable prop)
|
protected void |
visitDynamicProperty(org.w3c.dom.Node parent,
java.util.Hashtable prop,
java.lang.String prefix)
|
protected void |
visitDynamicPropertyType(org.w3c.dom.Node parent,
java.util.Hashtable prop,
java.lang.String prefix)
|
protected void |
visitDynamicPropertyXML(org.w3c.dom.Node parent,
java.util.Hashtable prop,
java.lang.String prefix)
|
protected void |
visitModel(org.w3c.dom.Node parent)
|
protected java.lang.String |
visitPrivate(org.w3c.dom.Node parent)
|
protected void |
visitStaticProperties(org.w3c.dom.Node parent,
java.util.Hashtable prop)
|
protected void |
visitStructure(org.w3c.dom.Node parent)
|
protected BBNNode |
visitVariable(org.w3c.dom.Node parent)
|
protected void |
visitVariables(org.w3c.dom.Node parent)
|
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
protected BBNGraph graph
protected java.util.Hashtable nodeCache
protected java.util.Hashtable valueCache
protected static java.lang.String ln
protected static java.lang.String XBNDTD
Constructor Detail |
public XBNParser()
Method Detail |
public void initialize()
initialize
in interface Converter
Converter.initialize()
public BBNGraph load(java.io.InputStream stream)
load
in interface Converter
edu.ksu.cis.bnj.bbn.converter.Converter#load(java.io.Reader)
public void save(java.io.OutputStream stream, BBNGraph graph)
save
in interface Converter
edu.ksu.cis.bnj.bbn.converter.Converter#save(java.io.Writer, edu.ksu.cis.bnj.bbn.BBNGraph)
protected void visitDocument(org.w3c.dom.Node parent)
protected void visitModel(org.w3c.dom.Node parent)
protected void visitVariables(org.w3c.dom.Node parent)
protected BBNNode visitVariable(org.w3c.dom.Node parent)
protected void visitStructure(org.w3c.dom.Node parent)
protected void visitArc(org.w3c.dom.Node parent)
protected void visitDistributions(org.w3c.dom.Node parent)
protected void visitDistribution(org.w3c.dom.Node parent)
parent
- protected java.lang.String visitPrivate(org.w3c.dom.Node parent)
protected java.util.List visitCondSet(org.w3c.dom.Node parent)
protected java.lang.String visitCondElem(org.w3c.dom.Node parent)
protected java.util.List visitDPIs(org.w3c.dom.Node parent)
protected java.lang.Object[] visitDPI(org.w3c.dom.Node parent)
protected void visitStaticProperties(org.w3c.dom.Node parent, java.util.Hashtable prop)
protected void visitDynamicProperties(org.w3c.dom.Node parent, java.util.Hashtable prop)
protected void visitDynamicPropertyType(org.w3c.dom.Node parent, java.util.Hashtable prop, java.lang.String prefix)
protected void visitDynamicProperty(org.w3c.dom.Node parent, java.util.Hashtable prop, java.lang.String prefix)
protected java.lang.String getElementValue(org.w3c.dom.Node parent)
protected void visitDynamicPropertyXML(org.w3c.dom.Node parent, java.util.Hashtable prop, java.lang.String prefix)
protected void visit(org.w3c.dom.Node domNode)
domNode
- protected java.lang.String mangleXMLString(java.lang.String s)
s
- The raw string
public static void main(java.lang.String[] args)
args
-
|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |