Inheritance diagram for datavisualizer.StormKilledPartitionedBiomassDataRequest:

Public Member Functions | |
| StormKilledPartitionedBiomassDataRequest (String sChartName, DetailedOutputFileManager oManager) throws ModelException | |
| Constructor. | |
| void | AddGridFloatData (String sGridName, int iX, int iY, int iCode, float fVal) |
| This accepts float data. | |
| boolean | WantAnyGridFloats () |
| This wants floats. | |
| void | AddGridFloatDataMemberCode (String sGridName, String sLabel, int iCode) |
| Accepts a grid float data member code for future reference when passed float data members. | |
Protected Member Functions | |
| void | WriteChartDataToFile (java.io.FileWriter jOut) throws java.io. IOException |
| Writes the table's data to tab-delimited text. | |
Package Functions | |
| ModelInternalFrame | DrawChart (Legend oLegend, String sChartTitle) throws ModelException |
| Creates a table of the results that have been collected. | |
| void | UpdateChart (Legend oLegend) throws ModelException |
| Redraws the chart using the existing dataset. | |
| void | ClearData () throws ModelException |
| Clears out existing data. | |
Private Member Functions | |
| int | GetSpeciesFromDataMemberLabel (String sLabel) |
| Gets the species from a data member label which ends in "_x", where x is the species number. | |
| JPanel | CreateTable (Legend oLegend) throws ModelException |
| Creates the results table. | |
Private Attributes | |
| float[] | mp_fLeafBiomass |
| The leaf biomass for this timestep for each species. | |
| float[] | mp_fBranchBiomass |
| The branch biomass for this timestep for each species. | |
| float[] | mp_fBoleBiomass |
| The bole biomass for this timestep for each species. | |
| float[] | mp_fPalmLeafBiomass |
| The palm leaf biomass for this timestep for each species. | |
| float[] | mp_fPalmBoleBiomass |
| The palm bole biomass for this timestep for each species. | |
| int[] | mp_iLeafBiomassIndexes |
| Translates a data member code to an index in the leaf biomass array. | |
| int[] | mp_iBranchBiomassIndexes |
| Translates a data member code to an index in the branch biomass array. | |
| int[] | mp_iBoleBiomassIndexes |
| Translates a data member code to an index in the bole biomass array. | |
| int[] | mp_iPalmLeafBiomassIndexes |
| Translates a data member code to an index in the palm leaf biomass array. | |
| int[] | mp_iPalmBoleBiomassIndexes |
| Translates a data member code to an index in the palm bole biomass array. | |
| String[] | mp_sColumnNames |
| Table column headers. | |
| String[] | mp_sSpeciesNames |
| Array of species names for display. | |
| String | m_sThisGrid |
| Name of the grid from which the data will be collected. | |
| float | m_fPlotAreaInHa |
| Plot area, in hectares. | |
| int | m_iNumSpecies |
| The number of species. | |
| int | m_iNumCols = 6 |
| Number of columns in the table. | |
This requires the detailed output file to have data saved from the "Storm Killed Partitioned Biomass" grid.
Copyright: Copyright (c) Charles D. Canham 2006 Company: Institute of Ecosystem Studies
| datavisualizer.StormKilledPartitionedBiomassDataRequest.StormKilledPartitionedBiomassDataRequest | ( | String | sChartName, | |
| DetailedOutputFileManager | oManager | |||
| ) | throws ModelException |
Constructor.
| sChartName | Name of the chart | |
| oManager | Detailed output file manager |
| ModelException | not really, but I have to declare this. |
| void datavisualizer.StormKilledPartitionedBiomassDataRequest.WriteChartDataToFile | ( | java.io.FileWriter | jOut | ) | throws java.io. IOException [protected, virtual] |
Writes the table's data to tab-delimited text.
| jOut | java.io.FileWriter The file to write to. |
| java.io.IOException | if there's a problem writing the file. |
Implements datavisualizer.DataRequest.
| void datavisualizer.StormKilledPartitionedBiomassDataRequest.AddGridFloatData | ( | String | sGridName, | |
| int | iX, | |||
| int | iY, | |||
| int | iCode, | |||
| float | fVal | |||
| ) |
This accepts float data.
The index vector is consulted and the values added to the appropriate array location.
| sGridName | Name of the grid for this data | |
| iX | X number of the cell from which this value came | |
| iY | Y number of the cell from which this value came | |
| iCode | Data member code of this value. | |
| fVal | Value. |
Reimplemented from datavisualizer.DataRequest.
| boolean datavisualizer.StormKilledPartitionedBiomassDataRequest.WantAnyGridFloats | ( | ) |
| void datavisualizer.StormKilledPartitionedBiomassDataRequest.AddGridFloatDataMemberCode | ( | String | sGridName, | |
| String | sLabel, | |||
| int | iCode | |||
| ) |
Accepts a grid float data member code for future reference when passed float data members.
| sGridName | Name of the grid | |
| sLabel | The label of the data member. | |
| iCode | The data member code. |
Reimplemented from datavisualizer.DataRequest.
| int datavisualizer.StormKilledPartitionedBiomassDataRequest.GetSpeciesFromDataMemberLabel | ( | String | sLabel | ) | [private] |
Gets the species from a data member label which ends in "_x", where x is the species number.
| sLabel | The data member label. |
| ModelInternalFrame datavisualizer.StormKilledPartitionedBiomassDataRequest.DrawChart | ( | Legend | oLegend, | |
| String | sChartTitle | |||
| ) | throws ModelException [package, virtual] |
Creates a table of the results that have been collected.
| oLegend | The species legend. | |
| sChartTitle | The chart title. |
| datavisualizer.ModelException | Edit history: ------------------ November 9, 2006: Created (LEM) |
Implements datavisualizer.DataRequest.
| void datavisualizer.StormKilledPartitionedBiomassDataRequest.UpdateChart | ( | Legend | oLegend | ) | throws ModelException [package, virtual] |
Redraws the chart using the existing dataset.
| oLegend | The legend for this chart. |
| ModelException | if anything goes wrong with the chart drawing. |
Implements datavisualizer.DataRequest.
| JPanel datavisualizer.StormKilledPartitionedBiomassDataRequest.CreateTable | ( | Legend | oLegend | ) | throws ModelException [private] |
Creates the results table.
| oLegend | Legend for this chart. |
| ModelException | If anything goes wrong with the drawing. |
| void datavisualizer.StormKilledPartitionedBiomassDataRequest.ClearData | ( | ) | throws ModelException [package, virtual] |
Clears out existing data.
| ModelException | Doesn't throw an exception. |
Implements datavisualizer.DataRequest.
float [] datavisualizer.StormKilledPartitionedBiomassDataRequest.mp_fLeafBiomass [private] |
The leaf biomass for this timestep for each species.
float [] datavisualizer.StormKilledPartitionedBiomassDataRequest.mp_fBranchBiomass [private] |
The branch biomass for this timestep for each species.
float [] datavisualizer.StormKilledPartitionedBiomassDataRequest.mp_fBoleBiomass [private] |
The bole biomass for this timestep for each species.
float [] datavisualizer.StormKilledPartitionedBiomassDataRequest.mp_fPalmLeafBiomass [private] |
The palm leaf biomass for this timestep for each species.
float [] datavisualizer.StormKilledPartitionedBiomassDataRequest.mp_fPalmBoleBiomass [private] |
The palm bole biomass for this timestep for each species.
Translates a data member code to an index in the leaf biomass array.
For each species, this gives the code for the leaf biomass index.
Translates a data member code to an index in the branch biomass array.
For each species, this gives the code for the branch biomass index.
Translates a data member code to an index in the bole biomass array.
For each species, this gives the code for the bole biomass index.
Translates a data member code to an index in the palm leaf biomass array.
For each species, this gives the code for the palm leaf biomass index.
Translates a data member code to an index in the palm bole biomass array.
For each species, this gives the code for the palm bole biomass index.
String [] datavisualizer.StormKilledPartitionedBiomassDataRequest.mp_sColumnNames [private] |
Initial value:
{"Species", "Leaf (Mg/ha)",
"Branch (Mg/ha)", "Bole (Mg/ha)", "Palm Leaf (Mg/ha)",
"Palm Bole (Mg/ha)"}
Putting them here makes them consistent in all possible display methods.
String [] datavisualizer.StormKilledPartitionedBiomassDataRequest.mp_sSpeciesNames [private] |
Array of species names for display.
String datavisualizer.StormKilledPartitionedBiomassDataRequest.m_sThisGrid [private] |
Name of the grid from which the data will be collected.
Plot area, in hectares.
The number of species.
int datavisualizer.StormKilledPartitionedBiomassDataRequest.m_iNumCols = 6 [private] |
Number of columns in the table.
1.5.2