ALMaSS Partridge ODdox
1.1
The partridge model description following ODdox protocol
|
Partridge_Population_Manager.cpp This file contains the code for the partridge population manager class
More...
#include <cmath>
#include <string.h>
#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"
#include "../BatchALMaSS/AOR_Probe.h"
Go to the source code of this file.
Functions | |
void | FloatToDouble (double &, float) |
Variables | |
double | g_par_rainfactor |
double | g_FoodNeed [200] |
int | g_MaxWalk [200] |
const int | DissolveChance [40] |
CfgInt | cfg_pm_eventfrequency |
CfgInt | cfg_pm_eventsize |
CfgInt | cfg_par_start_dissolve |
The earliest covey dissolve date. More... | |
CfgInt | cfg_par_last_brood_date |
Latest date for a reproduction attempt. More... | |
CfgInt | cfg_par_max_terr_qual |
The minimum territory quality needed in early season. More... | |
CfgInt | cfg_par_min_terr_qual |
The minimum territory quality needed in late season. More... | |
CfgBool | cfg_ReallyBigOutputMonthly_used |
CfgBool | cfg_RipleysOutput_used |
CfgBool | cfg_AOROutput_used |
CfgInt | cfg_nest_hedgebank0 |
Nesting quality for hedgebank type 0. More... | |
CfgInt | cfg_nest_hedgebank1 |
Nesting quality for hedgebank type 1. More... | |
CfgInt | cfg_nest_hedgebank2 |
Nesting quality for hedgebank type 2. More... | |
CfgInt | cfg_par_male_gives_up |
Latest date a male will mate search. More... | |
CfgInt | cfg_par_mature_threshold |
Age at maturing in days. More... | |
CfgBool | cfg_ReallyBigOutput_used |
CfgBool | cfg_BeetleBankInvert |
CfgInt | cfg_BeetleBankMinX |
CfgInt | cfg_BeetleBankMaxX |
CfgInt | cfg_BeetleBankMinY |
CfgInt | cfg_BeetleBankMaxY |
static CfgFloat | cfg_par_rainfactor ("PAR_RAINFACTOR", CFG_CUSTOM, 0.2) |
Increase in energy requirement with rainfall. More... | |
static CfgFloat | cfg_rainscaling ("PAR_RAINSCALING", CFG_CUSTOM, 0.767) |
Correction for using rainfall penalty. More... | |
static CfgInt | cfg_springcensusdate ("PAR_SPRINGCENSUSDATE", CFG_CUSTOM, March+21) |
Probe date. More... | |
static CfgInt | cfg_Emigration ("PAR_EMIGRATION", CFG_CUSTOM, 1) |
Loss due to emmigration (out of 10000) More... | |
CfgInt | cfg_IndividualEmigration ("PAR_INDIVIDUALEMIGRATION", CFG_CUSTOM, 3500) |
Emigration rate of alone individuals (of 10000) More... | |
static CfgInt | cfg_MaleImmigration ("PAR_MALEIMMIGRATION", CFG_CUSTOM, 0) |
unused More... | |
static CfgInt | cfg_ParHuntingThreshold ("PAR_HUNTINGTHRESHOLD", CFG_CUSTOM, 1) |
Number of birds at which hunting starts. More... | |
static CfgInt | cfg_ParHuntingGridSize ("PAR_HUNTINGGRIDSIZE", CFG_CUSTOM, 1000) |
Size if hunting grid (m) More... | |
static CfgInt | cfg_ParHuntingType ("PAR_HUNTINGTYPE", CFG_CUSTOM, 1) |
0 if global hunting, else threshold More... | |
static CfgInt | cfg_ParShootStartYear ("PAR_SHOOTSTARTYEAR", CFG_CUSTOM, 1) |
First year with hunting. More... | |
static CfgInt | cfg_ParShotMin ("PAR_SHOTPERCENTAGE_MIN", CFG_CUSTOM, 1500) |
Minimum% shot. More... | |
static CfgInt | cfg_ParShotMax ("PAR_SHOTPERCENTAGE_MAX", CFG_CUSTOM, 1500) |
Maximum% shot. More... | |
static CfgFloat | cfg_HindranceScalingFactor ("PAR_HINDRANCE_SCALING", CFG_CUSTOM, 1000) |
Used to scale biomass hindrance. More... | |
static CfgInt | cfg_StartingNumberMalePartridges ("PAR_STARTING_NO_MALES", CFG_CUSTOM, 10000) |
Start no of male partridges. More... | |
static CfgInt | cfg_StartingNumberFemalePartridges ("PAR_STARTING_NO_FEMALES", CFG_CUSTOM, 10000) |
Start no of female partridges. More... | |
static CfgInt | cfg_FemalePopSizeMaxCutoff ("PAR_FEMMAXPOPSIZECUTOFF", CFG_CUSTOM, 7000) |
Point at which the simulation is terminated due to excessive population size. More... | |
static CfgFloat | cfg_par_energyslope_perday ("PAR_ENERGYSLOPE_PERDAY", CFG_CUSTOM, 1.06) |
Slope of linear increase in energy needs of chicks. More... | |
static CfgInt | cfg_flockdata_date ("PAR_FLOCKDATA_DATE", CFG_CUSTOM, 270) |
Date when birds start to flock. More... | |
static CfgInt | cfg_breedingpairs_date ("PAR_BREEDINGPAIRS_DATE", CFG_CUSTOM, 90) |
Probe date. More... | |
static CfgInt | cfg_unpaireddata_date ("PAR_UNPAIREDDATA_DATE", CFG_CUSTOM, 150) |
Probe date. More... | |
static CfgInt | cfg_kfactoroutput_date ("PAR_KFACTOROUTPUT_DATE", CFG_CUSTOM, 90) |
Probe date. More... | |
CfgInt | cfg_ParHuntingBeetleBankArea ("PAR_HUNTING_BEETLEBANKAREA", CFG_CUSTOM, 500) |
The hunting rate in beetle bank areas. More... | |
Partridge_Population_Manager.cpp This file contains the code for the partridge population manager class
by Chris J. Topping
Version of 15th October 2008
All rights reserved.
Doxygen formatted comments in October 2008
Code by Chris Topping
Definition in file Partridge_Population_Manager.cpp.
void FloatToDouble | ( | double & | , |
float | |||
) |
CfgBool cfg_AOROutput_used |
CfgBool cfg_BeetleBankInvert |
CfgInt cfg_BeetleBankMaxX |
CfgInt cfg_BeetleBankMaxY |
CfgInt cfg_BeetleBankMinX |
CfgInt cfg_BeetleBankMinY |
|
static |
Probe date.
Referenced by Partridge_Population_Manager::DoAlmostLast().
|
static |
Loss due to emmigration (out of 10000)
Referenced by Partridge_Population_Manager::DoFirst().
|
static |
Point at which the simulation is terminated due to excessive population size.
Referenced by Partridge_Population_Manager::DoFirst().
|
static |
Date when birds start to flock.
Referenced by Partridge_Population_Manager::DoAlmostLast().
|
static |
Used to scale biomass hindrance.
CfgInt cfg_IndividualEmigration("PAR_INDIVIDUALEMIGRATION", CFG_CUSTOM, 3500) |
Emigration rate of alone individuals (of 10000)
Referenced by Partridge_Covey::CoveyIndividualEmigrate().
|
static |
Probe date.
|
static |
unused
Referenced by Partridge_Population_Manager::MaleImmigration().
CfgInt cfg_nest_hedgebank0 |
Nesting quality for hedgebank type 0.
Referenced by Partridge_Population_Manager::EvalHabitatQual(), Partridge_Covey::HabitatEvalPoly(), and Partridge_Covey::NestGoodSpot().
CfgInt cfg_nest_hedgebank1 |
Nesting quality for hedgebank type 1.
Referenced by Partridge_Population_Manager::EvalHabitatQual(), Partridge_Covey::HabitatEvalPoly(), and Partridge_Covey::NestGoodSpot().
CfgInt cfg_nest_hedgebank2 |
Nesting quality for hedgebank type 2.
Referenced by Partridge_Population_Manager::EvalHabitatQual(), Partridge_Covey::HabitatEvalPoly(), and Partridge_Covey::NestGoodSpot().
|
static |
Slope of linear increase in energy needs of chicks.
Referenced by Partridge_Population_Manager::FillInFoodArray().
CfgInt cfg_par_last_brood_date |
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 |
Latest date a male will mate search.
Referenced by Partridge_Population_Manager::DoFirst(), and Partridge_Population_Manager::TestShouldFlock().
CfgInt cfg_par_mature_threshold |
Age at maturing in days.
Referenced by Partridge_Chick2::ChDeveloping(), and Partridge_Population_Manager::FillInFoodArray().
CfgInt cfg_par_max_terr_qual |
The minimum territory quality needed in early season.
Referenced by Partridge_Population_Manager::Init().
CfgInt cfg_par_min_terr_qual |
The minimum territory quality needed in late season.
Referenced by Partridge_Population_Manager::Init().
|
static |
Increase in energy requirement with rainfall.
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().
CfgInt cfg_ParHuntingBeetleBankArea("PAR_HUNTING_BEETLEBANKAREA", CFG_CUSTOM, 500) |
The hunting rate in beetle bank areas.
Referenced by Partridge_Population_Manager::HuntingDifferentiatedBeetleBankArea().
|
static |
Size if hunting grid (m)
Referenced by Partridge_Population_Manager::HuntingGrid().
|
static |
Number of birds at which hunting starts.
Referenced by Partridge_Population_Manager::HuntingGrid().
|
static |
0 if global hunting, else threshold
Referenced by Partridge_Population_Manager::DoAfter().
|
static |
First year with hunting.
Referenced by Partridge_Population_Manager::DoAfter().
|
static |
Maximum% shot.
Referenced by Partridge_Population_Manager::DoAfter().
|
static |
Minimum% shot.
Referenced by Partridge_Population_Manager::DoAfter().
CfgInt cfg_pm_eventfrequency |
Referenced by Partridge_Population_Manager::Catastrophe().
CfgInt cfg_pm_eventsize |
Referenced by Partridge_Population_Manager::Catastrophe().
|
static |
Correction for using rainfall penalty.
Referenced by Partridge_Population_Manager::FillInFoodArray().
CfgBool cfg_ReallyBigOutput_used |
CfgBool cfg_ReallyBigOutputMonthly_used |
CfgBool cfg_RipleysOutput_used |
Probe date.
Referenced by Partridge_Population_Manager::DoFirst().
|
static |
Start no of female partridges.
Referenced by Partridge_Population_Manager::Init().
|
static |
Start no of male partridges.
Referenced by Partridge_Population_Manager::Init().
|
static |
Probe date.
Referenced by Partridge_Population_Manager::DoAlmostLast().
const int DissolveChance[40] |
Definition at line 71 of file Partridge_Population_Manager.cpp.
double g_FoodNeed[200] |
Definition at line 65 of file Partridge_Population_Manager.cpp.
Referenced by Partridge_Covey::BeginStep(), Partridge_Chick::ChDeveloping(), and Partridge_Population_Manager::FillInFoodArray().
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(), Partridge_Population_Manager::FillInFoodArray(), 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().