Inheritance diagram for javawrapper::DisturbanceBehaviors:
Public Member Functions | |
DisturbanceBehaviors (GUIManager oManager) throws ModelException | |
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 disturbance writing is special. | |
void | DoSetup (TreePopulation oPop) throws javawrapper.ModelException |
Sets up the grid objects. | |
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 episodic disturbance settings upon change of species. | |
boolean | SetVectorValueByXMLTag (String sXMLTag, String sXMLParentTag, java.util.Vector p_oData, String[] p_sChildXMLTags, boolean[] p_bAppliesTo, org.xml.sax.Attributes oParentAttributes, org.xml.sax.Attributes[] p_oAttributes) throws ModelException |
Overridden for backwards compatibility after changing XML tag names. | |
Static Public Attributes | |
static final int | PARTIAL_CUT = 1 |
Partial cut. | |
static final int | GAP_CUT = 2 |
Gap cut. | |
static final int | CLEAR_CUT = 3 |
Clear cut. | |
static final int | PERCENTAGE_BASAL_AREA = 2 |
Percentage basal area. | |
static final int | ABSOLUTE_BASAL_AREA = 3 |
Absolute basal area. | |
static final int | PERCENTAGE_DENSITY = 0 |
Percentage density. | |
static final int | ABSOLUTE_DENSITY = 1 |
Absolute density. | |
Protected Member Functions | |
Vector | AddHarvestData (Vector oList, HarvestData oNewHarvest) throws ModelException |
This adds the data contained in a HarvestData object to a list of harvest data. | |
Vector | CompactHarvestList (Vector oList) throws ModelException |
Takes a list of HarvestData objects where each is one single species, and replaces it with a list of HarvestData objects for multiple species for any whose data match. | |
Protected Attributes | |
Vector | mp_oHarvestCuts = new Vector(0) |
Our list of harvest cuts, held as HarvestData objects. | |
Vector | mp_oMortEpisodes = new Vector(0) |
List of episodic mortality events, held as HarvestData objects (ignoring the cut type). | |
ModelVector | mp_fMinStormDamageDBH |
Minimum DBH to which storm damage applies for each species. | |
ModelVector | mp_fStmDmgInterceptMed |
Storm damage intercept for medium damage (a) for each species. | |
ModelVector | mp_fStmDmgInterceptFull |
Storm damage intercept for complete damage (a) for each species. | |
ModelVector | mp_fStmIntensityCoeff |
Storm intensity coefficient (b) for each species. | |
ModelVector | mp_fStmDBHCoeff |
Storm DBH coefficient (d) for each species. | |
ModelVector | mp_fStmMedDmgSurvProbA |
Storm - Medium damage probability of survival "a" - species-specific - 01/09/06 LEM. | |
ModelVector | mp_fStmMedDmgSurvProbB |
Storm - Medium damage probability of survival "b" - species-specific - 01/09/06 LEM. | |
ModelVector | mp_fStmFullDmgSurvProbA |
Storm - Heavy damage probability of survival "a" - species-specific - 01/09/06 LEM. | |
ModelVector | mp_fStmFullDmgSurvProbB |
Storm - Heavy damage probability of survival "b" - species-specific - 01/09/06 LEM. | |
ModelVector | mp_fWindstormMinDBH |
Windstorm - Minimum DBH for windstorm mortality - species-specific - 03/19/06 LEM. | |
ModelVector | mp_fWindstormMortInterceptA |
Windstorm - Mortality probability intercept "a" - species-specific - 03/19/06 LEM. | |
ModelVector | mp_fWindstormStmIntensCoeffC |
Windstorm - Mortality probability storm intensity coefficient "c" - species-specific - 03/19/06 LEM. | |
ModelVector | mp_fWindstormDBHExpB |
Windstorm - DBH exponent "b" - species-specific - 03/19/06 LEM. | |
ModelVector | mp_fStmPropFullTipUp |
Storm - proportion of trees with total damage that die that tip up - 05/01/05 LEM. | |
ModelFloat | m_fClass1RtrnInt |
Storm return interval for 0-0.1 severity storm. | |
ModelFloat | m_fClass2RtrnInt |
Storm return interval for 0.1-0.2 severity storm. | |
ModelFloat | m_fClass3RtrnInt |
Storm return interval for 0.2-0.3 severity storm. | |
ModelFloat | m_fClass4RtrnInt |
Storm return interval for 0.3-0.4 severity storm. | |
ModelFloat | m_fClass5RtrnInt |
Storm return interval for 0.4-0.5 severity storm. | |
ModelFloat | m_fClass6RtrnInt |
Storm return interval for 0.5-0.6 severity storm. | |
ModelFloat | m_fClass7RtrnInt |
Storm return interval for 0.6-0.7 severity storm. | |
ModelFloat | m_fClass8RtrnInt |
Storm return interval for 0.7-0.8 severity storm. | |
ModelFloat | m_fClass9RtrnInt |
Storm return interval for 0.8-0.9 severity storm. | |
ModelFloat | m_fClass10RtrnInt |
Storm return interval for 0.9-1.0 severity storm. | |
ModelFloat | m_fWindstormReturnInt1Severity |
Windstorm - Storm intensity for 1 year return interval - LEM 03/19/06. | |
ModelFloat | m_fWindstormReturnInt5Severity |
Windstorm - Storm intensity for 5 year return interval - LEM 03/19/06. | |
ModelFloat | m_fWindstormReturnInt10Severity |
Windstorm - Storm intensity for 10 year return interval - LEM 03/19/06. | |
ModelFloat | m_fWindstormReturnInt20Severity |
Windstorm - Storm intensity for 20 year return interval - LEM 03/19/06. | |
ModelFloat | m_fWindstormReturnInt40Severity |
Windstorm - Storm intensity for 40 year return interval - LEM 03/19/06. | |
ModelFloat | m_fWindstormReturnInt80Severity |
Windstorm - Storm intensity for 80 year return interval - LEM 03/19/06. | |
ModelFloat | m_fWindstormReturnInt160Severity |
Windstorm - Storm intensity for 160 year return interval - LEM 03/19/06. | |
ModelFloat | m_fWindstormReturnInt320Severity |
Windstorm - Storm intensity for 320 year return interval - LEM 03/19/06. | |
ModelFloat | m_fWindstormReturnInt640Severity |
Windstorm - Storm intensity for 640 year return interval - LEM 03/19/06. | |
ModelFloat | m_fWindstormReturnInt1280Severity |
Windstorm - Storm intensity for 1280 year return interval - LEM 03/19/06. | |
ModelFloat | m_fWindstormReturnInt2560Severity |
Windstorm - Storm intensity for 2560 year return interval - LEM 03/19/06. | |
ModelFloat | m_fStdDev |
Standard deviation for normal and lognormal stochastic storm damage functions. | |
ModelFloat | m_fClump |
Clumping parameter for negative binomial stochastic storm damage functions. | |
ModelFloat | m_fCut1LoDBH |
Selection harvest cut range 1 lower DBH - LEM 05/12/05. | |
ModelFloat | m_fCut1HiDBH |
Selection harvest cut range 1 upper DBH - LEM 05/12/05. | |
ModelFloat | m_fCut1BA |
Selection harvest cut range 1 target BA - LEM 05/12/05. | |
ModelFloat | m_fCut2LoDBH |
Selection harvest cut range 2 lower DBH - LEM 05/12/05. | |
ModelFloat | m_fCut2HiDBH |
Selection harvest cut range 2 upper DBH - LEM 05/12/05. | |
ModelFloat | m_fCut2BA |
Selection harvest cut range 2 target BA - LEM 05/12/05. | |
ModelFloat | m_fCut3LoDBH |
Selection harvest cut range 3 lower DBH - LEM 05/12/05. | |
ModelFloat | m_fCut3HiDBH |
Selection harvest cut range 3 upper DBH - LEM 05/12/05. | |
ModelFloat | m_fCut3BA |
Selection harvest cut range 3 target BA - LEM 05/12/05. | |
ModelFloat | m_fCut4LoDBH |
Selection harvest cut range 4 lower DBH - LEM 05/12/05. | |
ModelFloat | m_fCut4HiDBH |
Selection harvest cut range 4 upper DBH - LEM 05/12/05. | |
ModelFloat | m_fCut4BA |
Selection harvest cut range 4 target BA - LEM 05/12/05. | |
ModelInt | m_iInitialAge |
Selection harvest initial age - LEM 05/12/05. | |
ModelInt | m_iWindstormTimestepToStartStorms |
Windstorm - Timestep to start storms - LEM 03/19/06. | |
ModelInt | m_iNumYearsToHeal |
Number of years damaged trees stay damaged. | |
ModelInt | m_iNumSnagYears |
Number of years storm-damaged snags last before being removed - 05/01/05 LEM. | |
ModelEnum | m_iSusceptibility |
Storm susceptibility pattern. | |
ModelEnum | m_iStochasticity |
Storm stochasticity pattern. | |
ModelEnum | m_iProbDistFunc |
Probability distribution function. | |
float | m_iCutRangeLowerBound = -1 |
Placeholder for reading cut ranges from an XML file. | |
float | m_iCutRangeUpperBound = -1 |
Placeholder for reading cut ranges from an XML file. | |
float | m_iCutRangeAmount = -1 |
Placeholder for reading cut ranges from an XML file. | |
int | m_iSelectionHarvestCutRange = 0 |
Placeholder for reading selection harvest cut ranges from an XML file. | |
Private Member Functions | |
void | WriteStorm (BufferedWriter jOut) throws java.io.IOException, ModelException |
Writes the storm data to the parameter file. | |
void | WriteWindstorm (BufferedWriter jOut) throws java.io.IOException, ModelException |
Writes the windstorm data to the parameter file. | |
void | WriteSelectionHarvest (BufferedWriter jOut) throws java.io. IOException, ModelException |
Writes the selection harvest data to the parameter file. | |
void | WriteMortalityEpisode (BufferedWriter jOut, TreePopulation oPop) throws java.io.IOException, ModelException |
Writes the episodic mortality data for the parameter file. | |
void | WriteHarvest (BufferedWriter jOut, TreePopulation oPop) throws java. io.IOException, ModelException |
Writes the harvest data for the parameter file. |
Planting is not included.
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 HarvestData object to a list of harvest data. A HarvestData object is first checked to make sure there are any cut ranges defined; if not, nothing happens. If there is data to be added, it is compared to existing HarvestData 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: It is assumed that the harvest data list is all single-species cuts. This makes this method not very generalized.
Edit history: ------------------ April 28, 2004: Submitted in beta version (LEM) |
|
Checks episodic disturbance 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. |
|
Takes a list of HarvestData objects where each is one single species, and replaces it with a list of HarvestData objects for multiple species for any whose data match.
Edit history: ------------------ April 28, 2004: Submitted in beta version (LEM) |
|
Sets up the grid objects.
Edit history: ------------------ April 28, 2004: Submitted in beta version (LEM) May 13, 2004: Added episodic mortality grid. (LEM) April 4, 2005: Defaulted new storm params (LEM) Implements javawrapper::WorkerBase. |
|
Reads in an old tab-delimited harvest regime file. Any existing harvest 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: ------------------ April 28, 2004: Submitted in beta version (LEM) Reimplemented from javawrapper::BehaviorTypeBase. |
|
Overridden for backwards compatibility after changing XML tag names. This was done in version 6.06 and can be removed after one version, since it was done to a behavior not widely in production at the time of release.
Edit history: ------------------ January 9, 2006: Created (LEM) |
|
Validates the data prior to writing it. What it does:
Edit history: ------------------ April 28, 2004: Submitted in beta version (LEM) April 4, 2005: Added new storm damage applier parameters (LEM) May 2, 2005: Added new storm damage applier parameters (LEM) May 12, 2005: Added selection harvest stuff (LEM) January 9, 2005: Added storm damage stuff (LEM) March 19, 2006: Added windstorm validation (LEM) Implements javawrapper::WorkerBase. |
|
Writes the harvest data for the parameter file. Does nothing if there is no harvest data.
|
|
Writes the episodic mortality data for the parameter file. Does nothing if there is no episodic mortality data.
|
|
Writes the selection harvest data to the parameter file. Does nothing if the selection harvest behavior is not enabled.
|
|
Writes the storm data to the parameter file. Does nothing if the storm behaviors are not enabled.
|
|
Writes the windstorm data to the parameter file. Does nothing if the windstorm behavior is not enabled.
|
|
Overridden because disturbance writing is special.
Edit history: ------------------ April 28, 2004: Submitted in beta version (LEM) May 13, 2004: Added episodic mortality writing. (LEM) May 12, 2005: Added selection harvest writing (LEM) March 19, 2006: Added windstorm parameter writing (LEM) Reimplemented from javawrapper::BehaviorTypeBase. |
|
Absolute basal area. Matches the old code's enum value - that's important!. |
|
Absolute density. Matches the old code's enum value - that's important!. |
|
Clear cut. Matches the old code's enum value - that's important!. |
|
Gap cut. Matches the old code's enum value - that's important!. |
|
Initial value: new ModelFloat(0, "Return Interval for Severity Storm Class 0.9 - 1.0", "st_s10ReturnInterval")
|
|
Initial value: new ModelFloat(0, "Return Interval for Severity Storm Class 0 - 0.1", "st_s1ReturnInterval")
|
|
Initial value: new ModelFloat(0, "Return Interval for Severity Storm Class 0.1 - 0.2", "st_s2ReturnInterval")
|
|
Initial value: new ModelFloat(0, "Return Interval for Severity Storm Class 0.2 - 0.3", "st_s3ReturnInterval")
|
|
Initial value: new ModelFloat(0, "Return Interval for Severity Storm Class 0.3 - 0.4", "st_s4ReturnInterval")
|
|
Initial value: new ModelFloat(0, "Return Interval for Severity Storm Class 0.4 - 0.5", "st_s5ReturnInterval")
|
|
Initial value: new ModelFloat(0, "Return Interval for Severity Storm Class 0.5 - 0.6", "st_s6ReturnInterval")
|
|
Initial value: new ModelFloat(0, "Return Interval for Severity Storm Class 0.6 - 0.7", "st_s7ReturnInterval")
|
|
Initial value: new ModelFloat(0, "Return Interval for Severity Storm Class 0.7 - 0.8", "st_s8ReturnInterval")
|
|
Initial value: new ModelFloat(0, "Return Interval for Severity Storm Class 0.8 - 0.9", "st_s9ReturnInterval")
|
|
Initial value: new ModelFloat(0, "Clumping Parameter (neg. binomial)", "st_clumpingParameter")
|
|
Initial value: new ModelFloat(0, "Selection Harvest Cut Range 1 Target Basal Area (m2/ha)", "sha_target_BA")
|
|
Initial value: new ModelFloat(0, "Selection Harvest Cut Range 1 Upper DBH (cm)", "sha_hiDBH")
|
|
Initial value: new ModelFloat(0, "Selection Harvest Cut Range 1 Lower DBH (cm)", "sha_loDBH")
|
|
Initial value: new ModelFloat(0, "Selection Harvest Cut Range 2 Target Basal Area (m2/ha)", "sha_target_BA")
|
|
Initial value: new ModelFloat(0, "Selection Harvest Cut Range 2 Upper DBH (cm)", "sha_hiDBH")
|
|
Initial value: new ModelFloat(0, "Selection Harvest Cut Range 2 Lower DBH (cm)", "sha_loDBH")
|
|
Initial value: new ModelFloat(0, "Selection Harvest Cut Range 3 Target Basal Area (m2/ha)", "sha_target_BA")
|
|
Initial value: new ModelFloat(0, "Selection Harvest Cut Range 3 Upper DBH (cm)", "sha_hiDBH")
|
|
Initial value: new ModelFloat(0, "Selection Harvest Cut Range 3 Lower DBH (cm)", "sha_loDBH")
|
|
Initial value: new ModelFloat(0, "Selection Harvest Cut Range 4 Target Basal Area (m2/ha)", "sha_target_BA")
|
|
Initial value: new ModelFloat(0, "Selection Harvest Cut Range 4 Upper DBH (cm)", "sha_hiDBH")
|
|
Initial value: new ModelFloat(0, "Selection Harvest Cut Range 4 Lower DBH (cm)", "sha_loDBH")
|
|
Initial value: new ModelFloat(0, "Standard Deviation (lognormal or normal)", "st_standardDeviation")
|
|
Initial value: new ModelFloat(0, "Windstorm - Severity for 10 Year Return Interval Storm", "ws_severityReturnInterval10")
|
|
Initial value: new ModelFloat(0, "Windstorm - Severity for 1280 Year Return Interval Storm", "ws_severityReturnInterval1280")
|
|
Initial value: new ModelFloat(0, "Windstorm - Severity for 160 Year Return Interval Storm", "ws_severityReturnInterval160")
|
|
Initial value: new ModelFloat(0, "Windstorm - Severity for 1 Year Return Interval Storm", "ws_severityReturnInterval1")
|
|
Initial value: new ModelFloat(0, "Windstorm - Severity for 20 Year Return Interval Storm", "ws_severityReturnInterval20")
|
|
Initial value: new ModelFloat(0, "Windstorm - Severity for 2560 Year Return Interval Storm", "ws_severityReturnInterval2560")
|
|
Initial value: new ModelFloat(0, "Windstorm - Severity for 320 Year Return Interval Storm", "ws_severityReturnInterval320")
|
|
Initial value: new ModelFloat(0, "Windstorm - Severity for 40 Year Return Interval Storm", "ws_severityReturnInterval40")
|
|
Initial value: new ModelFloat(0, "Windstorm - Severity for 5 Year Return Interval Storm", "ws_severityReturnInterval5")
|
|
Initial value: new ModelFloat(0, "Windstorm - Severity for 640 Year Return Interval Storm", "ws_severityReturnInterval640")
|
|
Initial value: new ModelFloat(0, "Windstorm - Severity for 80 Year Return Interval Storm", "ws_severityReturnInterval80")
|
|
Placeholder for reading cut ranges from an XML file. This one is for range cut amount |
|
Placeholder for reading cut ranges from an XML file. This one is for DBH range lower bound |
|
Placeholder for reading cut ranges from an XML file. This one is for DBH range upper bound |
|
Initial value: new ModelInt(0, "Selection Harvest Initial Age", "sha_InitialAge")
|
|
Initial value: new ModelInt(0, "Number of Years Storm-Damaged Snags Last", "st_numYearsStormSnags")
|
|
Initial value: new ModelInt(0, "Number of Years Damaged Trees Take to Heal", "st_numYearsToHeal")
|
|
Initial value: new ModelEnum(new int[] {0, 1, 2}, new String[] {"Lognormal", "Normal", "Negative Binomial"} , "Stochastic Pattern Damage Distribution", "st_probFunction")
|
|
Initial value: new ModelEnum(new int[] {0, 1}, new String[] {"Deterministic", "Stochastic"} , "Storm Damage Application", "st_stochasticity")
|
|
Initial value: new ModelEnum(new int[] {0, 1}, new String[] {"Mapped", "Uniform"} , "Plot Storm Susceptibility Pattern", "st_susceptibility")
|
|
Initial value: new ModelInt(0, "Windstorm - Timestep to Start Storms", "ws_stmTSToStartStorms")
|
|
Initial value: new ModelVector( "Minimum DBH for Storm Damage, in cm", "st_minDBH", "st_mdVal", 0, ModelVector.FLOAT)
|
|
Initial value: new ModelVector( "Storm DBH Coefficient (d)", "st_stmDBHCoeff", "st_sdcVal", 0, ModelVector.FLOAT)
|
|
Initial value: new ModelVector( "Storm Damage Intercept (a) for Heavy Damage", "st_stmDmgInterceptFull", "st_sdifVal", 0, ModelVector.FLOAT)
|
|
Initial value: new ModelVector( "Storm Damage Intercept (a) for Medium Damage", "st_stmDmgInterceptMed", "st_sdimVal", 0, ModelVector.FLOAT)
|
|
Initial value: new ModelVector( "Storm Heavy Damage Survival Prob Intercept (a)", "st_stmFullDmgSurvProbA", "st_sfdspaVal", 0, ModelVector.FLOAT)
|
|
Initial value: new ModelVector( "Storm Heavy Damage Survival Prob DBH Coeff. (b)", "st_stmFullDmgSurvProbB", "st_sfdspbVal", 0, ModelVector.FLOAT)
|
|
Initial value: new ModelVector( "Storm Intensity Coefficient (b)", "st_stmIntensityCoeff", "st_sicVal", 0, ModelVector.FLOAT)
|
|
Initial value: new ModelVector( "Storm Medium Damage Survival Prob Intercept (a)", "st_stmMedDmgSurvProbA", "st_smdspaVal", 0, ModelVector.FLOAT)
|
|
Initial value: new ModelVector( "Storm Medium Damage Survival Prob DBH Coeff. (b)", "st_stmMedDmgSurvProbB", "st_smdspbVal", 0, ModelVector.FLOAT)
|
|
Initial value: new ModelVector( "Storm - Prop. Heavy Damage Dead Trees that Tip Up", "st_stmPropTipUpFullDmg", "st_sptufdVal", 0, ModelVector.FLOAT)
|
|
Initial value: new ModelVector( "Windstorm - DBH Exponent (b)", "ws_stmDBHExpB", "ws_sdebVal", 0, ModelVector.FLOAT)
|
|
Initial value: new ModelVector( "Windstorm - Minimum DBH for Windstorm Mortality", "ws_minDBH", "ws_mdVal", 0, ModelVector.FLOAT)
|
|
Initial value: new ModelVector( "Windstorm - Mortality Intercept (a)", "ws_stmInterceptA", "ws_siaVal", 0, ModelVector.FLOAT)
|
|
Initial value: new ModelVector( "Windstorm - Storm Intensity Coefficient (c)", "ws_stmIntensCoeffC", "ws_sicVal", 0, ModelVector.FLOAT)
|
|
Partial cut. Matches the old code's enum value - that's important!. |
|
Percentage basal area. Matches the old code's enum value - that's important!. |
|
Percentage density. Matches the old code's enum value - that's important!. |