Public Member Functions | |
Grid (String sGridName, DataMember[] p_oMembers, DataMember[] p_oPackageMembers, float fXCellLength, float fYCellLength) | |
Constructor. | |
void | SetGridFloatCode (String sDataMember, int iIndex) throws ModelException |
Sets the XML grid map code for a float data member. | |
void | SetGridIntCode (String sDataMember, int iIndex) throws ModelException |
Sets the XML grid map code for an int data member. | |
void | SetGridCharCode (String sDataMember, int iIndex) throws ModelException |
Sets the XML grid map code for a char data member. | |
void | SetGridBoolCode (String sDataMember, int iIndex) throws ModelException |
Sets the XML grid map code for a bool data member. | |
void | SetGridPackageFloatCode (String sDataMember, int iIndex) throws ModelException |
Sets the XML grid map code for a package float data member. | |
void | SetGridPackageIntCode (String sDataMember, int iIndex) throws ModelException |
Sets the XML grid map code for a package integer data member. | |
void | SetGridPackageCharCode (String sDataMember, int iIndex) throws ModelException |
Sets the XML grid map code for a package char data member. | |
void | SetGridPackageBoolCode (String sDataMember, int iIndex) throws ModelException |
Sets the XML grid map code for a package bool data member. | |
void | SetGridValue (int iX, int iY, int iCode, Integer iValue, Plot oPlot) throws ModelException |
Sets a grid map integer value. | |
void | SetGridValue (int iX, int iY, int iCode, Float fValue, Plot oPlot) throws ModelException |
Sets a grid map float value. | |
void | SetGridValue (int iX, int iY, int iCode, String sValue, Plot oPlot) throws ModelException |
Sets a grid map char value. | |
void | SetGridValue (int iX, int iY, int iCode, Boolean bValue, Plot oPlot) throws ModelException |
Sets a grid map bool value. | |
void | SetGridPackageValue (int iX, int iY, int iPackageIndex, int iCode, Integer iValue, Plot oPlot) throws ModelException |
Sets a grid map package integer value. | |
void | SetGridPackageValue (int iX, int iY, int iPackageIndex, int iCode, Float fValue, Plot oPlot) throws ModelException |
Sets a grid map package float value. | |
void | SetGridPackageValue (int iX, int iY, int iPackageIndex, int iCode, String sValue, Plot oPlot) throws ModelException |
Sets a grid map package char value. | |
void | SetGridPackageValue (int iX, int iY, int iPackageIndex, int iCode, Boolean bValue, Plot oPlot) throws ModelException |
Sets a grid map package bool value. | |
String | GetName () |
Gets the grid's name. | |
float | GetXCellLength () |
Gets the X cell length for this grid. | |
float | GetYCellLength () |
Gets the Y cell length for this grid. | |
void | SetXCellLength (float fXCellLength) throws ModelException |
Sets the length of cells in the X direction. | |
void | SetYCellLength (float fYCellLength) throws ModelException |
Sets the length of cells in the Y direction. | |
void | ClearMapValues () |
Erases all current grid map values without touching any other settings. | |
DataMember[] | GetDataMembers () |
Gets the list of data members. | |
void | SetDataMembers (DataMember[] p_oNewDataMembers) |
Sets the list of data members. | |
DataMember[] | GetPackageDataMembers () |
Gets the list of package data members. | |
void | WriteXML (BufferedWriter oOut, Plot oPlot) throws ModelException |
Writes the grid's XML grid map to a file. | |
Protected Member Functions | |
PackageGridValue | GetPackageGridValue (GridValue oCell, int iPackageIndex) throws ModelException |
Finds a requested package for a grid cell, or creates a new one if it does not already exist. | |
GridValue | GetGridValue (int iX, int iY, Plot oPlot) throws ModelException |
Finds a requested grid cell, or creates a new one if it does not already exist. | |
Protected Attributes | |
DataMember[] | mp_oDataMembers |
This is a list of the data members in a grid and thus available for saving in detailed output files etc. | |
DataMember[] | mp_oPackageDataMembers |
This is a list of the package data members in a grid and thus available for saving in detailed output files etc. | |
String[] | mp_sIntDataMembers |
Code names of int data members. | |
String[] | mp_sFloatDataMembers |
Code names of float data members. | |
String[] | mp_sCharDataMembers |
Code names of char data members. | |
String[] | mp_sBoolDataMembers |
Code names of bool data members. | |
String[] | mp_sPackageIntDataMembers |
Code names of package int data members, if different from main list. | |
String[] | mp_sPackageFloatDataMembers |
Code names of package float data members, if different from main list. | |
String[] | mp_sPackageCharDataMembers |
Code names of package char data members, if different from main list. | |
String[] | mp_sPackageBoolDataMembers |
Code names of package bool data members, if different from main list. | |
String | m_sGridName |
This is the grid's name - it should match the one in the code. | |
float | m_fLengthXCells |
Length of cells in the X direction - optional. | |
float | m_fLengthYCells |
Length of cells in the Y direction - optional. | |
boolean | m_bEdited = false |
Whether or not this grid has been edited. | |
Vector | mp_oGridVals |
Holds GridValue objects to be written to a grid map. | |
Vector | mp_iGridIntTransforms |
Index position for integer data members. | |
Vector | mp_iGridFloatTransforms |
Index position for float data members. | |
Vector | mp_iGridCharTransforms |
Index position for char data members. | |
Vector | mp_iGridBoolTransforms |
Index position for bool data members. | |
Vector | mp_iGridPackageIntTransforms |
Index position for package integer data members. | |
Vector | mp_iGridPackageFloatTransforms |
Index position for package float data members. | |
Vector | mp_iGridPackageCharTransforms |
Index position for package char data members. | |
Vector | mp_iGridPackageBoolTransforms |
Index position for package bool data members. | |
Package Functions | |
int | GetFloatCode (String sCodeName) |
Gets the code for a float data member. | |
int | GetIntCode (String sCodeName) |
Gets the code for an int data member. | |
int | GetBoolCode (String sCodeName) |
Gets the code for a bool data member. | |
int | GetCharCode (String sCodeName) |
Gets the code for a char data member. |
Objects of this class control data saving for grids.
This will keep track of a custom cell length in the X and Y directions. It is possible to change this at any time, but results could be disastrous if there is existing grid map data; it will not be updated to reflect the change.
Copyright: Copyright (c) Charles D. Canham 2003
Company: Institute of Ecosystem Studies
|
Constructor.
Edit history: ------------------ April 28, 2004: Submitted in beta version (LEM) |
|
Erases all current grid map values without touching any other settings.
|
|
Gets the code for a bool data member.
|
|
Gets the code for a char data member.
|
|
Gets the list of data members.
|
|
Gets the code for a float data member.
|
|
Finds a requested grid cell, or creates a new one if it does not already exist.
Edit history: ------------------ April 28, 2004: Submitted in beta version (LEM) |
|
Gets the code for an int data member.
|
|
Gets the grid's name.
Edit history: ------------------ April 28, 2004: Submitted in beta version (LEM) |
|
Gets the list of package data members.
Edit history: ------------------ April 28, 2004: Submitted in beta version (LEM) |
|
Finds a requested package for a grid cell, or creates a new one if it does not already exist.
Edit history: ------------------ April 28, 2004: Submitted in beta version (LEM) |
|
Gets the X cell length for this grid.
Edit history: ------------------ April 28, 2004: Submitted in beta version (LEM) |
|
Gets the Y cell length for this grid.
Edit history: ------------------ April 28, 2004: Submitted in beta version (LEM) |
|
Sets the list of data members.
|
|
Sets the XML grid map code for a bool data member.
Edit history: ------------------ April 28, 2004: Submitted in beta version (LEM) |
|
Sets the XML grid map code for a char data member.
Edit history: ------------------ April 28, 2004: Submitted in beta version (LEM) |
|
Sets the XML grid map code for a float data member.
Edit history: ------------------ April 28, 2004: Submitted in beta version (LEM) |
|
Sets the XML grid map code for an int data member.
Edit history: ------------------ April 28, 2004: Submitted in beta version (LEM) |
|
Sets the XML grid map code for a package bool data member.
Edit history: ------------------ April 28, 2004: Submitted in beta version (LEM) |
|
Sets the XML grid map code for a package char data member.
Edit history: ------------------ April 28, 2004: Submitted in beta version (LEM) |
|
Sets the XML grid map code for a package float data member.
Edit history: ------------------ April 28, 2004: Submitted in beta version (LEM) |
|
Sets the XML grid map code for a package integer data member.
Edit history: ------------------ April 28, 2004: Submitted in beta version (LEM) |
|
Sets a grid map package bool value. This will assume that the code needs to go through the transform array - i.e. it needs translating from the local grid map reference point.
|
|
Sets a grid map package char value. This will assume that the code needs to go through the transform array - i.e. it needs translating from the local grid map reference point.
|
|
Sets a grid map package float value. This will assume that the code needs to go through the transform array - i.e. it needs translating from the local grid map reference point.
|
|
Sets a grid map package integer value. This will assume that the code needs to go through the transform array - i.e. it needs translating from the local grid map reference point.
|
|
Sets a grid map bool value. This will assume that the code needs to go through the transform array - i.e. it needs translating from the local grid map reference point.
|
|
Sets a grid map char value. This will assume that the code needs to go through the transform array - i.e. it needs translating from the local grid map reference point.
|
|
Sets a grid map float value. This will assume that the code needs to go through the transform array - i.e. it needs translating from the local grid map reference point.
|
|
Sets a grid map integer value. This will assume that the code needs to go through the transform array - i.e. it needs translating from the local grid map reference point.
|
|
Sets the length of cells in the X direction. If the length of Y is 0, it will be set to the same value.
Edit history: ------------------ April 28, 2004: Submitted in beta version (LEM) |
|
Sets the length of cells in the Y direction. If the length of X is 0, it will be set to the same value.
Edit history: ------------------ April 28, 2004: Submitted in beta version (LEM) |
|
Writes the grid's XML grid map to a file. If there are no grid map values, this will not write anything.
Edit history: ------------------ April 28, 2004: Submitted in beta version (LEM) |
|
Index position for bool data members. Vector position equals the data member position in the map being read, and vector value is the index for GridValue. |
|
Index position for char data members. Vector position equals the data member position in the map being read, and vector value is the index for GridValue. |
|
Index position for float data members. Vector position equals the data member position in the map being read, and vector value is the index for GridValue. |
|
Index position for integer data members. Vector position equals the data member position in the map being read, and vector value is the index for GridValue. |
|
Index position for package bool data members. Vector position equals the data member position in the map being read, and vector value is the index for GridValue. |
|
Index position for package char data members. Vector position equals the data member position in the map being read, and vector value is the index for GridValue. |
|
Index position for package float data members. Vector position equals the data member position in the map being read, and vector value is the index for GridValue. |
|
Index position for package integer data members. Vector position equals the data member position in the map being read, and vector value is the index for GridValue. |