Public Member Functions | |
RipleysKDataRequest (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 | |
void | SetupDataset () |
This takes the mass of accumulated data from a first-time parse and sets up the structures that will give us a place to put it in the future. | |
DefaultXYDataset | CreateChartingDataset (Legend oLegend) throws ModelException |
Creates the dataset suitable for charting. | |
Private Attributes | |
Vector< SpInc > | mp_oTempIndexer = new Vector<SpInc>(0) |
A collection of SpInc objects which say which species and increment belongs to a given float data code index. | |
Vector< ValCode > | mp_oTempDataset = new Vector<ValCode>(0) |
A place to put data as it's being parsed, before we know certain things about it. | |
float[][] | mp_fDatasetValues = null |
The dataset values. | |
SpInc[] | mp_oIndexer |
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_fMaxDistance = -1 |
Maximum distance - from the grid itself if possible. | |
float | m_fDistInc = -1 |
Distance increment - from the grid itself if possible. | |
int | m_iMaxDistanceCode = -1 |
Grid code for the max distance. | |
int | m_iDistIncCode = -1 |
Grid code for the distance increment. | |
int | m_iNumSpecies |
The number of species. | |
Classes | |
class | SpInc |
This class bundles together a species number and increment number. More... | |
class | ValCode |
This class bundles together a grid value and its associated grid data member code. More... |
This requires the detailed output file to have data saved from the "Ripley's K" grid.
Copyright: Copyright (c) Charles D. Canham 2007 Company: Institute of Ecosystem Studies
datavisualizer.RipleysKDataRequest.RipleysKDataRequest | ( | 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.RipleysKDataRequest.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.RipleysKDataRequest.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.RipleysKDataRequest.WantAnyGridFloats | ( | ) |
void datavisualizer.RipleysKDataRequest.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.
void datavisualizer.RipleysKDataRequest.SetupDataset | ( | ) | [private] |
This takes the mass of accumulated data from a first-time parse and sets up the structures that will give us a place to put it in the future.
Until we have all of the grid's data, we may not know the distance or number of increments. This will find the number of increments (either directly from the applicable grid data members or by inference), set up mp_fDatasetValues, and make sure the indexes are sorted correctly.
DefaultXYDataset datavisualizer.RipleysKDataRequest.CreateChartingDataset | ( | Legend | oLegend | ) | throws ModelException [private] |
Creates the dataset suitable for charting.
oLegend | Legend for this chart. |
ModelException | if there is a problem with the legend. |
ModelInternalFrame datavisualizer.RipleysKDataRequest.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.RipleysKDataRequest.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.
void datavisualizer.RipleysKDataRequest.ClearData | ( | ) | throws ModelException [package, virtual] |
Clears out existing data.
ModelException | Doesn't throw an exception. |
Implements datavisualizer.DataRequest.
Vector<SpInc> datavisualizer.RipleysKDataRequest.mp_oTempIndexer = new Vector<SpInc>(0) [private] |
A collection of SpInc objects which say which species and increment belongs to a given float data code index.
Vector<ValCode> datavisualizer.RipleysKDataRequest.mp_oTempDataset = new Vector<ValCode>(0) [private] |
A place to put data as it's being parsed, before we know certain things about it.
float [][] datavisualizer.RipleysKDataRequest.mp_fDatasetValues = null [private] |
The dataset values.
The first index is number of species plus one extra for all the species. The second index is number of increments.
SpInc [] datavisualizer.RipleysKDataRequest.mp_oIndexer [private] |
String [] datavisualizer.RipleysKDataRequest.mp_sSpeciesNames [private] |
Array of species names for display.
String datavisualizer.RipleysKDataRequest.m_sThisGrid [private] |
Name of the grid from which the data will be collected.
float datavisualizer.RipleysKDataRequest.m_fMaxDistance = -1 [private] |
Maximum distance - from the grid itself if possible.
float datavisualizer.RipleysKDataRequest.m_fDistInc = -1 [private] |
Distance increment - from the grid itself if possible.
int datavisualizer.RipleysKDataRequest.m_iMaxDistanceCode = -1 [private] |
Grid code for the max distance.
int datavisualizer.RipleysKDataRequest.m_iDistIncCode = -1 [private] |
Grid code for the distance increment.
int datavisualizer.RipleysKDataRequest.m_iNumSpecies [private] |
The number of species.