Inheritance diagram for javawrapper::OutputBehaviors:
Public Member Functions | |
OutputBehaviors (GUIManager oManager) | |
Constructor. | |
Subplot | AddSubplot (String sName) |
Creates a subplot. | |
void | SetShortOutputFileName (String sFilename) |
Sets the short output filename. | |
String | GetShortOutputFileName () |
Gets the short output filename. | |
void | SetDetailedOutputFileName (String sFilename) |
Sets the detailed output filename. | |
String | GetDetailedOutputFileName () |
Gets the detailed output filename. | |
int | GetNumberOfDetailedTreeSettings () |
Gets the number of tree settings for which there is detailed output info (each setting is one tree species/type combo). | |
int | GetNumberOfDetailedGridSettings () |
Gets the number of grid settings for which there is detailed output info. | |
boolean | SavingShortOutputData () |
Gets whether or not short output is being saved. | |
DetailedTreeSettings | GetDetailedTreeSetting (int iIndex) |
Returns the detailed output tree setting at a specified index. | |
DetailedGridSettings | GetDetailedGridSetting (int iIndex) |
Returns the detailed output grid setting at a specified index. | |
void | SetSaveAbsoluteDensity (int iType, boolean bUse) throws ModelException |
Sets the save absolute density attribute for a type. | |
void | SetSaveRelativeDensity (int iType, boolean bUse) throws ModelException |
Sets the save relative density attribute for a type. | |
void | SetSaveAbsoluteBasalArea (int iType, boolean bUse) throws ModelException |
Sets the save absolute basal area attribute for a type. | |
void | SetSaveRelativeBasalArea (int iType, boolean bUse) throws ModelException |
Sets the save relative basal area attribute for a type. | |
boolean | GetSaveAbsoluteBasalArea (int iType) throws ModelException |
Gets whether or not absolute basal area is saved for a tree type. | |
boolean | GetSaveRelativeBasalArea (int iType) throws ModelException |
Gets whether or not relative basal area is saved for a tree type. | |
boolean | GetSaveAbsoluteDensity (int iType) throws ModelException |
Gets whether or not absolute density is saved for a tree type. | |
boolean | GetSaveRelativeDensity (int iType) throws ModelException |
Gets whether or not relative density is saved for a tree type. | |
void | WriteXML (BufferedWriter jOut, TreePopulation oPop) throws ModelException |
Overridden from base because output parameters are special. | |
void | ValidateData (TreePopulation oPop) throws ModelException |
Validates the data before writing to a parameter file. | |
void | DoSetup (TreePopulation oPop) throws javawrapper.ModelException |
Performs setup. | |
Vector | FormatDataForDisplay (TreePopulation oPop) |
This has its own display window; it won't contribute data to the display. | |
TreePopulation | GetTreePopulation () |
Gets the tree population. | |
void | ClearDetailedTreeSettings () |
Deletes all detailed output tree settings. | |
void | ClearDetailedGridSettings () |
Deletes all detailed output grid settings. | |
void | AddDetailedTreeSettings (DetailedTreeSettings oTreeSettings) throws ModelException |
Adds a new detailed output tree settings object. | |
void | AddDetailedGridSettings (DetailedGridSettings oTreeSettings) |
Adds a new detailed output grid settings object. | |
boolean | SetSingleValueByXMLTag (String sXMLTag, String sXMLParentTag, Attributes oAttributes, Object oData) throws ModelException |
Sets a data object's value. | |
boolean | SetVectorValueByXMLTag (String sXMLTag, String sXMLParentTag, Vector p_oData, String[] p_sChildXMLTags, boolean[] p_bAppliesTo, Attributes oParentAttributes, Attributes[] p_oAttributes) throws ModelException |
Sets a data vector's value. | |
void | ReadXMLParentTag (String sXMLTag, Attributes oAttributes) throws ModelException |
Accepts an XML parent tag (empty, no data) from the parser. | |
void | ChangeOfSpecies (int iOldNumSpecies, int[] p_iIndexer) |
Checks detailed output settings upon change of species. | |
Static Public Attributes | |
static final String | DETAILED_OUTPUT_EXTENSION = ".gz.tar" |
static final String | SUMMARY_EXTENSION = ".out" |
Protected Member Functions | |
void | UpdateIsEnabled (Behavior oBeh) |
Keeps the behavior enabled flag current. | |
void | WriteShortOutputXML (BufferedWriter jOut) throws java.io. IOException |
Writes the parameter file data for short output. | |
void | WriteDetailedOutputXML (BufferedWriter jOut, TreePopulation oPop) throws java.io. IOException, ModelException |
Writes the parameter file data for detailed output. | |
Protected Attributes | |
Vector | mp_oShortTreeSaveSettings |
For short output - collection of TreeOutputSaveInfo objects - vector is sized number of types. | |
Vector | mp_oDetailedTreeSaveSettings |
For detailed output - collection of DetailedTreeSettings objects. | |
Vector | mp_oDetailedGridSaveSettings |
For detailed output - collection of DetailedGridSettings objects. | |
Vector | mp_oSubplots |
For short output - the list of Subplot objects. | |
TreePopulation | m_oPop |
Tree population. | |
ModelString | m_sShortOutputFilename |
File name for short output. | |
ModelString | m_sDetailedOutputFilename |
File name for detailed output. | |
DetailedOutputSettings | m_oCurrentDetailedSettings |
When parsing an XML file, this is the setting currently receiving data. | |
Subplot | m_oCurrentSubplot |
When parsing an XML file, this is the subplot currently receiving data. | |
int | m_iCurrentType |
When parsing an XML file, this is the current short output type. | |
Package Functions | |
void | DisplayWindow (MainWindow oWindow) |
Displays the output setup options. | |
Private Member Functions | |
boolean | VerifyTreeMember (DataMember oDataMember, int iSpecies, int iType) throws ModelException |
Copyright: Copyright (c) Charles D. Canham 2003
Company: Institute of Ecosystem Studies
|
Constructor.
Edit history: ------------------ April 28, 2004: Submitted in beta version (LEM) |
|
Adds a new detailed output grid settings object. This will overwrite any existing settings for that grid.
Edit history: ------------------ April 28, 2004: Submitted in beta version (LEM) |
|
Adds a new detailed output tree settings object. This will overwrite any existing settings for that species and type.
Edit history: ------------------ April 28, 2004: Submitted in beta version (LEM) |
|
Creates a subplot.
Edit history: ------------------ April 28, 2004: Submitted in beta version (LEM) |
|
Checks detailed output settings upon change of species.
Reimplemented from javawrapper::WorkerBase. |
|
Deletes all detailed output grid settings.
|
|
Deletes all detailed output tree settings.
|
|
Displays the output setup options.
Edit history: ------------------ April 28, 2004: Submitted in beta version (LEM) |
|
Performs setup.
Edit history: ------------------ April 28, 2004: Submitted in beta version (LEM) Implements javawrapper::WorkerBase. |
|
This has its own display window; it won't contribute data to the display.
Edit history: ------------------ April 28, 2004: Submitted in beta version (LEM) Reimplemented from javawrapper::WorkerBase. |
|
Returns the detailed output grid setting at a specified index.
Edit history: ------------------ April 28, 2004: Submitted in beta version (LEM) |
|
Gets the detailed output filename.
Edit history: ------------------ April 28, 2004: Submitted in beta version (LEM) |
|
Returns the detailed output tree setting at a specified index.
Edit history: ------------------ April 28, 2004: Submitted in beta version (LEM) |
|
Gets the number of grid settings for which there is detailed output info.
Edit history: ------------------ April 28, 2004: Submitted in beta version (LEM) |
|
Gets the number of tree settings for which there is detailed output info (each setting is one tree species/type combo).
Edit history: ------------------ April 28, 2004: Submitted in beta version (LEM) |
|
Gets whether or not absolute basal area is saved for a tree type.
Edit history: ------------------ April 28, 2004: Submitted in beta version (LEM) |
|
Gets whether or not absolute density is saved for a tree type.
Edit history: ------------------ April 28, 2004: Submitted in beta version (LEM) |
|
Gets whether or not relative basal area is saved for a tree type.
Edit history: ------------------ April 28, 2004: Submitted in beta version (LEM) |
|
Gets whether or not relative density is saved for a tree type.
Edit history: ------------------ April 28, 2004: Submitted in beta version (LEM) |
|
Gets the short output filename.
Edit history: ------------------ April 28, 2004: Submitted in beta version (LEM) |
|
Gets the tree population.
Edit history: ------------------ April 28, 2004: Submitted in beta version (LEM) |
|
Accepts an XML parent tag (empty, no data) from the parser. This function watches for the following output tags:
Edit history: ------------------ April 28, 2004: Submitted in beta version (LEM) Reimplemented from javawrapper::BehaviorTypeBase. |
|
Gets whether or not short output is being saved.
Edit history: ------------------ April 28, 2004: Submitted in beta version (LEM) |
|
Sets the detailed output filename.
Edit history: ------------------ April 28, 2004: Submitted in beta version (LEM) November 18, 2004: Added extension enforcement (LEM) December 3, 2004: Fixed a bug when the filename was empty (LEM) |
|
Sets the save absolute basal area attribute for a type. This is ignored if it's not sapling or adult.
Edit history: ------------------ April 28, 2004: Submitted in beta version (LEM) |
|
Sets the save absolute density attribute for a type.
Edit history: ------------------ April 28, 2004: Submitted in beta version (LEM) |
|
Sets the save relative basal area attribute for a type. This is ignored if it's not sapling or adult.
Edit history: ------------------ April 28, 2004: Submitted in beta version (LEM) |
|
Sets the save relative density attribute for a type.
Edit history: ------------------ April 28, 2004: Submitted in beta version (LEM) |
|
Sets the short output filename.
Edit history: ------------------ April 28, 2004: Submitted in beta version (LEM) November 18, 2004: Added extension enforcement (LEM) December 3, 2004: Fixed a bug when the filename was empty (LEM) |
|
Sets a data object's value. Overriden from the base class to capture output settings.
Edit history: ------------------ April 28, 2004: Submitted in beta version (LEM) November 2, 2005: Added new substrate grid names for backwards compatibility (which I should have done in 6.05) (LEM) Reimplemented from javawrapper::BehaviorTypeBase. |
|
Sets a data vector's value. Overridden from the base class. Due to the vagaries of parameter file parsing, our values may come in through here instead of in single values because there could be repeats.
Edit history: ------------------ April 28, 2004: Submitted in beta version (LEM) Reimplemented from javawrapper::BehaviorTypeBase. |
|
Keeps the behavior enabled flag current. Any change of save flags has the potential to enable the behavior (by making the first save flag true) or unenabling (by making the last save flag false).
Edit history: ------------------ April 28, 2004: Submitted in beta version (LEM) |
|
Validates the data before writing to a parameter file.
Edit history: ------------------ April 28, 2004: Submitted in beta version (LEM) October 28, 2005: Fixed a bug by double-checking to make sure that all enabled detailed output settings still belonged to a behavior (LEM) Implements javawrapper::WorkerBase. |
|
Writes the parameter file data for detailed output. Does nothing if there are no detailed output save settings.
Edit history: ------------------ April 28, 2004: Submitted in beta version (LEM) |
|
Writes the parameter file data for short output. Does nothing if there are no short output save settings.
Edit history: ------------------ April 28, 2004: Submitted in beta version (LEM) |
|
Overridden from base because output parameters are special.
Edit history: ------------------ April 28, 2004: Submitted in beta version (LEM) Reimplemented from javawrapper::BehaviorTypeBase. |