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
|
Go to the documentation of this file.
33 #ifndef Aphid_Population_ManagerH
34 #define Aphid_Population_ManagerH
40 #include "../SubPopulation/SubPopulation_Population_Manager.h"
41 #include "../SubPopulation/SubPopulation.h"
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;
231 virtual int calNextStage(
int current_stage,
double density = 1);
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);
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);
272 void KillAphid(
int a_x,
int a_y,
double a_num);
CfgFloat cfg_PPAphidNymphDevDayDegWing("PP_APHID_NYMPH_DEV_DAY_DEG_WING", CFG_CUSTOM, 148.59)
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
double m_aphid_adult_mortality_para_b
The variable to store the adult mortality parameter B.
Definition: Aphid_Population_Manager.h:115
CfgFloat cfg_PPAphidEggHatchDelayDD("PP_APHID_EGG_HATCH_DELAY_DD", CFG_CUSTOM, 10)
CfgFloat cfg_PEAAphidNymphReproductionTempWeightParaB("PEA_APHID_NYMPH_REPRODUCTION_TEMP_WEIGHT_PARA_B", CFG_CUSTOM, 0.264)
CfgFloat cfg_EGAphidNymphReproductionParaB2("EG_APHID_NYMPH_REPRODUCTION_PARA_B2", CFG_CUSTOM, 4.6872)
double m_aphid_adult_longevity_para_b
The variable to store the adult longevity parameter B.
Definition: Aphid_Population_Manager.h:121
CfgFloat cfg_PPAphidAdultMortalityParaB("PP_APHID_ADULT_MORTALITY_PARA_B", CFG_CUSTOM, -0.0115)
Landscape * g_landscape_ptr
Definition: Landscape.cpp:352
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
The class to handle all subpopulation-based ainimal population related matters in the whole landscape...
Definition: SubPopulation_Population_Manager.h:77
CfgFloat cfg_PPAphidAdultMortalityParaA("PP_APHID_ADULT_MORTALITY_PARA_A", CFG_CUSTOM, 0.0004)
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...
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
Definition: MapErrorMsg.h:37
CfgFloat cfg_PPAphidLongevityParaA("PP_APHID_ADULT_LONGEVITY_PARA_A", CFG_CUSTOM, -0.0047)
double g_rand_uni_fnc()
Definition: ALMaSS_Random.cpp:56
int h
area height
Definition: Aphid_Population_Manager.h:64
void updateMortalityArrayShared(void)
The function to calculate the base mortality rate for all aphids.
Definition: Aphid_Population_Manager.cpp:975
CfgArray_Int cfg_AphidCalibrationPolygonToStoreCROP("APHID_CALIBRATION_POLYGON_TO_STORE_CROP", CFG_CUSTOM, 1, vector< int >{2911})
double m_aphid_nymph_production_para_a2
The variable to store the nymph production parameter A2.
Definition: Aphid_Population_Manager.h:161
CfgFloat cfg_BBAphidNymphMortalityParaA("BB_APHID_NYMPH_MORTALITY_PARA_A", CFG_CUSTOM, 0.0025)
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
int m_max_alive_days
The longest alive day among all the life stages.
Definition: SubPopulation_Population_Manager.h:156
CfgFloat cfg_EGAphidNymphMortalityParaC("EG_APHID_NYMPH_MORTALITY_PARA_C", CFG_CUSTOM, 0.0906)
CfgFloat cfg_EGAphidAdultMortalityParaA("EG_APHID_ADULT_MORTALITY_PARA_A", CFG_CUSTOM, 0.0004)
The temperature related morality rate for Aphid adults.
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
CfgFloat cfg_EGAphidEggHatchChanceParaA("EG_APHID_EGG_HATCH_CHANCE_PARA_A", CFG_CUSTOM, 0.0029)
The parameters to calculate the hatch chance of eggs.
double SupplyTemp(void)
Passes a request on to the associated Weather class function, the temperature for the current day.
Definition: Landscape.h:1993
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})
CfgFloat cfg_EGAphidAlatePropParaB("EG_APHID_ALATE_PROP_PARA_B", CFG_CUSTOM, 10)
CfgFloat cfg_PEAAphidNymphMortalityParaA("PEA_APHID_NYMPH_MORTALITY_PARA_A", CFG_CUSTOM, 0.0004)
CfgFloat cfg_PPAphidNymphReproductionTempWeightParaA("PP_APHID_NYMPH_REPRODUCTION_TEMP_WEIGHT_PARA_A", CFG_CUSTOM, -0.006)
CfgFloat cfg_EGAphidNymphReproductionTempWeightParaA("EG_APHID_NYMPH_REPRODUCTION_TEMP_WEIGHT_PARA_A", CFG_CUSTOM, -0.006)
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})
CfgFloat cfg_PPAphidSexualDevelopmentRequiredDdegStd("PP_APHID_SEXUAL_DEVELOPMENT_REQUIRED_DDEG_STD", CFG_CUSTOM, 73)
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})
CfgFloat cfg_PEAphidSexualDevelopmentRequiredDdeg("PEA_APHID_SEXUAL_DEVELOPMENT_REQUIRED_DDEG", CFG_CUSTOM, 1157)
CfgFloat cfg_BBAphidEggReproductionParaB("BB_APHID_EGG_REPRODUCTION_PARA_B", CFG_CUSTOM, -0.266)
int x
x-coord
Definition: Aphid_Population_Manager.h:58
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
CfgFloat cfg_PEAAphidEggMortalityRateStd("PEA_APHID_EGG_MORALITY_RATE_STD", CFG_CUSTOM, 0.00024)
CfgFloat cfg_PPAphidNymphReproductionParaA1("PP_APHID_NYMPH_REPRODUCTION_PARA_A1", CFG_CUSTOM, 0.1158)
CfgFloat cfg_PPAphidNymphReproductionParaB2("PP_APHID_NYMPH_REPRODUCTION_PARA_B2", CFG_CUSTOM, 4, 5)
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})
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
CfgStr cfg_PEAAphidHostFile("PEA_APHID_HOST_FILE", CFG_CUSTOM, "Subpopulation/pea_aphid_host.txt")
CfgFloat cfg_PPAphidEggMortalityRateStd("PP_APHID_EGG_MORALITY_RATE_STD", CFG_CUSTOM, 0.00024)
CfgFloat cfg_PEAAphidEggHatchDelayThreshold("PEA_APHID_EGG_HATCH_DELAY_THRESHOLD", CFG_CUSTOM, 0.9)
CfgFloat cfg_BBAphidEggHatchChanceParaB("BB_APHID_EGG_HATCH_CHANCE_PARA_B", CFG_CUSTOM, -0.16)
CfgFloat cfg_BBAphidNymphMortalityParaB("BB_APHID_NYMPH_MORTALITY_PARA_B", CFG_CUSTOM, -0.059)
std::string VegtypeToString(TTypesOfVegetation a_veg)
Returns the text representation of a TTypesOfVegetation type.
Definition: Landscape.cpp:6518
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.
virtual void writeCalibrationFiles(void)
Write probe files for calibration.
Definition: Aphid_Population_Manager.cpp:1337
std::vector< int > m_flying_life_stage_array
The vector to store the life stages that can fly.
Definition: SubPopulation_Population_Manager.h:194
Definition: LandscapeFarmingEnums.h:183
Definition: Aphid_Population_Manager.h:89
char * value() const
Definition: Configurator.h:182
double m_aphid_egg_production_para_a
The variable to store the egg production parameter A.
Definition: Aphid_Population_Manager.h:149
double m_aphid_egg_production_para_c
The variable to store the egg production parameter C.
Definition: Aphid_Population_Manager.h:153
CfgFloat cfg_PPAphidEggReproductionParaA("PP_APHID_EGG_REPRODUCTION_PARA_A", CFG_CUSTOM, 0.2469)
double m_aphid_adult_mortality_para_a
The variable to store the adult mortality parameter A.
Definition: Aphid_Population_Manager.h:113
double m_aphid_alate_proportion_para_a
The variable to store alate proportion calculation parameter A.
Definition: Aphid_Population_Manager.h:173
CfgFloat cfg_BBAphidWinterHostDayLength("BB_APHID_WINTER_HOST_DAY_LENGTH", CFG_CUSTOM, 1000)
CfgFloat cfg_EGAphidNymphDevDayDegWingStd("EG_APHID_NYMPH_DEV_DAY_DEG_WING_STD", CFG_CUSTOM, 10.33)
CfgFloat cfg_EGAphidEggReproductionParaB("EG_APHID_EGG_REPRODUCTION_PARA_B", CFG_CUSTOM, -0.266)
CfgFloat cfg_BBAphidEggMortalityRate("BB_APHID_EGG_MORALITY_RATE", CFG_CUSTOM, 0.00595)
CfgFloat cfg_BBAphidNymphReproductionParaB2("BB_APHID_NYMPH_REPRODUCTION_PARA_B2", CFG_CUSTOM, 9.9696)
CfgFloat cfg_PEAAphidDayLengthFemale("PEA_APHID_DAY_LENGTH_FEMALE", CFG_CUSTOM, 780)
CfgFloat cfg_PEAAphidDayLengthMale("PEA_APHID_DAY_LENGTH_MALE", CFG_CUSTOM, 810)
CfgFloat cfg_BBAphidSexualDevelopmentRequiredDdegStd("BB_APHID_SEXUAL_DEVELOPMENT_REQUIRED_DDEG_STD", CFG_CUSTOM, 73)
String configurator entry class.
Definition: Configurator.h:173
const char * m_ListNames[32]
A list of life-stage names.
Definition: PopulationManager.h:628
CfgArray_Double cfg_PEAAphidAdultMortality("PEA_APHID_ADULT_MORTALITY", CFG_CUSTOM, 6, vector< double >{0.048, 0.123424, 0.140803, 0.163877, 0.195997, 1})
CfgFloat cfg_EGAphidSexualDevelopmentRequiredDdegStd("EG_APHID_SEXUAL_DEVELOPMENT_REQUIRED_DDEG_STD", CFG_CUSTOM, 73)
CfgFloat cfg_EGAphidEggMortalityRateStd("EG_APHID_EGG_MORALITY_RATE_STD", CFG_CUSTOM, 0.00024)
int get_array_size()
Definition: Configurator.h:204
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...
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...
CfgFloat cfg_BBAphidEggHatchChanceParaA("BB_APHID_EGG_HATCH_CHANCE_PARA_A", CFG_CUSTOM, 0.0029)
CfgFloat cfg_BBAphidNymphReproductionTempWeightParaA("BB_APHID_NYMPH_REPRODUCTION_TEMP_WEIGHT_PARA_A", CFG_CUSTOM, -0.006)
virtual void doSpeciesLastThing()
The function to return the species.
Definition: Aphid_Population_Manager.cpp:1217
blitz::Array< double, 2 > m_cell_suitability
Array for suitable value in each subpopulation cell.
Definition: SubPopulation_Population_Manager.h:113
int m_num_life_stage
The number of life stages for the animal.
Definition: SubPopulation_Population_Manager.h:103
CfgFloat cfg_PPAphidSexualDevelopmentRequiredDdeg("PP_APHID_SEXUAL_DEVELOPMENT_REQUIRED_DDEG", CFG_CUSTOM, 1157)
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
double m_aphid_alate_proportion_para_c
The variable to store alate proportion calculation parameter C.
Definition: Aphid_Population_Manager.h:177
CfgFloat cfg_EGAphidDayLengthFemale("EG_APHID_DAY_LENGTH_FEMALE", CFG_CUSTOM, 700)
CfgFloat cfg_PPAphidNymphDevDayDegNoWingStd("PP_APHID_NYMPH_DEV_DAY_DEG_NO_WING_STD", CFG_CUSTOM, 2.62)
FarmManager * g_farmmanager
Definition: Farm.cpp:638
CfgFloat cfg_PEAAphidEggReproductionParaSTD("PEA_APHID_EGG_REPRODUCTION_PARA_STD", CFG_CUSTOM, 0)
bool m_egg_reproduction_flag
The flag to enable sexual development.
Definition: Aphid_Population_Manager.h:214
bool m_mul_hosts_flag
Flag to show whether it has both winter and summer host.
Definition: SubPopulation_Population_Manager.h:105
CfgFloat cfg_PEAAphidLongevityParaA("PEA_APHID_ADULT_LONGEVITY_PARA_A", CFG_CUSTOM, -0.0047)
CfgFloat cfg_PEAAphidAdultMortalityParaA("PEA_APHID_ADULT_MORTALITY_PARA_A", CFG_CUSTOM, 0.0004)
CfgFloat cfg_EGAphidNymphDevDayDegNoWingStd("EG_APHID_NYMPH_DEV_DAY_DEG_NO_WING_STD", CFG_CUSTOM, 10.33)
CfgFloat cfg_AphidMaxLongDistance("APHID_MAX_LONG_DISTANCE", CFG_CUSTOM, 1500)
The longest distance that an aphid WITHOUT wings can fly. (meters)
CfgBool cfg_BBAphidDualLinearModelFlagDD("BB_APHID_DUAL_LINEAR_MODEL_FLAG_DD", CFG_CUSTOM, true)
double value() const
Definition: Configurator.h:142
bool m_summer_host_on
The flag to enable summer host.
Definition: SubPopulation_Population_Manager.h:204
CfgFloat cfg_BBAphidSexualDevelopmentRequiredDdeg("BB_APHID_SEXUAL_DEVELOPMENT_REQUIRED_DDEG", CFG_CUSTOM, 1157)
CfgFloat cfg_PEAAphidNymphReproductionParaA1("PEA_APHID_NYMPH_REPRODUCTION_PARA_A1", CFG_CUSTOM, 0.0562)
CfgFloat cfg_BBAphidNymphReproductionParaA2("BB_APHID_NYMPH_REPRODUCTION_PARA_A2", CFG_CUSTOM, -0.0332)
int SupplyMonth(void)
Passes a request on to the associated Calendar class function, returns m_month + 1 (the calendar mont...
Definition: Landscape.h:2272
double m_aphid_nymph_mortality_para_a
The variable to store the nymph temperature based mortality parameter A.
Definition: Aphid_Population_Manager.h:107
CfgFloat cfg_PEAAphidNymphMortalityParaC("PEA_APHID_NYMPH_MORTALITY_PARA_C", CFG_CUSTOM, 0.0906)
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
double m_aphid_nymph_mortality_para_b
The variable to store the nymph temperature based mortality parameter B.
Definition: Aphid_Population_Manager.h:109
double m_aphid_egg_hatch_chance_para_b
The variable to store the egg hatch chance parameter B.
Definition: Aphid_Population_Manager.h:127
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...
CfgFloat cfg_PEAAphidNymphDevDayDegNoWing("PEA_APHID_NYMPH_DEV_DAY_DEG_NO_WING", CFG_CUSTOM, 128)
blitz::Array< double, 2 > m_cell_popu_density
Array for weighted population density in each subpopulation cell.
Definition: SubPopulation_Population_Manager.h:111
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.
CfgFloat cfg_PPAphidEggHatchChanceParaB("PP_APHID_EGG_HATCH_CHANCE_PARA_B", CFG_CUSTOM, -0.16)
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
CfgBool cfg_Subpopu_Base_Output_Used
double SupplyTempHour(int hour)
Returns the temperature in a given hour (0 to 23)
Definition: Landscape.h:2103
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
CfgFloat cfg_EGAphidAlatePropParaC("EG_APHID_ALATE_PROP_PARA_C", CFG_CUSTOM, 0)
int m_ListNameLength
the number of life-stages simulated in the population manager
Definition: PopulationManager.h:626
CfgFloat cfg_EGAphidEggHatchDelayDD("EG_APHID_EGG_HATCH_DELAY_DD", CFG_CUSTOM, 10)
CfgFloat cfg_PPAphidSummerHostDayLength("PP_APHID_SUMMER_HOST_DAY_LENGTH", CFG_CUSTOM, 600)
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
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
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
CfgFloat cfg_BBAphidAlatePropParaC("BB_APHID_ALATE_PROP_PARA_C", CFG_CUSTOM, 0)
CfgFloat cfg_PEAAphidNymphDevDayDegWing("PEA_APHID_NYMPH_DEV_DAY_DEG_WING", CFG_CUSTOM, 138)
CfgFloat cfg_BBAphidNymphReproductionTempWeightParaC("BB_APHID_NYMPH_REPRODUCTION_TEMP_WEIGHT_PARA_C", CFG_CUSTOM, -0.76)
Used for creation of a new Aphid object.
Definition: Aphid_Population_Manager.h:54
CfgFloat cfg_AphidScaleWindSpeed("APHID_SCALE_WIND_SPEED", CFG_CUSTOM, 1.01)
The scale for the wind speed.
CfgArray_Double cfg_PEAAphidAdultMortalityDdeg("PEA_APHID_ADULT_MORTALITY_DDEG", CFG_CUSTOM, 6, vector< double >{175, 200, 225, 250, 275, 300})
virtual void updateDevelopmentSeason()
The function to update the development season.
Definition: Aphid_Population_Manager.cpp:419
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
Definition: Aphid_Population_Manager.h:85
virtual void readHosts(string a_file_name)
The fuction to read the host lists for aphid.
Definition: SubPopulation_Population_Manager.cpp:1006
bool isSummerHostTole(TTypesOfLandscapeElement a_ele)
Test whether it is a summer host tole.
Definition: SubPopulation_Population_Manager.cpp:810
blitz::Array< int, 2 > m_index_new_old
Array for index of the newest and oldest life stages.
Definition: SubPopulation_Population_Manager.h:154
CfgFloat cfg_BBAphidAdultMortalityParaC("BB_APHID_ADULT_MORTALITY_PARA_C", CFG_CUSTOM, 0.0906)
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})
bool value() const
Definition: Configurator.h:164
bool m_first_egg_hatch_flag
The flag to show the first hatch of egg.
Definition: Aphid_Population_Manager.h:218
double m_aphid_adult_mortality_para_c
The variable to store the adult mortality parameter C.
Definition: Aphid_Population_Manager.h:117
int w
area width
Definition: Aphid_Population_Manager.h:62
CfgFloat cfg_PPAphidNymphReproductionParaA2("PP_APHID_NYMPH_REPRODUCTION_PARA_A2", CFG_CUSTOM, -0.0087)
Landscape * m_TheLandscape
holds an internal pointer to the landscape
Definition: PopulationManager.h:624
CfgBool cfg_PEAAphidDualLinearModelFlagDD("PEA_APHID_DUAL_LINEAR_MODEL_FLAG_DD", CFG_CUSTOM, true)
int m_max_adult_dd
THe variable to store the maximum number of degree days for aphid.
Definition: Aphid_Population_Manager.h:206
double m_accu_ddeg_egg_reproduction
The accumulated day degrees to enable sexual development.
Definition: Aphid_Population_Manager.h:216
int calNextStageShared(int current_stage)
The function to calculate the next life stage for all aphids.
Definition: Aphid_Population_Manager.cpp:816
CfgFloat cfg_PEAAphidNymphDevDayDegWingStd("PEA_APHID_NYMPH_DEV_DAY_DEG_WING_STD", CFG_CUSTOM, 4.48)
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,...
CfgFloat cfg_PEAAphidNymphReproductionTempWeightParaC("PEA_APHID_NYMPH_REPRODUCTION_TEMP_WEIGHT_PARA_C", CFG_CUSTOM, -1.93)
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...
CfgFloat cfg_PPAphidNymphMortalityParaC("PP_APHID_NYMPH_MORTALITY_PARA_C", CFG_CUSTOM, 0.3081)
virtual bool isEnoughNextLifeStage(int a_life_stage)
Definition: Aphid_Population_Manager.cpp:1178
The class to handle all Aphid population related matters in the whole landscape.
Definition: Aphid_Population_Manager.h:98
CfgFloat cfg_PEAAphidNymphReproductionParaB1("PEA_APHID_NYMPH_REPRODUCTION_PARA_B1", CFG_CUSTOM, 1.1932)
CfgFloat cfg_PPAphidNymphDevDayDegNoWing("PP_APHID_NYMPH_DEV_DAY_DEG_NO_WING", CFG_CUSTOM, 140.25)
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
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
CfgFloat cfg_PEAAphidEggHatchDelayDD("PEA_APHID_EGG_HATCH_DELAY_DD", CFG_CUSTOM, 10)
CfgFloat cfg_PPAphidNymphDevDayDegWingStd("PP_APHID_NYMPH_DEV_DAY_DEG_WING_STD", CFG_CUSTOM, 4.48)
CfgFloat cfg_BBAphidLongevityParaB("BB_APHID_ADULT_LONGEVITY_PARA_B", CFG_CUSTOM, 1.892)
TTypesOfLandscapeElement
Values that represent the types of landscape polygon that are represented in ALMaSS.
Definition: LandscapeFarmingEnums.h:57
CfgFloat cfg_PPAphidEggReproductionParaSTD("PP_APHID_EGG_REPRODUCTION_PARA_STD", CFG_CUSTOM, 8.3)
CfgFloat cfg_PPAphidEggHatchDelayThreshold("PP_APHID_EGG_HATCH_DELAY_THRESHOLD", CFG_CUSTOM, 0.9)
The landscape class containing all environmental and topographical data.
Definition: Landscape.h:142
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
CfgFloat cfg_AphidPeakLongDistance("APHID_PEAK_LONG_DISTANCE", CFG_CUSTOM, 200)
The distance for the peak amount when the winged adults fly. (meters)
CfgFloat cfg_PEAAphidNymphMortalityParaB("PEA_APHID_NYMPH_MORTALITY_PARA_B", CFG_CUSTOM, -0.0115)
CfgFloat cfg_EGAphidAlatePropParaA("EG_APHID_ALATE_PROP_PARA_A", CFG_CUSTOM, 1.1)
The parameters for alate proportion calculation.
double m_aphid_nymph_production_para_a1
The variable to store the nymph production parameter A1.
Definition: Aphid_Population_Manager.h:157
string m_aphid_specie_name
This is to store the aphid species name.
Definition: Aphid_Population_Manager.h:101
CfgFloat cfg_PPAphidEggHatchChanceParaA("PP_APHID_EGG_HATCH_CHANCE_PARA_A", CFG_CUSTOM, 0.0029)
bool isWinterHostTole(TTypesOfLandscapeElement a_ele)
Test whether it is a winter host tole.
Definition: SubPopulation_Population_Manager.cpp:800
CfgFloat cfg_EGAphidSexualDevelopmentRequiredDdeg("EG_APHID_SEXUAL_DEVELOPMENT_REQUIRED_DDEG", CFG_CUSTOM, 1157)
The parameters to control the sexual reproduction.
int SimH
stores the simulation height
Definition: PopulationManager.h:614
CfgFloat cfg_BBAphidEggReproductionParaA("BB_APHID_EGG_REPRODUCTION_PARA_A", CFG_CUSTOM, 0.2469)
CfgFloat cfg_PPAphidAlatePropParaA("PP_APHID_ALATE_PROP_PARA_A", CFG_CUSTOM, 1.1)
CfgFloat cfg_PEAAphidNymphDevDayDegNoWingStd("PEA_APHID_NYMPH_DEV_DAY_DEG_NO_WING_STD", CFG_CUSTOM, 2.62)
double m_aphid_nymph_production_para_b2
The variable to store the nymph production parameter B2.
Definition: Aphid_Population_Manager.h:163
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
CfgFloat cfg_PPAphidNymphReproductionTempWeightParaB("PP_APHID_NYMPH_REPRODUCTION_TEMP_WEIGHT_PARA_B", CFG_CUSTOM, 0.204)
Definition: Aphid_Population_Manager.h:91
CfgFloat cfg_EGAphidEggHatchChanceParaB("EG_APHID_EGG_HATCH_CHANCE_PARA_B", CFG_CUSTOM, -0.16)
vector< double > m_aphid_adult_mortality_vec
The vector to store the adult mortality for the inflection point.
Definition: Aphid_Population_Manager.h:189
double m_max_day_degree_adult
The longest day degrees that a adult can have.
Definition: Aphid_Population_Manager.h:220
CfgFloat cfg_EGAphidLongevityParaB("EG_APHID_ADULT_LONGEVITY_PARA_B", CFG_CUSTOM, 1.892)
int SupplyDayInMonth(void)
Passes a request on to the associated Calendar class function, returns m_day_in_month
Definition: Landscape.h:2277
CfgFloat cfg_PPAphidEggMortalityRate("PP_APHID_EGG_MORALITY_RATE", CFG_CUSTOM, 0.00595)
CfgFloat cfg_EGAphidNymphDevDayDegWing("EG_APHID_NYMPH_DEV_DAY_DEG_WING", CFG_CUSTOM, 142)
The development parameters for Nymphs.
CfgFloat cfg_EGAphidNymphReproductionChangeADD("EG_APHID_NYMPH_REPRODUCTION_CHANGE_ADD", CFG_CUSTOM, 0)
CfgFloat cfg_PEAphidSexualDevelopmentRequiredDdegStd("PEA_APHID_SEXUAL_DEVELOPMENT_REQUIRED_DDEG_STD", CFG_CUSTOM, 73)
CfgFloat cfg_PEAAphidEggReproductionParaB("PEA_APHID_EGG_REPRODUCTION_PARA_B", CFG_CUSTOM, -0.266)
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
CfgFloat cfg_BBAphidAlatePropParaA("BB_APHID_ALATE_PROP_PARA_A", CFG_CUSTOM, 1.1)
double m_aphid_egg_mortality
The variable to store the aphid egg mortality.
Definition: Aphid_Population_Manager.h:103
CfgFloat cfg_PPAphidNymphMortalityParaA("PP_APHID_NYMPH_MORTALITY_PARA_A", CFG_CUSTOM, 0.0025)
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})
CfgFloat cfg_EGAphidEggReproductionParaSTD("EG_APHID_EGG_REPRODUCTION_PARA_STD", CFG_CUSTOM, 0)
Bool configurator entry class.
Definition: Configurator.h:155
CfgFloat cfg_BBAphidEggMortalityRateStd("BB_APHID_EGG_MORALITY_RATE_STD", CFG_CUSTOM, 0.00024)
CfgFloat cfg_EGAphidLongevityParaA("EG_APHID_ADULT_LONGEVITY_PARA_A", CFG_CUSTOM, -0.0047)
The longevity parameters for adults.
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
The base class for all ALMaSS animal classes. Includes all the functionality required to be handled b...
Definition: PopulationManager.h:200
bool isEnoughNextLifeStageShared(int a_life_stage)
Definition: Aphid_Population_Manager.cpp:1182
Definition: Aphid_Population_Manager.h:88
CfgFloat cfg_BBAphidNymphReproductionParaB1("BB_APHID_NYMPH_REPRODUCTION_PARA_B1", CFG_CUSTOM, 2.9174)
CfgFloat cfg_PEAAphidNymphReproductionParaB2("PEA_APHID_NYMPH_REPRODUCTION_PARA_B2", CFG_CUSTOM, 4.6872)
CfgArray_Int cfg_AphidCalibrationPolygonToStoreTOLE("APHID_CALIBRATION_POLYGON_TO_STORE_TOLE", CFG_CUSTOM, 1, vector< int >{254})
The parameters for debug.
Aphid * CreateObjects(TAnimal *pvo, struct_Aphid *data, int number)
Definition: Aphid_Population_Manager.cpp:396
CfgFloat cfg_EGAphidNymphReproductionTempWeightParaB("EG_APHID_NYMPH_REPRODUCTION_TEMP_WEIGHT_PARA_B", CFG_CUSTOM, 0.264)
Aphid_Population_Manager(Landscape *L, string a_aphid_specie_name="English grain aphid")
Definition: Aphid_Population_Manager.cpp:325
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
TTypesOfLandscapeElement summer_landscape_host
Definition: Aphid_Population_Manager.h:80
CfgFloat cfg_BBAphidNymphMortalityParaC("BB_APHID_NYMPH_MORTALITY_PARA_C", CFG_CUSTOM, 0.3081)
CfgFloat cfg_BBAphidAdultMortalityParaA("BB_APHID_ADULT_MORTALITY_PARA_A", CFG_CUSTOM, 0.0004)
int m_sub_h
Variable to record the height of the subpopulation cell.
Definition: SubPopulation_Population_Manager.h:109
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
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
CfgFloat cfg_BBAphidNymphReproductionTempWeightParaB("BB_APHID_NYMPH_REPRODUCTION_TEMP_WEIGHT_PARA_B", CFG_CUSTOM, 0.204)
CfgFloat cfg_BBAphidEggReproductionParaC("BB_APHID_EGG_REPRODUCTION_PARA_C", CFG_CUSTOM, 10)
CfgFloat cfg_EGAphidAdultMortalityParaC("EG_APHID_ADULT_MORTALITY_PARA_C", CFG_CUSTOM, 0.0906)
CfgFloat cfg_PPAphidEggStartingADD("PP_APHID_EGG_STARTING_ADD", CFG_CUSTOM, 0)
CfgFloat cfg_BBAphidEggReproductionParaSTD("BB_APHID_EGG_REPRODUCTION_PARA_STD", CFG_CUSTOM, 8.3)
double m_aphid_alate_proportion_para_b
The variable to store alate proportion calculation parameter B.
Definition: Aphid_Population_Manager.h:175
CfgFloat cfg_EGAphidEggReproductionParaA("EG_APHID_EGG_REPRODUCTION_PARA_A", CFG_CUSTOM, 0.2469)
The parameters for egg reproduction.
CfgFloat cfg_PEAAphidAlatePropParaB("PEA_APHID_ALATE_PROP_PARA_B", CFG_CUSTOM, 10)
void Warn(MapErrorState a_level, std::string a_msg1, std::string a_msg2)
Definition: MapErrorMsg.cpp:69
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
double SupplyPolygonArea(int a_polyref)
Returns the polygon area of a particular polygon referenced by polygon.
Definition: Landscape.h:1058
CfgFloat cfg_PEAAphidNymphReproductionParaA2("PEA_APHID_NYMPH_REPRODUCTION_PARA_A2", CFG_CUSTOM, -0.0146)
Base class for all population managers for agent based models.
Definition: PopulationManager.h:645
Definition: Configurator.h:208
CfgFloat cfg_EGAphidNymphReproductionParaB1("EG_APHID_NYMPH_REPRODUCTION_PARA_B1", CFG_CUSTOM, 1.1932)
int SupplyDayInYear(void)
Passes a request on to the associated Calendar class function, the day in the year.
Definition: Landscape.h:2267
CfgFloat cfg_BBAphidNymphReproductionChangeADD("BB_APHID_NYMPH_REPRODUCTION_CHANGE_ADD", CFG_CUSTOM, 66.5)
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
CfgFloat cfg_PEAAphidEggHatchChanceParaB("PEA_APHID_EGG_HATCH_CHANCE_PARA_B", CFG_CUSTOM, -0.233)
CfgFloat cfg_EGAphidEggStartingADD("EG_APHID_EGG_STARTING_ADD", CFG_CUSTOM, 0)
The starting degree days for eggs when the simulation starts.
CfgFloat cfg_EGAphidAdultMortalityParaB("EG_APHID_ADULT_MORTALITY_PARA_B", CFG_CUSTOM, -0.0115)
CfgBool cfg_PPAphidDualLinearModelFlagDD("PP_APHID_DUAL_LINEAR_MODEL_FLAG_DD", CFG_CUSTOM, true)
int index_y
Definition: Aphid_Population_Manager.h:78
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.
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
CfgFloat cfg_AphidMovMaskWindDirectionNum("APHID_MOV_MASK_WIND_DIRECTION_NUM", CFG_CUSTOM, 4)
The number of wind directions used to calculate the movement masks.
CfgFloat cfg_PPAphidWinterHostDayLength("PP_APHID_WINTER_HOST_DAY_LENGTH", CFG_CUSTOM, 1000)
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
CfgFloat cfg_PPAphidNymphReproductionChangeADD("PP_APHID_NYMPH_REPRODUCTION_CHANGE_ADD", CFG_CUSTOM, 50)
CfgFloat cfg_PEAAphidAdultMortalityParaC("PEA_APHID_ADULT_MORTALITY_PARA_C", CFG_CUSTOM, 0.0906)
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
double m_aphid_egg_production_para_sd
The variable to store the egg production parameter's standard deviation.
Definition: Aphid_Population_Manager.h:155
CfgFloat cfg_PEAAphidAdultMortalityParaB("PEA_APHID_ADULT_MORTALITY_PARA_B", CFG_CUSTOM, -0.0115)
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})
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
void initialiseSimWithEggs(void)
The function to initilise the simulation with eggs.
Definition: Aphid_Population_Manager.cpp:849
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
double m_aphid_egg_mortality_sd
The variable to store the standard deviation of the gee mortality.
Definition: Aphid_Population_Manager.h:105
std::vector< double > value() const
Definition: Configurator.h:219
CfgFloat cfg_PEAAphidLongevityParaB("PEA_APHID_ADULT_LONGEVITY_PARA_B", CFG_CUSTOM, 1.892)
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
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...
int SimW
stores the simulation width
Definition: PopulationManager.h:616
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
CfgFloat cfg_EGAphidNymphReproductionTempWeightParaC("EG_APHID_NYMPH_REPRODUCTION_TEMP_WEIGHT_PARA_C", CFG_CUSTOM, -1.93)
CfgFloat cfg_PPAphidEggReproductionParaC("PP_APHID_EGG_REPRODUCTION_PARA_C", CFG_CUSTOM, 10.6)
CfgStr cfg_AphidResultPath("APHID_RESULT_PATH", CFG_CUSTOM, "./")
The path to store the results.
double m_aphid_nymph_production_para_b1
The variable to store the nymph production parameter B1.
Definition: Aphid_Population_Manager.h:159
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.
CfgFloat cfg_EGAphidEggMortalityRate("EG_APHID_EGG_MORALITY_RATE", CFG_CUSTOM, 0.00595)
The morality rate for Aphid eggs.
CfgFloat cfg_PPAphidAdultMortalityParaC("PP_APHID_ADULT_MORTALITY_PARA_C", CFG_CUSTOM, 0.0906)
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
CfgFloat cfg_PPAphidNymphReproductionParaB1("PP_APHID_NYMPH_REPRODUCTION_PARA_B1", CFG_CUSTOM, -1)
CfgFloat cfg_PEAAphidEggStartingADD("PEA_APHID_EGG_STARTING_ADD", CFG_CUSTOM, 0)
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
CfgFloat cfg_BBAphidNymphDevDayDegWing("BB_APHID_NYMPH_DEV_DAY_DEG_WING", CFG_CUSTOM, 150)
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})
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
double m_aphid_nymph_mortality_para_c
The variable to store the nymph temperature based mortality parameter C.
Definition: Aphid_Population_Manager.h:111
CfgFloat cfg_BBAphidNymphDevDayDegNoWingStd("BB_APHID_NYMPH_DEV_DAY_DEG_NO_WING_STD", CFG_CUSTOM, 15.72)
TTypesOfAphidDevelopmentSeason m_current_developtype
The variable to show the development season.
Definition: Aphid_Population_Manager.h:196
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
double m_aphid_nymph_production_changing_add
The variable to store the nymph production changing accumulated degree days.
Definition: Aphid_Population_Manager.h:165
double m_aphid_adult_longevity_para_a
The variable to store the adult longevity parameter A.
Definition: Aphid_Population_Manager.h:119
double m_aphid_egg_hatch_chance_para_a
The variable to store the egg hatch chance parameter A.
Definition: Aphid_Population_Manager.h:125
MapErrorMsg * g_msg
Definition: MapErrorMsg.cpp:41
Aphid_Population_Manager * NPM
Aphid_Population_Manager pointer.
Definition: Aphid_Population_Manager.h:70
double supplyNymphNumWeight(void)
The function to return the daily nymph number weight.
Definition: Aphid_Population_Manager.h:256
CfgFloat cfg_PPAphidNymphReproductionTempWeightParaC("PP_APHID_NYMPH_REPRODUCTION_TEMP_WEIGHT_PARA_C", CFG_CUSTOM, -0.76)
CfgFloat cfg_EGAphidNymphMortalityParaB("EG_APHID_NYMPH_MORTALITY_PARA_B", CFG_CUSTOM, -0.0115)
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
double m_aphid_egg_production_para_b
The variable to store the egg production parameter B.
Definition: Aphid_Population_Manager.h:151
TTypesOfVegetation
Values that represent the types of vegetation that are represented in ALMaSS.
Definition: LandscapeFarmingEnums.h:192
Integer configurator entry class.
Definition: Configurator.h:102
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
CfgFloat cfg_PPAphidAlatePropParaC("PP_APHID_ALATE_PROP_PARA_C", CFG_CUSTOM, 0)
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...
int y
y-coord
Definition: Aphid_Population_Manager.h:60
Landscape * L
Landscape pointer.
Definition: Aphid_Population_Manager.h:68
bool openSubpopulationBaseProbeFile()
Open the storing file.
Definition: SubPopulation_Population_Manager.cpp:394
CfgFloat cfg_PEAAphidNymphReproductionTempWeightParaA("PEA_APHID_NYMPH_REPRODUCTION_TEMP_WEIGHT_PARA_A", CFG_CUSTOM, -0.006)
double SupplyAphidDensity(int a_x, int a_y)
Function to supply the aphid density in the given location.
Definition: Aphid_Population_Manager.cpp:1232
CfgFloat cfg_PEAAphidAlatePropParaC("PEA_APHID_ALATE_PROP_PARA_C", CFG_CUSTOM, 0)
The class for base Aphid using subpopulation method.
Definition: Aphid.h:76
int species
species ID
Definition: Aphid_Population_Manager.h:66
Double configurator entry class.
Definition: Configurator.h:126
string m_SimulationName
stores the simulation name
Definition: PopulationManager.h:622
Definition: LandscapeFarmingEnums.h:65
Definition: Aphid_Population_Manager.h:90
bool farm_flag
Definition: Aphid_Population_Manager.h:81
CfgFloat cfg_BBAphidNymphReproductionParaA1("BB_APHID_NYMPH_REPRODUCTION_PARA_A1", CFG_CUSTOM, 0.1199)
CfgFloat cfg_PEAAphidEggReproductionParaA("PEA_APHID_EGG_REPRODUCTION_PARA_A", CFG_CUSTOM, 0.2469)
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})
CfgFloat cfg_PEAAphidEggMortalityRate("PEA_APHID_EGG_MORALITY_RATE", CFG_CUSTOM, 0.00595)
CfgFloat cfg_BBAphidEggStartingADD("BB_APHID_EGG_STARTING_ADD", CFG_CUSTOM, 0)
std::vector< int > value() const
Definition: Configurator.h:201
CfgStr cfg_BBAphidHostFile("BB_APHID_HOST_FILE", CFG_CUSTOM, "Subpopulation/black_bean_aphid_host.txt")
Definition: Aphid_Population_Manager.h:87
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....
int index_x
Definition: Aphid_Population_Manager.h:77
virtual void initialisePopulation()
The function to initialise the population when starting aphid simulation, this function is called in ...
Definition: Aphid_Population_Manager.cpp:443
CfgFloat cfg_PEAAphidNymphReproductionChangeADD("PEA_APHID_NYMPH_REPRODUCTION_CHANGE_ADD", CFG_CUSTOM, 0)
Definition: Configurator.h:70
CfgFloat cfg_PEAAphidEggHatchChanceParaA("PEA_APHID_EGG_HATCH_CHANCE_PARA_A", CFG_CUSTOM, 0.0029)
CfgStr cfg_AphidResultFileSuffix("APHID_RESULT_FILE_SUFFIX", CFG_CUSTOM, "_result")
The suffix of the file name for storing the results.
double * starting_popu_density
Starting weighted population density for the subpopulation.
Definition: Aphid_Population_Manager.h:76
CfgFloat cfg_BBAphidLongevityParaA("BB_APHID_ADULT_LONGEVITY_PARA_A", CFG_CUSTOM, -0.0047)
double random_biomass_weight
Definition: Aphid_Population_Manager.h:82
The class for base animal using subpopulation method.
Definition: SubPopulation.h:56
CfgFloat cfg_PPAphidAlatePropParaB("PP_APHID_ALATE_PROP_PARA_B", CFG_CUSTOM, 10)
int SupplyYear(void)
Passes a request on to the associated Calendar class function, returns m_year.
Definition: Landscape.h:2282
virtual unsigned supplyDevelopmentSeason()
The function to supply the development season.
Definition: Aphid_Population_Manager.h:235
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
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
CfgFloat cfg_PEAAphidEggReproductionParaC("PEA_APHID_EGG_REPRODUCTION_PARA_C", CFG_CUSTOM, 24.8)
CfgFloat cfg_BBAphidEggHatchDelayDD("BB_APHID_EGG_HATCH_DELAY_DD", CFG_CUSTOM, 10)
CfgFloat cfg_PEAAphidAlatePropParaA("PEA_APHID_ALATE_PROP_PARA_A", CFG_CUSTOM, 1.1)
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
CfgFloat cfg_PPAphidNymphMortalityParaB("PP_APHID_NYMPH_MORTALITY_PARA_B", CFG_CUSTOM, -0.059)
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
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})
CfgFloat cfg_EGAphidNymphMortalityParaA("EG_APHID_NYMPH_MORTALITY_PARA_A", CFG_CUSTOM, 0.0004)
The temperature related morality rate for Aphid nymphs and adults.
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
CfgFloat cfg_EGAphidNymphDevDayDegNoWing("EG_APHID_NYMPH_DEV_DAY_DEG_NO_WING", CFG_CUSTOM, 133)
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
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
CfgStr cfg_PPAphidHostFile("PP_APHID_HOST_FILE", CFG_CUSTOM, "Subpopulation/peach_potato_aphid_host.txt")
CfgFloat cfg_PPAphidLongevityParaB("PP_APHID_ADULT_LONGEVITY_PARA_B", CFG_CUSTOM, 1.892)
The Farm Manager class.
Definition: Farm.h:1461
CfgFloat cfg_EGAphidEggReproductionParaC("EG_APHID_EGG_REPRODUCTION_PARA_C", CFG_CUSTOM, 10.4)
CfgFloat cfg_BBAphidNymphDevDayDegWingStd("BB_APHID_NYMPH_DEV_DAY_DEG_WING_STD", CFG_CUSTOM, 4.48)
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})
CfgFloat cfg_AphidMaxWindSpeed("APHID_MAX_WIND_SPEED", CFG_CUSTOM, 10)
The maximum speed that allows an aphid to fly.
Array_Int configurator entry class.
Definition: Configurator.h:189
CfgFloat cfg_BBAphidNymphDevDayDegNoWing("BB_APHID_NYMPH_DEV_DAY_DEG_NO_WING", CFG_CUSTOM, 140)
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.
TTypesOfLandscapeElement winter_landscape_host
Definition: Aphid_Population_Manager.h:79
virtual ~Aphid_Population_Manager()
Definition: Aphid_Population_Manager.cpp:1343
int SupplyDaylength(void)
Passes a request on to the associated Weather class function, the day length for the current day.
Definition: Landscape.h:2201
blitz::Array< double, 2 > m_accumu_degree_days
Array for accumulated degree days for each life circle.
Definition: SubPopulation_Population_Manager.h:152
double * starting_suitability
Starting suitability for the subpopulation.
Definition: Aphid_Population_Manager.h:74
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
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
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.
CfgFloat cfg_BBAphidAlatePropParaB("BB_APHID_ALATE_PROP_PARA_B", CFG_CUSTOM, 10)
CfgFloat cfg_BBAphidEggHatchDelayThreshold("BB_APHID_EGG_HATCH_DELAY_THRESHOLD", CFG_CUSTOM, 0.9)
CfgFloat cfg_AphidMaxShortDistance("APHID_MAX_SHORT_DISTANCE", CFG_CUSTOM, 1000)
The longest distance that an aphid with wings can fly.
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.
bool empty_flag
Indicator show whether it is an empty subpopulation.
Definition: Aphid_Population_Manager.h:72
CfgFloat cfg_PPAphidEggReproductionParaB("PP_APHID_EGG_REPRODUCTION_PARA_B", CFG_CUSTOM, -0.266)
CfgFloat cfg_EGAphidNymphReproductionParaA2("EG_APHID_NYMPH_REPRODUCTION_PARA_A2", CFG_CUSTOM, -0.0146)
CfgFloat cfg_BBAphidAdultMortalityParaB("BB_APHID_ADULT_MORTALITY_PARA_B", CFG_CUSTOM, -0.0115)
CfgFloat cfg_EGAphidNymphReproductionParaA1("EG_APHID_NYMPH_REPRODUCTION_PARA_A1", CFG_CUSTOM, 0.0562)
The parameters for nymph reproduction.
int m_sub_w
Variable to record the width of the subpopulation cell.
Definition: SubPopulation_Population_Manager.h:107
bool m_winter_host_on
The flag to enalble winter host.
Definition: SubPopulation_Population_Manager.h:206