SORTIE Java Interface  1
Public Member Functions | List of all members
sortie.data.funcgroups.disperse.NonGapSpatialDisperse Class Reference

Corresponds to the clSpatialDispersal class. More...

Inheritance diagram for sortie.data.funcgroups.disperse.NonGapSpatialDisperse:
sortie.data.funcgroups.disperse.SpatialDisperseBase sortie.data.funcgroups.disperse.DisperseBase sortie.data.funcgroups.Behavior

Public Member Functions

 NonGapSpatialDisperse (GUIManager oManager, BehaviorTypeBase oParent, String sDescriptor, String sParFileTag, String sXMLRootString)
 Constructor.
 
void validateData (TreePopulation oPop) throws ModelException
 Validates the data before writing to a parameter file.
 
- Public Member Functions inherited from sortie.data.funcgroups.disperse.SpatialDisperseBase
 SpatialDisperseBase (GUIManager oManager, BehaviorTypeBase oParent, String sDescriptor, String sParFileTag, String sXMLRootString, String sHelpFileString)
 Constructor.
 
void changeOfSpecies (int iOldNumSpecies, int[] p_iIndexer, String[] p_sNewSpecies) throws ModelException
 Overridden to redo the enums.
 
- Public Member Functions inherited from sortie.data.funcgroups.disperse.DisperseBase
 DisperseBase (GUIManager oManager, BehaviorTypeBase oParent, String sDescriptor, String sParFileTag, String sXMLRootString, String sHelpFileString)
 Constructor.
 
- Public Member Functions inherited from sortie.data.funcgroups.Behavior
GUIManager getGUIManager ()
 
 Behavior (GUIManager oManager, BehaviorTypeBase oParent, String sDescriptor, String sParFileTag, String sXMLRootString, String sHelpFileString)
 Constructor.
 
void callSetupDialog (JDialog jParent, MainWindow oMain)
 Override this to call a specific setup dialog for this behavior.
 
int getNumberOfDataObjects ()
 Gets the number of managed data objects.
 
ModelData getDataObject (int iInd)
 Gets the managed data object at a particular index.
 
void validate () throws ModelException
 Behavior performs an internal check to make sure its settings are consistent and logical.
 
void setListPosition (int iListPosition)
 Sets the behavior list position.
 
int getListPosition ()
 Gets the behavior list position.
 
String getXMLParametersRoot ()
 Gets the XML parameter root string.
 
int getNumberNewDataMembers ()
 
DataMember getNewTreeDataMember (int iIndex) throws ModelException
 
void setCanApplyTo (int iType, boolean bCanApply)
 Sets whether this behavior can apply to a given tree type.
 
String getParameterFileBehaviorName ()
 Gets the parameter file name for this behavior.
 
double getVersion ()
 Gets behavior's parameter file version.
 
double getMinimumVersion ()
 Gets behavior's parameter file minimum version.
 
String getDescriptor ()
 Gets the descriptor string.
 
String getHelpFileString ()
 Gets the help file UD.
 
void setDescriptor (String s)
 Sets the descriptor string.
 
int getNumberOfCombos ()
 Gets the number of species/type combos to which this behavior applies.
 
int getNumberOfGrids ()
 Gets the number of grids to which this behavior applies.
 
void deleteSpeciesTypeCombo (int iIndex) throws ModelException
 Deletes the SpeciesTypeCombo at the given index.
 
void deleteSpeciesTypeCombo (SpeciesTypeCombo oCombo) throws ModelException
 Deletes a SpeciesTypeCombo.
 
void clearSpeciesTypeCombos ()
 Empties the species/type combo list.
 
SpeciesTypeCombo getSpeciesTypeCombo (int iIndex) throws ModelException
 Returns the SpeciesTypeCombo at the given index of the species/type combo list.
 
Grid getGrid (int iIndex) throws ModelException
 Returns the Grid at the given index of the grid applies to list.
 
ModelData getRequiredData (int iIndex)
 Returns the required data object at a given index.
 
