00001 //--------------------------------------------------------------------------- 00002 00003 #ifndef BathRecruitmentH 00004 #define BathRecruitmentH 00005 //--------------------------------------------------------------------------- 00006 #include "DisperseBase.h" 00007 00008 class clSimManager; 00009 00046 class clNonSpatialDispersal : virtual public clDisperseBase { 00047 00048 public: 00049 00055 clNonSpatialDispersal(clSimManager *p_oSimManager); 00056 00060 ~clNonSpatialDispersal(); 00061 00062 protected: 00063 00064 //Next two arrays are sized number of species - I'm going to go ahead and waste 00065 //the extra bytes if not all species use this since it's only two arrays. An 00066 //indexer array would probably spend more bytes than I saved by trimming them 00067 //to only the species that used bath recruitment. 00068 float *mp_fSlopeOfLambda; 00069 float *mp_fInterceptOfLambda; 00070 float m_fLambdaScaler; 00072 float m_fAreaOfPlotInHa; 00078 void DoShellSetup(xercesc::DOMDocument *p_oDoc); 00079 00088 float ComputeBasalArea(clTreePopulation *p_oPop, short int iSpecies); 00089 00096 void AddSeeds(); 00097 00098 }; 00099 //--------------------------------------------------------------------------- 00100 #endif