Public Member Functions | |
void | SetParFileTimesteps (int i) |
Sets the number of timesteps for the detailed output file parameter file. | |
int | GetNumberOfActualTimesteps () |
Gets the number of actual data timesteps contained in this detailed output file (as opposed to how many the par file says there are). | |
void | SetSubplotXCellLength (float f) |
Sets the subplot X cell length. | |
void | SetSubplotYCellLength (float f) |
Sets the subplot Y cell length. | |
boolean | IsThisSubplot (String sSubplotName) |
Checks to see if a subplot name indicates that the detailed output file being managed is in fact for that subplot. | |
float | GetPlotArea () |
Gets the area of this plot or subplot, in ha. | |
JInternalFrame | DrawChart (String sGraphName) throws ModelException |
Handles the request to draw a chart for this file. | |
void | UpdateCurrentRunCharts () throws ModelException |
Updates charts for a current run. | |
String[] | GetTableOptions () |
Gets the tables that can be drawn for this file. | |
String[] | GetHistogramOptions () |
Gets the histograms that can be drawn for this file. | |
String[] | GetMapOptions () |
Gets the maps that can be drawn for this file. | |
String[] | GetLineGraphOptions () |
Gets the line graphs that can be drawn for this file. | |
void | SetXPlotLength (float f) |
Sets the plot X length. | |
void | SetYPlotLength (float f) |
Sets the plot Y length. | |
void | SetNumberOfYearsPerTimestep (float f) |
Sets the number of years per timestep. | |
float | GetNumberOfYearsPerTimestep () |
Gets the number of years per timestep. | |
float | GetXPlotLength () |
Gets the plot X length. | |
float | GetYPlotLength () |
Gets the plot Y length. | |
DetailedOutputFileManager (DataVisualizerManager oManager, String sTarball) throws ModelException | |
Constructor. | |
void | UpdateCharts () throws ModelException |
Redraws all the charts currently open for this detailed output file. | |
void | AddSpeciesName (String sName) |
Adds a species name to the end of the species name list. | |
DetailedTreeSettings | CreateNewTreeSettings (String sSpeciesName, int iType, int iDeadCode) throws ModelException |
Creates a new DetailedTreeSettings object and adds it to the tree settings vector. | |
DetailedGridSettings | CreateNewGridSettings (String sGridName) |
Creates a new DetailedGridSettings object and adds it to the grid settings vector. | |
void | AddGridXCellLength (String sGridName, float fLength) |
Adds the X cell length to grid settings. | |
void | AddGridYCellLength (String sGridName, float fLength) |
Adds the Y cell length to grid settings. | |
int | GetNumberOfSpecies () |
Gets the number of species that exist in the detailed output header file. | |
int | GetNumberOfTypes () |
Gets the number of tree types. | |
int | GetSpeciesCodeFromName (String sName) throws ModelException |
When passed the name of a species, will give back the corresponding species number code. | |
String | GetSpeciesNameFromCode (int iIndex) throws ModelException |
When passed the index of a species, will give back the corresponding species name. | |
void | ReadFile (int iTimestep) throws ModelException |
Read the detailed output file for a particular timestep. | |
boolean | WantAnyTreeFloats () |
Whether or not any open data requests want any tree float data members. | |
boolean | WantAnyDeadTreeFloats () |
Whether or not any open data requests want any dead tree float data members. | |
boolean | WantAnyGridFloats () |
Whether or not any open data requests want any grid float data members. | |
boolean | WantAnyGridPackageFloats () |
Whether or not any open data requests want any grid package float data members. | |
boolean | WantAnyTreeInts () |
Whether or not any open data requests want any tree int data members. | |
boolean | WantAnyDeadTreeInts () |
Whether or not any open data requests want any dead tree int data members. | |
boolean | WantAnyGridInts () |
Whether or not any open data requests want any grid int data members. | |
boolean | WantAnyGridPackageInts () |
Whether or not any open data requests want any grid package int data members. | |
boolean | WantAnyTreeChars () |
Whether or not any open data requests want any tree char data members. | |
boolean | WantAnyDeadTreeChars () |
Whether or not any open data requests want any dead tree char data members. | |
boolean | WantAnyGridChars () |
Whether or not any open data requests want any grid char data members. | |
boolean | WantAnyGridPackageChars () |
Whether or not any open data requests want any grid package char data members. | |
boolean | WantAnyTreeBools () |
Whether or not any open data requests want any tree bool data members. | |
boolean | WantAnyDeadTreeBools () |
Whether or not any open data requests want any dead tree bool data members. | |
boolean | WantAnyGridBools () |
Whether or not any open data requests want any grid bool data members. | |
boolean | WantAnyGridPackageBools () |
Whether or not any open data requests want any grid package bool data members. | |
void | AddTreeFloatData (int iSpecies, int iType, int iCode, float fVal) throws SAXException |
Accepts a piece of tree float data from the parser and passes it on to open data requests. | |
void | AddDeadTreeFloatData (int iSpecies, int iType, int iCode, int iDeadCode, float fVal) throws SAXException |
Accepts a piece of dead tree float data from the parser and passes it on to open data requests. | |
void | AddGridFloatData (String sGridName, int iX, int iY, int iCode, float fVal) throws SAXException |
Accepts a piece of grid float data from the parser and passes it on to open data requests. | |
void | AddGridPackageFloatData (String sGridName, int iX, int iY, int iCode, float fVal) throws SAXException |
Accepts a piece of grid package float data from the parser and passes it on to open data requests. | |
void | AddTreeIntData (int iSpecies, int iType, int iCode, int iVal) throws SAXException |
Accepts a piece of tree int data from the parser and passes it on to open data requests. | |
void | AddDeadTreeIntData (int iSpecies, int iType, int iCode, int iDeadCode, int iVal) throws SAXException |
Accepts a piece of dead tree int data from the parser and passes it on to open data requests. | |
void | AddGridIntData (String sGridName, int iX, int iY, int iCode, int iVal) throws SAXException |
Accepts a piece of grid int data from the parser and passes it on to open data requests. | |
void | AddGridPackageIntData (String sGridName, int iX, int iY, int iCode, int iVal) throws SAXException |
Accepts a piece of grid package int data from the parser and passes it on to open data requests. | |
void | AddTreeCharData (int iSpecies, int iType, int iCode, String sVal) throws SAXException |
Accepts a piece of tree char data from the parser and passes it on to open data requests. | |
void | AddDeadTreeCharData (int iSpecies, int iType, int iCode, int iDeadCode, String sVal) throws SAXException |
Accepts a piece of dead tree char data from the parser and passes it on to open data requests. | |
void | AddGridCharData (String sGridName, int iX, int iY, int iCode, String sVal) throws SAXException |
Accepts a piece of grid char data from the parser and passes it on to open data requests. | |
void | AddGridPackageCharData (String sGridName, int iX, int iY, int iCode, String sVal) throws SAXException |
Accepts a piece of grid package char data from the parser and passes it on to open data requests. | |
void | AddTreeBoolData (int iSpecies, int iType, int iCode, boolean bVal) throws SAXException |
Accepts a piece of tree bool data from the parser to pass on to open data requests. | |
void | AddDeadTreeBoolData (int iSpecies, int iType, int iCode, int iDeadCode, boolean bVal) throws SAXException |
Accepts a piece of dead tree bool data from the parser to pass on to open data requests. | |
void | AddGridBoolData (String sGridName, int iX, int iY, int iCode, boolean bVal) throws SAXException |
Accepts a piece of grid bool data from the parser to pass on to open data requests. | |
void | AddGridPackageBoolData (String sGridName, int iX, int iY, int iCode, boolean bVal) throws SAXException |
Accepts a piece of grid package bool data from the parser to pass on to open data requests. | |
void | AddTreeFloatDataMemberCode (int iSpecies, int iType, String sLabel, int iCode) throws SAXException |
Accepts a tree float data member code from the parser to pass on to open data requests. | |
void | AddGridFloatDataMemberCode (String sGridName, String sLabel, int iCode) throws SAXException |
Accepts a grid float data member code from the parser to pass on to open data requests. | |
void | AddGridPackageFloatDataMemberCode (String sGridName, String sLabel, int iCode) throws SAXException |
Accepts a grid package float data member code from the parser to pass on to open data requests. | |
void | AddTreeIntDataMemberCode (int iSpecies, int iType, String sLabel, int iCode) throws SAXException |
Accepts an int data member code from the parser to pass on to open data requests. | |
void | AddGridIntDataMemberCode (String sGridName, String sLabel, int iCode) throws SAXException |
Accepts an int data member code from the parser to pass on to open data requests. | |
void | AddGridPackageIntDataMemberCode (String sGridName, String sLabel, int iCode) throws SAXException |
Accepts a grid package int data member code from the parser to pass on to open data requests. | |
void | AddTreeCharDataMemberCode (int iSpecies, int iType, String sLabel, int iCode) throws SAXException |
Accepts a tree char data member code from the parser to pass on to open data requests. | |
void | AddGridCharDataMemberCode (String sGridName, String sLabel, int iCode) throws SAXException |
Accepts a grid char data member code from the parser to pass on to open data requests. | |
void | AddGridPackageCharDataMemberCode (String sGridName, String sLabel, int iCode) throws SAXException |
Accepts a grid package char data member code from the parser to pass on to open data requests. | |
void | AddTreeBoolDataMemberCode (int iSpecies, int iType, String sLabel, int iCode) throws SAXException |
Accepts a tree bool data member code from the parser to pass on to open data requests. | |
void | AddGridBoolDataMemberCode (String sGridName, String sLabel, int iCode) throws SAXException |
Accepts a grid bool data member code from the parser to pass on to open data requests. | |
void | AddGridPackageBoolDataMemberCode (String sGridName, String sLabel, int iCode) throws SAXException |
Accepts a grid package bool data member code from the parser to pass on to open data requests. | |
void | EndPackage () throws SAXException |
Notifies all open data requests that a new package has ended. | |
void | EndTree () throws SAXException |
Notifies all open data requests that a tree record has ended. | |
int | GetNumberTreeSettings () |
Get the total number of detailed tree settings. | |
DetailedTreeSettings | GetTreeSetting (int i) |
Access a detailed tree output settings record. | |
float | GetGridXCellLength (String sGridName) |
Gets the length of X cells for a grid. | |
float | GetGridYCellLength (String sGridName) |
Gets the length of Y cells for a grid. | |
void | CleanUp () |
Deletes all files from the tarball in the temp folder. | |
void | AddSubplotCell (int iX, int iY) |
Adds one of the cells of this subplot. | |
Private Member Functions | |
void | CountTimesteps () throws ModelException |
Counts the number of timesteps in the tarball and places it in m_iNumTimesteps. | |
void | ParseParamFile () throws ModelException |
Parses the parameter file portion of the tarball. | |
Private Attributes | |
Vector< DataRequest > | mp_oDataRequests = new Vector<DataRequest>(0) |
The collection of all data requests currently open. | |
Vector< String > | mp_sSpeciesNames = new Vector<String>(0) |
Species names - the order determines the species codes. | |
Vector< DetailedTreeSettings > | mp_oTreeSettings = new Vector<DetailedTreeSettings>(0) |
Collection of DetailedTreeSettings objects. | |
Vector< DetailedGridSettings > | mp_oGridSettings = new Vector<DetailedGridSettings>(0) |
Collection of DetailedGridSettings objects. | |
boolean[] | mp_bHistogramIsFloat |
Whether each histogram option is float (true) or int (false). | |
String[] | mp_sHistogramNames |
Histogram names - so we can figure out which value in mp_bHistogramIsFloat value to use. | |
int[] | mp_iDeadCodes |
Dead reason codes for each tree data member. | |
String | m_sFileDisplayName |
Display string of filename - should have the last 20 chars. | |
XMLReader | m_oParser |
File parser. | |
String | m_sTempRoot |
Root directory to put temp files. | |
String | m_sTempDir |
Where we actually extract to. | |
String | m_sFileRoot |
Root file name of all detailed output files. | |
float | m_fPlotArea = 0 |
Area of plot (or subplot) in hectares. | |
float | m_fXPlotLength = 0 |
Plot X length. | |
float | m_fYPlotLength = 0 |
Plot Y length. | |
float | m_fSubplotXCellLength = 8 |
X length of subplot cells, in m, if this is a subplot. | |
float | m_fSubplotYCellLength = 8 |
Y length of subplot cells, in m, if this is a subplot. | |
float | m_fNumYearsPerTimestep |
Number of years per timestep. | |
int | m_iNumTimesteps |
Number of actual timesteps of data. | |
int | m_iNumParFileTimesteps |
Number of timestes from the par file. | |
int | m_iNumTypes = 7 |
Number of tree types. | |
int | m_iLastTimestepRead |
When updating charts, this is the file parsed. |
Copyright: Copyright (c) Charles D. Canham 2003
Company: Institute of Ecosystem Studies
datavisualizer.DetailedOutputFileManager.DetailedOutputFileManager | ( | DataVisualizerManager | oManager, | |
String | sTarball | |||
) | throws ModelException |
Constructor.
sTarball | Detailed output file to manage. |
ModelException | If there was a problem reading the file. |
void datavisualizer.DetailedOutputFileManager.SetParFileTimesteps | ( | int | i | ) |
Sets the number of timesteps for the detailed output file parameter file.
i | Number of timesteps. |
int datavisualizer.DetailedOutputFileManager.GetNumberOfActualTimesteps | ( | ) |
Gets the number of actual data timesteps contained in this detailed output file (as opposed to how many the par file says there are).
void datavisualizer.DetailedOutputFileManager.SetSubplotXCellLength | ( | float | f | ) |
Sets the subplot X cell length.
f | X cell length, in m. |
void datavisualizer.DetailedOutputFileManager.SetSubplotYCellLength | ( | float | f | ) |
Sets the subplot Y cell length.
f | Y cell length, in m. |
boolean datavisualizer.DetailedOutputFileManager.IsThisSubplot | ( | String | sSubplotName | ) |
Checks to see if a subplot name indicates that the detailed output file being managed is in fact for that subplot.
If it were, the subplot name would be the last part of the tarball name preceded by an underscore.
sSubplotName | Name of possible subplot for this file. |
float datavisualizer.DetailedOutputFileManager.GetPlotArea | ( | ) |
Gets the area of this plot or subplot, in ha.
JInternalFrame datavisualizer.DetailedOutputFileManager.DrawChart | ( | String | sGraphName | ) | throws ModelException [virtual] |
Handles the request to draw a chart for this file.
The request will be passed on to an appropriate DataRequest object. If the chart is already open, the open chart will be returned.
sGraphName | Name of chart to draw. |
ModelException | If anything goes wrong. |
Implements datavisualizer.DataFileManager.
void datavisualizer.DetailedOutputFileManager.UpdateCurrentRunCharts | ( | ) | throws ModelException [virtual] |
Updates charts for a current run.
This re-inflates the tarball and gets the last timestep file for parsing and processing.
ModelException | if there is a problem reading the file or drawing the charts. |
Implements datavisualizer.DataFileManager.
String [] datavisualizer.DetailedOutputFileManager.GetTableOptions | ( | ) | [virtual] |
Gets the tables that can be drawn for this file.
Implements datavisualizer.DataFileManager.
String [] datavisualizer.DetailedOutputFileManager.GetHistogramOptions | ( | ) | [virtual] |
Gets the histograms that can be drawn for this file.
Implements datavisualizer.DataFileManager.
String [] datavisualizer.DetailedOutputFileManager.GetMapOptions | ( | ) | [virtual] |
Gets the maps that can be drawn for this file.
Implements datavisualizer.DataFileManager.
String [] datavisualizer.DetailedOutputFileManager.GetLineGraphOptions | ( | ) | [virtual] |
Gets the line graphs that can be drawn for this file.
Implements datavisualizer.DataFileManager.
void datavisualizer.DetailedOutputFileManager.SetXPlotLength | ( | float | f | ) |
Sets the plot X length.
f | Plot X length, in meters. |
void datavisualizer.DetailedOutputFileManager.SetYPlotLength | ( | float | f | ) |
Sets the plot Y length.
f | Plot Y length, in meters. |
void datavisualizer.DetailedOutputFileManager.SetNumberOfYearsPerTimestep | ( | float | f | ) |
Sets the number of years per timestep.
f | Number of years per timestep. |
float datavisualizer.DetailedOutputFileManager.GetNumberOfYearsPerTimestep | ( | ) |
Gets the number of years per timestep.
float datavisualizer.DetailedOutputFileManager.GetXPlotLength | ( | ) |
Gets the plot X length.
float datavisualizer.DetailedOutputFileManager.GetYPlotLength | ( | ) |
Gets the plot Y length.
void datavisualizer.DetailedOutputFileManager.UpdateCharts | ( | ) | throws ModelException [virtual] |
Redraws all the charts currently open for this detailed output file.
This is accomplished by sending an UpdateChart() call to each data request object.
ModelException | wrapping another exception. |
Implements datavisualizer.DataFileManager.
void datavisualizer.DetailedOutputFileManager.AddSpeciesName | ( | String | sName | ) |
Adds a species name to the end of the species name list.
The position within the vector becomes that name's species index code.
sName | The species name to add. |
DetailedTreeSettings datavisualizer.DetailedOutputFileManager.CreateNewTreeSettings | ( | String | sSpeciesName, | |
int | iType, | |||
int | iDeadCode | |||
) | throws ModelException |
Creates a new DetailedTreeSettings object and adds it to the tree settings vector.
sSpeciesName | The species name string | |
iType | The type number |
ModelException | if either the type or the species name is invalid. |
DetailedGridSettings datavisualizer.DetailedOutputFileManager.CreateNewGridSettings | ( | String | sGridName | ) |
Creates a new DetailedGridSettings object and adds it to the grid settings vector.
sGridName | The grid name string |
void datavisualizer.DetailedOutputFileManager.AddGridXCellLength | ( | String | sGridName, | |
float | fLength | |||
) |
Adds the X cell length to grid settings.
sGridName | The grid name for which to add the cell length. | |
fLength | The new X cell length in m. |
void datavisualizer.DetailedOutputFileManager.AddGridYCellLength | ( | String | sGridName, | |
float | fLength | |||
) |
Adds the Y cell length to grid settings.
sGridName | The grid name for which to add the cell length. | |
fLength | The new Y cell length in m. |
void datavisualizer.DetailedOutputFileManager.CountTimesteps | ( | ) | throws ModelException [private] |
Counts the number of timesteps in the tarball and places it in m_iNumTimesteps.
The value is found by counting the number of files. The number of timesteps is the number of files - 2 (for the parameter file and initial conditions). This is compared to the number of timesteps found in the header file and the lesser one is chosen.
ModelException | - wrapping other exceptions |
void datavisualizer.DetailedOutputFileManager.ParseParamFile | ( | ) | throws ModelException [private] |
Parses the parameter file portion of the tarball.
This function parses the detailed output header file to find species information and tree setup information.
ModelException | if the file cannot be parsed. |
int datavisualizer.DetailedOutputFileManager.GetNumberOfSpecies | ( | ) |
Gets the number of species that exist in the detailed output header file.
int datavisualizer.DetailedOutputFileManager.GetNumberOfTypes | ( | ) |
Gets the number of tree types.
int datavisualizer.DetailedOutputFileManager.GetSpeciesCodeFromName | ( | String | sName | ) | throws ModelException |
When passed the name of a species, will give back the corresponding species number code.
sName | The name of the species. |
ModelException | if the name is not recognized. |
String datavisualizer.DetailedOutputFileManager.GetSpeciesNameFromCode | ( | int | iIndex | ) | throws ModelException |
When passed the index of a species, will give back the corresponding species name.
iIndex | Species index. |
ModelException | if the index is unrecognized. |
void datavisualizer.DetailedOutputFileManager.ReadFile | ( | int | iTimestep | ) | throws ModelException |
Read the detailed output file for a particular timestep.
iTimestep | Timestep for which to read the file. |
ModelException | If the file cannot be read. |
boolean datavisualizer.DetailedOutputFileManager.WantAnyTreeFloats | ( | ) |
Whether or not any open data requests want any tree float data members.
boolean datavisualizer.DetailedOutputFileManager.WantAnyDeadTreeFloats | ( | ) |
Whether or not any open data requests want any dead tree float data members.
boolean datavisualizer.DetailedOutputFileManager.WantAnyGridFloats | ( | ) |
Whether or not any open data requests want any grid float data members.
boolean datavisualizer.DetailedOutputFileManager.WantAnyGridPackageFloats | ( | ) |
Whether or not any open data requests want any grid package float data members.
boolean datavisualizer.DetailedOutputFileManager.WantAnyTreeInts | ( | ) |
Whether or not any open data requests want any tree int data members.
boolean datavisualizer.DetailedOutputFileManager.WantAnyDeadTreeInts | ( | ) |
Whether or not any open data requests want any dead tree int data members.
boolean datavisualizer.DetailedOutputFileManager.WantAnyGridInts | ( | ) |
Whether or not any open data requests want any grid int data members.
boolean datavisualizer.DetailedOutputFileManager.WantAnyGridPackageInts | ( | ) |
Whether or not any open data requests want any grid package int data members.
boolean datavisualizer.DetailedOutputFileManager.WantAnyTreeChars | ( | ) |
Whether or not any open data requests want any tree char data members.
boolean datavisualizer.DetailedOutputFileManager.WantAnyDeadTreeChars | ( | ) |
Whether or not any open data requests want any dead tree char data members.
boolean datavisualizer.DetailedOutputFileManager.WantAnyGridChars | ( | ) |
Whether or not any open data requests want any grid char data members.
boolean datavisualizer.DetailedOutputFileManager.WantAnyGridPackageChars | ( | ) |
Whether or not any open data requests want any grid package char data members.
boolean datavisualizer.DetailedOutputFileManager.WantAnyTreeBools | ( | ) |
Whether or not any open data requests want any tree bool data members.
boolean datavisualizer.DetailedOutputFileManager.WantAnyDeadTreeBools | ( | ) |
Whether or not any open data requests want any dead tree bool data members.
boolean datavisualizer.DetailedOutputFileManager.WantAnyGridBools | ( | ) |
Whether or not any open data requests want any grid bool data members.
boolean datavisualizer.DetailedOutputFileManager.WantAnyGridPackageBools | ( | ) |
Whether or not any open data requests want any grid package bool data members.
void datavisualizer.DetailedOutputFileManager.AddTreeFloatData | ( | int | iSpecies, | |
int | iType, | |||
int | iCode, | |||
float | fVal | |||
) | throws SAXException |
Accepts a piece of tree float data from the parser and passes it on to open data requests.
iSpecies | Species of the tree from which this value came. | |
iType | Type of the tree from which this value came. | |
iCode | Data member code of this value. | |
fVal | Value. |
void datavisualizer.DetailedOutputFileManager.AddDeadTreeFloatData | ( | int | iSpecies, | |
int | iType, | |||
int | iCode, | |||
int | iDeadCode, | |||
float | fVal | |||
) | throws SAXException |
Accepts a piece of dead tree float data from the parser and passes it on to open data requests.
iSpecies | Species of the tree from which this value came. | |
iType | Type of the tree from which this value came. | |
iCode | Data member code of this value. | |
iDeadCode | Dead code for this tree. | |
fVal | Value. |
void datavisualizer.DetailedOutputFileManager.AddGridFloatData | ( | String | sGridName, | |
int | iX, | |||
int | iY, | |||
int | iCode, | |||
float | fVal | |||
) | throws SAXException |
Accepts a piece of grid float data from the parser and passes it on to open data requests.
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. |
void datavisualizer.DetailedOutputFileManager.AddGridPackageFloatData | ( | String | sGridName, | |
int | iX, | |||
int | iY, | |||
int | iCode, | |||
float | fVal | |||
) | throws SAXException |
Accepts a piece of grid package float data from the parser and passes it on to open data requests.
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. |
void datavisualizer.DetailedOutputFileManager.AddTreeIntData | ( | int | iSpecies, | |
int | iType, | |||
int | iCode, | |||
int | iVal | |||
) | throws SAXException |
Accepts a piece of tree int data from the parser and passes it on to open data requests.
iSpecies | Species of the tree from which this value came. | |
iType | Type of the tree from which this value came. | |
iCode | Data member code of this value. | |
iVal | Value. |
void datavisualizer.DetailedOutputFileManager.AddDeadTreeIntData | ( | int | iSpecies, | |
int | iType, | |||
int | iCode, | |||
int | iDeadCode, | |||
int | iVal | |||
) | throws SAXException |
Accepts a piece of dead tree int data from the parser and passes it on to open data requests.
iSpecies | Species of the tree from which this value came. | |
iType | Type of the tree from which this value came. | |
iCode | Data member code of this value. | |
iDeadCode | Dead code for this tree. | |
iVal | Value. |
void datavisualizer.DetailedOutputFileManager.AddGridIntData | ( | String | sGridName, | |
int | iX, | |||
int | iY, | |||
int | iCode, | |||
int | iVal | |||
) | throws SAXException |
Accepts a piece of grid int data from the parser and passes it on to open data requests.
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. |
void datavisualizer.DetailedOutputFileManager.AddGridPackageIntData | ( | String | sGridName, | |
int | iX, | |||
int | iY, | |||
int | iCode, | |||
int | iVal | |||
) | throws SAXException |
Accepts a piece of grid package int data from the parser and passes it on to open data requests.
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. |
void datavisualizer.DetailedOutputFileManager.AddTreeCharData | ( | int | iSpecies, | |
int | iType, | |||
int | iCode, | |||
String | sVal | |||
) | throws SAXException |
Accepts a piece of tree char data from the parser and passes it on to open data requests.
iSpecies | Species of the tree from which this value came. | |
iType | Type of the tree from which this value came. | |
iCode | Data member code of this value. | |
sVal | Value. |
void datavisualizer.DetailedOutputFileManager.AddDeadTreeCharData | ( | int | iSpecies, | |
int | iType, | |||
int | iCode, | |||
int | iDeadCode, | |||
String | sVal | |||
) | throws SAXException |
Accepts a piece of dead tree char data from the parser and passes it on to open data requests.
iSpecies | Species of the tree from which this value came. | |
iType | Type of the tree from which this value came. | |
iCode | Data member code of this value. | |
iDeadCode | Dead code for this tree. | |
sVal | Value. |
void datavisualizer.DetailedOutputFileManager.AddGridCharData | ( | String | sGridName, | |
int | iX, | |||
int | iY, | |||
int | iCode, | |||
String | sVal | |||
) | throws SAXException |
Accepts a piece of grid char data from the parser and passes it on to open data requests.
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. | |
sVal | Value. |
void datavisualizer.DetailedOutputFileManager.AddGridPackageCharData | ( | String | sGridName, | |
int | iX, | |||
int | iY, | |||
int | iCode, | |||
String | sVal | |||
) | throws SAXException |
Accepts a piece of grid package char data from the parser and passes it on to open data requests.
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. | |
sVal | Value. |
void datavisualizer.DetailedOutputFileManager.AddTreeBoolData | ( | int | iSpecies, | |
int | iType, | |||
int | iCode, | |||
boolean | bVal | |||
) | throws SAXException |
Accepts a piece of tree bool data from the parser to pass on to open data requests.
iSpecies | Species of the tree from which this value came. | |
iType | Type of the tree from which this value came. | |
iCode | Data member code of this value and passes it on to open data requests. | |
bVal | Value. |
void datavisualizer.DetailedOutputFileManager.AddDeadTreeBoolData | ( | int | iSpecies, | |
int | iType, | |||
int | iCode, | |||
int | iDeadCode, | |||
boolean | bVal | |||
) | throws SAXException |
Accepts a piece of dead tree bool data from the parser to pass on to open data requests.
iSpecies | Species of the tree from which this value came. | |
iType | Type of the tree from which this value came. | |
iCode | Data member code of this value and passes it on to open data requests. | |
iDeadCode | Dead code for this tree. | |
bVal | Value. |
void datavisualizer.DetailedOutputFileManager.AddGridBoolData | ( | String | sGridName, | |
int | iX, | |||
int | iY, | |||
int | iCode, | |||
boolean | bVal | |||
) | throws SAXException |
Accepts a piece of grid bool data from the parser to pass on to open data requests.
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 and passes it on to open data requests. | |
bVal | Value. |
void datavisualizer.DetailedOutputFileManager.AddGridPackageBoolData | ( | String | sGridName, | |
int | iX, | |||
int | iY, | |||
int | iCode, | |||
boolean | bVal | |||
) | throws SAXException |
Accepts a piece of grid package bool data from the parser to pass on to open data requests.
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 and passes it on to open data requests. | |
bVal | Value. |
void datavisualizer.DetailedOutputFileManager.AddTreeFloatDataMemberCode | ( | int | iSpecies, | |
int | iType, | |||
String | sLabel, | |||
int | iCode | |||
) | throws SAXException |
Accepts a tree float data member code from the parser to pass on to open data requests.
iSpecies | Species of the tree from which this value came. | |
iType | Type of the tree from which this value came. | |
sLabel | The label of the data member. | |
iCode | The data member code. |
void datavisualizer.DetailedOutputFileManager.AddGridFloatDataMemberCode | ( | String | sGridName, | |
String | sLabel, | |||
int | iCode | |||
) | throws SAXException |
Accepts a grid float data member code from the parser to pass on to open data requests.
sGridName | Name of the grid for this data | |
sLabel | The label of the data member. | |
iCode | The data member code. |
void datavisualizer.DetailedOutputFileManager.AddGridPackageFloatDataMemberCode | ( | String | sGridName, | |
String | sLabel, | |||
int | iCode | |||
) | throws SAXException |
Accepts a grid package float data member code from the parser to pass on to open data requests.
sGridName | Name of the grid for this data | |
sLabel | The label of the data member. | |
iCode | The data member code. |
void datavisualizer.DetailedOutputFileManager.AddTreeIntDataMemberCode | ( | int | iSpecies, | |
int | iType, | |||
String | sLabel, | |||
int | iCode | |||
) | throws SAXException |
Accepts an int data member code from the parser to pass on to open data requests.
iSpecies | Species of the tree from which this value came. | |
iType | Type of the tree from which this value came. | |
sLabel | The label of the data member. | |
iCode | The data member code. |
void datavisualizer.DetailedOutputFileManager.AddGridIntDataMemberCode | ( | String | sGridName, | |
String | sLabel, | |||
int | iCode | |||
) | throws SAXException |
Accepts an int data member code from the parser to pass on to open data requests.
sGridName | Name of the grid for this data | |
sLabel | The label of the data member. | |
iCode | The data member code. |
void datavisualizer.DetailedOutputFileManager.AddGridPackageIntDataMemberCode | ( | String | sGridName, | |
String | sLabel, | |||
int | iCode | |||
) | throws SAXException |
Accepts a grid package int data member code from the parser to pass on to open data requests.
sGridName | Name of the grid for this data | |
sLabel | The label of the data member. | |
iCode | The data member code. |
void datavisualizer.DetailedOutputFileManager.AddTreeCharDataMemberCode | ( | int | iSpecies, | |
int | iType, | |||
String | sLabel, | |||
int | iCode | |||
) | throws SAXException |
Accepts a tree char data member code from the parser to pass on to open data requests.
iSpecies | Species of the tree from which this value came. | |
iType | Type of the tree from which this value came. | |
sLabel | The label of the data member. | |
iCode | The data member code. |
void datavisualizer.DetailedOutputFileManager.AddGridCharDataMemberCode | ( | String | sGridName, | |
String | sLabel, | |||
int | iCode | |||
) | throws SAXException |
Accepts a grid char data member code from the parser to pass on to open data requests.
sGridName | Name of the grid for this data | |
sLabel | The label of the data member. | |
iCode | The data member code. |
void datavisualizer.DetailedOutputFileManager.AddGridPackageCharDataMemberCode | ( | String | sGridName, | |
String | sLabel, | |||
int | iCode | |||
) | throws SAXException |
Accepts a grid package char data member code from the parser to pass on to open data requests.
sGridName | Name of the grid for this data | |
sLabel | The label of the data member. | |
iCode | The data member code. |
void datavisualizer.DetailedOutputFileManager.AddTreeBoolDataMemberCode | ( | int | iSpecies, | |
int | iType, | |||
String | sLabel, | |||
int | iCode | |||
) | throws SAXException |
Accepts a tree bool data member code from the parser to pass on to open data requests.
iSpecies | Species of the tree from which this value came. | |
iType | Type of the tree from which this value came. | |
sLabel | The label of the data member. | |
iCode | The data member code. |
void datavisualizer.DetailedOutputFileManager.AddGridBoolDataMemberCode | ( | String | sGridName, | |
String | sLabel, | |||
int | iCode | |||
) | throws SAXException |
Accepts a grid bool data member code from the parser to pass on to open data requests.
sGridName | Name of the grid for this data | |
sLabel | The label of the data member. | |
iCode | The data member code. |
void datavisualizer.DetailedOutputFileManager.AddGridPackageBoolDataMemberCode | ( | String | sGridName, | |
String | sLabel, | |||
int | iCode | |||
) | throws SAXException |
Accepts a grid package bool data member code from the parser to pass on to open data requests.
sGridName | Name of the grid for this data | |
sLabel | The label of the data member. | |
iCode | The data member code. |
void datavisualizer.DetailedOutputFileManager.EndPackage | ( | ) | throws SAXException |
Notifies all open data requests that a new package has ended.
void datavisualizer.DetailedOutputFileManager.EndTree | ( | ) | throws SAXException |
Notifies all open data requests that a tree record has ended.
int datavisualizer.DetailedOutputFileManager.GetNumberTreeSettings | ( | ) |
Get the total number of detailed tree settings.
DetailedTreeSettings datavisualizer.DetailedOutputFileManager.GetTreeSetting | ( | int | i | ) |
Access a detailed tree output settings record.
i | Index of the desired record. |
float datavisualizer.DetailedOutputFileManager.GetGridXCellLength | ( | String | sGridName | ) |
Gets the length of X cells for a grid.
sGridName | Grid for which to get the X cell length. |
float datavisualizer.DetailedOutputFileManager.GetGridYCellLength | ( | String | sGridName | ) |
Gets the length of Y cells for a grid.
sGridName | Grid for which to get the Y cell length. |
void datavisualizer.DetailedOutputFileManager.CleanUp | ( | ) |
Deletes all files from the tarball in the temp folder.
Reimplemented from datavisualizer.DataFileManager.
void datavisualizer.DetailedOutputFileManager.AddSubplotCell | ( | int | iX, | |
int | iY | |||
) |
Adds one of the cells of this subplot.
This adds the area of the cell to the total, taking into account odd-sized end cells.
iX | X cell | |
iY | Y cell |
Vector<DataRequest> datavisualizer.DetailedOutputFileManager.mp_oDataRequests = new Vector<DataRequest>(0) [private] |
The collection of all data requests currently open.
Vector<String> datavisualizer.DetailedOutputFileManager.mp_sSpeciesNames = new Vector<String>(0) [private] |
Species names - the order determines the species codes.
Vector<DetailedTreeSettings> datavisualizer.DetailedOutputFileManager.mp_oTreeSettings = new Vector<DetailedTreeSettings>(0) [private] |
Collection of DetailedTreeSettings objects.
Vector<DetailedGridSettings> datavisualizer.DetailedOutputFileManager.mp_oGridSettings = new Vector<DetailedGridSettings>(0) [private] |
Collection of DetailedGridSettings objects.
boolean [] datavisualizer.DetailedOutputFileManager.mp_bHistogramIsFloat [private] |
Whether each histogram option is float (true) or int (false).
String [] datavisualizer.DetailedOutputFileManager.mp_sHistogramNames [private] |
Histogram names - so we can figure out which value in mp_bHistogramIsFloat value to use.
int [] datavisualizer.DetailedOutputFileManager.mp_iDeadCodes [private] |
Dead reason codes for each tree data member.
String datavisualizer.DetailedOutputFileManager.m_sFileDisplayName [private] |
Display string of filename - should have the last 20 chars.
XMLReader datavisualizer.DetailedOutputFileManager.m_oParser [private] |
File parser.
String datavisualizer.DetailedOutputFileManager.m_sTempRoot [private] |
Root directory to put temp files.
String datavisualizer.DetailedOutputFileManager.m_sTempDir [private] |
Where we actually extract to.
String datavisualizer.DetailedOutputFileManager.m_sFileRoot [private] |
Root file name of all detailed output files.
float datavisualizer.DetailedOutputFileManager.m_fPlotArea = 0 [private] |
Area of plot (or subplot) in hectares.
float datavisualizer.DetailedOutputFileManager.m_fXPlotLength = 0 [private] |
Plot X length.
float datavisualizer.DetailedOutputFileManager.m_fYPlotLength = 0 [private] |
Plot Y length.
float datavisualizer.DetailedOutputFileManager.m_fSubplotXCellLength = 8 [private] |
X length of subplot cells, in m, if this is a subplot.
float datavisualizer.DetailedOutputFileManager.m_fSubplotYCellLength = 8 [private] |
Y length of subplot cells, in m, if this is a subplot.
float datavisualizer.DetailedOutputFileManager.m_fNumYearsPerTimestep [private] |
Number of years per timestep.
int datavisualizer.DetailedOutputFileManager.m_iNumTimesteps [private] |
Number of actual timesteps of data.
Number of timestes from the par file.
int datavisualizer.DetailedOutputFileManager.m_iNumTypes = 7 [private] |
Number of tree types.
When updating charts, this is the file parsed.