edu.ucla.belief.io.xmlbif
Class RunReadBIF

Object
  extended by RunReadNetwork
      extended by RunReadBIF
All Implemented Interfaces:
Runnable

public class RunReadBIF
extends RunReadNetwork

Support for reading the XML BIF format. You can use this class threaded by calling start(), or in the current thread by calling beliefNetwork(). Currently the parse class edu.ucla.belief.io.xmlbif.XmlbifParser relies on Java 5. beliefNetwork() will throw a RuntimeException caused by a UnsupportedClassVersionError if you try to run using JRE v 4 or earlier.

Since:
20060524
Author:
keith cascio

Nested Class Summary
static interface RunReadBIF.MonitorableReusableParser
           
 
Field Summary
static String STR_CLASSNAME_ESTIMATOR
           
static String STR_CLASSNAME_PARSER
           
static String STR_CLASSNAME_PARSER_ORIG
           
static String STR_CLASSNAME_UAI06PARSER
           
 
Constructor Summary
RunReadBIF(File f, NetworkIO.BeliefNetworkIOListener bnil)
           
 
Method Summary
 BeliefNetwork beliefNetwork()
           
 String errorMessage(Throwable throwable)
           
 void finishedReading()
           
 Estimate getEstimator()
           
 File getFile()
           
 FileType getFileType()
           
 RunReadBIF.MonitorableReusableParser getParser()
           
 ProgressMonitorable getReadTask()
           
 String[] getSyntaxErrors()
           
 
Methods inherited from class RunReadNetwork
computeResult, errorStream, getDescription, getFormatDescription, getResult, run, start
 
Methods inherited from class Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

STR_CLASSNAME_PARSER_ORIG

public static final String STR_CLASSNAME_PARSER_ORIG
See Also:
Constant Field Values

STR_CLASSNAME_UAI06PARSER

public static final String STR_CLASSNAME_UAI06PARSER
See Also:
Constant Field Values

STR_CLASSNAME_PARSER

public static final String STR_CLASSNAME_PARSER
See Also:
Constant Field Values

STR_CLASSNAME_ESTIMATOR

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

RunReadBIF

public RunReadBIF(File f,
                  NetworkIO.BeliefNetworkIOListener bnil)
Method Detail

getSyntaxErrors

public String[] getSyntaxErrors()
Overrides:
getSyntaxErrors in class RunReadNetwork

getFile

public File getFile()
Specified by:
getFile in class RunReadNetwork

getFileType

public FileType getFileType()
Specified by:
getFileType in class RunReadNetwork

getEstimator

public Estimate getEstimator()
Specified by:
getEstimator in class RunReadNetwork

getReadTask

public ProgressMonitorable getReadTask()
Specified by:
getReadTask in class RunReadNetwork

beliefNetwork

public BeliefNetwork beliefNetwork()
                            throws Exception
Specified by:
beliefNetwork in class RunReadNetwork
Throws:
Exception

finishedReading

public void finishedReading()
Specified by:
finishedReading in class RunReadNetwork

errorMessage

public String errorMessage(Throwable throwable)
                    throws Throwable
Specified by:
errorMessage in class RunReadNetwork
Throws:
Throwable

getParser

public RunReadBIF.MonitorableReusableParser getParser()


Copyright 2010 UCLA Automated Reasoning Group