SORTIE Java Interface  1
Public Member Functions | Protected Attributes | List of all members
sortie.data.funcgroups.Tree Class Reference

Represents a single tree's data. More...

Inheritance diagram for sortie.data.funcgroups.Tree:
sortie.data.simpletypes.DataMemberData

Public Member Functions

 Tree (int iType, int iSpecies, int iNumFloats, int iNumInts, int iNumChars, int iNumBools, TreePopulation oPop) throws ModelException
 Constructor. More...
 
int getType ()
 
int getSpecies ()
 
void writeXML (BufferedWriter jOut) throws java.io.IOException
 Writes this tree's data to XML. More...
 
- Public Member Functions inherited from sortie.data.simpletypes.DataMemberData
 DataMemberData (int iNumFloats, int iNumInts, int iNumChars, int iNumBools) throws ModelException
 Constructor. More...
 
int getNumberOfFloats ()
 
int getNumberOfInts ()
 
int getNumberOfBools ()
 
int getNumberOfChars ()
 
void setValue (int iIndex, Integer iValue) throws ModelException
 Sets an integer data member's value. More...
 
void setValue (int iIndex, Float fValue) throws ModelException
 Sets a float data member's value. More...
 
void setValue (int iIndex, Boolean bValue) throws ModelException
 Sets a boolean data member's value. More...
 
void setValue (int iIndex, String sValue) throws ModelException
 Sets a char data member's value. More...
 
Float getFloat (int iIndex) throws ModelException
 Gets a float data member's value. More...
 
Integer getInt (int iIndex) throws ModelException
 Gets an int data member's value. More...
 
Boolean getBool (int iIndex) throws ModelException
 Gets a boolean data member's value. More...
 
String getChar (int iIndex) throws ModelException
 Gets a char data member's value. More...
 
void removeFloat (int iIndex) throws ModelException
 Removes a float data member's value. More...
 
void removeInt (int iIndex) throws ModelException
 Removes an int data member's value. More...
 
void removeBool (int iIndex) throws ModelException
 Removes a bool data member's value. More...
 
void removeChar (int iIndex) throws ModelException
 Removes a char data member's value. More...
 

Protected Attributes

int m_iSpecies
 Tree's species. More...
 
- Protected Attributes inherited from sortie.data.simpletypes.DataMemberData
Float [] mp_fFloats
 Float data members. More...
 
Integer [] mp_iInts
 Int data members. More...
 
Boolean [] mp_bBools
 Bool data members. More...
 
String [] mp_sChars
 Char data members - these may get truncated when read into C++. More...
 

Detailed Description

Represents a single tree's data.

Individuals can thus be stored and turned into a tree map for the model.

Copyright: Copyright (c) Charles D. Canham 2003

Company: Cary Institute of Ecosystem Studies

Author
Lora E. Murphy
Version
1.0

Constructor & Destructor Documentation

◆ Tree()

sortie.data.funcgroups.Tree.Tree ( int  iType,
int  iSpecies,
int  iNumFloats,
int  iNumInts,
int  iNumChars,
int  iNumBools,
TreePopulation  oPop 
) throws ModelException

Constructor.

Creates the arrays.

Parameters
iTypeTree's type
iSpeciesTree's species
iNumFloatsNumber of float data members
iNumIntsNumber of integer data members
iNumCharsNumber of char (String) data members
iNumBoolsNumber of bool data members
oPopTreePopulation object
Exceptions
ModelExceptionif the species or type numbers are invalid

Member Function Documentation

◆ getSpecies()

int sortie.data.funcgroups.Tree.getSpecies ( )

◆ getType()

int sortie.data.funcgroups.Tree.getType ( )

◆ writeXML()

void sortie.data.funcgroups.Tree.writeXML ( BufferedWriter  jOut) throws java.io.IOException

Writes this tree's data to XML.

Parameters
jOutFile to write to.
Exceptions
java.io.IOExceptionif there is a problem writing to file.

Member Data Documentation

◆ m_iSpecies

int sortie.data.funcgroups.Tree.m_iSpecies
protected

Tree's species.


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