Public Member Functions | |
FoliarChemistryTableDataRequest (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_fN |
The N for this timestep for each species. | |
float[] | mp_fP |
The P for this timestep for each species. | |
float[] | mp_fLignin |
The lignin for this timestep for each species. | |
float[] | mp_fFiber |
The fiber for this timestep for each species. | |
float[] | mp_fCellulose |
The cellulose for this timestep for each species. | |
float[] | mp_fTannins |
The tannins for this timestep for each species. | |
float[] | mp_fPhenolics |
The phenolics for this timestep for each species. | |
float[] | mp_fSLA |
The SLA for this timestep for each species. | |
int[] | mp_iNIndexes |
Translates a data member code to an index in the N array. | |
int[] | mp_iPIndexes |
Translates a data member code to an index in the P array. | |
int[] | mp_iLigninIndexes |
Translates a data member code to an index in the lignin array. | |
int[] | mp_iFiberIndexes |
Translates a data member code to an index in the fiber array. | |
int[] | mp_iCelluloseIndexes |
Translates a data member code to an index in the cellulose array. | |
int[] | mp_iTanninsIndexes |
Translates a data member code to an index in the tannins array. | |
int[] | mp_iPhenolicsIndexes |
Translates a data member code to an index in the phenolics array. | |
int[] | mp_iSLAIndexes |
Translates a data member code to an index in the SLA 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 = 9 |
Number of columns in the table. |
This requires the detailed output file to have data saved from the "Foliar Chemistry" grid.
Copyright: Copyright (c) Charles D. Canham 2006 Company: Institute of Ecosystem Studies
datavisualizer.FoliarChemistryTableDataRequest.FoliarChemistryTableDataRequest | ( | 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.FoliarChemistryTableDataRequest.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.FoliarChemistryTableDataRequest.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.FoliarChemistryTableDataRequest.WantAnyGridFloats | ( | ) |
void datavisualizer.FoliarChemistryTableDataRequest.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.FoliarChemistryTableDataRequest.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.FoliarChemistryTableDataRequest.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 |
Implements datavisualizer.DataRequest.
void datavisualizer.FoliarChemistryTableDataRequest.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.FoliarChemistryTableDataRequest.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.FoliarChemistryTableDataRequest.ClearData | ( | ) | throws ModelException [package, virtual] |
Clears out existing data.
ModelException | Doesn't throw an exception. |
Implements datavisualizer.DataRequest.
float [] datavisualizer.FoliarChemistryTableDataRequest.mp_fN [private] |
The N for this timestep for each species.
float [] datavisualizer.FoliarChemistryTableDataRequest.mp_fP [private] |
The P for this timestep for each species.
float [] datavisualizer.FoliarChemistryTableDataRequest.mp_fLignin [private] |
The lignin for this timestep for each species.
float [] datavisualizer.FoliarChemistryTableDataRequest.mp_fFiber [private] |
The fiber for this timestep for each species.
float [] datavisualizer.FoliarChemistryTableDataRequest.mp_fCellulose [private] |
The cellulose for this timestep for each species.
float [] datavisualizer.FoliarChemistryTableDataRequest.mp_fTannins [private] |
The tannins for this timestep for each species.
float [] datavisualizer.FoliarChemistryTableDataRequest.mp_fPhenolics [private] |
The phenolics for this timestep for each species.
float [] datavisualizer.FoliarChemistryTableDataRequest.mp_fSLA [private] |
The SLA for this timestep for each species.
int [] datavisualizer.FoliarChemistryTableDataRequest.mp_iNIndexes [private] |
Translates a data member code to an index in the N array.
For each species, this gives the code for the N index.
int [] datavisualizer.FoliarChemistryTableDataRequest.mp_iPIndexes [private] |
Translates a data member code to an index in the P array.
For each species, this gives the code for the P index.
int [] datavisualizer.FoliarChemistryTableDataRequest.mp_iLigninIndexes [private] |
Translates a data member code to an index in the lignin array.
For each species, this gives the code for the lignin index.
int [] datavisualizer.FoliarChemistryTableDataRequest.mp_iFiberIndexes [private] |
Translates a data member code to an index in the fiber array.
For each species, this gives the code for the fiber index.
int [] datavisualizer.FoliarChemistryTableDataRequest.mp_iCelluloseIndexes [private] |
Translates a data member code to an index in the cellulose array.
For each species, this gives the code for the cellulose index.
int [] datavisualizer.FoliarChemistryTableDataRequest.mp_iTanninsIndexes [private] |
Translates a data member code to an index in the tannins array.
For each species, this gives the code for the tannins index.
int [] datavisualizer.FoliarChemistryTableDataRequest.mp_iPhenolicsIndexes [private] |
Translates a data member code to an index in the phenolics array.
For each species, this gives the code for the phenolics index.
int [] datavisualizer.FoliarChemistryTableDataRequest.mp_iSLAIndexes [private] |
Translates a data member code to an index in the SLA array.
For each species, this gives the code for the SLA index.
String [] datavisualizer.FoliarChemistryTableDataRequest.mp_sColumnNames [private] |
Initial value:
{"Species", "N (kg/ha)", "P (kg/ha)", "Lignin (kg/ha)", "Fiber (kg/ha)", "Cellulose (kg/ha)", "Tannins (kg/ha)", "Phenolics (kg/ha)", "SLA (kg/ha)"}
Putting them here makes them consistent in all possible display methods.
String [] datavisualizer.FoliarChemistryTableDataRequest.mp_sSpeciesNames [private] |
Array of species names for display.
String datavisualizer.FoliarChemistryTableDataRequest.m_sThisGrid [private] |
Name of the grid from which the data will be collected.
float datavisualizer.FoliarChemistryTableDataRequest.m_fPlotAreaInHa [private] |
Plot area, in hectares.
The number of species.
int datavisualizer.FoliarChemistryTableDataRequest.m_iNumCols = 9 [private] |
Number of columns in the table.