int getNumberOfRequiredDataObjects ()
 Gets the number of required data objects for this behavior.
 
void addSpeciesTypeCombo (SpeciesTypeCombo oCombo) throws ModelException
 Adds a new species/type combo to the list to which this behavior applies.
 
void addGrid (Grid oGrid)
 Adds a new Grid to the list to which this behavior applies.
 
void addRequiredData (ModelData oData)
 Adds a piece of required data to the list.
 
boolean[] getWhichSpeciesUsed (TreePopulation oPop)
 Returns which species to which this behavior is applied.
 
boolean setVectorValueByXMLTag (String sXMLTag, String sXMLParentTag, ArrayList< String > p_oData, String[] p_sChildXMLTags, boolean[] p_bAppliesTo, Attributes oParentAttributes, Attributes[] p_oAttributes) throws ModelException
 Sets a data vector's value.
 
boolean setSingleValueByXMLTag (String sXMLTag, String sXMLParentTag, Attributes oAttributes, Object oData) throws ModelException
 Sets a data object's value.
 
ModelData findObjectByXMLTag (String sXMLTag)
 Finds an object based on its XML tag.
 
void copySpecies (int iSpeciesCopyFrom, int iSpeciesCopyTo) throws ModelException
 Copies one species to another.
 
void writeXML (BufferedWriter jOut, TreePopulation oPop) throws ModelException
 Writes the XML data to a parameter file for the behaviors owned by this object.
 
void writeSpeciesSpecificValue (BufferedWriter jOut, ModelVector p_oData, TreePopulation oPop) throws java.io.IOException, ModelException
 Writes a set of species-specific float values to a parameter file.
 
void writeSpeciesSpecificValue (BufferedWriter jOut, ModelVector p_oData, TreePopulation oPop, boolean[] p_bFlags) throws java.io.IOException, ModelException
 Writes a set of species-specific values to a parameter file for a certain subset of species.
 
void readXMLParentTag (String sXMLTag, Attributes oAttributes) throws ModelException
 Accepts an XML parent tag (empty, no data) from the parser.
 
void changeOfSpeciesName (String sOldSpecies, String sNewSpecies)
 Performs any necessary tasks associated with changing the name of a species.
 
void changeOfSpecies (int iOldNumSpecies, int[] p_iIndexer, String[] p_sNewSpecies) throws ModelException
 Triggered when there is a change in the species list.
 
boolean getMustHaveTrees ()
 Gets whether this behavior must have trees.
 
ModelData findObjectByDescriptor (String sDescriptor)
 Finds an object based on its descriptor.
 
void writeBehaviorNode (BufferedWriter out, TreePopulation oPop) throws ModelException
 Writes behavior tags to the parameter file.
 
ArrayList
< BehaviorParameterDisplay
formatDataForDisplay (TreePopulation oPop)
 Formats data for display in a set of JTables.
 
String getAppliedToForDisplay (TreePopulation oPop)
 Get which species/types this behavior applies to, in a display-friendly format truncated to 250 chars.
 
void readDataFromDisplay (ArrayList< BehaviorParameterDisplay > oData, TreePopulation oPop) throws ModelException
 Reads in data from the parameter display window.
 
boolean canBeDuplicated ()
 Whether or not this behavior can be duplicated in the run.
 
void endOfParameterFileRead ()
 Called at the end of the parameter file read process.
 
void changeOfPlotResolution (float fOldX, float fOldY, float fNewX, float fNewY) throws ModelException
 Performs any tasks associated with a change of plot resolution.
 
setupType getSetupType ()
 
void writeParametersToTextFile (FileWriter jOut, TreePopulation oPop) throws IOException
 Writes the parameters for the behavior to file, using the same system as the basic parameter display and entry system.
 

Additional Inherited Members

- Static Public Member Functions inherited from sortie.data.funcgroups.disperse.DisperseBase
static void initialize ()
 Initializes the static members.
 
