00001 //--------------------------------------------------------------------------- 00002 00003 #ifndef LogisticBiLevelMortalityH 00004 #define LogisticBiLevelMortalityH 00005 //--------------------------------------------------------------------------- 00006 #include "MortalityBase.h" 00007 00008 class clGridBase; 00009 class clTreePopulation; 00043 class clLogisticBiLevelMortality : virtual public clMortalityBase { 00044 //note: need the virtual keyword to avoid base class ambiguity. 00045 00046 public: 00047 00053 clLogisticBiLevelMortality(clSimManager *p_oSimManager); 00054 00058 ~clLogisticBiLevelMortality(); 00059 00065 void DoShellSetup(xercesc::DOMDocument *p_oDoc); 00066 00079 bool DoMort(clTree *p_oTree, const float &fDbh, const short int &iSpecies); 00080 00081 protected: 00082 00084 clGridBase *mp_oStormLight; 00085 00087 clTreePopulation *mp_oPop; 00088 00090 float *mp_fLoLightB; 00091 00093 float *mp_fLoLightA; 00094 00096 float *mp_fHiLightB; 00097 00099 float *mp_fHiLightA; 00100 00103 float *mp_fHiLightThreshold; 00104 00106 int *mp_iIndexes; 00107 00110 float m_fYearsPerTimestep; 00111 00113 int m_iLightCode; 00114 00115 }; 00116 //--------------------------------------------------------------------------- 00117 #endif