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.
XMLSfmmpublic 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 the
main(java.lang.String)method that will use the wizard to prompt for and validate the inputs.
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.
Exception- This constructor will throw an Exception for any error that occurs during the translation process.
mainpublic 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.
args- No arguments are allowed to this application. All parameters will be collected by an interactive wizard.