- Public Attributes inherited from sortie.data.funcgroups.Behavior
boolean m_bMustHaveTrees = true
 If true, and a tree has no species/type combos, it automatically becomes disabled.
 
- Static Public Attributes inherited from sortie.data.funcgroups.disperse.SpatialDisperseBase
static final int WEIBULL = 0
 Weibull disperse function.
 
static final int LOGNORMAL = 1
 Lognormal disperse function.
 
static final int CANOPY = 0
 Canopy forest cover status for cells.
 
static final int GAP = 1
 Gap forest cover status for cells.
 
static final int NUMBER_OF_DISPERSE_FUNCTIONS = 2
 Total number of disperse functions.
 
static final int NUMBER_OF_FOREST_COVERS = 2
 Total number of forest cover statuses.
 
- Protected Member Functions inherited from sortie.data.funcgroups.Behavior
void setSingleValue (ModelData oDataMember, Object oData) throws ModelException
 Sets the value of a single data member.
 
BehaviorParameterDisplay formatTable (ArrayList< ModelData > p_oSingles, ArrayList< ArrayList< SpeciesSpecific >> p_oSpeciesSpecific, TreePopulation oPop)
 Turns vector groups of data objects into a set of tables for display.
 
- Static Protected Member Functions inherited from sortie.data.funcgroups.Behavior
static boolean boolArraysEqual (boolean[] p_bArrayOne, boolean[] p_bArrayTwo)
 Tests two boolean arrays for equality.
 
- Protected Attributes inherited from sortie.data.funcgroups.disperse.SpatialDisperseBase
ModelVector[][] mp_fSTR
 STR for disperse function.
 
ModelVector[][] mp_fBeta
 Beta for disperse function.
 
ModelVector[][] mp_fThetaOrXb
 Theta (if weibull) or Xb (if lognormal) for disperse function.
 
ModelVector[][] mp_fDispOrX0
 Dispersal (if weibull) or X0 (if lognormal) for disperse function.
 
ModelVector[] mp_iWhichFunctionUsed
 Which disperse function to use under each forest cover - valid values are WEIBULL and LOGNORMAL - this is a vector of ModelEnums.
 
ModelVector mp_fStumpSTR
 STR for stump dispersal for each species.
 
ModelVector mp_fStumpBeta
 Beta for stump dispersal for each species.
 
- Static Protected Attributes inherited from sortie.data.funcgroups.disperse.DisperseBase
static ModelVector mp_fStandardDeviation
 Standard deviation if seed distribution method is normal or lognormal.
 
static ModelVector mp_fClumpingParameter
 Clumping parameter if seed distribution is negative binomial.
 
static ModelEnum m_iSeedDistributionMethod
 Seed distribution.
 

Detailed Description

Corresponds to the clSpatialDispersal class.

Author
lora

Constructor & Destructor Documentation

sortie.data.funcgroups.disperse.NonGapSpatialDisperse.NonGapSpatialDisperse ( GUIManager  oManager,
BehaviorTypeBase  oParent,
String  sDescriptor,
String  sParFileTag,
String  sXMLRootString 
)

Constructor.

Parameters
oManagerGUIManager object
oParentParent managing object.
sDescriptorThe name of the behavior for the user.
sParFileTagString which is used to identify this behavior in the parameter file.
sXMLRootStringXML tag to surround this behavior's data.
Exceptions
ModelException

Member Function Documentation

void sortie.data.funcgroups.disperse.NonGapSpatialDisperse.validateData ( TreePopulation  oPop) throws ModelException
virtual

Validates the data before writing to a parameter file.

Parameters
oPopTreePopulation object.
Exceptions
ModelExceptionif:
  • Any value in mp_fMinDbhForReproduction is 0
  • A value for weibull theta is greater than or equal to 50
  • A value for beta is greater than 25
  • Fraction participating, either masting or non-masting, is not a proportion
  • All values for X0 and Xb are not 0

Implements sortie.data.funcgroups.Behavior.


The documentation for this class was generated from the following file: