00001 //------------------------------------------------------------------------------ 00002 // 00003 // Thomas Berger (main author), Pepijn Schreinemachers, and Thorsten Arnold 00004 // 00005 // 00006 // Hohenheim University (490d) 00007 // Professorship for Land Use Economics in the Tropics and Subtropics 00008 // 00009 // May not be distributed without permission by main author 00010 // 00011 // File: CropGrowthHandler.h (formerly part of soils.h) 00012 // 00013 // Contents: Plant growth class, computes soil nutrient, water stress 00014 // and actual plant yields 00015 // 00016 // 00017 //------------------------------------------------------------------------------ 00018 00019 #ifndef _CropGrowthHandler_h 00020 #define _CropGrowthHandler_h 00021 00022 #include "CropSoil.h" 00023 #include "CropWater.h" 00024 #include "CropActualPrecipitation.h" 00025 00027 00035 class CropGrowthHandler 00036 { 00037 public: 00038 00040 00041 00042 //CropSoil* getPointerToCropSoilModel()const; 00043 //CropWater* getPointerToCropWaterModel()const; 00044 //CropPrecipitation* getPointerToCropPrecipitationModel()const; 00045 00046 CropSoil* const getPointerToCropSoilModel()const; 00047 CropWater* const getPointerToCropWaterModel()const; 00048 CropPrecipitation* const getPointerToCropPrecipitationModel()const; 00050 00051 //--------------------------------------------------------------------------- 00052 00054 00055 00056 //virtual void readInputFromFile(char* filename); 00057 virtual void readInputFromFile(); 00058 00060 00061 //--------------------------------------------------------------------------- 00062 00063 00065 00066 00067 00069 00070 //--------------------------------------------------------------------------- 00072 00073 00074 CropGrowthHandler(); 00075 00077 //CropGrowthHandler(const CropGrowthHandler& cropHandler_); 00078 00080 //CropGrowthHandler& operator=(const CropGrowthHandler& cropHandler_); 00081 00083 virtual ~CropGrowthHandler() 00084 { delete cropSoilModel; 00085 delete cropWaterModel; 00086 delete cropPrecipitationModel; 00087 00088 } 00090 00091 00092 protected: 00094 00095 00096 CropSoil* cropSoilModel; 00097 CropWater* cropWaterModel; 00098 CropPrecipitation* cropPrecipitationModel; 00100 00101 00102 00103 }; 00104 00105 #endif 00106