Public Member Functions | |
| SpeciesTypeCombo (int iSpecies, int iType, TreePopulation oPop) throws ModelException | |
| Constructor. | |
| void | SetSpecies (int iSpecies, TreePopulation oPop) throws ModelException |
| Species setter. | |
| boolean | equals (Object oToCheck) |
| Implemented equality checker. | |
| Object | clone () |
| Override this so clones can be made. | |
| int | GetSpecies () |
| Gets the species for this combo. | |
| int | GetType () |
| Gets the type for this combo. | |
Private Member Functions | |
| SpeciesTypeCombo (int iSpecies, int iType) | |
| Constructor. | |
Private Attributes | |
| int | m_iSpecies |
| Tree species. | |
| int | m_iType |
| Tree type. | |
This is useful, for instance, when a behavior object wants to keep a list of those species and types to which each of its sub-behaviors applies.
Copyright: Copyright (c) 2003
Company:
| javawrapper::SpeciesTypeCombo::SpeciesTypeCombo | ( | int | iSpecies, | |
| int | iType, | |||
| TreePopulation | oPop | |||
| ) | throws ModelException [inline] |
Constructor.
| iSpecies | Species number. | |
| iType | Type number. | |
| oPop | Tree population object for data validation. |
| ModelException | if either species or type number is invalid |
| javawrapper::SpeciesTypeCombo::SpeciesTypeCombo | ( | int | iSpecies, | |
| int | iType | |||
| ) | [inline, private] |
Constructor.
Private so that the cloning process can use it without having to go through validation with the TreePopulation - since presumably an already existing object would have validated in its own constructor.
| Object javawrapper::SpeciesTypeCombo::clone | ( | ) | [inline] |
Override this so clones can be made.
| boolean javawrapper::SpeciesTypeCombo::equals | ( | Object | oToCheck | ) | [inline] |
Implemented equality checker.
| oToCheck | Object to check for equality. |
| int javawrapper::SpeciesTypeCombo::GetSpecies | ( | ) | [inline] |
Gets the species for this combo.
| int javawrapper::SpeciesTypeCombo::GetType | ( | ) | [inline] |
Gets the type for this combo.
| void javawrapper::SpeciesTypeCombo::SetSpecies | ( | int | iSpecies, | |
| TreePopulation | oPop | |||
| ) | throws ModelException [inline] |
Species setter.
| iSpecies | Species to set. | |
| oPop | TreePopulation object. |
| ModelException | if the species is invalid. |
1.4.7