Package ca.spatial.tracks.sfmm
Class XMLSfmm
java.lang.Object
ca.spatial.tracks.sfmm.XMLSfmm
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 -
Method Summary
-
Constructor Details
-
XMLSfmm
public XMLSfmm(String inFilename, String supFilename, String xmlFilename, String outFilename, boolean useSiteClass, boolean useProductValues, int initialAgeLimit) throws ExceptionThis constructor may be used in scripts if the complete set of inputs are known. In most cases it is better to use themain(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 filesupFilename
- 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
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.
-