SORTIE Java Interface  1
Public Member Functions | Protected Attributes | List of all members
sortie.tools.parfileupdater.PlantingBehaviors Class Reference
Inheritance diagram for sortie.tools.parfileupdater.PlantingBehaviors:
sortie.tools.parfileupdater.GroupBase

Public Member Functions

 PlantingBehaviors ()
 Constructor.
 
boolean readXMLParentTag (String sXMLTag, Attributes oAttributes) throws ModelException
 Accepts an XML parent tag (empty, no data) from the parser.
 
void endXMLParentTag (String sXMLTag)
 
boolean setSingleValueByXMLTag (String sXMLTag, String sXMLParentTag, Attributes oAttributes, String sValue) throws ModelException
 This method looks for the following tags:
 
boolean parentTagOKForQueue (String sTag)
 Takes care of pl_applyToSpecies.
 
- Public Member Functions inherited from sortie.tools.parfileupdater.GroupBase
void writeBehaviorsList (BufferedWriter jOut) throws IOException
 
void writeDataToFile (BufferedWriter jOut) throws IOException
 Writes all data to an XML file.
 
ModelData findObjectByXMLTag (String sXMLTag, String sXMLParentTag)
 Finds an object based on its XML tag.
 
boolean setSingleValueByXMLTag (String sXMLTag, String sXMLParentTag, Attributes oAttributes, String sData) throws ModelException
 Sets a data object's value.
 
ArrayList< BehaviorgetBehaviorByXMLTag (String sXMLTag)
 Finds a behavior by its XML tag.
 
boolean readXMLParentTag (String sXMLTag, Attributes oAttributes) throws ModelException
 Accepts an XML parent tag (empty, no data) from the parser.
 
void endXMLParentTag (String sXMLTag)
 
boolean parentTagOKForQueue (String sTag)
 Some tags get everything messed up in a parsing queue.
 

Protected Attributes

ModelData mp_fInitialDiam10
 List of diam10 values for newly planted trees - one for each species.
 
- Protected Attributes inherited from sortie.tools.parfileupdater.GroupBase
ArrayList< ModelDatamp_oAllData
 All data for this object.
 
String m_sXMLTag
 Highest-level XML tag for this object.
 
Behavior[] mp_oChildBehaviors
 

Additional Inherited Members

- Protected Member Functions inherited from sortie.tools.parfileupdater.GroupBase
void loadDataMember (ModelData oData)
 Takes some data and adds it to all applicable behaviors in their string buffer.
 

Constructor & Destructor Documentation

sortie.tools.parfileupdater.PlantingBehaviors.PlantingBehaviors ( )

Constructor.

Member Function Documentation

void sortie.tools.parfileupdater.PlantingBehaviors.endXMLParentTag ( String  sXMLTag)
boolean sortie.tools.parfileupdater.PlantingBehaviors.parentTagOKForQueue ( String  sTag)

Takes care of pl_applyToSpecies.

boolean sortie.tools.parfileupdater.PlantingBehaviors.readXMLParentTag ( String  sXMLTag,
Attributes  oAttributes 
) throws ModelException

Accepts an XML parent tag (empty, no data) from the parser.

This method watches for the following tags:

  • pl_applyToCell
  • pl_applyToSpecies
  • pl_plantEvent
Parameters
sXMLTagThe XML tag.
oAttributesThe attributes of this object.
Exceptions
ModelExceptionif there is a problem reading this data.
boolean sortie.tools.parfileupdater.PlantingBehaviors.setSingleValueByXMLTag ( String  sXMLTag,
String  sXMLParentTag,
Attributes  oAttributes,
String  sValue 
) throws ModelException

This method looks for the following tags:

  • pl_timestep
  • pl_spaceType
  • pl_distanceOrDensity
Parameters
sXMLTagXML tag of data object whose value is to be set.
sXMLParentTagThe immediate parent tag that sXMLTag is within.
oAttributesAttributes of the object. Ignored, but may be needed by overriding objects.
sValueData value appropriate to the data type
Returns
true if the value was set successfully; false if the value could not be found. (This would not be an error, because I need a way to cycle through the objects until one of the objects comes up with a match.)
Exceptions
ModelExceptionif the value could not be assigned to the data object, or if the cut type or cut type amount values are unrecognized.

Member Data Documentation

ModelData sortie.tools.parfileupdater.PlantingBehaviors.mp_fInitialDiam10
protected
Initial value:
= new ModelData("pl_initialDiam10",
"pl_idVal")

List of diam10 values for newly planted trees - one for each species.

Slope of growth response for each species


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