Inheritance diagram for javawrapper::PlantingBehaviors:
Public Member Functions | |
PlantingBehaviors (GUIManager oManager) | |
Constructor. | |
void | ReadOldHarvestRegimeFile (String sFileName, Plot oPlot, TreePopulation oPop) throws ModelException |
Reads in an old tab-delimited harvest regime file. | |
void | ValidateData (TreePopulation oPop) throws ModelException |
Validates the data prior to writing it. | |
void | WriteXML (BufferedWriter jOut, TreePopulation oPop) throws ModelException |
Overridden because planting parameters are special. | |
void | DoSetup (TreePopulation oPop) throws javawrapper.ModelException |
Sets up the planting results grid. | |
Vector | FormatDataForDisplay (TreePopulation oPop) |
Ensures data is not displayed in parameter window. | |
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. | |
boolean | SetSingleValueByXMLTag (String sXMLTag, String sXMLParentTag, Attributes oAttributes, Object oData) throws ModelException |
This method looks for the following tags:. | |
void | ChangeOfSpeciesName (String sOldSpecies, String sNewSpecies) throws ModelException |
Changes the names in the grids. | |
void | ChangeOfSpecies (int iOldNumSpecies, int[] p_iIndexer) throws ModelException |
Checks planting settings upon change of species. | |
Static Public Attributes | |
static final int | GRIDDED = 1 |
Gridded planting. | |
static final int | RANDOM = 0 |
Random planting. | |
Protected Member Functions | |
Vector | AddPlantingData (Vector oList, PlantingData oNewPlanting) throws ModelException |
This adds the data contained in a PlantingData object to a list of planting data. | |
Protected Attributes | |
Vector | mp_oPlantings |
Our array of plantings. | |
ModelVector | mp_fInitialDiam10 |
Slope of growth response for each species. |
Copyright: Copyright (c) Charles D. Canham 2003
Company: Institute of Ecosystem Studies
|
Constructor.
Edit history: ------------------ April 28, 2004: Submitted in beta version (LEM) |
|
This adds the data contained in a PlantingData object to a list of planting data. If there is data to be added, it is compared to existing PlantingData objects on the list. If they match except for the grid cell, then the new object's grid cell is added to the existing object and the new object thrown away. If it is truly new data, it is added to the list. IMPORTANT: This assumes that abundances will be in species order, as they should be if reading a harvest regime file.
Edit history: ------------------ April 28, 2004: Submitted in beta version (LEM) |
|
Checks planting settings upon change of species. This will remove any deleted species.
Reimplemented from javawrapper::WorkerBase. |
|
Changes the names in the grids.
Reimplemented from javawrapper::WorkerBase. |
|
Sets up the planting results grid.
Edit history: ------------------ April 28, 2004: Submitted in beta version (LEM) Implements javawrapper::WorkerBase. |
|
Ensures data is not displayed in parameter window. This behavior group has its own window for data entry.
Reimplemented from javawrapper::WorkerBase. |
|
Reads in an old tab-delimited harvest regime file. Any existing planting data will be replaced with what's in the file.
Edit history: ------------------ April 28, 2004: Submitted in beta version (LEM) |
|
Accepts an XML parent tag (empty, no data) from the parser. This method watches for the following tags:
Edit history: ------------------ May 12, 2004: Created (LEM) Reimplemented from javawrapper::BehaviorTypeBase. |
|
This method looks for the following tags:.
Edit history: ------------------ May 24 2004: Created (LEM) Reimplemented from javawrapper::BehaviorTypeBase. |
|
Sets a data vector's value. This function looks for the parent tag "pl_amountToPlant".
Edit history: ------------------ May 24, 2004: Created in beta version (LEM) Reimplemented from javawrapper::BehaviorTypeBase. |
|
Validates the data prior to writing it. It causes all PlantingData objects to validate themselves.
Edit history: ------------------ April 28, 2004: Submitted in beta version (LEM) Implements javawrapper::WorkerBase. |
|
Overridden because planting parameters are special.
Edit history: ------------------ April 28, 2004: Submitted in beta version (LEM) Reimplemented from javawrapper::BehaviorTypeBase. |
|
Gridded planting. Matches old code enum value - important! |
|
Initial value: new ModelVector( "Avg. diameter at 10 cm for new seedlings", "pl_initialDiam10", "pl_idVal", 0, ModelVector.FLOAT)
|
|
Random planting. Matches old code enum value - important! |