org.spaceroots.rkcheck
Class RungeKuttaFile
- java.lang.Object
-
- org.spaceroots.rkcheck.XMLFile
-
- org.spaceroots.rkcheck.RungeKuttaFile
-
- All Implemented Interfaces:
- org.xml.sax.ErrorHandler
public class RungeKuttaFile extends XMLFile
This class reads or write an XML file containing a Runge-Kutta method description.
-
-
Constructor Summary
Constructors Constructor and Description RungeKuttaFile(RungeKuttaMethod method)Simple constructor.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method and Description voidanalyze(org.w3c.dom.Document document, java.lang.String uri)Analyze the DOM tree.voidbuild(org.w3c.dom.Document document, java.lang.String uri)Build the DOM tree.
-
-
-
Constructor Detail
-
RungeKuttaFile
public RungeKuttaFile(RungeKuttaMethod method) throws RKCheckException
Simple constructor.Build a file reader/writer for a Runge-Kutta method instance.
- Parameters:
method- Runge-Kutta method instance to initialize by file reading or to store by file writing- Throws:
RKCheckException- if no parser can be built
-
-
Method Detail
-
analyze
public void analyze(org.w3c.dom.Document document, java.lang.String uri) throws RKCheckException, java.lang.NumberFormatExceptionAnalyze the DOM tree.This method is called by the
readmethod after having build the DOM tree. Its purpose is to analyze the tree and store the contained information in application-specific ways.- Specified by:
analyzein classXMLFile- Parameters:
document- DOM tree to analyzeuri- URI from which the project document was read (useful mainly for error messages)- Throws:
RKCheckException- if some data cannot be found in the tree or if there is a dimension mismatchjava.lang.NumberFormatException- if some number cannot be parsed
-
build
public void build(org.w3c.dom.Document document, java.lang.String uri) throws RKCheckExceptionBuild the DOM tree.This method is called by the
writemethod before writing the DOM tree. Its purpose is to build the DOM tree in application-specific ways.- Specified by:
buildin classXMLFile- Parameters:
document- empty DOM tree to builduri- URI where the project document will be written (useful mainly for error messages)- Throws:
RKCheckException- if some problem occurs while building the tree
-
-
DataMelt 3.0 © DataMelt by jWork.ORG