Public Member Functions | |
Subplot (String sName) | |
Constructor. | |
void | AddCell (int iX, int iY, Plot oPlot) throws ModelException |
Adds a grid cell to this subplot. | |
void | AddCell (Cell oCell) |
Adds a grid cell to this subplot. | |
int | GetNumberOfCells () |
Gets the number of cells in this subplot. | |
String | GetSubplotName () |
Gets the subplot's name. | |
Cell | GetCell (int iIndex) |
Gets the cell at a particular index. | |
Private Attributes | |
String | m_sName |
Subplot name. | |
Vector | mp_oCells |
List of cells that make up the subplot. |
Copyright: Copyright (c) Charles D. Canham 2003
Company: Institute of Ecosystem Studies
javawrapper::Subplot::Subplot | ( | String | sName | ) | [inline] |
Constructor.
sName | Name of the subplot |
void javawrapper::Subplot::AddCell | ( | Cell | oCell | ) | [inline] |
Adds a grid cell to this subplot.
If it is a duplicate, it is not added.
oCell | Cell to add. |
void javawrapper::Subplot::AddCell | ( | int | iX, | |
int | iY, | |||
Plot | oPlot | |||
) | throws ModelException [inline] |
Adds a grid cell to this subplot.
If it is a duplicate, it is not added.
iX | X grid cell coordinate | |
iY | Y grid cell coordinate | |
oPlot | Plot object |
ModelException | if the grid cell coordinate is invalid |
Cell javawrapper::Subplot::GetCell | ( | int | iIndex | ) | [inline] |
Gets the cell at a particular index.
If the index is invalid, returns null.
iIndex | Index of the cell. |
int javawrapper::Subplot::GetNumberOfCells | ( | ) | [inline] |
Gets the number of cells in this subplot.
String javawrapper::Subplot::GetSubplotName | ( | ) | [inline] |
Gets the subplot's name.