|
SORTIE Java Interface
1
|
Manages mortality behaviors and data. More...
Public Member Functions | |
| MortalityBehaviors (GUIManager oManager) throws ModelException | |
| Constructor. | |
Public Member Functions inherited from sortie.data.funcgroups.BehaviorTypeBase | |
| BehaviorTypeBase (GUIManager oManager, String sName) | |
| Constructor. | |
| boolean | anyBehaviorsEnabled () |
| Determines if any of the child behaviors are currently enabled. | |
| void | validateData (TreePopulation oPop) throws ModelException |
| Implements data checking. | |
| Behavior | createBehaviorFromParameterFileTag (String sParameterFileTag) throws ModelException |
| Creates a new behavior from an XML parameter file name tag and inserts it into the child behaviors list. | |
| void | sortBehaviors () |
| Sorts the behaviors by list position. | |
| boolean | canBehaviorBeEditedAutomatically (String sParameterFileTag) throws ModelException |
| Whether or not a behavior of a certain class can be automatically edited or instead must use its own special dialog. | |
| boolean | canBehaviorBeDuplicated (String sParameterFileTag) throws ModelException |
| Whether or not a behavior of a certain class can be duplicated in a run. | |
| ArrayList< BehaviorInstantiator > | getAllPossibleBehaviors () |
| Gets all possible behaviors. | |
| Behavior | getBehaviorByXMLParametersParentTag (String sXMLTag, int iPos) |
| Finds a behavior by its XML parameters parent tag. | |
| String | getDescriptor (String sParameterFileTag) |
| Gets the descriptor for a behavior based on its parameter file tag. | |
| Grid[] | getEnabledGridObjects () throws ModelException |
| Gets the list of grid objects which the currently enabled behaviors would be expected to create - and thus would be available to output, etc. | |
| ArrayList< Behavior > | getAllInstantiatedBehaviors () |
| Get all Behavior objects for this group. | |
| void | writeBehaviorNodes (BufferedWriter out, TreePopulation oPop) throws ModelException |
| Writes behavior tags to the parameter file. | |
| ArrayList< Behavior > | getBehaviorByDisplayName (String sDescriptor) |
| Convenience method for getting an instantiated behavior. | |
| ArrayList< Behavior > | getBehaviorByParameterFileTag (String sParameterFileTag) |
| Finds an instantiated behavior by its XML parameter file tag. | |
| void | changeOfSpecies (int iOldNumSpecies, int[] p_iIndexer, String[] p_sNewSpecies) throws ModelException |
| Triggered when there is a change in the species list. | |
| void | copySpecies (int iSpeciesCopyFrom, int iSpeciesCopyTo) throws ModelException |
| Copies one species to another. | |
| ArrayList < BehaviorParameterDisplay > | formatDataForDisplay (TreePopulation oPop) |
| Formats data for display in a set of JTables. | |
| boolean | readDataFromDisplay (Vector< TableData > p_oData, TreePopulation oPop, String sObjectName, int iListPosition) throws ModelException |
| Reads in data from the parameter display window. | |
| void | endOfParameterFileRead () |
| Gets this object's help ID, if it exists. | |
| void | changeOfSpeciesName (String sOldSpecies, String sNewSpecies) throws ModelException |
| Performs any necessary tasks associated with changing the name of a species. | |
| GUIManager | getGUIManager () |
| void | writeXML (BufferedWriter jOut, TreePopulation oPop) throws ModelException |
| Writes the XML data to a parameter file for the behaviors owned by this object. | |
| void | removeBehavior (Behavior oBeh) |
| Removes a behavior from the instantiated list. | |
| String | getName () |
| Returns the user-acceptable name for this object. | |
| void | changeOfPlotResolution (float fOldX, float fOldY, float fNewX, float fNewY) throws ModelException |
| Allows instantiated behaviors to perform any tasks associated with a change of plot resolution. | |
| void | doSetup (TreePopulation oPop) throws ModelException |
| Does any needed setup once the tree population object has data. | |
Static Public Attributes | |
| static final int | harvest = 1 |
| Harvest mortality reason code. | |
| static final int | natural = 2 |
| Natural mortality reason code. | |
| static final int | disease = 3 |
| Disease mortality reason code. | |
| static final int | fire = 4 |
| Fire mortality reason code. | |
| static final int | insects = 5 |
| Insects mortality reason code. | |
| static final int | storm = 6 |
| Storm mortality reason code. | |
Additional Inherited Members | |
Static Public Member Functions inherited from sortie.data.funcgroups.BehaviorTypeBase | |
| static boolean[] | mergeBooleans (boolean[] p_oMergeOne, boolean[] p_oMergeTwo) |
| Merges two boolean arrays and returns an array where there is a true in each array bucket where EITHER array is true. | |
Protected Attributes inherited from sortie.data.funcgroups.BehaviorTypeBase | |
| ArrayList< Behavior > | mp_oInstantiatedBehaviors |
| List of child behaviors currently selected for the run. | |
| ArrayList< BehaviorInstantiator > | mp_oAvailableBehaviors |
| List of possible behaviors that can be created. | |
| GUIManager | m_oManager |
| GUIManager object. | |
| String | m_sName |
| User-consumable name for this object. | |
Manages mortality behaviors and data.
Copyright: Copyright (c) 2003 Charles D. Canham
Company: Cary Institute of Ecosystem Studies
Edit history:
---------------—
December 8, 2011: Wiped the slate clean for version 7 (LEM)
| sortie.data.funcgroups.MortalityBehaviors.MortalityBehaviors | ( | GUIManager | oManager | ) | throws ModelException |
Constructor.
| oManager | GUIManager object. |
| ModelException | passed through from called functions. Should never be thrown. |
|
static |
Disease mortality reason code.
Matches C++ code.
|
static |
Fire mortality reason code.
Matches C++ code.
|
static |
Harvest mortality reason code.
Matches C++ code.
|
static |
Insects mortality reason code.
Matches C++ code.
|
static |
Natural mortality reason code.
Matches C++ code.
|
static |
Storm mortality reason code.
Matches C++ code.
1.8.2