00001 //--------------------------------------------------------------------------- 00002 // ResourceMortality 00003 //--------------------------------------------------------------------------- 00004 #if !defined(ResourceMortality_H) 00005 #define ResourceMortality_H 00006 00007 #include "MortalityBase.h" 00008 00009 class clGridBase; 00010 00065 class clResourceMortality : virtual public clMortalityBase { 00066 //note: need the virtual keyword to avoid base class ambiguity. 00067 00068 public: 00069 00073 clResourceMortality(clSimManager *p_oSimManager); 00074 00078 ~clResourceMortality(); 00079 00090 void DoShellSetup(xercesc::DOMDocument *p_oDoc); 00091 00100 bool DoMort(clTree *p_oTree, const float &fDbh, const short int &iSpecies); 00101 00102 protected: 00103 00107 clGridBase *mp_oResourceGrid; 00108 00110 short int **mp_iGrowthCodes; 00111 00114 short int **mp_iXCodes; 00115 00118 short int **mp_iYCodes; 00119 00122 float *mp_fRho; 00123 00126 float *mp_fMu; 00127 00130 float *mp_fDelta; 00131 00134 float *mp_fSigma; 00135 00137 short int *mp_iIndexes; 00138 00140 float m_fNumberYearsPerTimestep; 00141 00143 short int m_iResourceCode; 00144 00149 void ReadParameterFileData (xercesc::DOMDocument *p_oDoc); 00150 00156 void GetResourceGrid(); 00157 00165 void GetTreeDataMemberCodes(); 00166 }; 00167 //--------------------------------------------------------------------------- 00168 #endif // ResourceMortality_H