ALMaSS Partridge ODdox
1.1
The partridge model description following ODdox protocol
|
Partridge_all.cpp This file contains the code for all partridge lifestage classes
More...
#include <iostream>
#include <fstream>
#include "../Landscape/ls.h"
#include "../BatchALMaSS/PopulationManager.h"
#include "../Partridge/Partridge_Communication.h"
#include "../Partridge/Partridge_All.h"
#include "../Partridge/Partridge_Population_Manager.h"
#include "../Partridge/Partridge_Covey.h"
#include "../BatchALMaSS/BoostRandomGenerators.h"
Go to the source code of this file.
Variables | |
double | g_FoodNeed [200] |
int | g_MaxWalk [200] |
boost::variate_generator< base_generator_type &, boost::uniform_real<> > | g_rand_uni |
double | g_par_rainfactor |
static CfgInt | cfg_par_triggerlayingvar ("PAR_TRIGGERLAYINGVAR", CFG_CUSTOM, 48) |
Generates variation around the laying trigger. More... | |
static CfgFloat | cfg_par_extraction_rate ("PAR_EXTRACTION_RATE", CFG_CUSTOM, 0.0085) |
Food extraction rate. More... | |
CfgInt | cfg_par_max_lifespan ("PAR_MAX_LIFESPAN", CFG_CUSTOM, 3650) |
Maximum physiological lifespan. More... | |
CfgInt | cfg_par_min_lifespan ("PAR_MIN_LIFESPAN", CFG_CUSTOM, 1825) |
Minimum physiological lifespan. More... | |
CfgInt | cfg_par_start_dissolve ("PAR_START_DISSOLVE", CFG_CUSTOM, 30) |
The earliest covey dissolve date. More... | |
static CfgInt | cfg_par_triggerlaying ("PAR_TRIGGERLAYING", CFG_CUSTOM, 850) |
The number of minutes daylight as a minimum before triggering egg-laying behaviour. More... | |
static CfgInt | cfg_buildupwait ("PAR_BUILDUP_WAIT", CFG_CUSTOM, 130) |
Time period after finding territory before making nest. More... | |
static CfgInt | cfg_par_days_to_make_nest ("PAR_DAYS_TO_MAKE_NEST", CFG_CUSTOM, 5) |
Days used for nestbuilding. More... | |
static CfgInt | cfg_par_incubation_period ("PAR_INCUBATION_PERIOD", CFG_CUSTOM, 24) |
Lenght of incubation period. More... | |
CfgInt | cfg_par_mature_threshold ("PAR_MATURE_THRESHOLD", CFG_CUSTOM, 84) |
Age at maturing in days. More... | |
CfgInt | cfg_par_last_brood_date ("PAR_LAST_BROOD_DATE", CFG_CUSTOM, 180) |
Latest date for a reproduction attempt. More... | |
CfgInt | cfg_par_male_gives_up ("PAR_MALE_GIVES_UP", CFG_CUSTOM, 170) |
Latest date a male will mate search. More... | |
CfgInt | cfg_par_max_terr_qual ("PAR_MAX_TERR_QUAL", CFG_CUSTOM, 13000) |
The minimum territory quality needed in early season. More... | |
CfgInt | cfg_par_min_terr_qual ("PAR_MIN_TERR_QUAL", CFG_CUSTOM, 6900) |
The minimum territory quality needed in late season. More... | |
static CfgInt | cfg_par_MaleFlyingDistance ("PAR_MALEFLYINGDISTANCE", CFG_CUSTOM, 2000) |
The maximum flying distance for males. More... | |
static CfgInt | cfg_par_MaleMateSearchArea ("PAR_MALEMATESEARCHAREA", CFG_CUSTOM, 500) |
Male mate searching radius. More... | |
static CfgInt | cfg_par_female_movement_max ("PAR_FEMALE_MOVEMENT_MAX", CFG_CUSTOM, 100) |
Female max daily movement. More... | |
static CfgInt | cfg_par_min_no_eggs ("PAR_MIN_NO_EGGS", CFG_CUSTOM, 7) |
Minimum clutch size. More... | |
static CfgFloat | cfg_par_days_per_egg ("PAR_DAY_PER_EGG", CFG_CUSTOM, 1.5) |
Days taken to lay 1 egg. More... | |
static CfgFloat | cfg_par_female_incubation_mortality_slope ("PAR_FEMALE_INCUBATION_MORTALITY_SLOPE", CFG_CUSTOM, -0.00122) |
Increasing hen predation with density (slope) More... | |
static CfgFloat | cfg_par_female_incubation_mortality_const ("PAR_FEMALE_INCUBATION_MORTALITY_CONST", CFG_CUSTOM, 1.00192) |
Increasing hen predation with density (intercept) More... | |
static CfgInt | cfg_par_base_mortality ("PAR_BASE_MORTALITY", CFG_CUSTOM, 0) |
Unused. More... | |
static CfgFloat | cfg_par_clutch_mortality ("PAR_CLUTCH_MORTALITY", CFG_CUSTOM, 0.00135) |
Clutch - daily probability of non-explicitly modelled mortality. More... | |
static CfgFloat | cfg_par_chick_mortality ("PAR_CHICK_MORTALITY", CFG_CUSTOM, 0.02043) |
Chick - daily probability of non-explicitly modelled mortality. More... | |
static CfgFloat | cfg_par_chick2_mortality ("PAR_CHICK_TWO_MORTALITY", CFG_CUSTOM, 1.0) |
Chick2 - scaler applied to adult mortalities. More... | |
static CfgFloat | cfg_par_adult_mortalitySummer ("PAR_ADULT_MORTALITYSUMMER", CFG_CUSTOM, 0.0001) |
Adults - daily probability of non-explicitly modelled mortality in Summer. More... | |
static CfgFloat | cfg_par_adult_mortalitySpring ("PAR_ADULT_MORTALITYSPRING", CFG_CUSTOM, 0.0096) |
Adults - daily probability of non-explicitly modelled mortality in Spring. More... | |
static CfgFloat | cfg_par_adult_mortalityWinter ("PAR_ADULT_MORTALITYWINTER", CFG_CUSTOM, 0.0217) |
Adults - daily probability of non-explicitly modelled mortality in Winter. More... | |
static CfgFloat | cfg_par_adult_mortality_alone ("PAR_ADULT_MORTALITY_ALONE", CFG_CUSTOM, 1.4) |
Adults - extra mortality scaler if alone. More... | |
static CfgInt | cfg_par_starve_threshold ("PAR_STARVE_THRESHOLD", CFG_CUSTOM, 4) |
Chick - no. days or negative energy before death. More... | |
static CfgFloat | cfg_par_infertile_eggs ("PAR_INFERTILE_EGGS", CFG_CUSTOM, 0.08) |
Proportion of infertile eggs. More... | |
static CfgFloat | cfg_par_ad_cut ("PAR_AD_CUT_MORT", CFG_CUSTOM, 0.01) |
Adult % mortality on cutting. More... | |
static CfgFloat | cfg_par_ch_cut ("PAR_CH_CUT_MORT", CFG_CUSTOM, 0.05) |
Chick % mortality on cutting. More... | |
static CfgFloat | cfg_par_cl_cut ("PAR_CL_CUT_MORT", CFG_CUSTOM, 0.29) |
Clutch % mortality on cutting. More... | |
static CfgFloat | cfg_female_mowing_chance ("PAR_FEMALEMOWNMORTALITY", CFG_CUSTOM, 1) |
Chance of female death if incubating a mown clutch. More... | |
Partridge_Population_Manager * | g_manager |
Clutch mortality on soil cultivation. More... | |
static long | g_partridge_id = 0 |
Partridge_all.cpp This file contains the code for all partridge lifestage classes
by Chris J. Topping
Original version 15th October 2008
Doxygen formatted comments in October 2008
Definition in file Partridge_All.cpp.
|
static |
Time period after finding territory before making nest.
Referenced by Partridge_Female::FFindingTerritory(), and Partridge_Female::OnMating().
|
static |
Chance of female death if incubating a mown clutch.
Referenced by Partridge_Female::OnClutchMown().
|
static |
Adult % mortality on cutting.
Referenced by Partridge_Chick2::OnFarmEvent(), Partridge_Male::OnFarmEvent(), and Partridge_Female::OnFarmEvent().
|
static |
Adults - extra mortality scaler if alone.
Referenced by Partridge_Male::DailyMortality(), and Partridge_Female::DailyMortality().
|
static |
Adults - daily probability of non-explicitly modelled mortality in Spring.
Referenced by Partridge_Male::DailyMortality(), and Partridge_Female::DailyMortality().
|
static |
Adults - daily probability of non-explicitly modelled mortality in Summer.
Referenced by Partridge_Chick2::DailyMortality(), Partridge_Male::DailyMortality(), and Partridge_Female::DailyMortality().
|
static |
Adults - daily probability of non-explicitly modelled mortality in Winter.
Referenced by Partridge_Chick2::DailyMortality(), Partridge_Male::DailyMortality(), and Partridge_Female::DailyMortality().
|
static |
Unused.
Referenced by Partridge_Base::DailyMortality().
|
static |
Chick % mortality on cutting.
Referenced by Partridge_Chick::OnFarmEvent().
|
static |
Chick2 - scaler applied to adult mortalities.
3rd March 2008. Chick2 mortality is now a scaler applied to adult mort - so 1.0 = adult, 2.0 = double adult
Referenced by Partridge_Chick2::DailyMortality().
|
static |
Chick - daily probability of non-explicitly modelled mortality.
Referenced by Partridge_Chick::DailyMortality().
|
static |
Clutch % mortality on cutting.
Referenced by Partridge_Clutch::OnFarmEvent().
|
static |
Clutch - daily probability of non-explicitly modelled mortality.
Referenced by Partridge_Female::FIncubating(), and Partridge_Female::FLaying().
|
static |
Days taken to lay 1 egg.
Referenced by Partridge_Female::FLaying().
|
static |
Days used for nestbuilding.
Referenced by Partridge_Female::FBuildingUpResources().
|
static |
Food extraction rate.
The extraction rate includes the amount of insects removed per m2, plus assimilation efficiency to convert the g/insects/m2 to kcal available
Referenced by Partridge_Chick::ChDeveloping().
|
static |
Increasing hen predation with density (intercept)
Referenced by Partridge_Female::FIncubating().
|
static |
Increasing hen predation with density (slope)
Referenced by Partridge_Female::FIncubating().
|
static |
Female max daily movement.
According to Dick Potts: females stay closer to the covey than males so the female search area is much smaller than the males
Referenced by Partridge_Female::FFindingTerritory().
|
static |
Lenght of incubation period.
Referenced by Partridge_Clutch::ClDeveloping().
|
static |
Proportion of infertile eggs.
Referenced by Partridge_Clutch::ClDeveloping().
CfgInt cfg_par_last_brood_date("PAR_LAST_BROOD_DATE", CFG_CUSTOM, 180) |
Latest date for a reproduction attempt.
Referenced by Partridge_Female::FMakingNest(), Partridge_Female::FStartingNewBrood(), and Partridge_Population_Manager::Init().
CfgInt cfg_par_male_gives_up("PAR_MALE_GIVES_UP", CFG_CUSTOM, 170) |
Latest date a male will mate search.
Referenced by Partridge_Population_Manager::DoFirst(), and Partridge_Population_Manager::TestShouldFlock().
|
static |
The maximum flying distance for males.
Referenced by Partridge_Male::MFindingMate().
|
static |
Male mate searching radius.
Referenced by Partridge_Male::MFindingMate().
CfgInt cfg_par_mature_threshold("PAR_MATURE_THRESHOLD", CFG_CUSTOM, 84) |
Age at maturing in days.
Referenced by Partridge_Covey::BeginStep(), Partridge_Chick2::ChDeveloping(), and Partridge_Population_Manager::FillInFoodArray().
CfgInt cfg_par_max_lifespan("PAR_MAX_LIFESPAN", CFG_CUSTOM, 3650) |
Maximum physiological lifespan.
Referenced by Partridge_Female::Partridge_Female(), and Partridge_Male::Partridge_Male().
CfgInt cfg_par_max_terr_qual("PAR_MAX_TERR_QUAL", CFG_CUSTOM, 13000) |
The minimum territory quality needed in early season.
Referenced by Partridge_Population_Manager::Init().
CfgInt cfg_par_min_lifespan("PAR_MIN_LIFESPAN", CFG_CUSTOM, 1825) |
Minimum physiological lifespan.
Referenced by Partridge_Female::Partridge_Female(), and Partridge_Male::Partridge_Male().
|
static |
Minimum clutch size.
Referenced by Partridge_Female::FMakingNest(), and Partridge_Female::FStartingNewBrood().
CfgInt cfg_par_min_terr_qual("PAR_MIN_TERR_QUAL", CFG_CUSTOM, 6900) |
The minimum territory quality needed in late season.
Referenced by Partridge_Population_Manager::Init().
CfgInt cfg_par_start_dissolve |
The earliest covey dissolve date.
Definition at line 94 of file Partridge_Population_Manager.cpp.
Referenced by Partridge_Population_Manager::DoFirst(), Partridge_Female::FFindingTerritory(), Partridge_Population_Manager::Init(), Partridge_Male::MFindingMate(), and Partridge_Population_Manager::TestShouldFlock().
|
static |
Chick - no. days or negative energy before death.
Referenced by Partridge_Chick::ChDeveloping().
|
static |
The number of minutes daylight as a minimum before triggering egg-laying behaviour.
Referenced by Partridge_Female::FBuildingUpResources().
|
static |
Generates variation around the laying trigger.
Referenced by Partridge_Female::Partridge_Female().
double g_FoodNeed[200] |
Definition at line 65 of file Partridge_Population_Manager.cpp.
Referenced by Partridge_Chick::ChDeveloping().
Partridge_Population_Manager* g_manager |
Clutch mortality on soil cultivation.
Chick mortality on soil cultivation
Adult mortality on soil cultivation
Definition at line 150 of file Partridge_All.cpp.
int g_MaxWalk[200] |
Definition at line 66 of file Partridge_Population_Manager.cpp.
Referenced by Partridge_Chick::BeginStep(), Partridge_Chick2::BeginStep(), Partridge_Female::FCaringForYoung(), and Partridge_Male::MCaringForYoung().
double g_par_rainfactor |
Definition at line 63 of file Partridge_Population_Manager.cpp.
Referenced by Partridge_Chick::ChDeveloping(), and Partridge_Population_Manager::Init().
|
static |
Definition at line 151 of file Partridge_All.cpp.
Referenced by Partridge_Base::Partridge_Base().
boost::variate_generator<base_generator_type&, boost::uniform_real<> > g_rand_uni |
Referenced by Partridge_Clutch::ClDeveloping(), Partridge_Chick::DailyMortality(), Partridge_Chick2::DailyMortality(), Partridge_Male::DailyMortality(), Partridge_Female::DailyMortality(), Partridge_Female::FIncubating(), Partridge_Female::FLaying(), Partridge_Female::OnClutchMown(), Partridge_Clutch::OnFarmEvent(), Partridge_Chick::OnFarmEvent(), Partridge_Chick2::OnFarmEvent(), Partridge_Male::OnFarmEvent(), and Partridge_Female::OnFarmEvent().