|
| 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.
|
|
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< Behavior > | getBehaviorByXMLTag (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.
|
|
|
void | loadDataMember (ModelData oData) |
| Takes some data and adds it to all applicable behaviors in their string buffer.
|
|
sortie.tools.parfileupdater.PlantingBehaviors.PlantingBehaviors |
( |
| ) |
|
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
-
sXMLTag | The XML tag. |
oAttributes | The attributes of this object. |
- Exceptions
-
ModelException | if 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
-
sXMLTag | XML tag of data object whose value is to be set. |
sXMLParentTag | The immediate parent tag that sXMLTag is within. |
oAttributes | Attributes of the object. Ignored, but may be needed by overriding objects. |
sValue | Data 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
-
ModelException | if the value could not be assigned to the data object, or if the cut type or cut type amount values are unrecognized. |
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: