edu.ucla.belief.recursiveconditioning
Class Xmlizer

Object
  extended by Xmlizer

public class Xmlizer
extends Object

Since:
022603
Author:
Keith Cascio

Field Summary
static boolean FLAG_VALIDATE
           
static int INT_ID_COUNTER
           
static int INT_ROOT_COUNTER
           
static String STR_ATTR_CANCOMPUTE_NAME
           
static String STR_ATTR_CREATIONMETHOD_NAME
           
static String STR_ATTR_DTREECONTEXT_NAME
           
static String STR_ATTR_DTREECUTSET_NAME
           
static String STR_ATTR_DTREEHEIGHT_NAME
           
static String STR_ATTR_DTREEMAXCLUSTER_NAME
           
static String STR_ATTR_ESTIMATEDTIME_NAME
           
static String STR_ATTR_FACTOR_NAME
           
static String STR_ATTR_ID_NAME
           
static String STR_ATTR_LEFT_NAME
           
static String STR_ATTR_MARGINALVARS_NAME
           
static String STR_ATTR_NETWORKNAME_NAME
           
static String STR_ATTR_OPTIMALMEMORY_NAME
           
static String STR_ATTR_RIGHT_NAME
           
static String STR_ATTR_USERMEMORY_NAME
           
static String STR_ATTR_VARSNULLROOT_NAME
           
static String STR_DELIMITERS
           
static String STR_ELT_RCNODE_NAME
           
static String STR_ELT_ROOT_NAME
           
static String STR_ELT_VARIABLE_NAME
           
static String STR_PREFIX_ID_ROOT
           
 
Constructor Summary
Xmlizer()
           
 
Method Summary
 void hookRCNodeInternalBinary(RCNode rcnode, Element rcnodeElt, Document doc, Element elt, Map visited)
           
 void hookRCNodeLeaf(RCNode rcnode, Element rcnodeElt, Document doc)
           
static void main(String[] args)
          test/debug
 Element makeElement(RCNode rcnode, Document doc, String id)
           
static Map makeMapRootToVariableList(RC rc)
           
static Document readxml(File fileSelected)
           
 boolean readxml(File fileSelected, BeliefNetwork bn, Settings settings, boolean useKB)
           
 Dtree readxmldtree(Element eltDtree, BeliefNetwork bn)
           
 RCDgraph readxmlrcdgraph(Element eltRCDgraph, BeliefNetwork bn, Settings settings, boolean useKB, File fileSelected)
           
 RCDtree readxmlrcdtree(BeliefNetwork bn, Settings settings, double scalar, boolean useKB, File fileSelected)
           
 RCDtree readxmlrcdtree(Element eltRCDtree, BeliefNetwork bn, Settings settings, double scalar, boolean useKB, File fileSelected)
           
 String recXmlize(RCNode rcnode, Document doc, Element elt, Map visited)
           
 Element recXmlize(RCNode rcnode, String id, Document doc, Element elt, Map visited)
           
 FileInfo skimFile(File infile)
           
static String toString(List list)
           
static void writeXML(Document document, File fileSelected)
           
 Document xmlize(Dtree dtree, RC rc)
           
 Document xmlize(Dtree dtree, Stats stats, RC rc)
           
 Document xmlize(Dtree dtree, Stats stats, RC rc, Computation comp, String networkname)
           
 
Methods inherited from class Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

FLAG_VALIDATE

public static boolean FLAG_VALIDATE

INT_ID_COUNTER

public static int INT_ID_COUNTER

INT_ROOT_COUNTER

public static int INT_ROOT_COUNTER

STR_ATTR_ID_NAME

public static final String STR_ATTR_ID_NAME
See Also:
Constant Field Values

STR_ATTR_FACTOR_NAME

public static final String STR_ATTR_FACTOR_NAME
See Also:
Constant Field Values

STR_ATTR_LEFT_NAME

public static final String STR_ATTR_LEFT_NAME
See Also:
Constant Field Values

STR_ATTR_RIGHT_NAME

public static final String STR_ATTR_RIGHT_NAME
See Also:
Constant Field Values

STR_ELT_VARIABLE_NAME

public static final String STR_ELT_VARIABLE_NAME
See Also:
Constant Field Values

STR_ELT_ROOT_NAME

public static final String STR_ELT_ROOT_NAME
See Also:
Constant Field Values

STR_ELT_RCNODE_NAME

public static final String STR_ELT_RCNODE_NAME
See Also:
Constant Field Values

STR_PREFIX_ID_ROOT

public static final String STR_PREFIX_ID_ROOT
See Also:
Constant Field Values

STR_ATTR_CREATIONMETHOD_NAME

