File failed to load: https://cdnjs.cloudflare.com/ajax/libs/mathjax/2.7.5/extensions/ams.js
ALMaSS  1.2 (after EcoStack, March 2024)
The Animal, Landscape and Man Simulation System
All Classes Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Pages
Aphid_Population_Manager.h
Go to the documentation of this file.
1 /*
2 *******************************************************************************************************
3 Copyright (c) 2021, Xiaodong Duan, Aarhus University
4 All rights reserved.
5 
6 Redistribution and use in source and binary forms, with or without modification, are permitted provided
7 that the following conditions are met:
8 
9 Redistributions of source code must retain the above copyright notice, this list of conditions and the
10 following disclaimer.
11 Redistributions in binary form must reproduce the above copyright notice, this list of conditions and
12 the following disclaimer in the documentation and/or other materials provided with the distribution.
13 
14 THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" AND ANY EXPRESS OR
15 IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND
16 FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT HOLDER OR CONTRIBUTORS
17 BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING,
18 BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR
19 BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT
20 LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS
21 SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
22 ********************************************************************************************************
23 */
32 //---------------------------------------------------------------------------
33 #ifndef Aphid_Population_ManagerH
34 #define Aphid_Population_ManagerH
35 //---------------------------------------------------------------------------
36 
37 //---------------------------------------------------------------------------
38 
39 #include <Landscape/ls.h>
40 #include "../SubPopulation/SubPopulation_Population_Manager.h"
41 #include "../SubPopulation/SubPopulation.h"
42 #include <vector>
43 class Aphid;
45 class Landscape;
46 class Population_Manager;
48 class SubPopulation;
49 
55 {
56  public:
58  int x;
60  int y;
62  int w;
64  int h;
66  int species;
72  bool empty_flag;
77  int index_x;
78  int index_y;
81  bool farm_flag;
83 };
84 
86 {
92 };
93 
99 {
194 
202  int (Aphid_Population_Manager::*m_offspring_func_pointer)(int current_stage, double *offspring_num, double a_age, double a_density, double a_growth_stage, double* a_propotion, bool winter_host_flag);
208  vector <double> m_nymph_per_day;
210  vector <double> m_egg_per_day;
221  #ifdef __APHID_CALIBRATION
222  FILE* m_aphid_calib_crop_output;
223  FILE* m_aphid_calib_tole_output;
224  FILE* m_aphid_calib_land_output;
225  #endif
226 
227 public:
228  Aphid_Population_Manager(Landscape* L, string a_aphid_specie_name = "English grain aphid");
229  virtual ~Aphid_Population_Manager();
230  Aphid* CreateObjects(TAnimal *pvo, struct_Aphid* data, int number);
231  virtual int calNextStage(int current_stage, double density = 1);
233  virtual void updateDevelopmentSeason();
235  virtual unsigned supplyDevelopmentSeason () {return m_current_developtype;}
237  virtual void initialisePopulation();
239  int calNextStageShared(int current_stage);
241  void initialiseSimWithEggs(void);
243  virtual void updateMortalityArray(void);
245  void updateMortalityArrayShared(void);
247  virtual int calOffspringStage(int current_stage, double *offspring_num=NULL, double a_age=1, double a_density=-1, double a_growth_stage=0, double* a_propotion=NULL, bool winter_host_flag=false);
249  int calOffspringStageEGandPEA(int current_stage, double *offspring_num=NULL, double a_age=1, double a_density=-1, double a_growth_stage=0, double* a_propotion=NULL, bool winter_host_flag=false);
251  int calOffspringStageBBandPP(int current_stage, double *offspring_num=NULL, double a_age=1, double a_density=-1, double a_growth_stage=0, double* a_propotion=NULL, bool winter_host_flag=false);
253  virtual bool isEnoughNextLifeStage(int a_life_stage);
254  bool isEnoughNextLifeStageShared(int a_life_stage);
258  virtual void doSpeciesLastThing();
259  virtual void writeCalibrationFiles(void);
261  virtual double calHatchChance();
262  #ifdef __APHID_CALIBRATION
263  bool openAphidCalibFiles(void);
264  void closeAphidCalibFiles(void);
265  void writeAphidCalibData(void);
266  void writeRowAphidCalibData(FILE* target_file, CfgArray_Int poly_id_list);
267  #endif
268 
270  double SupplyAphidDensity(int a_x, int a_y);
272  void KillAphid(int a_x, int a_y, double a_num);
273 
274 };
275 
276 #endif
cfg_PPAphidNymphDevDayDegWing
CfgFloat cfg_PPAphidNymphDevDayDegWing("PP_APHID_NYMPH_DEV_DAY_DEG_WING", CFG_CUSTOM, 148.59)
Aphid_Population_Manager::m_aphid_nymph_production_temp_weight_para_b
double m_aphid_nymph_production_temp_weight_para_b
The variable to store the temperature weighted nymph production parameter B.
Definition: Aphid_Population_Manager.h:169
Aphid_Population_Manager::m_aphid_adult_mortality_para_b
double m_aphid_adult_mortality_para_b
The variable to store the adult mortality parameter B.
Definition: Aphid_Population_Manager.h:115
cfg_PPAphidEggHatchDelayDD
CfgFloat cfg_PPAphidEggHatchDelayDD("PP_APHID_EGG_HATCH_DELAY_DD", CFG_CUSTOM, 10)
cfg_PEAAphidNymphReproductionTempWeightParaB
CfgFloat cfg_PEAAphidNymphReproductionTempWeightParaB("PEA_APHID_NYMPH_REPRODUCTION_TEMP_WEIGHT_PARA_B", CFG_CUSTOM, 0.264)
cfg_EGAphidNymphReproductionParaB2
CfgFloat cfg_EGAphidNymphReproductionParaB2("EG_APHID_NYMPH_REPRODUCTION_PARA_B2", CFG_CUSTOM, 4.6872)
Aphid_Population_Manager::m_aphid_adult_longevity_para_b
double m_aphid_adult_longevity_para_b
The variable to store the adult longevity parameter B.
Definition: Aphid_Population_Manager.h:121
cfg_PPAphidAdultMortalityParaB
CfgFloat cfg_PPAphidAdultMortalityParaB("PP_APHID_ADULT_MORTALITY_PARA_B", CFG_CUSTOM, -0.0115)
g_landscape_ptr
Landscape * g_landscape_ptr
Definition: Landscape.cpp:352
Aphid_Population_Manager::m_aphid_egg_hatch_chance_para_b_after_threshold
double m_aphid_egg_hatch_chance_para_b_after_threshold
The variable to store the egg hatch chance parameter B after threshold.
Definition: Aphid_Population_Manager.h:135
SubPopulation_Population_Manager
The class to handle all subpopulation-based ainimal population related matters in the whole landscape...
Definition: SubPopulation_Population_Manager.h:77
cfg_PPAphidAdultMortalityParaA
CfgFloat cfg_PPAphidAdultMortalityParaA("PP_APHID_ADULT_MORTALITY_PARA_A", CFG_CUSTOM, 0.0004)
toa_Alate
Definition: Aphid.h:53
cfg_BBAphidSummerHostDayLength
CfgFloat cfg_BBAphidSummerHostDayLength("BB_APHID_SUMMER_HOST_DAY_LENGTH", CFG_CUSTOM, 600)
The day length to control the winter and summer hosts, this used for black bean and peach potato aphi...
SubPopulation_Population_Manager::m_the_subpopulation_array
blitz::Array< SubPopulation *, 2 > m_the_subpopulation_array
Vector to store the all the pointers for the subpopulation object.
Definition: SubPopulation_Population_Manager.h:115
WARN_FILE
Definition: MapErrorMsg.h:37
cfg_PPAphidLongevityParaA
CfgFloat cfg_PPAphidLongevityParaA("PP_APHID_ADULT_LONGEVITY_PARA_A", CFG_CUSTOM, -0.0047)
g_rand_uni_fnc
double g_rand_uni_fnc()
Definition: ALMaSS_Random.cpp:56
toas_EG
Definition: Aphid.h:64
struct_Aphid::h
int h
area height
Definition: Aphid_Population_Manager.h:64
Aphid_Population_Manager::updateMortalityArrayShared
void updateMortalityArrayShared(void)
The function to calculate the base mortality rate for all aphids.
Definition: Aphid_Population_Manager.cpp:975
cfg_AphidCalibrationPolygonToStoreCROP
CfgArray_Int cfg_AphidCalibrationPolygonToStoreCROP("APHID_CALIBRATION_POLYGON_TO_STORE_CROP", CFG_CUSTOM, 1, vector< int >{2911})
Aphid_Population_Manager::m_aphid_nymph_production_para_a2
double m_aphid_nymph_production_para_a2
The variable to store the nymph production parameter A2.
Definition: Aphid_Population_Manager.h:161
cfg_BBAphidNymphMortalityParaA
CfgFloat cfg_BBAphidNymphMortalityParaA("BB_APHID_NYMPH_MORTALITY_PARA_A", CFG_CUSTOM, 0.0025)
Aphid_Population_Manager::KillAphid
void KillAphid(int a_x, int a_y, double a_num)
Function to kill the given number of aphids in the given location.
Definition: Aphid_Population_Manager.cpp:1239
SubPopulation_Population_Manager::m_max_alive_days
int m_max_alive_days
The longest alive day among all the life stages.
Definition: SubPopulation_Population_Manager.h:156
cfg_EGAphidNymphMortalityParaC
CfgFloat cfg_EGAphidNymphMortalityParaC("EG_APHID_NYMPH_MORTALITY_PARA_C", CFG_CUSTOM, 0.0906)
cfg_EGAphidAdultMortalityParaA
CfgFloat cfg_EGAphidAdultMortalityParaA("EG_APHID_ADULT_MORTALITY_PARA_A", CFG_CUSTOM, 0.0004)
The temperature related morality rate for Aphid adults.
Aphid_Population_Manager::m_aphid_egg_hatch_chance_turing_degree_days
double m_aphid_egg_hatch_chance_turing_degree_days
The variable to store the turning degree day for egg hatch chance.
Definition: Aphid_Population_Manager.h:137
cfg_EGAphidEggHatchChanceParaA
CfgFloat cfg_EGAphidEggHatchChanceParaA("EG_APHID_EGG_HATCH_CHANCE_PARA_A", CFG_CUSTOM, 0.0029)
The parameters to calculate the hatch chance of eggs.
Landscape::SupplyTemp
double SupplyTemp(void)
Passes a request on to the associated Weather class function, the temperature for the current day.
Definition: Landscape.h:1993
cfg_PPAphidAdultMortalityDdeg
CfgArray_Double cfg_PPAphidAdultMortalityDdeg("PP_APHID_ADULT_MORTALITY_DDEG", CFG_CUSTOM, 13, vector< double >{375, 400, 425, 450, 475, 500, 525, 550, 575, 600, 625, 650, 675})
cfg_EGAphidAlatePropParaB
CfgFloat cfg_EGAphidAlatePropParaB("EG_APHID_ALATE_PROP_PARA_B", CFG_CUSTOM, 10)
cfg_PEAAphidNymphMortalityParaA
CfgFloat cfg_PEAAphidNymphMortalityParaA("PEA_APHID_NYMPH_MORTALITY_PARA_A", CFG_CUSTOM, 0.0004)
cfg_PPAphidNymphReproductionTempWeightParaA
CfgFloat cfg_PPAphidNymphReproductionTempWeightParaA("PP_APHID_NYMPH_REPRODUCTION_TEMP_WEIGHT_PARA_A", CFG_CUSTOM, -0.006)
cfg_EGAphidNymphReproductionTempWeightParaA
CfgFloat cfg_EGAphidNymphReproductionTempWeightParaA("EG_APHID_NYMPH_REPRODUCTION_TEMP_WEIGHT_PARA_A", CFG_CUSTOM, -0.006)
cfg_EGAphidAdultMortality
CfgArray_Double cfg_EGAphidAdultMortality("EG_APHID_ADULT_MORTALITY", CFG_CUSTOM, 9, vector< double >{0.017, 0.071211, 0.07667, 0.083037, 0.090556, 0.099573, 0.110585, 0.124334, 1})
cfg_PPAphidSexualDevelopmentRequiredDdegStd
CfgFloat cfg_PPAphidSexualDevelopmentRequiredDdegStd("PP_APHID_SEXUAL_DEVELOPMENT_REQUIRED_DDEG_STD", CFG_CUSTOM, 73)
cfg_BBAphidAdultMortalityDdeg
CfgArray_Double cfg_BBAphidAdultMortalityDdeg("BB_APHID_ADULT_MORTALITY_DDEG", CFG_CUSTOM, 13, vector< double >{375, 400, 425, 450, 475, 500, 525, 550, 575, 600, 625, 650, 675})
cfg_PEAphidSexualDevelopmentRequiredDdeg
CfgFloat cfg_PEAphidSexualDevelopmentRequiredDdeg("PEA_APHID_SEXUAL_DEVELOPMENT_REQUIRED_DDEG", CFG_CUSTOM, 1157)
cfg_BBAphidEggReproductionParaB
CfgFloat cfg_BBAphidEggReproductionParaB("BB_APHID_EGG_REPRODUCTION_PARA_B", CFG_CUSTOM, -0.266)
struct_Aphid::x
int x
x-coord
Definition: Aphid_Population_Manager.h:58
Landscape::SupplyVegType
TTypesOfVegetation SupplyVegType(int a_x, int a_y)
Returns the vegetation type of the polygon using the polygon reference number a_polyref or coordinate...
Definition: Landscape.h:1925
cfg_PEAAphidEggMortalityRateStd
CfgFloat cfg_PEAAphidEggMortalityRateStd("PEA_APHID_EGG_MORALITY_RATE_STD", CFG_CUSTOM, 0.00024)
cfg_PPAphidNymphReproductionParaA1
CfgFloat cfg_PPAphidNymphReproductionParaA1("PP_APHID_NYMPH_REPRODUCTION_PARA_A1", CFG_CUSTOM, 0.1158)
cfg_PPAphidNymphReproductionParaB2
CfgFloat cfg_PPAphidNymphReproductionParaB2("PP_APHID_NYMPH_REPRODUCTION_PARA_B2", CFG_CUSTOM, 4, 5)
cfg_PEAAphidDevelopmentTurningTempArray
CfgArray_Double cfg_PEAAphidDevelopmentTurningTempArray("PEA_APHID_DEVELOPMENT_TURNING_TEMP_ARRAY", CFG_CUSTOM, 9, vector< double >{4, 3.5, 3.5, 3.5, 3.5, 10, 10, 10, 10})
Landscape::SupplyElementType
TTypesOfLandscapeElement SupplyElementType(int a_polyref)
Returns the landscape type of the polygon using the polygon reference number a_polyref or coordinates...
Definition: Landscape.h:1732
cfg_PEAAphidHostFile
CfgStr cfg_PEAAphidHostFile("PEA_APHID_HOST_FILE", CFG_CUSTOM, "Subpopulation/pea_aphid_host.txt")
cfg_PPAphidEggMortalityRateStd
CfgFloat cfg_PPAphidEggMortalityRateStd("PP_APHID_EGG_MORALITY_RATE_STD", CFG_CUSTOM, 0.00024)
cfg_PEAAphidEggHatchDelayThreshold
CfgFloat cfg_PEAAphidEggHatchDelayThreshold("PEA_APHID_EGG_HATCH_DELAY_THRESHOLD", CFG_CUSTOM, 0.9)
cfg_BBAphidEggHatchChanceParaB
CfgFloat cfg_BBAphidEggHatchChanceParaB("BB_APHID_EGG_HATCH_CHANCE_PARA_B", CFG_CUSTOM, -0.16)
cfg_BBAphidNymphMortalityParaB
CfgFloat cfg_BBAphidNymphMortalityParaB("BB_APHID_NYMPH_MORTALITY_PARA_B", CFG_CUSTOM, -0.059)
Landscape::VegtypeToString
std::string VegtypeToString(TTypesOfVegetation a_veg)
Returns the text representation of a TTypesOfVegetation type.
Definition: Landscape.cpp:6518
cfg_EGAphidDualLinearModelFlagDD
CfgBool cfg_EGAphidDualLinearModelFlagDD("EG_APHID_DUAL_LINEAR_MODEL_FLAG_DD", CFG_CUSTOM, true)
The flag control whether dual linear models are used for accumulating degree days.
Aphid_Population_Manager::writeCalibrationFiles
virtual void writeCalibrationFiles(void)
Write probe files for calibration.
Definition: Aphid_Population_Manager.cpp:1337
SubPopulation_Population_Manager::m_flying_life_stage_array
std::vector< int > m_flying_life_stage_array
The vector to store the life stages that can fly.
Definition: SubPopulation_Population_Manager.h:194
tole_Foobar
Definition: LandscapeFarmingEnums.h:183
toAphidSummerDev
Definition: Aphid_Population_Manager.h:89
CfgStr::value
char * value() const
Definition: Configurator.h:182
Aphid_Population_Manager::m_aphid_egg_production_para_a
double m_aphid_egg_production_para_a
The variable to store the egg production parameter A.
Definition: Aphid_Population_Manager.h:149
Aphid_Population_Manager::m_aphid_egg_production_para_c
double m_aphid_egg_production_para_c
The variable to store the egg production parameter C.
Definition: Aphid_Population_Manager.h:153
cfg_PPAphidEggReproductionParaA
CfgFloat cfg_PPAphidEggReproductionParaA("PP_APHID_EGG_REPRODUCTION_PARA_A", CFG_CUSTOM, 0.2469)
Aphid_Population_Manager::m_aphid_adult_mortality_para_a
double m_aphid_adult_mortality_para_a
The variable to store the adult mortality parameter A.
Definition: Aphid_Population_Manager.h:113
Aphid_Population_Manager::m_aphid_alate_proportion_para_a
double m_aphid_alate_proportion_para_a
The variable to store alate proportion calculation parameter A.
Definition: Aphid_Population_Manager.h:173
cfg_BBAphidWinterHostDayLength
CfgFloat cfg_BBAphidWinterHostDayLength("BB_APHID_WINTER_HOST_DAY_LENGTH", CFG_CUSTOM, 1000)
cfg_EGAphidNymphDevDayDegWingStd
CfgFloat cfg_EGAphidNymphDevDayDegWingStd("EG_APHID_NYMPH_DEV_DAY_DEG_WING_STD", CFG_CUSTOM, 10.33)
cfg_EGAphidEggReproductionParaB
CfgFloat cfg_EGAphidEggReproductionParaB("EG_APHID_EGG_REPRODUCTION_PARA_B", CFG_CUSTOM, -0.266)
cfg_BBAphidEggMortalityRate
CfgFloat cfg_BBAphidEggMortalityRate("BB_APHID_EGG_MORALITY_RATE", CFG_CUSTOM, 0.00595)
toa_Male
Definition: Aphid.h:55
cfg_BBAphidNymphReproductionParaB2
CfgFloat cfg_BBAphidNymphReproductionParaB2("BB_APHID_NYMPH_REPRODUCTION_PARA_B2", CFG_CUSTOM, 9.9696)
cfg_PEAAphidDayLengthFemale
CfgFloat cfg_PEAAphidDayLengthFemale("PEA_APHID_DAY_LENGTH_FEMALE", CFG_CUSTOM, 780)
cfg_PEAAphidDayLengthMale
CfgFloat cfg_PEAAphidDayLengthMale("PEA_APHID_DAY_LENGTH_MALE", CFG_CUSTOM, 810)
cfg_BBAphidSexualDevelopmentRequiredDdegStd
CfgFloat cfg_BBAphidSexualDevelopmentRequiredDdegStd("BB_APHID_SEXUAL_DEVELOPMENT_REQUIRED_DDEG_STD", CFG_CUSTOM, 73)
CfgStr
String configurator entry class.
Definition: Configurator.h:173
Population_Manager_Base::m_ListNames
const char * m_ListNames[32]
A list of life-stage names.
Definition: PopulationManager.h:628
cfg_PEAAphidAdultMortality
CfgArray_Double cfg_PEAAphidAdultMortality("PEA_APHID_ADULT_MORTALITY", CFG_CUSTOM, 6, vector< double >{0.048, 0.123424, 0.140803, 0.163877, 0.195997, 1})
cfg_EGAphidSexualDevelopmentRequiredDdegStd
CfgFloat cfg_EGAphidSexualDevelopmentRequiredDdegStd("EG_APHID_SEXUAL_DEVELOPMENT_REQUIRED_DDEG_STD", CFG_CUSTOM, 73)
cfg_EGAphidEggMortalityRateStd
CfgFloat cfg_EGAphidEggMortalityRateStd("EG_APHID_EGG_MORALITY_RATE_STD", CFG_CUSTOM, 0.00024)
CfgArray_Int::get_array_size
int get_array_size()
Definition: Configurator.h:204
cfg_AphidCellHeight
CfgInt cfg_AphidCellHeight("APHID_CELL_HEIGHT", CFG_CUSTOM, 10)
The height of the cell on the landscape for the aphids. -y, all the aphid species use the same parame...
cfg_AphidCellWidth
CfgInt cfg_AphidCellWidth("APHID_CELL_WIDTH", CFG_CUSTOM, 10)
The width of the cell on the landscape for the aphids. -x , all the aphid species use the same parame...
cfg_BBAphidEggHatchChanceParaA
CfgFloat cfg_BBAphidEggHatchChanceParaA("BB_APHID_EGG_HATCH_CHANCE_PARA_A", CFG_CUSTOM, 0.0029)
cfg_BBAphidNymphReproductionTempWeightParaA
CfgFloat cfg_BBAphidNymphReproductionTempWeightParaA("BB_APHID_NYMPH_REPRODUCTION_TEMP_WEIGHT_PARA_A", CFG_CUSTOM, -0.006)
Aphid_Population_Manager::doSpeciesLastThing
virtual void doSpeciesLastThing()
The function to return the species.
Definition: Aphid_Population_Manager.cpp:1217
SubPopulation_Population_Manager::m_cell_suitability
blitz::Array< double, 2 > m_cell_suitability
Array for suitable value in each subpopulation cell.
Definition: SubPopulation_Population_Manager.h:113
SubPopulation_Population_Manager::m_num_life_stage
int m_num_life_stage
The number of life stages for the animal.
Definition: SubPopulation_Population_Manager.h:103
cfg_PPAphidSexualDevelopmentRequiredDdeg
CfgFloat cfg_PPAphidSexualDevelopmentRequiredDdeg("PP_APHID_SEXUAL_DEVELOPMENT_REQUIRED_DDEG", CFG_CUSTOM, 1157)
Aphid_Population_Manager::m_aphid_sexual_reproduction_add_sd
double m_aphid_sexual_reproduction_add_sd
The standard deviation of the required accumulated degree days to enable sexual reproduction after th...
Definition: Aphid_Population_Manager.h:193
Aphid_Population_Manager::m_aphid_alate_proportion_para_c
double m_aphid_alate_proportion_para_c
The variable to store alate proportion calculation parameter C.
Definition: Aphid_Population_Manager.h:177
cfg_EGAphidDayLengthFemale
CfgFloat cfg_EGAphidDayLengthFemale("EG_APHID_DAY_LENGTH_FEMALE", CFG_CUSTOM, 700)
cfg_PPAphidNymphDevDayDegNoWingStd
CfgFloat cfg_PPAphidNymphDevDayDegNoWingStd("PP_APHID_NYMPH_DEV_DAY_DEG_NO_WING_STD", CFG_CUSTOM, 2.62)
g_farmmanager
FarmManager * g_farmmanager
Definition: Farm.cpp:638
cfg_PEAAphidEggReproductionParaSTD
CfgFloat cfg_PEAAphidEggReproductionParaSTD("PEA_APHID_EGG_REPRODUCTION_PARA_STD", CFG_CUSTOM, 0)
Aphid_Population_Manager::m_egg_reproduction_flag
bool m_egg_reproduction_flag
The flag to enable sexual development.
Definition: Aphid_Population_Manager.h:214
SubPopulation_Population_Manager::m_mul_hosts_flag
bool m_mul_hosts_flag
Flag to show whether it has both winter and summer host.
Definition: SubPopulation_Population_Manager.h:105
cfg_PEAAphidLongevityParaA
CfgFloat cfg_PEAAphidLongevityParaA("PEA_APHID_ADULT_LONGEVITY_PARA_A", CFG_CUSTOM, -0.0047)
cfg_PEAAphidAdultMortalityParaA
CfgFloat cfg_PEAAphidAdultMortalityParaA("PEA_APHID_ADULT_MORTALITY_PARA_A", CFG_CUSTOM, 0.0004)
cfg_EGAphidNymphDevDayDegNoWingStd
CfgFloat cfg_EGAphidNymphDevDayDegNoWingStd("EG_APHID_NYMPH_DEV_DAY_DEG_NO_WING_STD", CFG_CUSTOM, 10.33)
cfg_AphidMaxLongDistance
CfgFloat cfg_AphidMaxLongDistance("APHID_MAX_LONG_DISTANCE", CFG_CUSTOM, 1500)
The longest distance that an aphid WITHOUT wings can fly. (meters)
cfg_BBAphidDualLinearModelFlagDD
CfgBool cfg_BBAphidDualLinearModelFlagDD("BB_APHID_DUAL_LINEAR_MODEL_FLAG_DD", CFG_CUSTOM, true)
CfgFloat::value
double value() const
Definition: Configurator.h:142
ls.h
SubPopulation_Population_Manager::m_summer_host_on
bool m_summer_host_on
The flag to enable summer host.
Definition: SubPopulation_Population_Manager.h:204
cfg_BBAphidSexualDevelopmentRequiredDdeg
CfgFloat cfg_BBAphidSexualDevelopmentRequiredDdeg("BB_APHID_SEXUAL_DEVELOPMENT_REQUIRED_DDEG", CFG_CUSTOM, 1157)
cfg_PEAAphidNymphReproductionParaA1
CfgFloat cfg_PEAAphidNymphReproductionParaA1("PEA_APHID_NYMPH_REPRODUCTION_PARA_A1", CFG_CUSTOM, 0.0562)
cfg_BBAphidNymphReproductionParaA2
CfgFloat cfg_BBAphidNymphReproductionParaA2("BB_APHID_NYMPH_REPRODUCTION_PARA_A2", CFG_CUSTOM, -0.0332)
Landscape::SupplyMonth
int SupplyMonth(void)
Passes a request on to the associated Calendar class function, returns m_month + 1 (the calendar mont...
Definition: Landscape.h:2272
Aphid_Population_Manager::m_aphid_nymph_mortality_para_a
double m_aphid_nymph_mortality_para_a
The variable to store the nymph temperature based mortality parameter A.
Definition: Aphid_Population_Manager.h:107
cfg_PEAAphidNymphMortalityParaC
CfgFloat cfg_PEAAphidNymphMortalityParaC("PEA_APHID_NYMPH_MORTALITY_PARA_C", CFG_CUSTOM, 0.0906)
Aphid_Population_Manager::m_aphid_nymph_with_wings_development_day_degrees
double m_aphid_nymph_with_wings_development_day_degrees
The variable to store the nymph with wings development day degrees.
Definition: Aphid_Population_Manager.h:141
Aphid_Population_Manager::m_aphid_nymph_mortality_para_b
double m_aphid_nymph_mortality_para_b
The variable to store the nymph temperature based mortality parameter B.
Definition: Aphid_Population_Manager.h:109
Aphid_Population_Manager::m_aphid_egg_hatch_chance_para_b
double m_aphid_egg_hatch_chance_para_b
The variable to store the egg hatch chance parameter B.
Definition: Aphid_Population_Manager.h:127
cfg_EGAphidDayLengthMale
CfgFloat cfg_EGAphidDayLengthMale("EG_APHID_DAY_LENGTH_MALE", CFG_CUSTOM, 740)
The day length to control male and female reproduction, this is used for pea and English grain aphids...
cfg_PEAAphidNymphDevDayDegNoWing
CfgFloat cfg_PEAAphidNymphDevDayDegNoWing("PEA_APHID_NYMPH_DEV_DAY_DEG_NO_WING", CFG_CUSTOM, 128)
SubPopulation_Population_Manager::m_cell_popu_density
blitz::Array< double, 2 > m_cell_popu_density
Array for weighted population density in each subpopulation cell.
Definition: SubPopulation_Population_Manager.h:111
cfg_EGAphidAdultMortalityDdeg
CfgArray_Double cfg_EGAphidAdultMortalityDdeg("EG_APHID_ADULT_MORTALITY_DDEG", CFG_CUSTOM, 9, vector< double >{100, 125, 150, 175, 200, 225, 250, 275, 300})
The parameters to set the adult mortality based their accumulated degree days.
toa_Nymph_F
Definition: Aphid.h:50
cfg_PPAphidEggHatchChanceParaB
CfgFloat cfg_PPAphidEggHatchChanceParaB("PP_APHID_EGG_HATCH_CHANCE_PARA_B", CFG_CUSTOM, -0.16)
Aphid_Population_Manager::calOffspringStageBBandPP
int calOffspringStageBBandPP(int current_stage, double *offspring_num=NULL, double a_age=1, double a_density=-1, double a_growth_stage=0, double *a_propotion=NULL, bool winter_host_flag=false)
The function to calcto calculate the offspring stage for black bean and peach potato aphids.
Definition: Aphid_Population_Manager.cpp:1137
cfg_Subpopu_Base_Output_Used
CfgBool cfg_Subpopu_Base_Output_Used
Landscape::SupplyTempHour
double SupplyTempHour(int hour)
Returns the temperature in a given hour (0 to 23)
Definition: Landscape.h:2103
Aphid_Population_Manager::m_aphid_nymph_with_wings_development_day_degrees_sd
double m_aphid_nymph_with_wings_development_day_degrees_sd
The variable to store the nymph with wings development day degrees's standard deviation.
Definition: Aphid_Population_Manager.h:143
cfg_EGAphidAlatePropParaC
CfgFloat cfg_EGAphidAlatePropParaC("EG_APHID_ALATE_PROP_PARA_C", CFG_CUSTOM, 0)
Population_Manager_Base::m_ListNameLength
int m_ListNameLength
the number of life-stages simulated in the population manager
Definition: PopulationManager.h:626
cfg_EGAphidEggHatchDelayDD
CfgFloat cfg_EGAphidEggHatchDelayDD("EG_APHID_EGG_HATCH_DELAY_DD", CFG_CUSTOM, 10)
cfg_PPAphidSummerHostDayLength
CfgFloat cfg_PPAphidSummerHostDayLength("PP_APHID_SUMMER_HOST_DAY_LENGTH", CFG_CUSTOM, 600)
Aphid_Population_Manager::calOffspringStageEGandPEA
int calOffspringStageEGandPEA(int current_stage, double *offspring_num=NULL, double a_age=1, double a_density=-1, double a_growth_stage=0, double *a_propotion=NULL, bool winter_host_flag=false)
The function to calculate the offspring stage for English grain and pea aphids.
Definition: Aphid_Population_Manager.cpp:1084
Aphid_Population_Manager::m_nymph_produced_num_weight
double m_nymph_produced_num_weight
The weight to regulate the number of nymph produced per day based on temperature.
Definition: Aphid_Population_Manager.h:212
Aphid_Population_Manager::m_aphid_nymph_production_temp_weight_para_a
double m_aphid_nymph_production_temp_weight_para_a
The variable to store the temperature weighted nymph production parameter A.
Definition: Aphid_Population_Manager.h:167
cfg_BBAphidAlatePropParaC
CfgFloat cfg_BBAphidAlatePropParaC("BB_APHID_ALATE_PROP_PARA_C", CFG_CUSTOM, 0)
cfg_PEAAphidNymphDevDayDegWing
CfgFloat cfg_PEAAphidNymphDevDayDegWing("PEA_APHID_NYMPH_DEV_DAY_DEG_WING", CFG_CUSTOM, 138)
cfg_BBAphidNymphReproductionTempWeightParaC
CfgFloat cfg_BBAphidNymphReproductionTempWeightParaC("BB_APHID_NYMPH_REPRODUCTION_TEMP_WEIGHT_PARA_C", CFG_CUSTOM, -0.76)
struct_Aphid
Used for creation of a new Aphid object.
Definition: Aphid_Population_Manager.h:54
cfg_AphidScaleWindSpeed
CfgFloat cfg_AphidScaleWindSpeed("APHID_SCALE_WIND_SPEED", CFG_CUSTOM, 1.01)
The scale for the wind speed.
cfg_PEAAphidAdultMortalityDdeg
CfgArray_Double cfg_PEAAphidAdultMortalityDdeg("PEA_APHID_ADULT_MORTALITY_DDEG", CFG_CUSTOM, 6, vector< double >{175, 200, 225, 250, 275, 300})
Aphid_Population_Manager::updateDevelopmentSeason
virtual void updateDevelopmentSeason()
The function to update the development season.
Definition: Aphid_Population_Manager.cpp:419
Landscape::SupplyWeedBiomass
double SupplyWeedBiomass(int a_polyref)
Returns the weed biomass of the vegetation using the polygon reference number a_polyref or based on t...
Definition: Landscape.h:1552
TTypesOfAphidDevelopmentSeason
TTypesOfAphidDevelopmentSeason
Definition: Aphid_Population_Manager.h:85
SubPopulation_Population_Manager::readHosts
virtual void readHosts(string a_file_name)
The fuction to read the host lists for aphid.
Definition: SubPopulation_Population_Manager.cpp:1006
SubPopulation_Population_Manager::isSummerHostTole
bool isSummerHostTole(TTypesOfLandscapeElement a_ele)
Test whether it is a summer host tole.
Definition: SubPopulation_Population_Manager.cpp:810
SubPopulation_Population_Manager::m_index_new_old
blitz::Array< int, 2 > m_index_new_old
Array for index of the newest and oldest life stages.
Definition: SubPopulation_Population_Manager.h:154
cfg_BBAphidAdultMortalityParaC
CfgFloat cfg_BBAphidAdultMortalityParaC("BB_APHID_ADULT_MORTALITY_PARA_C", CFG_CUSTOM, 0.0906)
cfg_PEAAphidDevelopmentBaseTempArray
CfgArray_Double cfg_PEAAphidDevelopmentBaseTempArray("PEA_APHID_DEVELOPMENT_BASE_TEMP_ARRAY", CFG_CUSTOM, 9, vector< double >{3.5, 2.73, 2.73, 2.73, 2.73, 2.73, 2.73, 2.73, 2.73})
CfgBool::value
bool value() const
Definition: Configurator.h:164
Aphid_Population_Manager::m_first_egg_hatch_flag
bool m_first_egg_hatch_flag
The flag to show the first hatch of egg.
Definition: Aphid_Population_Manager.h:218
Aphid_Population_Manager::m_aphid_adult_mortality_para_c
double m_aphid_adult_mortality_para_c
The variable to store the adult mortality parameter C.
Definition: Aphid_Population_Manager.h:117
struct_Aphid::w
int w
area width
Definition: Aphid_Population_Manager.h:62
cfg_PPAphidNymphReproductionParaA2
CfgFloat cfg_PPAphidNymphReproductionParaA2("PP_APHID_NYMPH_REPRODUCTION_PARA_A2", CFG_CUSTOM, -0.0087)
Population_Manager_Base::m_TheLandscape
Landscape * m_TheLandscape
holds an internal pointer to the landscape
Definition: PopulationManager.h:624
cfg_PEAAphidDualLinearModelFlagDD
CfgBool cfg_PEAAphidDualLinearModelFlagDD("PEA_APHID_DUAL_LINEAR_MODEL_FLAG_DD", CFG_CUSTOM, true)
Aphid_Population_Manager::m_max_adult_dd
int m_max_adult_dd
THe variable to store the maximum number of degree days for aphid.
Definition: Aphid_Population_Manager.h:206
Aphid_Population_Manager::m_accu_ddeg_egg_reproduction
double m_accu_ddeg_egg_reproduction
The accumulated day degrees to enable sexual development.
Definition: Aphid_Population_Manager.h:216
Aphid_Population_Manager::calNextStageShared
int calNextStageShared(int current_stage)
The function to calculate the next life stage for all aphids.
Definition: Aphid_Population_Manager.cpp:816
cfg_PEAAphidNymphDevDayDegWingStd
CfgFloat cfg_PEAAphidNymphDevDayDegWingStd("PEA_APHID_NYMPH_DEV_DAY_DEG_WING_STD", CFG_CUSTOM, 4.48)
cfg_EGAphidHostFile
CfgStr cfg_EGAphidHostFile("EG_APHID_HOST_FILE", CFG_CUSTOM, "Subpopulation/english_grain_aphid_host.txt")
The host file for the aphids. The file for storing hosts for pea aphid. The file contains five rows,...
cfg_PEAAphidNymphReproductionTempWeightParaC
CfgFloat cfg_PEAAphidNymphReproductionTempWeightParaC("PEA_APHID_NYMPH_REPRODUCTION_TEMP_WEIGHT_PARA_C", CFG_CUSTOM, -1.93)
cfg_EGAphidDevelopmentTurningTempArray
CfgArray_Double cfg_EGAphidDevelopmentTurningTempArray("EG_APHID_DEVELOPMENT_TURNING_TEMP_ARRAY", CFG_CUSTOM, 9, vector< double >{4, 3.5, 3.5, 3.5, 3.5, 10, 10, 10, 10})
The turning temperatures for calculate degree days. This value should be larger than the base develop...
cfg_PPAphidNymphMortalityParaC
CfgFloat cfg_PPAphidNymphMortalityParaC("PP_APHID_NYMPH_MORTALITY_PARA_C", CFG_CUSTOM, 0.3081)
Aphid_Population_Manager::isEnoughNextLifeStage
virtual bool isEnoughNextLifeStage(int a_life_stage)
Definition: Aphid_Population_Manager.cpp:1178
Aphid_Population_Manager
The class to handle all Aphid population related matters in the whole landscape.
Definition: Aphid_Population_Manager.h:98
cfg_PEAAphidNymphReproductionParaB1
CfgFloat cfg_PEAAphidNymphReproductionParaB1("PEA_APHID_NYMPH_REPRODUCTION_PARA_B1", CFG_CUSTOM, 1.1932)
cfg_PPAphidNymphDevDayDegNoWing
CfgFloat cfg_PPAphidNymphDevDayDegNoWing("PP_APHID_NYMPH_DEV_DAY_DEG_NO_WING", CFG_CUSTOM, 140.25)
Aphid_Population_Manager::m_aphid_nymph_production_temp_weight_para_c
double m_aphid_nymph_production_temp_weight_para_c
The variable to store the temperature weighted nymph production parameter C.
Definition: Aphid_Population_Manager.h:171
Landscape::SupplyVegGrowthStage
double SupplyVegGrowthStage(int a_polyref)
Returns the vegetation growth stage of the vegetation using the polygon reference number a_polyref or...
Definition: Landscape.h:1642
toa_Nymph_M
Definition: Aphid.h:51
cfg_PEAAphidEggHatchDelayDD
CfgFloat cfg_PEAAphidEggHatchDelayDD("PEA_APHID_EGG_HATCH_DELAY_DD", CFG_CUSTOM, 10)
cfg_PPAphidNymphDevDayDegWingStd
CfgFloat cfg_PPAphidNymphDevDayDegWingStd("PP_APHID_NYMPH_DEV_DAY_DEG_WING_STD", CFG_CUSTOM, 4.48)
cfg_BBAphidLongevityParaB
CfgFloat cfg_BBAphidLongevityParaB("BB_APHID_ADULT_LONGEVITY_PARA_B", CFG_CUSTOM, 1.892)
TTypesOfLandscapeElement
TTypesOfLandscapeElement
Values that represent the types of landscape polygon that are represented in ALMaSS.
Definition: LandscapeFarmingEnums.h:57
cfg_PPAphidEggReproductionParaSTD
CfgFloat cfg_PPAphidEggReproductionParaSTD("PP_APHID_EGG_REPRODUCTION_PARA_STD", CFG_CUSTOM, 8.3)
cfg_PPAphidEggHatchDelayThreshold
CfgFloat cfg_PPAphidEggHatchDelayThreshold("PP_APHID_EGG_HATCH_DELAY_THRESHOLD", CFG_CUSTOM, 0.9)
Landscape
The landscape class containing all environmental and topographical data.
Definition: Landscape.h:142
toa_Nymph_W
Definition: Aphid.h:49
Aphid_Population_Manager::m_update_mortality_array_pointer
void(Aphid_Population_Manager::* m_update_mortality_array_pointer)()
The function pointer for calculation of the shared base mortality rate for the whole landscape.
Definition: Aphid_Population_Manager.h:200
cfg_AphidPeakLongDistance
CfgFloat cfg_AphidPeakLongDistance("APHID_PEAK_LONG_DISTANCE", CFG_CUSTOM, 200)
The distance for the peak amount when the winged adults fly. (meters)
cfg_PEAAphidNymphMortalityParaB
CfgFloat cfg_PEAAphidNymphMortalityParaB("PEA_APHID_NYMPH_MORTALITY_PARA_B", CFG_CUSTOM, -0.0115)
cfg_EGAphidAlatePropParaA
CfgFloat cfg_EGAphidAlatePropParaA("EG_APHID_ALATE_PROP_PARA_A", CFG_CUSTOM, 1.1)
The parameters for alate proportion calculation.
Aphid_Population_Manager::m_aphid_nymph_production_para_a1
double m_aphid_nymph_production_para_a1
The variable to store the nymph production parameter A1.
Definition: Aphid_Population_Manager.h:157
Aphid_Population_Manager::m_aphid_specie_name
string m_aphid_specie_name
This is to store the aphid species name.
Definition: Aphid_Population_Manager.h:101
cfg_PPAphidEggHatchChanceParaA
CfgFloat cfg_PPAphidEggHatchChanceParaA("PP_APHID_EGG_HATCH_CHANCE_PARA_A", CFG_CUSTOM, 0.0029)
SubPopulation_Population_Manager::isWinterHostTole
bool isWinterHostTole(TTypesOfLandscapeElement a_ele)
Test whether it is a winter host tole.
Definition: SubPopulation_Population_Manager.cpp:800
cfg_EGAphidSexualDevelopmentRequiredDdeg
CfgFloat cfg_EGAphidSexualDevelopmentRequiredDdeg("EG_APHID_SEXUAL_DEVELOPMENT_REQUIRED_DDEG", CFG_CUSTOM, 1157)
The parameters to control the sexual reproduction.
Population_Manager_Base::SimH
int SimH
stores the simulation height
Definition: PopulationManager.h:614
cfg_BBAphidEggReproductionParaA
CfgFloat cfg_BBAphidEggReproductionParaA("BB_APHID_EGG_REPRODUCTION_PARA_A", CFG_CUSTOM, 0.2469)
cfg_PPAphidAlatePropParaA
CfgFloat cfg_PPAphidAlatePropParaA("PP_APHID_ALATE_PROP_PARA_A", CFG_CUSTOM, 1.1)
cfg_PEAAphidNymphDevDayDegNoWingStd
CfgFloat cfg_PEAAphidNymphDevDayDegNoWingStd("PEA_APHID_NYMPH_DEV_DAY_DEG_NO_WING_STD", CFG_CUSTOM, 2.62)
Aphid_Population_Manager::m_aphid_nymph_production_para_b2
double m_aphid_nymph_production_para_b2
The variable to store the nymph production parameter B2.
Definition: Aphid_Population_Manager.h:163
Aphid_Population_Manager::m_egg_per_day
vector< double > m_egg_per_day
The vector to store the age (in degree days) related reproduction offspring egg.
Definition: Aphid_Population_Manager.h:210
cfg_PPAphidNymphReproductionTempWeightParaB
CfgFloat cfg_PPAphidNymphReproductionTempWeightParaB("PP_APHID_NYMPH_REPRODUCTION_TEMP_WEIGHT_PARA_B", CFG_CUSTOM, 0.204)
toAphidHibernate
Definition: Aphid_Population_Manager.h:91
cfg_EGAphidEggHatchChanceParaB
CfgFloat cfg_EGAphidEggHatchChanceParaB("EG_APHID_EGG_HATCH_CHANCE_PARA_B", CFG_CUSTOM, -0.16)
Aphid_Population_Manager::m_aphid_adult_mortality_vec
vector< double > m_aphid_adult_mortality_vec
The vector to store the adult mortality for the inflection point.
Definition: Aphid_Population_Manager.h:189
Aphid_Population_Manager::m_max_day_degree_adult
double m_max_day_degree_adult
The longest day degrees that a adult can have.
Definition: Aphid_Population_Manager.h:220
cfg_EGAphidLongevityParaB
CfgFloat cfg_EGAphidLongevityParaB("EG_APHID_ADULT_LONGEVITY_PARA_B", CFG_CUSTOM, 1.892)
Landscape::SupplyDayInMonth
int SupplyDayInMonth(void)
Passes a request on to the associated Calendar class function, returns m_day_in_month
Definition: Landscape.h:2277
cfg_PPAphidEggMortalityRate
CfgFloat cfg_PPAphidEggMortalityRate("PP_APHID_EGG_MORALITY_RATE", CFG_CUSTOM, 0.00595)
cfg_EGAphidNymphDevDayDegWing
CfgFloat cfg_EGAphidNymphDevDayDegWing("EG_APHID_NYMPH_DEV_DAY_DEG_WING", CFG_CUSTOM, 142)
The development parameters for Nymphs.
cfg_EGAphidNymphReproductionChangeADD
CfgFloat cfg_EGAphidNymphReproductionChangeADD("EG_APHID_NYMPH_REPRODUCTION_CHANGE_ADD", CFG_CUSTOM, 0)
cfg_PEAphidSexualDevelopmentRequiredDdegStd
CfgFloat cfg_PEAphidSexualDevelopmentRequiredDdegStd("PEA_APHID_SEXUAL_DEVELOPMENT_REQUIRED_DDEG_STD", CFG_CUSTOM, 73)
cfg_PEAAphidEggReproductionParaB
CfgFloat cfg_PEAAphidEggReproductionParaB("PEA_APHID_EGG_REPRODUCTION_PARA_B", CFG_CUSTOM, -0.266)
Aphid_Population_Manager::m_aphid_egg_hatch_chance_threshold
double m_aphid_egg_hatch_chance_threshold
The threshold of hatch value to start the delay of egg hatch, this is to avoid the eggs hatching from...
Definition: Aphid_Population_Manager.h:129
cfg_BBAphidAlatePropParaA
CfgFloat cfg_BBAphidAlatePropParaA("BB_APHID_ALATE_PROP_PARA_A", CFG_CUSTOM, 1.1)
Aphid_Population_Manager::m_aphid_egg_mortality
double m_aphid_egg_mortality
The variable to store the aphid egg mortality.
Definition: Aphid_Population_Manager.h:103
cfg_PPAphidNymphMortalityParaA
CfgFloat cfg_PPAphidNymphMortalityParaA("PP_APHID_NYMPH_MORTALITY_PARA_A", CFG_CUSTOM, 0.0025)
cfg_BBAphidDevelopmentTurningTempArray
CfgArray_Double cfg_BBAphidDevelopmentTurningTempArray("BB_APHID_DEVELOPMENT_TURNING_TEMP_ARRAY", CFG_CUSTOM, 9, vector< double >{4, 3.5, 3.5, 3.5, 3.5, 10, 10, 10, 10})
cfg_EGAphidEggReproductionParaSTD
CfgFloat cfg_EGAphidEggReproductionParaSTD("EG_APHID_EGG_REPRODUCTION_PARA_STD", CFG_CUSTOM, 0)
CfgBool
Bool configurator entry class.
Definition: Configurator.h:155
cfg_BBAphidEggMortalityRateStd
CfgFloat cfg_BBAphidEggMortalityRateStd("BB_APHID_EGG_MORALITY_RATE_STD", CFG_CUSTOM, 0.00024)
cfg_EGAphidLongevityParaA
CfgFloat cfg_EGAphidLongevityParaA("EG_APHID_ADULT_LONGEVITY_PARA_A", CFG_CUSTOM, -0.0047)
The longevity parameters for adults.
Aphid_Population_Manager::m_aphid_egg_hatch_delay_degree_days
double m_aphid_egg_hatch_delay_degree_days
The number of degree days to delay the egg's hatch.
Definition: Aphid_Population_Manager.h:131
TAnimal
The base class for all ALMaSS animal classes. Includes all the functionality required to be handled b...
Definition: PopulationManager.h:200
Aphid_Population_Manager::isEnoughNextLifeStageShared
bool isEnoughNextLifeStageShared(int a_life_stage)
Definition: Aphid_Population_Manager.cpp:1182
toAphidLateSpringDev
Definition: Aphid_Population_Manager.h:88
cfg_BBAphidNymphReproductionParaB1
CfgFloat cfg_BBAphidNymphReproductionParaB1("BB_APHID_NYMPH_REPRODUCTION_PARA_B1", CFG_CUSTOM, 2.9174)
cfg_PEAAphidNymphReproductionParaB2
CfgFloat cfg_PEAAphidNymphReproductionParaB2("PEA_APHID_NYMPH_REPRODUCTION_PARA_B2", CFG_CUSTOM, 4.6872)
cfg_AphidCalibrationPolygonToStoreTOLE
CfgArray_Int cfg_AphidCalibrationPolygonToStoreTOLE("APHID_CALIBRATION_POLYGON_TO_STORE_TOLE", CFG_CUSTOM, 1, vector< int >{254})
The parameters for debug.
Aphid_Population_Manager::CreateObjects
Aphid * CreateObjects(TAnimal *pvo, struct_Aphid *data, int number)
Definition: Aphid_Population_Manager.cpp:396
cfg_EGAphidNymphReproductionTempWeightParaB
CfgFloat cfg_EGAphidNymphReproductionTempWeightParaB("EG_APHID_NYMPH_REPRODUCTION_TEMP_WEIGHT_PARA_B", CFG_CUSTOM, 0.264)
Aphid_Population_Manager::Aphid_Population_Manager
Aphid_Population_Manager(Landscape *L, string a_aphid_specie_name="English grain aphid")
Definition: Aphid_Population_Manager.cpp:325
Aphid_Population_Manager::m_aphid_egg_starting_degree_days
double m_aphid_egg_starting_degree_days
The variable to store the egg's starting degree days when the simulation starts.
Definition: Aphid_Population_Manager.h:123
struct_Aphid::summer_landscape_host
TTypesOfLandscapeElement summer_landscape_host
Definition: Aphid_Population_Manager.h:80
cfg_BBAphidNymphMortalityParaC
CfgFloat cfg_BBAphidNymphMortalityParaC("BB_APHID_NYMPH_MORTALITY_PARA_C", CFG_CUSTOM, 0.3081)
cfg_BBAphidAdultMortalityParaA
CfgFloat cfg_BBAphidAdultMortalityParaA("BB_APHID_ADULT_MORTALITY_PARA_A", CFG_CUSTOM, 0.0004)
SubPopulation_Population_Manager::m_sub_h
int m_sub_h
Variable to record the height of the subpopulation cell.
Definition: SubPopulation_Population_Manager.h:109
Aphid_Population_Manager::m_aphid_nymph_without_wings_development_day_degrees
double m_aphid_nymph_without_wings_development_day_degrees
The variable to store the nymph without wings development day degrees.
Definition: Aphid_Population_Manager.h:145
Aphid_Population_Manager::m_aphid_egg_hatch_chance_para_a_after_threshold
double m_aphid_egg_hatch_chance_para_a_after_threshold
The variable to store the egg hatch chance parameter A after threshold.
Definition: Aphid_Population_Manager.h:133
cfg_BBAphidNymphReproductionTempWeightParaB
CfgFloat cfg_BBAphidNymphReproductionTempWeightParaB("BB_APHID_NYMPH_REPRODUCTION_TEMP_WEIGHT_PARA_B", CFG_CUSTOM, 0.204)
cfg_BBAphidEggReproductionParaC
CfgFloat cfg_BBAphidEggReproductionParaC("BB_APHID_EGG_REPRODUCTION_PARA_C", CFG_CUSTOM, 10)
cfg_EGAphidAdultMortalityParaC
CfgFloat cfg_EGAphidAdultMortalityParaC("EG_APHID_ADULT_MORTALITY_PARA_C", CFG_CUSTOM, 0.0906)
cfg_PPAphidEggStartingADD
CfgFloat cfg_PPAphidEggStartingADD("PP_APHID_EGG_STARTING_ADD", CFG_CUSTOM, 0)
cfg_BBAphidEggReproductionParaSTD
CfgFloat cfg_BBAphidEggReproductionParaSTD("BB_APHID_EGG_REPRODUCTION_PARA_STD", CFG_CUSTOM, 8.3)
Aphid_Population_Manager::m_aphid_alate_proportion_para_b
double m_aphid_alate_proportion_para_b
The variable to store alate proportion calculation parameter B.
Definition: Aphid_Population_Manager.h:175
cfg_EGAphidEggReproductionParaA
CfgFloat cfg_EGAphidEggReproductionParaA("EG_APHID_EGG_REPRODUCTION_PARA_A", CFG_CUSTOM, 0.2469)
The parameters for egg reproduction.
cfg_PEAAphidAlatePropParaB
CfgFloat cfg_PEAAphidAlatePropParaB("PEA_APHID_ALATE_PROP_PARA_B", CFG_CUSTOM, 10)
MapErrorMsg::Warn
void Warn(MapErrorState a_level, std::string a_msg1, std::string a_msg2)
Definition: MapErrorMsg.cpp:69
Aphid_Population_Manager::m_aphid_egg_hatch_chance_max_degree_days
double m_aphid_egg_hatch_chance_max_degree_days
The variable to store the largest degree days for egg hatch chance being one.
Definition: Aphid_Population_Manager.h:139
Landscape::SupplyPolygonArea
double SupplyPolygonArea(int a_polyref)
Returns the polygon area of a particular polygon referenced by polygon.
Definition: Landscape.h:1058
toa_Nymph
Definition: Aphid.h:48
cfg_PEAAphidNymphReproductionParaA2
CfgFloat cfg_PEAAphidNymphReproductionParaA2("PEA_APHID_NYMPH_REPRODUCTION_PARA_A2", CFG_CUSTOM, -0.0146)
Population_Manager
Base class for all population managers for agent based models.
Definition: PopulationManager.h:645
CfgArray_Double
Definition: Configurator.h:208
cfg_EGAphidNymphReproductionParaB1
CfgFloat cfg_EGAphidNymphReproductionParaB1("EG_APHID_NYMPH_REPRODUCTION_PARA_B1", CFG_CUSTOM, 1.1932)
Landscape::SupplyDayInYear
int SupplyDayInYear(void)
Passes a request on to the associated Calendar class function, the day in the year.
Definition: Landscape.h:2267
cfg_BBAphidNymphReproductionChangeADD
CfgFloat cfg_BBAphidNymphReproductionChangeADD("BB_APHID_NYMPH_REPRODUCTION_CHANGE_ADD", CFG_CUSTOM, 66.5)
Landscape::SupplyVegBiomass
double SupplyVegBiomass(int a_polyref)
Returns the biomass of the vegetation using the polygon reference number a_polyref or based on the x,...
Definition: Landscape.h:1542
cfg_PEAAphidEggHatchChanceParaB
CfgFloat cfg_PEAAphidEggHatchChanceParaB("PEA_APHID_EGG_HATCH_CHANCE_PARA_B", CFG_CUSTOM, -0.233)
cfg_EGAphidEggStartingADD
CfgFloat cfg_EGAphidEggStartingADD("EG_APHID_EGG_STARTING_ADD", CFG_CUSTOM, 0)
The starting degree days for eggs when the simulation starts.
cfg_EGAphidAdultMortalityParaB
CfgFloat cfg_EGAphidAdultMortalityParaB("EG_APHID_ADULT_MORTALITY_PARA_B", CFG_CUSTOM, -0.0115)
cfg_PPAphidDualLinearModelFlagDD
CfgBool cfg_PPAphidDualLinearModelFlagDD("PP_APHID_DUAL_LINEAR_MODEL_FLAG_DD", CFG_CUSTOM, true)
struct_Aphid::index_y
int index_y
Definition: Aphid_Population_Manager.h:78
toas_BB
Definition: Aphid.h:66
cfg_AphidLifeStageNum
CfgInt cfg_AphidLifeStageNum("APHID_LIFE_STAGE_NUM", CFG_CUSTOM, 9)
The number of life stages for the aphids. All the species have the same number of life stages.
Aphid_Population_Manager::m_next_life_func_pointer
int(Aphid_Population_Manager::* m_next_life_func_pointer)(int current_stage)
The function pointer for calculation of next life stage.
Definition: Aphid_Population_Manager.h:198
cfg_AphidMovMaskWindDirectionNum
CfgFloat cfg_AphidMovMaskWindDirectionNum("APHID_MOV_MASK_WIND_DIRECTION_NUM", CFG_CUSTOM, 4)
The number of wind directions used to calculate the movement masks.
cfg_PPAphidWinterHostDayLength
CfgFloat cfg_PPAphidWinterHostDayLength("PP_APHID_WINTER_HOST_DAY_LENGTH", CFG_CUSTOM, 1000)
toa_Female
Definition: Aphid.h:54
SubPopulation_Population_Manager::m_local_moving_life_stage_array
std::vector< int > m_local_moving_life_stage_array
The vector to store the life stags that can move locally.
Definition: SubPopulation_Population_Manager.h:198
cfg_PPAphidNymphReproductionChangeADD
CfgFloat cfg_PPAphidNymphReproductionChangeADD("PP_APHID_NYMPH_REPRODUCTION_CHANGE_ADD", CFG_CUSTOM, 50)
cfg_PEAAphidAdultMortalityParaC
CfgFloat cfg_PEAAphidAdultMortalityParaC("PEA_APHID_ADULT_MORTALITY_PARA_C", CFG_CUSTOM, 0.0906)
Aphid_Population_Manager::m_nymph_per_day
vector< double > m_nymph_per_day
The vector to store the age (in degree days) related reproduction offsping nymph.
Definition: Aphid_Population_Manager.h:208
Aphid_Population_Manager::m_aphid_egg_production_para_sd
double m_aphid_egg_production_para_sd
The variable to store the egg production parameter's standard deviation.
Definition: Aphid_Population_Manager.h:155
cfg_PEAAphidAdultMortalityParaB
CfgFloat cfg_PEAAphidAdultMortalityParaB("PEA_APHID_ADULT_MORTALITY_PARA_B", CFG_CUSTOM, -0.0115)
cfg_PPAphidDevelopmentBaseTempArray
CfgArray_Double cfg_PPAphidDevelopmentBaseTempArray("PP_APHID_DEVELOPMENT_BASE_TEMP_ARRAY", CFG_CUSTOM, 9, vector< double >{3.5, 4, 4, 4, 4, 2.73, 2.73, 2.73, 2.73})
SubPopulation_Population_Manager::m_vec_subpopulation_pointers_polygon
std::vector< std::vector< SubPopulation * > > m_vec_subpopulation_pointers_polygon
The vector used to store the pointers of all the subpopulation objects in each polygon.
Definition: SubPopulation_Population_Manager.h:202
Aphid_Population_Manager::initialiseSimWithEggs
void initialiseSimWithEggs(void)
The function to initilise the simulation with eggs.
Definition: Aphid_Population_Manager.cpp:849
Aphid_Population_Manager::m_offspring_func_pointer
int(Aphid_Population_Manager::* m_offspring_func_pointer)(int current_stage, double *offspring_num, double a_age, double a_density, double a_growth_stage, double *a_propotion, bool winter_host_flag)
The function pointer for calculation of the offsrping stage number.
Definition: Aphid_Population_Manager.h:202
Aphid_Population_Manager::m_aphid_egg_mortality_sd
double m_aphid_egg_mortality_sd
The variable to store the standard deviation of the gee mortality.
Definition: Aphid_Population_Manager.h:105
CfgArray_Double::value
std::vector< double > value() const
Definition: Configurator.h:219
cfg_PEAAphidLongevityParaB
CfgFloat cfg_PEAAphidLongevityParaB("PEA_APHID_ADULT_LONGEVITY_PARA_B", CFG_CUSTOM, 1.892)
Aphid_Population_Manager::m_aphid_nymph_without_wings_development_day_degrees_sd
double m_aphid_nymph_without_wings_development_day_degrees_sd
The variable to store the nymph without wings development day degrees's standard deviation.
Definition: Aphid_Population_Manager.h:147
cfg_AphidMaxAliveDay
CfgInt cfg_AphidMaxAliveDay("APHID_MAX_ALIVE_DAY", CFG_CUSTOM, 200)
The maximum alive days among all the life stages. All the species have the same number of life stages...
Population_Manager_Base::SimW
int SimW
stores the simulation width
Definition: PopulationManager.h:616
Aphid_Population_Manager::calHatchChance
virtual double calHatchChance()
The function to calculate the hatch chance for eggs, this function must be override in the derived cl...
Definition: Aphid_Population_Manager.cpp:1246
cfg_EGAphidNymphReproductionTempWeightParaC
CfgFloat cfg_EGAphidNymphReproductionTempWeightParaC("EG_APHID_NYMPH_REPRODUCTION_TEMP_WEIGHT_PARA_C", CFG_CUSTOM, -1.93)
cfg_PPAphidEggReproductionParaC
CfgFloat cfg_PPAphidEggReproductionParaC("PP_APHID_EGG_REPRODUCTION_PARA_C", CFG_CUSTOM, 10.6)
cfg_AphidResultPath
CfgStr cfg_AphidResultPath("APHID_RESULT_PATH", CFG_CUSTOM, "./")
The path to store the results.
Aphid_Population_Manager::m_aphid_nymph_production_para_b1
double m_aphid_nymph_production_para_b1
The variable to store the nymph production parameter B1.
Definition: Aphid_Population_Manager.h:159
cfg_EGAphidDevelopmentBaseTempArray
CfgArray_Double cfg_EGAphidDevelopmentBaseTempArray("EG_APHID_DEVELOPMENT_BASE_TEMP_ARRAY", CFG_CUSTOM, 9, vector< double >{3.5, 2.73, 2.73, 2.73, 2.73, 2.73, 2.73, 2.73, 2.73})
The base development temperatures for the aphids.
cfg_EGAphidEggMortalityRate
CfgFloat cfg_EGAphidEggMortalityRate("EG_APHID_EGG_MORALITY_RATE", CFG_CUSTOM, 0.00595)
The morality rate for Aphid eggs.
cfg_PPAphidAdultMortalityParaC
CfgFloat cfg_PPAphidAdultMortalityParaC("PP_APHID_ADULT_MORTALITY_PARA_C", CFG_CUSTOM, 0.0906)
SubPopulation_Population_Manager::m_lowest_temp_dev
blitz::Array< double, 1 > m_lowest_temp_dev
Lowest development temperatures for each life stage. This is the last step in each day.
Definition: SubPopulation_Population_Manager.h:158
cfg_PPAphidNymphReproductionParaB1
CfgFloat cfg_PPAphidNymphReproductionParaB1("PP_APHID_NYMPH_REPRODUCTION_PARA_B1", CFG_CUSTOM, -1)
cfg_PEAAphidEggStartingADD
CfgFloat cfg_PEAAphidEggStartingADD("PEA_APHID_EGG_STARTING_ADD", CFG_CUSTOM, 0)
SubPopulation_Population_Manager::m_landing_life_stage_array
std::vector< int > m_landing_life_stage_array
The vector to store the life stage when a flying one lands, it could be different from the flying one...
Definition: SubPopulation_Population_Manager.h:196
cfg_BBAphidNymphDevDayDegWing
CfgFloat cfg_BBAphidNymphDevDayDegWing("BB_APHID_NYMPH_DEV_DAY_DEG_WING", CFG_CUSTOM, 150)
cfg_BBAphidAdultMortality
CfgArray_Double cfg_BBAphidAdultMortality("BB_APHID_ADULT_MORTALITY", CFG_CUSTOM, 13, vector< double >{0.0776, 0.08673, 0.094967, 0.104932, 0.117233, 0.132802, 0.153139, 0.180832, 0.220751, 0.283286, 0.395257, 0.653595, 1})
Aphid_Population_Manager::updateMortalityArray
virtual void updateMortalityArray(void)
The fucntion to update the base mortality rate, it will call the corresponding function pointer.
Definition: Aphid_Population_Manager.cpp:415
Aphid_Population_Manager::m_aphid_nymph_mortality_para_c
double m_aphid_nymph_mortality_para_c
The variable to store the nymph temperature based mortality parameter C.
Definition: Aphid_Population_Manager.h:111
cfg_BBAphidNymphDevDayDegNoWingStd
CfgFloat cfg_BBAphidNymphDevDayDegNoWingStd("BB_APHID_NYMPH_DEV_DAY_DEG_NO_WING_STD", CFG_CUSTOM, 15.72)
toas_PEA
Definition: Aphid.h:65
Aphid_Population_Manager::m_current_developtype
TTypesOfAphidDevelopmentSeason m_current_developtype
The variable to show the development season.
Definition: Aphid_Population_Manager.h:196
Aphid_Population_Manager::m_aphid_male_reproduction_day_length
double m_aphid_male_reproduction_day_length
The day length in minutes for male reproduction. This is used for EG and PEA.
Definition: Aphid_Population_Manager.h:179
Aphid_Population_Manager::m_aphid_nymph_production_changing_add
double m_aphid_nymph_production_changing_add
The variable to store the nymph production changing accumulated degree days.
Definition: Aphid_Population_Manager.h:165
Aphid_Population_Manager::m_aphid_adult_longevity_para_a
double m_aphid_adult_longevity_para_a
The variable to store the adult longevity parameter A.
Definition: Aphid_Population_Manager.h:119
Aphid_Population_Manager::m_aphid_egg_hatch_chance_para_a
double m_aphid_egg_hatch_chance_para_a
The variable to store the egg hatch chance parameter A.
Definition: Aphid_Population_Manager.h:125
g_msg
MapErrorMsg * g_msg
Definition: MapErrorMsg.cpp:41
struct_Aphid::NPM
Aphid_Population_Manager * NPM
Aphid_Population_Manager pointer.
Definition: Aphid_Population_Manager.h:70
Aphid_Population_Manager::supplyNymphNumWeight
double supplyNymphNumWeight(void)
The function to return the daily nymph number weight.
Definition: Aphid_Population_Manager.h:256
cfg_PPAphidNymphReproductionTempWeightParaC
CfgFloat cfg_PPAphidNymphReproductionTempWeightParaC("PP_APHID_NYMPH_REPRODUCTION_TEMP_WEIGHT_PARA_C", CFG_CUSTOM, -0.76)
cfg_EGAphidNymphMortalityParaB
CfgFloat cfg_EGAphidNymphMortalityParaB("EG_APHID_NYMPH_MORTALITY_PARA_B", CFG_CUSTOM, -0.0115)
Aphid_Population_Manager::calNextStage
virtual int calNextStage(int current_stage, double density=1)
Return the next life stage for the given life stage.
Definition: Aphid_Population_Manager.cpp:411
Aphid_Population_Manager::m_aphid_egg_production_para_b
double m_aphid_egg_production_para_b
The variable to store the egg production parameter B.
Definition: Aphid_Population_Manager.h:151
TTypesOfVegetation
TTypesOfVegetation
Values that represent the types of vegetation that are represented in ALMaSS.
Definition: LandscapeFarmingEnums.h:192
CfgInt
Integer configurator entry class.
Definition: Configurator.h:102
SubPopulation_Population_Manager::m_current_mortality_array
blitz::Array< double, 2 > m_current_mortality_array
This a lookup table for the age and temperature dependent mortality rate. This is the same for the wh...
Definition: SubPopulation_Population_Manager.h:186
cfg_PPAphidAlatePropParaC
CfgFloat cfg_PPAphidAlatePropParaC("PP_APHID_ALATE_PROP_PARA_C", CFG_CUSTOM, 0)
cfg_AphidEggStartingNumVec
CfgArray_Int cfg_AphidEggStartingNumVec("APHID_EGG_STARING_NUM_VEC", CFG_CUSTOM, 4, vector< int >{20000, 20000, 20000, 20000})
It controls the number of eggs to start the aphid simulations. All the aphid species use the same par...
struct_Aphid::y
int y
y-coord
Definition: Aphid_Population_Manager.h:60
struct_Aphid::L
Landscape * L
Landscape pointer.
Definition: Aphid_Population_Manager.h:68
SubPopulation_Population_Manager::openSubpopulationBaseProbeFile
bool openSubpopulationBaseProbeFile()
Open the storing file.
Definition: SubPopulation_Population_Manager.cpp:394
cfg_PEAAphidNymphReproductionTempWeightParaA
CfgFloat cfg_PEAAphidNymphReproductionTempWeightParaA("PEA_APHID_NYMPH_REPRODUCTION_TEMP_WEIGHT_PARA_A", CFG_CUSTOM, -0.006)
Aphid_Population_Manager::SupplyAphidDensity
double SupplyAphidDensity(int a_x, int a_y)
Function to supply the aphid density in the given location.
Definition: Aphid_Population_Manager.cpp:1232
cfg_PEAAphidAlatePropParaC
CfgFloat cfg_PEAAphidAlatePropParaC("PEA_APHID_ALATE_PROP_PARA_C", CFG_CUSTOM, 0)
Aphid
The class for base Aphid using subpopulation method.
Definition: Aphid.h:76
struct_Aphid::species
int species
species ID
Definition: Aphid_Population_Manager.h:66
CfgFloat
Double configurator entry class.
Definition: Configurator.h:126
Population_Manager_Base::m_SimulationName
string m_SimulationName
stores the simulation name
Definition: PopulationManager.h:622
tole_Field
Definition: LandscapeFarmingEnums.h:65
toAphidFallDev
Definition: Aphid_Population_Manager.h:90
struct_Aphid::farm_flag
bool farm_flag
Definition: Aphid_Population_Manager.h:81
cfg_BBAphidNymphReproductionParaA1
CfgFloat cfg_BBAphidNymphReproductionParaA1("BB_APHID_NYMPH_REPRODUCTION_PARA_A1", CFG_CUSTOM, 0.1199)
cfg_PEAAphidEggReproductionParaA
CfgFloat cfg_PEAAphidEggReproductionParaA("PEA_APHID_EGG_REPRODUCTION_PARA_A", CFG_CUSTOM, 0.2469)
cfg_PPAphidDevelopmentTurningTempArray
CfgArray_Double cfg_PPAphidDevelopmentTurningTempArray("PP_APHID_DEVELOPMENT_TURNING_TEMP_ARRAY", CFG_CUSTOM, 9, vector< double >{4, 4.5, 4.5, 4.5, 4.5, 10, 10, 10, 10})
cfg_PEAAphidEggMortalityRate
CfgFloat cfg_PEAAphidEggMortalityRate("PEA_APHID_EGG_MORALITY_RATE", CFG_CUSTOM, 0.00595)
cfg_BBAphidEggStartingADD
CfgFloat cfg_BBAphidEggStartingADD("BB_APHID_EGG_STARTING_ADD", CFG_CUSTOM, 0)
CfgArray_Int::value
std::vector< int > value() const
Definition: Configurator.h:201
cfg_BBAphidHostFile
CfgStr cfg_BBAphidHostFile("BB_APHID_HOST_FILE", CFG_CUSTOM, "Subpopulation/black_bean_aphid_host.txt")
toAphidSpringDev
Definition: Aphid_Population_Manager.h:87
cfg_EGAphidEggHatchDelayThreshold
CfgFloat cfg_EGAphidEggHatchDelayThreshold("EG_APHID_EGG_HATCH_DELAY_THRESHOLD", CFG_CUSTOM, 0.9)
The parameter in degree days to delay the egg when the hatch chance is above the given threshold....
struct_Aphid::index_x
int index_x
Definition: Aphid_Population_Manager.h:77
Aphid_Population_Manager::initialisePopulation
virtual void initialisePopulation()
The function to initialise the population when starting aphid simulation, this function is called in ...
Definition: Aphid_Population_Manager.cpp:443
cfg_PEAAphidNymphReproductionChangeADD
CfgFloat cfg_PEAAphidNymphReproductionChangeADD("PEA_APHID_NYMPH_REPRODUCTION_CHANGE_ADD", CFG_CUSTOM, 0)
CFG_CUSTOM
Definition: Configurator.h:70
cfg_PEAAphidEggHatchChanceParaA
CfgFloat cfg_PEAAphidEggHatchChanceParaA("PEA_APHID_EGG_HATCH_CHANCE_PARA_A", CFG_CUSTOM, 0.0029)
cfg_AphidResultFileSuffix
CfgStr cfg_AphidResultFileSuffix("APHID_RESULT_FILE_SUFFIX", CFG_CUSTOM, "_result")
The suffix of the file name for storing the results.
struct_Aphid::starting_popu_density
double * starting_popu_density
Starting weighted population density for the subpopulation.
Definition: Aphid_Population_Manager.h:76
cfg_BBAphidLongevityParaA
CfgFloat cfg_BBAphidLongevityParaA("BB_APHID_ADULT_LONGEVITY_PARA_A", CFG_CUSTOM, -0.0047)
struct_Aphid::random_biomass_weight
double random_biomass_weight
Definition: Aphid_Population_Manager.h:82
SubPopulation
The class for base animal using subpopulation method.
Definition: SubPopulation.h:56
cfg_PPAphidAlatePropParaB
CfgFloat cfg_PPAphidAlatePropParaB("PP_APHID_ALATE_PROP_PARA_B", CFG_CUSTOM, 10)
Landscape::SupplyYear
int SupplyYear(void)
Passes a request on to the associated Calendar class function, returns m_year.
Definition: Landscape.h:2282
Aphid_Population_Manager::supplyDevelopmentSeason
virtual unsigned supplyDevelopmentSeason()
The function to supply the development season.
Definition: Aphid_Population_Manager.h:235
Aphid_Population_Manager::m_aphid_adult_mortality_inflection_point_dd
vector< double > m_aphid_adult_mortality_inflection_point_dd
The vector to store inflection point of accumulated day degrees for adult mortality.
Definition: Aphid_Population_Manager.h:187
Aphid_Population_Manager::m_aphid_sexual_reproduction_average_add
double m_aphid_sexual_reproduction_average_add
The average required accumulated degree days to enable sexual reproduction after the first egg hatche...
Definition: Aphid_Population_Manager.h:191
cfg_PEAAphidEggReproductionParaC
CfgFloat cfg_PEAAphidEggReproductionParaC("PEA_APHID_EGG_REPRODUCTION_PARA_C", CFG_CUSTOM, 24.8)
cfg_BBAphidEggHatchDelayDD
CfgFloat cfg_BBAphidEggHatchDelayDD("BB_APHID_EGG_HATCH_DELAY_DD", CFG_CUSTOM, 10)
cfg_PEAAphidAlatePropParaA
CfgFloat cfg_PEAAphidAlatePropParaA("PEA_APHID_ALATE_PROP_PARA_A", CFG_CUSTOM, 1.1)
Landscape::SupplyInterestedGreenBiomassTotal
double SupplyInterestedGreenBiomassTotal(int a_polyref)
Returns the interested green biomass of the vegetation+weeds using the polygon reference number a_pol...
Definition: Landscape.h:1607
cfg_PPAphidNymphMortalityParaB
CfgFloat cfg_PPAphidNymphMortalityParaB("PP_APHID_NYMPH_MORTALITY_PARA_B", CFG_CUSTOM, -0.059)
Landscape::SupplyPolyRefIndex
int SupplyPolyRefIndex(int a_x, int a_y)
Get the index to the m_elems array for a polygon at location x,y.
Definition: Landscape.h:2172
cfg_BBAphidDevelopmentBaseTempArray
CfgArray_Double cfg_BBAphidDevelopmentBaseTempArray("BB_APHID_DEVELOPMENT_BASE_TEMP_ARRAY", CFG_CUSTOM, 9, vector< double >{3.5, 2.73, 2.73, 2.73, 2.73, 2.73, 2.73, 2.73, 2.73})
cfg_EGAphidNymphMortalityParaA
CfgFloat cfg_EGAphidNymphMortalityParaA("EG_APHID_NYMPH_MORTALITY_PARA_A", CFG_CUSTOM, 0.0004)
The temperature related morality rate for Aphid nymphs and adults.
Aphid_Population_Manager::m_aphid_summer_host_day_length
double m_aphid_summer_host_day_length
The day length in minutes to turn on summer host. This is used for BB and PP.
Definition: Aphid_Population_Manager.h:185
cfg_EGAphidNymphDevDayDegNoWing
CfgFloat cfg_EGAphidNymphDevDayDegNoWing("EG_APHID_NYMPH_DEV_DAY_DEG_NO_WING", CFG_CUSTOM, 133)
Aphid_Population_Manager::m_aphid_female_reproduction_day_length
double m_aphid_female_reproduction_day_length
The day length in minutes for female reproduction. This is used for EG and PEA.
Definition: Aphid_Population_Manager.h:181
Aphid_Population_Manager::calOffspringStage
virtual int calOffspringStage(int current_stage, double *offspring_num=NULL, double a_age=1, double a_density=-1, double a_growth_stage=0, double *a_propotion=NULL, bool winter_host_flag=false)
The function to calculate the offspring stage.
Definition: Aphid_Population_Manager.cpp:1069
cfg_PPAphidHostFile
CfgStr cfg_PPAphidHostFile("PP_APHID_HOST_FILE", CFG_CUSTOM, "Subpopulation/peach_potato_aphid_host.txt")
cfg_PPAphidLongevityParaB
CfgFloat cfg_PPAphidLongevityParaB("PP_APHID_ADULT_LONGEVITY_PARA_B", CFG_CUSTOM, 1.892)
FarmManager
The Farm Manager class.
Definition: Farm.h:1461
cfg_EGAphidEggReproductionParaC
CfgFloat cfg_EGAphidEggReproductionParaC("EG_APHID_EGG_REPRODUCTION_PARA_C", CFG_CUSTOM, 10.4)
cfg_BBAphidNymphDevDayDegWingStd
CfgFloat cfg_BBAphidNymphDevDayDegWingStd("BB_APHID_NYMPH_DEV_DAY_DEG_WING_STD", CFG_CUSTOM, 4.48)
cfg_PPAphidAdultMortality
CfgArray_Double cfg_PPAphidAdultMortality("PP_APHID_ADULT_MORTALITY", CFG_CUSTOM, 13, vector< double >{0.0776, 0.08673, 0.094967, 0.104932, 0.117233, 0.132802, 0.153139, 0.180832, 0.220751, 0.283286, 0.395257, 0.653595, 1})
cfg_AphidMaxWindSpeed
CfgFloat cfg_AphidMaxWindSpeed("APHID_MAX_WIND_SPEED", CFG_CUSTOM, 10)
The maximum speed that allows an aphid to fly.
CfgArray_Int
Array_Int configurator entry class.
Definition: Configurator.h:189
cfg_BBAphidNymphDevDayDegNoWing
CfgFloat cfg_BBAphidNymphDevDayDegNoWing("BB_APHID_NYMPH_DEV_DAY_DEG_NO_WING", CFG_CUSTOM, 140)
cfg_AphidSpeciesName
CfgStr cfg_AphidSpeciesName("APHID_SPECIES_NAME", CFG_CUSTOM, "English grain aphid")
This variable decides which aphid species to run. The default one is the English grain aphid.
struct_Aphid::winter_landscape_host
TTypesOfLandscapeElement winter_landscape_host
Definition: Aphid_Population_Manager.h:79
Aphid_Population_Manager::~Aphid_Population_Manager
virtual ~Aphid_Population_Manager()
Definition: Aphid_Population_Manager.cpp:1343
Landscape::SupplyDaylength
int SupplyDaylength(void)
Passes a request on to the associated Weather class function, the day length for the current day.
Definition: Landscape.h:2201
SubPopulation_Population_Manager::m_accumu_degree_days
blitz::Array< double, 2 > m_accumu_degree_days
Array for accumulated degree days for each life circle.
Definition: SubPopulation_Population_Manager.h:152
struct_Aphid::starting_suitability
double * starting_suitability
Starting suitability for the subpopulation.
Definition: Aphid_Population_Manager.h:74
Aphid_Population_Manager::m_is_ready_next_liff_func_pointer
bool(Aphid_Population_Manager::* m_is_ready_next_liff_func_pointer)(int a_life_stage)
THe function pointer for testing whether the given life stage is ready for the next one.
Definition: Aphid_Population_Manager.h:204
Aphid_Population_Manager::m_aphid_winter_host_day_length
double m_aphid_winter_host_day_length
THe day length in minutes to turn on winter host. This is used for BB and PP.
Definition: Aphid_Population_Manager.h:183
cfg_AphidMovMaskWindSpeedStepSize
CfgFloat cfg_AphidMovMaskWindSpeedStepSize("APHID_MOV_MASK_WIND_SPEED_STEP_SIZE", CFG_CUSTOM, 2)
The sampling number of wind speed used to calculate the movement masks.
cfg_BBAphidAlatePropParaB
CfgFloat cfg_BBAphidAlatePropParaB("BB_APHID_ALATE_PROP_PARA_B", CFG_CUSTOM, 10)
cfg_BBAphidEggHatchDelayThreshold
CfgFloat cfg_BBAphidEggHatchDelayThreshold("BB_APHID_EGG_HATCH_DELAY_THRESHOLD", CFG_CUSTOM, 0.9)
toas_PP
Definition: Aphid.h:67
cfg_AphidMaxShortDistance
CfgFloat cfg_AphidMaxShortDistance("APHID_MAX_SHORT_DISTANCE", CFG_CUSTOM, 1000)
The longest distance that an aphid with wings can fly.
cfg_AphidLandingSurvivalRateVec
CfgArray_Double cfg_AphidLandingSurvivalRateVec("APHID_LANDING_SURVIVAL_RATE_VEC", CFG_CUSTOM, 4, vector< double >{1.0, 1.0, 1.0, 1.0})
The survival rate of landing for flying.
struct_Aphid::empty_flag
bool empty_flag
Indicator show whether it is an empty subpopulation.
Definition: Aphid_Population_Manager.h:72
cfg_PPAphidEggReproductionParaB
CfgFloat cfg_PPAphidEggReproductionParaB("PP_APHID_EGG_REPRODUCTION_PARA_B", CFG_CUSTOM, -0.266)
cfg_EGAphidNymphReproductionParaA2
CfgFloat cfg_EGAphidNymphReproductionParaA2("EG_APHID_NYMPH_REPRODUCTION_PARA_A2", CFG_CUSTOM, -0.0146)
cfg_BBAphidAdultMortalityParaB
CfgFloat cfg_BBAphidAdultMortalityParaB("BB_APHID_ADULT_MORTALITY_PARA_B", CFG_CUSTOM, -0.0115)
cfg_EGAphidNymphReproductionParaA1
CfgFloat cfg_EGAphidNymphReproductionParaA1("EG_APHID_NYMPH_REPRODUCTION_PARA_A1", CFG_CUSTOM, 0.0562)
The parameters for nymph reproduction.
SubPopulation_Population_Manager::m_sub_w
int m_sub_w
Variable to record the width of the subpopulation cell.
Definition: SubPopulation_Population_Manager.h:107
toa_Aptera
Definition: Aphid.h:52
toa_Egg
Definition: Aphid.h:47
SubPopulation_Population_Manager::m_winter_host_on
bool m_winter_host_on
The flag to enalble winter host.
Definition: SubPopulation_Population_Manager.h:206