Documentation of 'org.spaceroots.rkcheck.RungeKuttaFile' Java class
RungeKuttaFile
org.spaceroots.rkcheck

Class 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.
    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method and Description
      void analyze(org.w3c.dom.Document document, java.lang.String uri)
      Analyze the DOM tree.
      void build(org.w3c.dom.Document document, java.lang.String uri)
      Build the DOM tree.
      • Methods inherited from class java.lang.Object

        equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
    • 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.NumberFormatException
        Analyze the DOM tree.

        This method is called by the read method after having build the DOM tree. Its purpose is to analyze the tree and store the contained information in application-specific ways.

        Specified by:
        analyze in class XMLFile
        Parameters:
        document - DOM tree to analyze
        uri - 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 mismatch
        java.lang.NumberFormatException - if some number cannot be parsed
      • build

        public void build(org.w3c.dom.Document document,
                          java.lang.String uri)
                   throws RKCheckException
        Build the DOM tree.

        This method is called by the write method before writing the DOM tree. Its purpose is to build the DOM tree in application-specific ways.

        Specified by:
        build in class XMLFile
        Parameters:
        document - empty DOM tree to build
        uri - 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

Ads help maintain this website.