00001 //--------------------------------------------------------------------------- 00002 #ifndef HeightGLIWeibullMortalityH 00003 #define HeightGLIWeibullMortalityH 00004 //--------------------------------------------------------------------------- 00005 #include "MortalityBase.h" 00006 00034 class clHeightGLIWeibullMortality : virtual public clMortalityBase { 00035 //note: need the virtual keyword to avoid base class ambiguity. 00036 00037 public: 00038 00044 clHeightGLIWeibullMortality(clSimManager *p_oSimManager); 00045 00049 ~clHeightGLIWeibullMortality(); 00050 00058 void DoShellSetup(xercesc::DOMDocument *p_oDoc); 00059 00069 bool DoMort(clTree *p_oTree, const float &fDbh, const short int &iSpecies); 00070 00071 protected: 00072 00076 short int **mp_iLightCodes; 00077 00081 short int **mp_iHeightCodes; 00082 00084 float *mp_fMaxMort; 00085 00087 float *mp_fA; 00088 00090 float *mp_fB; 00091 00093 float *mp_fC; 00094 00096 float *mp_fD; 00097 00099 int *mp_iIndexes; 00100 00103 float m_fYearsPerTimestep; 00104 00110 void GetTreeDataMemberCodes(); 00111 }; 00112 //--------------------------------------------------------------------------- 00113 #endif