ALMaSS
1.2 (after EcoStack, March 2024)
The Animal, Landscape and Man Simulation System
|
#include <string.h>
#include <cmath>
#include <vector>
#include <algorithm>
#include <iostream>
#include <fstream>
#include "../Landscape/ls.h"
#include "../BatchALMaSS/PopulationManager.h"
#include "../BatchALMaSS/AOR_Probe.h"
#include "../Skylark/skylarks_all.h"
#include "../Skylark/skylarks_toletov.h"
Macros | |
#define | __CJTDebug_7 |
Functions | |
bool | CompareDist (const APoint i, const APoint j) |
#define __CJTDebug_7 |
References APoint::m_y.
Referenced by SkTerritories::GetTerritoriesByDistance().
|
static |
Referenced by Skylark_Population_Manager::LoadParameters().
const double Breed_Res_Thresh2 = Breed_Res_Thresh1 * 4 |
const double Breed_Temp_Thresh = 5.0 |
Referenced by Skylark_Female::st_BuildingUpResources().
const double CE_nest[15] |
Referenced by Skylark_Nestling::On_FoodSupply().
CfgInt cfg_adultreturnmort |
Immigration mortality for juveniles.
Referenced by Skylark_Population_Manager::DoFirst().
CfgBool cfg_AorOutput_used |
Referenced by Population_Manager::Run(), and Population_Manager::~Population_Manager().
CfgInt cfg_Breed_Res_Thresh1 |
Referenced by Skylark_Population_Manager::LoadParameters().
CfgInt cfg_CatastropheEventStartYear |
The first year for catastrophes
Referenced by Skylark_Population_Manager::Catastrophe().
CfgBool cfg_CfgRipleysOutputUsed |
Referenced by Population_Manager::Run(), and Population_Manager::~Population_Manager().
CfgInt cfg_ClutchMortProb |
Referenced by Skylark_Population_Manager::LoadParameters().
CfgFloat cfg_ConversionEffReduc |
CfgFloat cfg_Cooling_Rate_Eggs |
Maximum immigration mortality for females.
Minimum immigration mortality for females
Maximum immigration mortality for males
Minimum immigration mortality for males
Referenced by Skylark_Population_Manager::LoadParameters().
CfgFloat cfg_densityconstant_a |
Referenced by Skylark_Population_Manager::LoadParameters().
CfgFloat cfg_densityconstant_b |
Referenced by Skylark_Population_Manager::LoadParameters().
CfgInt cfg_densityconstant_c |
Referenced by Skylark_Population_Manager::LoadParameters().
CfgFloat cfg_EggTemp |
Referenced by Skylark_Population_Manager::LoadParameters().
CfgFloat cfg_EM_Nestling_a |
CfgFloat cfg_EM_Nestling_b |
CfgInt cfg_fecundity_reduc |
CfgInt cfg_fecundity_reduc_chance |
CfgFloat cfg_FemaleMinTerritoryAcceptScore |
CfgInt cfg_FoodTripsPerDay |
Referenced by Skylark_Population_Manager::LoadParameters().
CfgFloat cfg_heightconstant_a |
Referenced by Skylark_Population_Manager::LoadParameters().
CfgFloat cfg_heightconstant_b |
Referenced by Skylark_Population_Manager::LoadParameters().
CfgInt cfg_heightconstant_c |
Referenced by Skylark_Population_Manager::LoadParameters().
CfgFloat cfg_hindconstantD_b |
Referenced by Skylark_Population_Manager::LoadParameters().
CfgFloat cfg_hindconstantH_b |
Referenced by Skylark_Population_Manager::LoadParameters().
CfgInt cfg_HQualityBareEarth |
Referenced by Skylark_Population_Manager::LoadParameters().
CfgInt cfg_HQualityHedge |
Referenced by Skylark_Population_Manager::LoadParameters().
CfgInt cfg_HQualityHedgeScrub |
Referenced by Skylark_Population_Manager::LoadParameters().
CfgInt cfg_HQualityMetalRoad |
Referenced by Skylark_Population_Manager::LoadParameters().
CfgInt cfg_HQualityNeutral |
Referenced by Skylark_Population_Manager::LoadParameters().
CfgInt cfg_HQualityOpenTallVeg |
Referenced by Skylark_Population_Manager::LoadParameters().
CfgInt cfg_HQualityTall |
Referenced by Skylark_Population_Manager::LoadParameters().
CfgInt cfg_HQualityTall2 |
Referenced by Skylark_Population_Manager::LoadParameters().
CfgInt cfg_HQualityTallVeg |
Referenced by Skylark_Population_Manager::LoadParameters().
CfgInt cfg_HQualityTrack |
Referenced by Skylark_Population_Manager::LoadParameters().
CfgInt cfg_HQualityVeg30cm |
Referenced by Skylark_Population_Manager::LoadParameters().
CfgInt cfg_HQualityWater |
Referenced by Skylark_Population_Manager::LoadParameters().
CfgInt cfg_insecticide_direct_mortE |
Referenced by Skylark_Clutch::OnFarmEvent().
CfgInt cfg_insecticide_direct_mortF |
Referenced by Skylark_Female::OnFarmEvent().
CfgInt cfg_insecticide_direct_mortM |
Referenced by Skylark_Male::OnFarmEvent().
CfgInt cfg_insecticide_direct_mortN |
Referenced by Skylark_Nestling::OnFarmEvent().
CfgInt cfg_insecticide_direct_mortP |
Referenced by Skylark_PreFledgeling::OnFarmEvent().
CfgInt cfg_juvreturnmort |
Immigration mortality for juveniles.
Referenced by Skylark_Population_Manager::Skylark_Population_Manager().
CfgFloat cfg_MaleSplitScale |
Referenced by SkTerritories::Split().
CfgFloat cfg_maxfeedrain |
Referenced by Skylark_Population_Manager::LoadParameters().
CfgFloat cfg_MD_Threshold |
Referenced by Skylark_Population_Manager::LoadParameters().
CfgFloat cfg_MeanExtractionRatePerMinute |
Referenced by Skylark_Population_Manager::LoadParameters().
CfgFloat cfg_MeanHatchingWeight |
Referenced by Skylark_Population_Manager::LoadParameters().
CfgFloat cfg_MinDaysToHatch |
The time taken to egg hatch under optimal conditions.
Referenced by Skylark_Population_Manager::LoadParameters().
CfgInt cfg_NestLeavingChance |
Referenced by Skylark_Nestling::ReInit(), and Skylark_Nestling::Skylark_Nestling().
CfgFloat cfg_NestLeavingWeight |
Referenced by Skylark_Population_Manager::LoadParameters().
CfgInt cfg_NestlingMortProb |
Referenced by Skylark_Population_Manager::LoadParameters().
CfgFloat cfg_NestPlacementMinQual |
Referenced by Skylark_Population_Manager::LoadParameters().
CfgInt cfg_PatchyPremium |
Referenced by Skylark_Population_Manager::LoadParameters().
CfgFloat cfg_PEmax |
CfgInt cfg_PmEventfrequency |
The frequency of catastrophes
Referenced by Skylark_Population_Manager::Catastrophe().
CfgInt cfg_PmEventsize |
The size of catastrophes
Referenced by Skylark_Population_Manager::Catastrophe().
CfgInt cfg_PreFledgeMortProb |
Referenced by Skylark_Population_Manager::LoadParameters().
CfgInt cfg_rainhindpow |
Referenced by Skylark_Population_Manager::LoadParameters().
CfgBool cfg_ReallyBigOutputMonthly_used |
CfgBool cfg_ReallyBigOutputUsed |
Raw data for spatial output for calculating Ripley's spatial statistics with additional information about habitat and physiology
Referenced by Skylark_Population_Manager::Init(), Population_Manager::Run(), and Population_Manager::~Population_Manager().
CfgFloat cfg_ReturnProbability |
Used to change the timing of start of arrival in the landscape.
Referenced by Skylark_Female::st_Emigrating(), and Skylark_Male::st_Emigrating().
CfgFloat cfg_SK_hindrance_scale |
CfgFloat cfg_sk_triplength |
Referenced by Skylark_Clutch::st_Developing().
CfgFloat cfg_SkScrapesPremiumII |
CfgInt cfg_SkStartNos |
The number of skylarks that start in the simulation.
Parameters under control of the config file *******************
Referenced by Skylark_Population_Manager::Init().
CfgInt cfg_SkTramlinesPremium |
CfgFloat cfg_Skylark_female_Biodegredation |
The proportion of pesticide remaining from one day to the next for females.
CfgFloat cfg_Skylark_female_NOEL |
Can be used to trigger a response to pesticides for the females.
CfgFloat cfg_Skylark_male_Biodegredation |
The proportion of pesticide remaining from one day to the next for males.
CfgFloat cfg_Skylark_male_NOEL |
Can be used to trigger a response to pesticides for the males.
CfgFloat cfg_Skylark_nestling_Biodegredation |
The proportion of pesticide accumulated from one day to the next.
CfgFloat cfg_Skylark_nestling_NOEL |
Can be used to trigger a response to pesticides for the nestlings.
CfgFloat cfg_skylark_pesticide_eggshellreduction |
The proportion of eggs assumed to crack from pesticide effects.
Referenced by Skylark_Female::st_Laying().
CfgBool cfg_skylark_pesticide_eggshellreduction_perclutch |
If true egg shell reduction works at clutch level, if false it is considered per egg.
Referenced by Skylark_Female::st_Laying().
CfgFloat cfg_skylark_pesticide_globaleggshellreduction |
The proportion of eggs assumed to crack from pesticide effects as a global effect.
Referenced by Skylark_Female::st_Laying().
CfgFloat cfg_Skylark_prefledegling_Biodegredation |
The proportion of pesticide remaining from one day to the next for prefledglings.
CfgFloat cfg_Skylark_prefledegling_NOEL |
Used for determining the pesticide response for prefledglings.
CfgInt cfg_SkylarkFirstBreedingDate |
The date at which breeding start can happen.
Referenced by Skylark_Female::st_BuildingUpResources().
CfgInt cfg_strigling_clutch |
Referenced by Skylark_Clutch::OnFarmEvent().
CfgInt cfg_strigling_nestling |
Referenced by Skylark_Nestling::OnFarmEvent().
CfgInt cfg_strigling_preflg |
CfgInt cfg_temphindpow |
Referenced by Skylark_Population_Manager::LoadParameters().
CfgFloat cfg_tramline_foraging |
Referenced by Skylark_Adult::GetVegHindrance(), and Skylark_Population_Manager::LoadParameters().
|
static |
Referenced by Skylark_Population_Manager::LoadParameters(), and Skylark_Clutch::st_Developing().
|
static |
Referenced by Skylark_Population_Manager::LoadParameters(), and Skylark_Clutch::st_Developing().
double DensityScore[111] |
Referenced by Skylark_Population_Manager::LoadParameters(), and SkTerritories::PrePolyNQual().
|
static |
Referenced by Skylark_Population_Manager::LoadParameters(), and Skylark_Clutch::st_Developing().
const double EM_coldblood1 = 0.4257 |
const double EM_coldblood2 = 0.482 |
const double EM_nest_T[14] |
Referenced by Skylark_Nestling::st_Developing().
const double EM_warmblood1 = 0.3456 |
const double EM_warmblood2 = 5.9856 |
const double ExtraBroodHeat = 2.4 / KcalPerGInsect |
double FemaleNestAcceptScore |
Referenced by Skylark_Population_Manager::LoadParameters().
|
static |
Landscape* g_land |
Referenced by Skylark_Population_Manager::BreedingPairsOutput(), Skylark_Nestling::EndStep(), Skylark_PreFledgeling::EndStep(), SkTerritories::EvaluateHabitatN(), Skylark_Population_Manager::Init(), not_nest_friendly(), Skylark_Male::OnAddPreFledgeling(), Skylark_Female::OnClutchDeath(), Skylark_Male::OnEggHatch(), Skylark_Female::OnEggsHatch(), Skylark_Clutch::OnFarmEvent(), Skylark_Nestling::OnFarmEvent(), Skylark_PreFledgeling::OnFarmEvent(), Skylark_Female::OnFarmEvent(), Skylark_Male::OnFarmEvent(), Skylark_Male::OnNestlingDeath(), Skylark_Male::OnPreFledgelingDeath(), MRR_Data::OutputToFile(), SkTerritories::PreFillQualGrid(), SkTerritories::PrePoly2Qual(), SkTerritories::PrePolyNQual(), Skylark_Female::st_Dying(), Skylark_Male::st_Dying(), Skylark_Clutch::st_Hatching(), Skylark_Clutch::Step(), Skylark_Nestling::Step(), Skylark_PreFledgeling::Step(), Skylark_Female::Step(), Skylark_Male::Step(), skTTerritory::TestNestPossibility(), and Pesticide::Tick().
CfgInt g_map_maxpolyref |
This is the maximum polygon reference number allowed in the 'a_polyfile' and 'a_mapfile' supplied to the Landscape object constructor.
int g_stopdate = July + 14 |
Referenced by Skylark_Female::OnMateDying(), Skylark_Male::OnMateDying(), Skylark_Female::OnMateHomeless(), Skylark_Male::OnMateLeaving(), Skylark_Male::st_AttractingAMate(), Skylark_Female::st_BuildingUpResources(), Skylark_Female::st_CaringForYoung(), Skylark_Female::st_Emigrating(), Skylark_Male::st_Emigrating(), Skylark_Female::st_Floating(), Skylark_Male::st_Floating(), Skylark_Female::st_PreparingForBreeding(), and Skylark_Female::st_StartingNewBrood().
double HeightScore[111] |
Referenced by Skylark_Population_Manager::LoadParameters(), and SkTerritories::PrePolyNQual().
const int HomeRangeDiameter = 280 |
const int HomeRangeDiameterDiv20 = 14 |
Referenced by SkTerritories::PreFillTerrPolyLists().
int HQualityBareEarth = 0 |
int HQualityGood = 30 |
int HQualityHedge = -1050 |
int HQualityHedgeScrub = 0 |
int HQualityMetalRoad = -10 |
int HQualityNeutral = 0 |
Referenced by Skylark_Population_Manager::LoadParameters().
int HQualityOpenTallVeg = 16 |
Referenced by Skylark_Population_Manager::LoadParameters().
int HQualityTall = 0 |
int HQualityTall2 = -1000 |
int HQualityTallVeg = 1 |
int HQualityTrack = 10 |
Referenced by Skylark_Population_Manager::LoadParameters().
int HQualityVeg30cm = 11 |
Referenced by Skylark_Population_Manager::LoadParameters().
int HQualityWater = 0 |
double IsTramline |
Referenced by Skylark_Population_Manager::LoadParameters().
int JuvenileReturnMort |
const double KcalPerGInsect = 5.0 |
const double KcalPerGInsect_inv = 1.0 / KcalPerGInsect |
const double KcalPerGInsect_kg_inv = KcalPerGInsect_inv / 1000.0 |
Referenced by Skylark_Female::GetFood(), and Skylark_Male::GetFood().
double MaxFeedRain |
|
static |
Referenced by Skylark_Population_Manager::LoadParameters(), and Skylark_Clutch::st_Developing().
|
static |
Referenced by Skylark_Population_Manager::LoadParameters(), and Skylark_Clutch::st_Developing().
|
static |
|
static |
|
static |
Referenced by Skylark_Population_Manager::LoadParameters(), and Skylark_Nestling::st_Developing().
|
static |
Referenced by Skylark_Population_Manager::LoadParameters(), and Skylark_Nestling::st_Developing().
double NestPlacementMinQual = 15 |
The minimum quality for nest placement.
Referenced by Skylark_Population_Manager::LoadParameters().
double NotTramline |
Referenced by Skylark_Population_Manager::LoadParameters().
int PatchyPremium = 10 |
|
static |
Referenced by Skylark_Population_Manager::LoadParameters(), and Skylark_PreFledgeling::st_Developing().
double RainHindrance[21] |
Referenced by Skylark_Adult::GetWeatherHindrance(), and Skylark_Population_Manager::LoadParameters().
const string SimulationName = "Skylark" |
FILE* StriglingMort |
double TempHindrance[31] |
Referenced by Skylark_Adult::GetWeatherHindrance(), and Skylark_Population_Manager::LoadParameters().
double TerrHeterogeneity[1000] |
const int terrnos[6] = {0, 1, 2, 4, 5, 10} |
const int terrsize[6] = {0, 500, 250, 125, 100, 50} |
int TramlinePremium = 5 |
double VegHindranceD[111] |
Referenced by Skylark_Adult::GetVegHindrance(), and Skylark_Population_Manager::LoadParameters().
double VegHindranceH[111] |
Referenced by Skylark_Adult::GetVegHindrance(), and Skylark_Population_Manager::LoadParameters().
const double VegQuality[31] |
const double VeryHighDensityVeg = 2200.0 |
double XFNestAcceptScore |