Inheritance diagram for datavisualizer::OverviewTableDataRequest:
Public Member Functions | |
OverviewTableDataRequest (DetailedOutputFileManager oManager, String sChartName) | |
Constructor. | |
boolean | WantAnyTreeFloats () |
This wants diameter values for all trees. | |
void | AddTreeFloatDataMemberCode (int iSpecies, int iType, String sLabel, int iCode) |
Accepts a tree float data member code. | |
void | AddTreeFloatData (int iSpecies, int iType, int iCode, float fVal) |
Accepts a tree float data member value. | |
Protected Member Functions | |
void | WriteChartDataToFile (java.io.FileWriter jOut) throws java.io. IOException |
Saves the data in the current table as a tab-delimited text file. | |
Package Functions | |
void | UpdateChart (Legend oLegend) throws javawrapper.ModelException |
Causes the table to refresh its data. | |
JInternalFrame | DrawChart (Legend oLegend, String sChartTitle) throws javawrapper.ModelException |
Draws the table. | |
void | ClearData () |
Sets all the values in the data collection arrays back to 0. | |
Private Member Functions | |
Object[][][] | CreateDataset () |
Creates a table dataset out of the accumulated data. | |
Private Attributes | |
float[][] | mp_fABA |
Basal area data. | |
int[][] | mp_iADN |
Absolute density data. | |
int[][] | mp_iDbhCode |
Holds the data codes for diameter (diam10 or DBH). | |
float | m_fPlotAreaInHectares |
Area of the plot, in hectares. | |
int | m_iNumSpecies |
Number of total species. |
The tabulation of density and basal area data is based on the diameter value for each tree life history stage (that is, diameter at 10 cm for seedlings and DBH for everything else). For density, the number of diameter values encountered is counted; for basal area, the individual basal areas calculated from DBH are totaled. All values are displayed in per hectare units.
Technically, density data could be extracted from any tree data member, since counting up the total is all that is required. I didn't do it that way because I'm a little lazy, and I'll wait for a hue and cry from the users before unnecessarily complicating my code.
Copyright: Copyright (c) Charles D. Canham 2003
Company: Institute of Ecosystem Studies
|
Constructor. Declares all the arrays.
Edit history: ------------------ August 4, 2004: Created (LEM) |
|
Accepts a tree float data member value. If it matches our code, we'll increment the density count and the basal area total, if it's bigger than a seedling.
Edit history: ------------------ August 4, 2004: Created (LEM) Reimplemented from datavisualizer::DataRequest. |
|
Accepts a tree float data member code. We're looking for diam10 for seedlings, and DBH for all other tree types supported.
Edit history: ------------------ August 4, 2004: Created (LEM) Reimplemented from datavisualizer::DataRequest. |
|
Sets all the values in the data collection arrays back to 0.
Implements datavisualizer::DataRequest. |
|
Creates a table dataset out of the accumulated data. The four primary arrays within the overall array are ready to pass to the table constructor.
Edit history: ------------------ August 4, 2004: Created (LEM) |
|
Draws the table.
Edit history: ------------------ August 4, 2004: Created (LEM) Implements datavisualizer::DataRequest. |
|
Causes the table to refresh its data.
Edit history: ------------------ August 4, 2004: Created (LEM) Implements datavisualizer::DataRequest. |
|
This wants diameter values for all trees.
Edit history: ------------------ August 4, 2004: Created (LEM) Reimplemented from datavisualizer::DataRequest. |
|
Saves the data in the current table as a tab-delimited text file.
Edit history: ------------------ November 12, 2004: Created (LEM) Implements datavisualizer::DataRequest. |
|
Basal area data. Array indexes are #1 - type and #2 - species. |
|
Absolute density data. Array indexes are #1 - type and #2 - species. |
|
Holds the data codes for diameter (diam10 or DBH). Array indexes are #1 - type and #2 - species. |