Class XMLSfmm

java.lang.Object
ca.spatial.tracks.sfmm.XMLSfmm

public class XMLSfmm extends Object
This class builds a ForestModel XML file from values read in from the SFMM input file. This file captures stand dynamics from the SFMM inputs and is suitable for input to the MatrixBuilder.
  • Constructor Summary

    Constructors
    Constructor
    Description
    XMLSfmm​(String inFilename, String supFilename, String xmlFilename, String outFilename, boolean useSiteClass, boolean useProductValues, int initialAgeLimit)
    This constructor may be used in scripts if the complete set of inputs are known.
  • Method Summary

    Modifier and Type
    Method
    Description
    static void
    main​(String[] args)
    This main method will initialize the application and present the wizard that is used to gather inputs.

    Methods inherited from class java.lang.Object

    equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
  • Constructor Details

    • XMLSfmm

      public XMLSfmm(String inFilename, String supFilename, String xmlFilename, String outFilename, boolean useSiteClass, boolean useProductValues, int initialAgeLimit) throws Exception
      This constructor may be used in scripts if the complete set of inputs are known. In most cases it is better to use the main(java.lang.String[]) method that will use the wizard to prompt for and validate the inputs.
      Parameters:
      inFilename - the name of the text-based inp file
      supFilename - the name of the file containing the supplementary relations required for the Patchworks translation.
      xmlFilename - an optional filename that contains XML code to be included in the output file.
      outFilename - the name of the file to contain the translated output.
      Throws:
      Exception - This constructor will throw an Exception for any error that occurs during the translation process.
  • Method Details

    • main

      public static void main(String[] args)
      This main method will initialize the application and present the wizard that is used to gather inputs. The application will read in a SFMM input file, parse the contents, and dump out the results in ForestModel XML format.
      Parameters:
      args - No arguments are allowed to this application. All parameters will be collected by an interactive wizard.