SORTIE Java Interface
1
|
Abstract class holding data member-based data, such as trees or grid values. More...
Public Member Functions | |
DataMemberData (int iNumFloats, int iNumInts, int iNumChars, int iNumBools) throws ModelException | |
Constructor. More... | |
int | getNumberOfFloats () |
int | getNumberOfInts () |
int | getNumberOfBools () |
int | getNumberOfChars () |
void | setValue (int iIndex, Integer iValue) throws ModelException |
Sets an integer data member's value. More... | |
void | setValue (int iIndex, Float fValue) throws ModelException |
Sets a float data member's value. More... | |
void | setValue (int iIndex, Boolean bValue) throws ModelException |
Sets a boolean data member's value. More... | |
void | setValue (int iIndex, String sValue) throws ModelException |
Sets a char data member's value. More... | |
Float | getFloat (int iIndex) throws ModelException |
Gets a float data member's value. More... | |
Integer | getInt (int iIndex) throws ModelException |
Gets an int data member's value. More... | |
Boolean | getBool (int iIndex) throws ModelException |
Gets a boolean data member's value. More... | |
String | getChar (int iIndex) throws ModelException |
Gets a char data member's value. More... | |
void | removeFloat (int iIndex) throws ModelException |
Removes a float data member's value. More... | |
void | removeInt (int iIndex) throws ModelException |
Removes an int data member's value. More... | |
void | removeBool (int iIndex) throws ModelException |
Removes a bool data member's value. More... | |
void | removeChar (int iIndex) throws ModelException |
Removes a char data member's value. More... | |
Protected Attributes | |
Float [] | mp_fFloats |
Float data members. More... | |
Integer [] | mp_iInts |
Int data members. More... | |
Boolean [] | mp_bBools |
Bool data members. More... | |
String [] | mp_sChars |
Char data members - these may get truncated when read into C++. More... | |
Abstract class holding data member-based data, such as trees or grid values.
Copyright: Copyright (c) Charles D. Canham 2003
Company: Cary Institute of Ecosystem Studies
Edit history:
---------------—
April 28, 2004: Submitted in beta version (LEM)
October 29, 2010: Changed Floats to Floats
sortie.data.simpletypes.DataMemberData.DataMemberData | ( | int | iNumFloats, |
int | iNumInts, | ||
int | iNumChars, | ||
int | iNumBools | ||
) | throws ModelException |
Constructor.
Creates the arrays.
iNumFloats | Number of float data members |
iNumInts | Number of integer data members |
iNumChars | Number of char (String) data members |
iNumBools | Number of bool data members |
ModelException | if the species or type numbers are invalid |
Boolean sortie.data.simpletypes.DataMemberData.getBool | ( | int | iIndex | ) | throws ModelException |
Gets a boolean data member's value.
iIndex | Index at which to set the value. |
ModelException | if the index is invalid. |
String sortie.data.simpletypes.DataMemberData.getChar | ( | int | iIndex | ) | throws ModelException |
Gets a char data member's value.
iIndex | Index at which to set the value. |
ModelException | if the index is invalid. |
Float sortie.data.simpletypes.DataMemberData.getFloat | ( | int | iIndex | ) | throws ModelException |
Gets a float data member's value.
iIndex | Index at which to set the value. |
ModelException | if the index is invalid. |
Integer sortie.data.simpletypes.DataMemberData.getInt | ( | int | iIndex | ) | throws ModelException |
Gets an int data member's value.
iIndex | Index at which to set the value. |
ModelException | if the index is invalid. |
int sortie.data.simpletypes.DataMemberData.getNumberOfBools | ( | ) |
int sortie.data.simpletypes.DataMemberData.getNumberOfChars | ( | ) |
int sortie.data.simpletypes.DataMemberData.getNumberOfFloats | ( | ) |
int sortie.data.simpletypes.DataMemberData.getNumberOfInts | ( | ) |
void sortie.data.simpletypes.DataMemberData.removeBool | ( | int | iIndex | ) | throws ModelException |
Removes a bool data member's value.
iIndex | Index at which to set the value. |
ModelException | if the index is invalid. |
void sortie.data.simpletypes.DataMemberData.removeChar | ( | int | iIndex | ) | throws ModelException |
Removes a char data member's value.
iIndex | Index at which to set the value. |
ModelException | if the index is invalid. |
void sortie.data.simpletypes.DataMemberData.removeFloat | ( | int | iIndex | ) | throws ModelException |
Removes a float data member's value.
iIndex | Index at which to set the value. |
ModelException | if the index is invalid. |
void sortie.data.simpletypes.DataMemberData.removeInt | ( | int | iIndex | ) | throws ModelException |
Removes an int data member's value.
iIndex | Index at which to set the value. |
ModelException | if the index is invalid. |
void sortie.data.simpletypes.DataMemberData.setValue | ( | int | iIndex, |
Integer | iValue | ||
) | throws ModelException |
Sets an integer data member's value.
iIndex | Index at which to set the value. |
iValue | The value to set. |
ModelException | if the index is invalid. |
void sortie.data.simpletypes.DataMemberData.setValue | ( | int | iIndex, |
Float | fValue | ||
) | throws ModelException |
Sets a float data member's value.
iIndex | Index at which to set the value. |
fValue | The value to set. |
ModelException | if the index is invalid. |
void sortie.data.simpletypes.DataMemberData.setValue | ( | int | iIndex, |
Boolean | bValue | ||
) | throws ModelException |
Sets a boolean data member's value.
iIndex | Index at which to set the value. |
bValue | The value to set. |
ModelException | if the index is invalid. |
void sortie.data.simpletypes.DataMemberData.setValue | ( | int | iIndex, |
String | sValue | ||
) | throws ModelException |
Sets a char data member's value.
iIndex | Index at which to set the value. |
sValue | The value to set. |
ModelException | if the index is invalid. |
|
protected |
Bool data members.
|
protected |
Float data members.
|
protected |
Int data members.
|
protected |
Char data members - these may get truncated when read into C++.