Inheritance diagram for datavisualizer::HarvestDataRequest:
Public Member Functions | |
HarvestDataRequest (String sChartName, DetailedOutputFileManager oManager) throws ModelException | |
Constructor. | |
void | AddGridFloatData (String sGridName, int iX, int iY, int iCode, float fVal) |
If this is from a Results grid, it is assumed to be a basal area value. | |
void | AddGridIntData (String sGridName, int iX, int iY, int iCode, int iVal) |
If this is from a Results grid, it is assumed to be a density value. | |
boolean | WantAnyGridFloats () |
This wants floats. | |
boolean | WantAnyGridInts () |
This wants ints. | |
void | AddGridFloatDataMemberCode (String sGridName, String sLabel, int iCode) |
Accepts a grid float data member code for future reference when passed float data members. | |
void | AddGridIntDataMemberCode (String sGridName, String sLabel, int iCode) |
Accepts a grid int data member code for future reference when passed int 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. |
A harvest table requires the detailed output file to have data saved from the "Harvest Results" grid; for mortality episodes, the "Mortality Episode Results" grid.
Copyright: Copyright (c) Charles D. Canham 2003
Company: Institute of Ecosystem Studies
datavisualizer::HarvestDataRequest::HarvestDataRequest | ( | String | sChartName, | |
DetailedOutputFileManager | oManager | |||
) | throws ModelException [inline] |
Constructor.
sChartName | Name of the chart | |
oManager | Detailed output file manager |
ModelException | not really, but I have to declare this. |
void datavisualizer::HarvestDataRequest::WriteChartDataToFile | ( | java.io.FileWriter | jOut | ) | throws java.io. IOException [inline, 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::HarvestDataRequest::AddGridFloatData | ( | String | sGridName, | |
int | iX, | |||
int | iY, | |||
int | iCode, | |||
float | fVal | |||
) | [inline] |
If this is from a Results grid, it is assumed to be a basal area value.
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.
void datavisualizer::HarvestDataRequest::AddGridIntData | ( | String | sGridName, | |
int | iX, | |||
int | iY, | |||
int | iCode, | |||
int | iVal | |||
) | [inline] |
If this is from a Results grid, it is assumed to be a density value.
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. | |
iVal | Value. |
Reimplemented from datavisualizer::DataRequest.
boolean datavisualizer::HarvestDataRequest::WantAnyGridFloats | ( | ) | [inline] |
This wants floats.
Reimplemented from datavisualizer::DataRequest.
boolean datavisualizer::HarvestDataRequest::WantAnyGridInts | ( | ) | [inline] |
This wants ints.
Reimplemented from datavisualizer::DataRequest.
void datavisualizer::HarvestDataRequest::AddGridFloatDataMemberCode | ( | String | sGridName, | |
String | sLabel, | |||
int | iCode | |||
) | [inline] |
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.
void datavisualizer::HarvestDataRequest::AddGridIntDataMemberCode | ( | String | sGridName, | |
String | sLabel, | |||
int | iCode | |||
) | [inline] |
Accepts a grid int data member code for future reference when passed int data members.
sGridName | Name of the grid | |
sLabel | The label of the data member. | |
iCode | The data member code. |
Reimplemented from datavisualizer::DataRequest.
ModelInternalFrame datavisualizer::HarvestDataRequest::DrawChart | ( | Legend | oLegend, | |
String | sChartTitle | |||
) | throws ModelException [inline, package, virtual] |
Creates a table of the results that have been collected.
oLegend | The species legend. | |
sChartTitle | The chart title. |
datavisualizer.ModelException | Edit history: ------------------ April 28, 2004: Submitted in beta version (LEM) |
Implements datavisualizer::DataRequest.
void datavisualizer::HarvestDataRequest::UpdateChart | ( | Legend | oLegend | ) | throws ModelException [inline, 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.
void datavisualizer::HarvestDataRequest::ClearData | ( | ) | throws ModelException [inline, package, virtual] |
Clears out existing data.
ModelException | Doesn't throw an exception. |
Implements datavisualizer::DataRequest.