javawrapper::ModelVector Class Reference

This class packages vector data with other pieces of information important to the model. More...

Inheritance diagram for javawrapper::ModelVector:

javawrapper::ModelData List of all members.

Public Member Functions

String toString ()
 Required overridden method.
String GetChildXMLTag ()
 Gets the XML tag used to identify each piece of data in the vector.
boolean GetMustApplyToAllSpecies ()
 Gets whether this vector must apply to all tree species, regardless of other factors controlling species.
boolean GetIsSpeciesSpecific ()
 Gets whether this vector is for species-specific values.
void SetIsSpeciesSpecific (boolean bIsSpeciesSpecific)
 Sets whether this vector is for species-specific values.
Vector GetValue ()
 Gets the Vector values.
int GetDataType ()
 Gets the data type desired for this ModelVector.

Static Public Attributes

static final int INTEGER = 0
 This vector desires data of type Integer.
static final int FLOAT = 1
 This vector desires data of type Float.
static final int MODEL_ENUM = 2
 This vector desires data of type ModelEnum.
static final int STRING = 3
 This vector desires data of type String.

Package Functions

 ModelVector (String sDescriptor, String sXMLTag, String sXMLChildTag, int iSize, int iDesiredDataType)
 Constructor.
 ModelVector (String sDescriptor, String sXMLTag, String sXMLChildTag, int iSize, int iDesiredDataType, boolean bMustApplyToAllSpecies)
 Constructor.

Detailed Description

This class packages vector data with other pieces of information important to the model.

This allows a vector of data to self-describe to error messages and display windows, and to identify the data that belongs to it in XML files being read and written.

Copyright: Copyright (c) Charles D. Canham 2003

Company: Institute of Ecosystem Studies

Author:
Lora E. Murphy
Version:
1.0

Edit history:
------------------
April 28, 2004: Submitted in beta version (LEM)
October 7, 2004: Added the m_bMustApplyToAllSpecies member (LEM)
January 22, 2005: Added the m_bIsForSpecies member (LEM)


Constructor & Destructor Documentation

javawrapper::ModelVector::ModelVector ( String  sDescriptor,
String  sXMLTag,
String  sXMLChildTag,
int  iSize,
int  iDesiredDataType 
) [inline, package]

Constructor.

Parameters:
sDescriptor A descriptive name string for this value. This will appear in the data window and in error messages.
sXMLTag The XML tag of the whole vector
sXMLChildTag The XML tag of individual values within the vector
iSize Initial size of the vector. 0 is always safe (since vectors grow to accommodate whatever data is placed in them).
iDesiredDataType Desired data type of this vector.

Edit history:
------------------
April 28, 2004: Submitted in beta version (LEM)

javawrapper::ModelVector::ModelVector ( String  sDescriptor,
String  sXMLTag,
String  sXMLChildTag,
int  iSize,
int  iDesiredDataType,
boolean  bMustApplyToAllSpecies 
) [inline, package]

Constructor.

Parameters:
sDescriptor A descriptive name string for this value. This will appear in the data window and in error messages.
sXMLTag The XML tag of the whole vector
sXMLChildTag The XML tag of individual values within the vector
iSize Initial size of the vector. 0 is always safe (since vectors grow to accommodate whatever data is placed in them).
iDesiredDataType Desired data type of this vector.
bMustApplyToAllSpecies Whether or not this vector automatically applies to all species, overriding any other method of determining which species it applies to.

Edit history:
------------------
April 28, 2004: Submitted in beta version (LEM)


Member Function Documentation

String javawrapper::ModelVector::toString (  )  [inline, virtual]

Required overridden method.

Returns:
null - this cannot be applied.

Implements javawrapper::ModelData.

String javawrapper::ModelVector::GetChildXMLTag (  )  [inline]

Gets the XML tag used to identify each piece of data in the vector.

Returns:
The XML tag for this vector's data.

Edit history:
------------------
April 28, 2004: Submitted in beta version (LEM)

boolean javawrapper::ModelVector::GetMustApplyToAllSpecies (  )  [inline]

Gets whether this vector must apply to all tree species, regardless of other factors controlling species.

Returns:
boolean Whether this vector must apply to all species.

boolean javawrapper::ModelVector::GetIsSpeciesSpecific (  )  [inline]

Gets whether this vector is for species-specific values.

Returns:
boolean Whether this vector is for species-specific values.

void javawrapper::ModelVector::SetIsSpeciesSpecific ( boolean  bIsSpeciesSpecific  )  [inline]

Sets whether this vector is for species-specific values.

Parameters:
bIsSpeciesSpecific boolean Whether this vector is for species- specific values.

Vector javawrapper::ModelVector::GetValue (  )  [inline]

Gets the Vector values.

Returns:
The Vector values.

Edit history:
------------------
April 28, 2004: Submitted in beta version (LEM)

int javawrapper::ModelVector::GetDataType (  )  [inline]

Gets the data type desired for this ModelVector.

Returns:
The desired data type.

Edit history:
------------------
April 28, 2004: Submitted in beta version (LEM)


The documentation for this class was generated from the following file:
Generated on Thu May 24 09:34:54 2007 for SORTIE Java Interface by  doxygen 1.5.2