public static final String STR_ATTR_CREATIONMETHOD_NAME
See Also:
Constant Field Values

STR_ATTR_DTREEMAXCLUSTER_NAME

public static final String STR_ATTR_DTREEMAXCLUSTER_NAME
See Also:
Constant Field Values

STR_ATTR_DTREEHEIGHT_NAME

public static final String STR_ATTR_DTREEHEIGHT_NAME
See Also:
Constant Field Values

STR_ATTR_DTREECUTSET_NAME

public static final String STR_ATTR_DTREECUTSET_NAME
See Also:
Constant Field Values

STR_ATTR_DTREECONTEXT_NAME

public static final String STR_ATTR_DTREECONTEXT_NAME
See Also:
Constant Field Values

STR_ATTR_NETWORKNAME_NAME

public static final String STR_ATTR_NETWORKNAME_NAME
See Also:
Constant Field Values

STR_ATTR_MARGINALVARS_NAME

public static final String STR_ATTR_MARGINALVARS_NAME
See Also:
Constant Field Values

STR_ATTR_CANCOMPUTE_NAME

public static final String STR_ATTR_CANCOMPUTE_NAME
See Also:
Constant Field Values

STR_ATTR_VARSNULLROOT_NAME

public static final String STR_ATTR_VARSNULLROOT_NAME
See Also:
Constant Field Values

STR_ATTR_OPTIMALMEMORY_NAME

public static final String STR_ATTR_OPTIMALMEMORY_NAME
See Also:
Constant Field Values

STR_ATTR_USERMEMORY_NAME

public static final String STR_ATTR_USERMEMORY_NAME
See Also:
Constant Field Values

STR_ATTR_ESTIMATEDTIME_NAME

public static final String STR_ATTR_ESTIMATEDTIME_NAME
See Also:
Constant Field Values

STR_DELIMITERS

public static final String STR_DELIMITERS
See Also:
Constant Field Values
Constructor Detail

Xmlizer

public Xmlizer()
Method Detail

makeElement

public Element makeElement(RCNode rcnode,
                           Document doc,
                           String id)

recXmlize

public Element recXmlize(RCNode rcnode,
                         String id,
                         Document doc,
                         Element elt,
                         Map visited)

recXmlize

public String recXmlize(RCNode rcnode,
                        Document doc,
                        Element elt,
                        Map visited)

hookRCNodeLeaf

public void hookRCNodeLeaf(RCNode rcnode,
                           Element rcnodeElt,
                           Document doc)

hookRCNodeInternalBinary

public void hookRCNodeInternalBinary(RCNode rcnode,
                                     Element rcnodeElt,
                                     Document doc,
                                     Element elt,
                                     Map visited)

skimFile

public FileInfo skimFile(File infile)
                  throws IOException
Throws:
IOException
Since:
031903

main

public static void main(String[] args)
test/debug

Since:
20030319

xmlize

public Document xmlize(Dtree dtree,
                       RC rc)
Since:
022603

xmlize

public Document xmlize(Dtree dtree,
                       Stats stats,
                       RC rc)
Since:
031803

xmlize

public Document xmlize(Dtree dtree,
                       Stats stats,
                       RC rc,
                       Computation comp,
                       String networkname)
Since:
031903

toString

public static String toString(List list)
Since:
060303

makeMapRootToVariableList

public static Map makeMapRootToVariableList(RC rc)
Since:
031903

readxml

public boolean readxml(File fileSelected,
                       BeliefNetwork bn,
                       Settings settings,
                       boolean useKB)
                throws Exception
Throws:
Exception
Since:
022703

readxmldtree

public Dtree readxmldtree(Element eltDtree,
                          BeliefNetwork bn)
                   throws Exception
Throws:
Exception
Since:
022703

readxmlrcdtree

public RCDtree readxmlrcdtree(BeliefNetwork bn,
                              Settings settings,
                              double scalar,
                              boolean useKB,
                              File fileSelected)
                       throws Exception
Throws:
Exception

readxmlrcdtree

public RCDtree readxmlrcdtree(Element eltRCDtree,
                              BeliefNetwork bn,
                              Settings settings,
                              double scalar,
                              boolean useKB,
                              File fileSelected)
                       throws Exception
Throws:
Exception
Since:
022703

readxmlrcdgraph

public RCDgraph readxmlrcdgraph(Element eltRCDgraph,
                                BeliefNetwork bn,
                                Settings settings,
                                boolean useKB,
                                File fileSelected)
                         throws Exception
Throws:
Exception
Since:
022703

readxml

public static Document readxml(File fileSelected)
Since:
022703

writeXML

public static void writeXML(Document document,
                            File fileSelected)
Since:
022603


Copyright 2010 UCLA Automated Reasoning Group