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
|
#include <skylarks_all.h>
|
void | CreateObjects (int ob_type, TAnimal *pTAo, void *null, Skylark_struct *data, int number) |
|
virtual void | Init (void) |
|
void | WriteSKPOM1 (const int n, const int n2) const |
|
void | WriteSKPOM2 (const int n, const int n2) const |
|
int | SupplyM_Mig_Mort () const |
|
int | SupplyF_Mig_Mort () const |
|
int | SupplyNoTerritories () const |
|
int | TheSkylarkTerrsSupply_x (int) const |
|
int | TheSkylarkTerrsSupply_y (int) const |
|
int | TheSkylarkTerrsSupply_size (int) const |
|
int | TheSkylarkTerrsSupply_quality (int) const |
|
void | SetM_Mig_Mort (const int m) |
|
void | SetF_Mig_Mort (const int m) |
|
| Skylark_Population_Manager (Landscape *L) |
|
| ~Skylark_Population_Manager (void) override |
|
int | TheFledgelingProbe () override |
|
void | BreedingPairsOutput (int Time) override |
|
void | FledgelingProbeOutput (int Total, int Time) override |
|
int | TheBreedingFemalesProbe (int ProbeNo) override |
|
bool | OpenTheBreedingPairsProbe () override |
|
bool | OpenTheFledgelingProbe () override |
|
void | incNoFledgeDeaths () |
|
void | incNoChickDeaths () |
|
void | incNoPestEffects () |
|
void | incTotalEggs (const int eggs) |
|
void | incTotalNestlings () |
|
void | incTotalPrefledgelings () |
|
void | AddStriglingMort (const int lifestage) |
|
double | SupplyEMi () const |
|
bool | IsBadWeather () const |
|
bool | OpenTheBreedingSuccessProbe () override |
|
void | BreedingSuccessProbeOutput (double, int, int, int, int, int, int, int) override |
|
int | TheBreedingSuccessProbe (int &BreedingFemales, int &YoungOfTheYear, int &TotalPop, int &TotalFemales, int &TotalMales, int &BreedingAttempts) override |
|
void | TheAOROutputProbe () override |
|
virtual void | TheRipleysOutputProbe (FILE *a_prb) |
|
| Population_Manager (Landscape *a_l_ptr, int a_numberLifeStages=12) |
|
virtual | ~Population_Manager (void) |
|
void | SetNoProbesAndSpeciesSpecificFunctions (int a_pn) override |
| Sets up probe and species specifics. More...
|
|
void | OpenTheAOROutputProbe (const string &a_AORFilename) override |
| Opens the AOR output file. More...
|
|
unsigned | GetLiveArraySize (int a_listindex) override |
| Gets the number of 'live' objects for a list index in the TheArray. More...
|
|
unsigned | GetPopulationSize (int a_listindex) override |
| Gets the number of species objects by default it is the same as LiveArray, however it could be different. This function should be used/overriden when we are interested in the number of the objects for presentation and not in inner maintenance of the PopulationManager and or TheArray. More...
|
|
void | IncLiveArraySize (int a_listindex) |
| Increments the number of 'live' objects for a list index in the TheArray. More...
|
|
unsigned int | FarmAnimalCensus (unsigned int a_farm, unsigned int a_typeofanimal) |
|
char * | SpeciesSpecificReporting (int a_species, int a_time) override |
|
char * | ProbeReport (int a_time) |
|
char * | ProbeReportTimed (int a_time) |
|
void | ImpactProbeReport (int a_Time) |
|
bool | BeginningOfMonth () |
|
void | LOG (const char *fname) |
|
int | SupplyStepSize () const |
|
void | Run (int NoTSteps) override |
|
virtual unsigned | Probe (int ListIndex, Probe_Data *p_TheProbe) |
|
virtual void | ImpactedProbe () |
|
virtual TAnimal * | SupplyAnimalPtr (unsigned int a_index, unsigned int a_animal) |
| Returns the pointer indexed by a_index and a_animal. Note NO RANGE CHECK. More...
|
|
virtual unsigned | SupplyListIndexSize () |
|
unsigned | SupplyListSize (unsigned listindex) const |
|
void | PushIndividual (const unsigned a_listindex, TAnimal *a_individual_ptr) |
|
const char * | SupplyStateNames (int i) const |
|
unsigned | SupplyStateNamesLength () const |
|
virtual void | DisplayLocations () |
|
TAnimal * | FindIndividual (unsigned Type, TAnimal *a_me) |
|
virtual TAnimal * | FindClosest (int x, int y, unsigned Type, TAnimal *a_me) |
|
omp_nest_lock_t * | GetGuardMapElement (unsigned a_x_index, unsigned a_y_index) |
| Return the guard map cell. More...
|
|
void | SetGuardMapElement (unsigned a_x_index, unsigned a_y_index) |
| Set the given guard map cell. More...
|
|
void | UnsetGuardMapElement (unsigned a_x_index, unsigned a_y_index) |
| Unset the given guard map cell. More...
|
|
void | UpdateGuardMap (int a_x, int a_y, int &a_index_x, int &a_index_y) |
| Get the index of the guard map for the given location. More...
|
|
bool | OpenTheRipleysOutputProbe () |
|
bool | OpenTheMonthlyRipleysOutputProbe () |
|
bool | OpenTheReallyBigProbe () |
|
virtual void | TheRipleysOutputProbe (ofstream *a_prb) |
| Special output functionality. More...
|
|
virtual void | TheReallyBigOutputProbe () |
|
void | CloseTheMonthlyRipleysOutputProbe () const |
|
virtual void | CloseTheRipleysOutputProbe () |
|
virtual void | CloseTheReallyBigOutputProbe () |
|
TTypesOfPopulation | GetPopulationType () |
|
int | GetSeasonNumber () |
| Get the season number. More...
|
|
void | LamdaDeath (int x, int y) |
|
void | LamdaBirth (int x, int y) |
|
void | LamdaBirth (int x, int y, int z) |
|
void | LamdaClear () |
|
void | LamdaDumpOutput () |
|
virtual int | SupplyPegPosx (int) |
|
virtual int | SupplyPegPosy (int) |
|
virtual int | SupplyCovPosx (int) |
|
virtual int | SupplyCovPosy (int) |
|
virtual void | TheGeneticProbe (unsigned, int, unsigned &) |
|
virtual void | GeneticsResultsOutput (FILE *, unsigned) |
|
void | Debug_Shuffle (unsigned int Type) |
|
virtual void | RunStepMethods () |
|
| Population_Manager_Base (Landscape *L) |
| The Population_Manager_Base constructor. More...
|
|
virtual void | Catastrophe (int) |
| Must be re-implemented in descendent classes. More...
|
|
int | SupplySimW () const |
| Returns landscape width in m. More...
|
|
int | SupplySimH () const |
| Returns landscape height in m. More...
|
|
int | SupplySimWH () const |
| Returns half the landscape width in m. More...
|
|
int | SupplySimHH () const |
| Returns half the landscape height in m. More...
|
|
virtual int | ProbeFileInput (char *p_Filename, int p_ProbeNo) |
| A stub to build specfic probes and functions. More...
|
|
int | SupplyListNameLength () const |
|
const char * | SupplyListName (int a_i) const |
| Get a list name from the list. More...
|
|
virtual void | SupplyLocXY (unsigned, unsigned, int &, int &) |
| A stub for identifying an individual at a location. More...
|
|
virtual TAnimal * | FindClosest (int, int, unsigned) |
| A stub for identifying an individual at a location. More...
|
|
std::string | SupplySimulationName () |
|
void | SetStepCounterInADay (int a_counter) |
| Set step counter in a day. More...
|
|
int | GetStepCounterInADay (void) |
| Return the sep counter in a day. More...
|
|
virtual double | GetAphidDensity (int, int) |
| Return the aphid density, it is only used when aphid simulations are running. More...
|
|
◆ Skylark_Population_Manager()
Skylark_Population_Manager::Skylark_Population_Manager |
( |
Landscape * |
L | ) |
|
◆ ~Skylark_Population_Manager()
Skylark_Population_Manager::~Skylark_Population_Manager |
( |
void |
| ) |
|
|
override |
◆ AddStriglingMort()
void Skylark_Population_Manager::AddStriglingMort |
( |
const int |
lifestage | ) |
|
|
inline |
◆ BreedingPairsOutput()
void Skylark_Population_Manager::BreedingPairsOutput |
( |
int |
Time | ) |
|
|
overridevirtual |
Reimplemented from Population_Manager.
719 FILE* MyFile = fopen(
"BreedingPairs.txt",
"a");
722 g_msg->
Warn(
WARN_FILE,
"Skylark_Population_Manager::BreedingPairsOutput():",
"Cannot open file for append: BreedingPairs.txt");
728 for (
int j = 0; j < szf; j++)
739 case toss_BuildingUpResources:
740 case toss_PreparingForBreeding:
741 case toss_MakingNest:
743 case toss_EggHatching:
744 case toss_Incubating:
745 case toss_FCaringForYoung:
754 fprintf(MyFile,
"%d\t%d\t%d\t%d\n", time, no, szf, szm);
References g_land, g_msg, Population_Manager::GetLiveArraySize(), Population_Manager::SupplyAnimalPtr(), Landscape::SupplyFarmOwner(), MapErrorMsg::Warn(), and WARN_FILE.
◆ BreedingSuccessProbeOutput()
void Skylark_Population_Manager::BreedingSuccessProbeOutput |
( |
double |
No, |
|
|
int |
BreedingFemales, |
|
|
int |
YoungOfTheYear, |
|
|
int |
TotalPop, |
|
|
int |
TotalFemales, |
|
|
int |
TotalMales, |
|
|
int |
time, |
|
|
int |
BreedingAttempts |
|
) |
| |
|
overridevirtual |
Reimplemented from Population_Manager.
791 FILE* MyFile = fopen(
"BreedingSuccess.txt",
"a");
794 g_msg->
Warn(
WARN_FILE,
"Skylark_Population_Manager::BreedingAttemptsOutput():",
"Cannot open file for append: BreedingAttempts.txt");
798 const double floaters = (TotalPop - (YoungOfTheYear + BreedingFemales * 2)) / static_cast<double>(TotalPop - YoungOfTheYear);
803 fprintf(MyFile,
"%d\t%d\t%d\t%d\t%d\t%d\t%d\t%g\t%g\t%g\t%g\t%g\t\n", time, BreedingFemales, BreedingAttempts, YoungOfTheYear, TotalPop,
804 TotalFemales, TotalMales, floaters, No, HatchSuccess, FledgeSuccess, BreedingSuccess);
References g_msg, m_StriglingMort, m_TotalEggs, m_TotalNestlings, m_TotalPrefledgelings, MapErrorMsg::Warn(), and WARN_FILE.
◆ Catastrophe()
void Skylark_Population_Manager::Catastrophe |
( |
void |
| ) |
|
|
overrideprotectedvirtual |
Reimplemented from Population_Manager.
1162 if (today != 1)
return;
1174 for (
unsigned j = 0; j < size2; j++)
1179 if (MS->MyMate !=
nullptr) MS->MyMate->OnMateDying();
1184 for (
unsigned j = 0; j < size2; j++)
1189 if (FS->MyMate !=
nullptr) FS->MyMate->OnMateDying();
1194 else if (esize > 100)
1203 for (
unsigned i = 3; i < 5; i++)
1206 for (
unsigned j = 0; j < size2; j++)
1220 for (
unsigned i = 3; i < 5; i++)
1223 for (
unsigned j = 0; j < size2; j++)
1225 for (
int e = 0; e < esize; e++)
References cfg_CatastropheEventStartYear, cfg_PmEventfrequency, cfg_PmEventsize, Skylark_Adult::CopyMyself(), g_random_fnc(), Population_Manager::GetLiveArraySize(), Population_Manager_Base::m_TheLandscape, Population_Manager::SupplyAnimalPtr(), Landscape::SupplyDayInYear(), Landscape::SupplyYearNumber(), and CfgInt::value().
◆ CreateObjects()
void Skylark_Population_Manager::CreateObjects |
( |
int |
ob_type, |
|
|
TAnimal * |
pTAo, |
|
|
void * |
null, |
|
|
Skylark_struct * |
data, |
|
|
int |
number |
|
) |
| |
558 for (
int i = 0; i < number; i++)
565 cs = dynamic_cast<skClutch_struct*>(data);
574 New_Clutch->m_Ref = refnum;
579 ns = dynamic_cast<Nestling_struct*>(data);
590 New_Nestling->m_Ref = refnum;
595 pfs = dynamic_cast<PreFledgeling_struct*>(data);
598 pfs->
bx, pfs->
by, pfs->
mh);
609 as = dynamic_cast<AdultSkylark_struct*>(data);
618 New_Male->m_Ref = refnum;
623 as = dynamic_cast<AdultSkylark_struct*>(data);
632 New_Female->m_Ref = refnum;
References PreFledgeling_struct::age, AdultSkylark_struct::age, Skylark_struct::bx, Skylark_struct::by, Nestling_struct::Dad, PreFledgeling_struct::Dad, Population_Manager::IncLiveArraySize(), Skylark_struct::L, m_TotalNestlings, m_TotalPrefledgelings, Skylark_struct::mh, skClutch_struct::Mum, skClutch_struct::No, Skylark_Male::OnAddNestling(), Skylark_Male::OnAddPreFledgeling(), Skylark_Female::OnSetMyClutch(), Population_Manager::PushIndividual(), Skylark_Female::SensibleCopy(), Skylark_Male::SensibleCopy(), PreFledgeling_struct::sex, PreFledgeling_struct::size, AdultSkylark_struct::size, Skylark_struct::Terrs, Skylark_struct::x, and Skylark_struct::y.
Referenced by Skylark_Adult::CopyMyself(), Init(), Skylark_Clutch::st_Hatching(), Skylark_Female::st_Laying(), Skylark_Nestling::st_Maturing(), and Skylark_PreFledgeling::st_Maturing().
◆ DoFirst()
void Skylark_Population_Manager::DoFirst |
( |
void |
| ) |
|
|
overrideprotectedvirtual |
Can be used in descendent classes
Reimplemented from Population_Manager.
898 EMi = 31.2 - 0.44 * temp;
914 FILE* MyFile = fopen(
"PestEffects.txt",
"a");
924 #ifdef __KALONOSCRAPES
References cfg_adultreturnmort, Calendar::Date(), EMi, SkTerritories::EvaluateAllTerritories(), F_Mig_Mort, g_date, g_weather, Weather::GetRain(), Weather::GetTempPeriod(), Weather::GetWindPeriod(), January, m_IsBadWeather, M_Mig_Mort, m_NoChickDeaths, m_NoFledgeDeaths, m_NoPestEffects, m_StriglingMort, Population_Manager_Base::m_TheLandscape, SkTerritories::PreProcessLandscape2(), ProbeReportPOM(), Landscape::SupplyDayInYear(), Landscape::SupplyTemp(), TheSkylarkTerrs, SkTerritories::Tick(), and CfgInt::value().
◆ FledgelingProbeOutput()
void Skylark_Population_Manager::FledgelingProbeOutput |
( |
int |
Total, |
|
|
int |
Time |
|
) |
| |
|
overridevirtual |
Reimplemented from Population_Manager.
844 FILE* MyFile = fopen(
"SkFledgelingProbe.txt",
"a");
847 g_msg->
Warn(
WARN_FILE,
"Skylark_Population_Manager::FledgelingProbeOutput():",
"Cannot open file for append: SkFledgelingProbe.txt");
850 fprintf(MyFile,
"%8d %6d", time, Total);
853 fprintf(MyFile,
"\n");
References g_msg, Population_Manager_Base::m_TheLandscape, Landscape::SupplyVegArea(), tov_Undefined, VegTypeFledgelings, MapErrorMsg::Warn(), and WARN_FILE.
◆ incNoChickDeaths()
void Skylark_Population_Manager::incNoChickDeaths |
( |
| ) |
|
|
inline |
◆ incNoFledgeDeaths()
void Skylark_Population_Manager::incNoFledgeDeaths |
( |
| ) |
|
|
inline |
◆ incNoPestEffects()
void Skylark_Population_Manager::incNoPestEffects |
( |
| ) |
|
|
inline |
◆ incTotalEggs()
void Skylark_Population_Manager::incTotalEggs |
( |
const int |
eggs | ) |
|
|
inline |
◆ incTotalNestlings()
void Skylark_Population_Manager::incTotalNestlings |
( |
| ) |
|
|
inline |
◆ incTotalPrefledgelings()
void Skylark_Population_Manager::incTotalPrefledgelings |
( |
| ) |
|
|
inline |
◆ Init()
void Skylark_Population_Manager::Init |
( |
void |
| ) |
|
|
virtual |
307 int temp_thread_num = omp_get_max_threads();
319 for (
int i = 0; i < start_num_in_tread; i++)
330 for (
int i = 0; i < start_num_in_tread; i++)
369 StateNames[toss_MImmigrating] =
"MImmigrating";
371 StateNames[toss_MTempLeavingArea] =
"MTempLeavingArea";
372 StateNames[toss_MFindingTerritory] =
"MFindingTerritory";
373 StateNames[toss_AttractingAMate] =
"MAttractingAMate";
374 StateNames[toss_FollowingMate] =
"MFollowingMate";
375 StateNames[toss_ScaringOffChicks] =
"MScaringOffChicks";
376 StateNames[toss_MCaringForYoung] =
"MCaringForYoung";
382 StateNames[toss_FImmigrating] =
"FImmigrating";
384 StateNames[toss_FTempLeavingArea] =
"FTempLeavingArea";
385 StateNames[toss_FFindingTerritory] =
"FFindingTerritory";
386 StateNames[toss_BuildingUpResources] =
"FBuildingUpResources";
388 StateNames[toss_PreparingForBreeding] =
"FPreparingForBreeding";
390 StateNames[toss_StartingNewBrood] =
"FStartingNewBrood";
391 StateNames[toss_EggHatching] =
"FEggHatching";
393 StateNames[toss_StoppingBreeding] =
"FStoppingBreeding";
394 StateNames[toss_FCaringForYoung] =
"FCaringForYoung";
396 StateNames[toss_GivingUpTerritory] =
"FGivingUpTerritory";
416 SKPOM1 = fopen(
"SkylarkPOM1.txt",
"w" );
417 SKPOM2 = fopen(
"SkylarkPOM2.txt",
"w" );
References Population_Manager::BeforeStepActions, cfg_ReallyBigOutputUsed, cfg_SkStartNos, CreateObjects(), g_land, g_random_fnc(), LoadParameters(), Population_Manager_Base::m_ListNameLength, Population_Manager_Base::m_ListNames, m_NoChickDeaths, m_NoFledgeDeaths, m_NoPestEffects, Population_Manager::m_population_type, Population_Manager_Base::m_SimulationName, Population_Manager_Base::m_TheLandscape, m_TotalEggs, m_TotalNestlings, m_TotalPrefledgelings, Population_Manager::OpenTheReallyBigProbe(), Population_Manager::OpenTheRipleysOutputProbe(), Population_Manager::ReallyBigOutputPrb, AdultSkylark_struct::size, SKPOM1, SKPOM2, Population_Manager::StateNames, Landscape::SupplySimAreaHeight(), Landscape::SupplySimAreaWidth(), TheSkylarkTerrs, TOP_Skylark, tov_Undefined, CfgInt::value(), CfgBool::value(), and VegTypeFledgelings.
Referenced by Skylark_Population_Manager().
◆ IsBadWeather()
bool Skylark_Population_Manager::IsBadWeather |
( |
| ) |
const |
|
inline |
◆ LoadParameters()
void Skylark_Population_Manager::LoadParameters |
( |
void |
| ) |
|
|
protected |
458 for (
int h = 0; h <= 110; h++)
469 for (
int h = static_cast<int>(threshold); h <= 110; h++)
475 for (
int d = static_cast<int>(threshold); d <= 110; d++)
483 for (
int h = static_cast<int>(threshold); h <= 110; h++)
493 for (
int h = static_cast<int>(threshold); h <= 110; h++)
503 for (
int i = 0; i <= 30; i++)
511 for (
int i = 0; i <= 10; i++)
520 FILE* MyFile = fopen(
"PestEffects.txt",
"w");
References Breed_Res_Thresh1, cfg_Breed_Res_Thresh1, cfg_ClutchMortProb, cfg_Cooling_Rate_Eggs, cfg_densityconstant_a, cfg_densityconstant_b, cfg_densityconstant_c, cfg_EggTemp, cfg_FemaleMinTerritoryAcceptScore, cfg_FoodTripsPerDay, cfg_heightconstant_a, cfg_heightconstant_b, cfg_heightconstant_c, cfg_hindconstantD_b, cfg_hindconstantH_b, cfg_HQualityBareEarth, cfg_HQualityHedge, cfg_HQualityHedgeScrub, cfg_HQualityMetalRoad, cfg_HQualityNeutral, cfg_HQualityOpenTallVeg, cfg_HQualityTall, cfg_HQualityTall2, cfg_HQualityTallVeg, cfg_HQualityTrack, cfg_HQualityVeg30cm, cfg_HQualityWater, cfg_maxfeedrain, cfg_MD_Threshold, cfg_MeanExtractionRatePerMinute, cfg_MeanHatchingWeight, cfg_MinDaysToHatch, cfg_NestLeavingWeight, cfg_NestlingMortProb, cfg_NestPlacementMinQual, cfg_PatchyPremium, cfg_PreFledgeMortProb, cfg_rainhindpow, cfg_temphindpow, cfg_tramline_foraging, ClutchMortProb, Cooling_Rate_Eggs, DensityScore, EggTemp, FemaleNestAcceptScore, FoodTripsPerDay, HeightScore, HQualityBareEarth, HQualityHedge, HQualityHedgeScrub, HQualityMetalRoad, HQualityNeutral, HQualityOpenTallVeg, HQualityTall, HQualityTall2, HQualityTallVeg, HQualityTrack, HQualityVeg30cm, HQualityWater, IsTramline, m_NoChickDeaths, m_NoFledgeDeaths, m_NoPestEffects, MaxFeedRain, MD_Hatch, MD_Threshold, MeanExtractionRatePerMinute, MeanHatchingWeight, NestLeavingWeight, NestlingMortProb, NestPlacementMinQual, NotTramline, OpenTheBreedingSuccessProbe(), PatchyPremium, PreFledgeMortProb, RainHindrance, TempHindrance, CfgInt::value(), CfgFloat::value(), VegHindranceD, and VegHindranceH.
Referenced by Init().
◆ OpenTheBreedingPairsProbe()
bool Skylark_Population_Manager::OpenTheBreedingPairsProbe |
( |
| ) |
|
|
overridevirtual |
◆ OpenTheBreedingSuccessProbe()
bool Skylark_Population_Manager::OpenTheBreedingSuccessProbe |
( |
| ) |
|
|
overridevirtual |
◆ OpenTheFledgelingProbe()
bool Skylark_Population_Manager::OpenTheFledgelingProbe |
( |
| ) |
|
|
overridevirtual |
◆ ProbePOM()
float Skylark_Population_Manager::ProbePOM |
( |
int |
ListIndex, |
|
|
const Probe_Data * |
p_TheProbe |
|
) |
| |
|
protected |
◆ ProbeReportPOM()
void Skylark_Population_Manager::ProbeReportPOM |
( |
int |
a_time | ) |
|
|
protected |
◆ ReHouse()
void Skylark_Population_Manager::ReHouse |
( |
void |
| ) |
|
|
protectedvirtual |
◆ SetF_Mig_Mort()
void Skylark_Population_Manager::SetF_Mig_Mort |
( |
const int |
m | ) |
|
|
inline |
◆ SetM_Mig_Mort()
void Skylark_Population_Manager::SetM_Mig_Mort |
( |
const int |
m | ) |
|
|
inline |
◆ SupplyEMi()
double Skylark_Population_Manager::SupplyEMi |
( |
| ) |
const |
|
inline |
◆ SupplyF_Mig_Mort()
int Skylark_Population_Manager::SupplyF_Mig_Mort |
( |
| ) |
const |
|
inline |
◆ SupplyM_Mig_Mort()
int Skylark_Population_Manager::SupplyM_Mig_Mort |
( |
| ) |
const |
|
inline |
◆ SupplyNoTerritories()
int Skylark_Population_Manager::SupplyNoTerritories |
( |
| ) |
const |
◆ TheAOROutputProbe()
void Skylark_Population_Manager::TheAOROutputProbe |
( |
| ) |
|
|
overridevirtual |
◆ TheBreedingFemalesProbe()
int Skylark_Population_Manager::TheBreedingFemalesProbe |
( |
int |
ProbeNo | ) |
|
|
overridevirtual |
◆ TheBreedingSuccessProbe()
int Skylark_Population_Manager::TheBreedingSuccessProbe |
( |
int & |
BreedingFemales, |
|
|
int & |
YoungOfTheYear, |
|
|
int & |
TotalPop, |
|
|
int & |
TotalFemales, |
|
|
int & |
TotalMales, |
|
|
int & |
BreedingAttempts |
|
) |
| |
|
overridevirtual |
◆ TheFledgelingProbe()
int Skylark_Population_Manager::TheFledgelingProbe |
( |
| ) |
|
|
overridevirtual |
◆ TheRipleysOutputProbe()
void Skylark_Population_Manager::TheRipleysOutputProbe |
( |
FILE * |
a_prb | ) |
|
|
virtual |
772 fprintf(a_prb,
"%d %d %d %d %d\n", 0, w, 0, h, totalF);
780 fprintf(a_prb,
"%d\t%d\n", x, y);
References Population_Manager::GetLiveArraySize(), Population_Manager_Base::m_TheLandscape, Skylark_Adult::Paired, TAnimal::Supply_m_Location_x(), TAnimal::Supply_m_Location_y(), Population_Manager::SupplyAnimalPtr(), Landscape::SupplySimAreaHeight(), and Landscape::SupplySimAreaWidth().
◆ TheSkylarkTerrsSupply_quality()
int Skylark_Population_Manager::TheSkylarkTerrsSupply_quality |
( |
int |
r | ) |
const |
◆ TheSkylarkTerrsSupply_size()
int Skylark_Population_Manager::TheSkylarkTerrsSupply_size |
( |
int |
r | ) |
const |
◆ TheSkylarkTerrsSupply_x()
int Skylark_Population_Manager::TheSkylarkTerrsSupply_x |
( |
int |
r | ) |
const |
◆ TheSkylarkTerrsSupply_y()
int Skylark_Population_Manager::TheSkylarkTerrsSupply_y |
( |
int |
r | ) |
const |
◆ WriteSKPOM1()
void Skylark_Population_Manager::WriteSKPOM1 |
( |
const int |
n, |
|
|
const int |
n2 |
|
) |
| const |
|
inline |
451 { fprintf(
SKPOM1,
"%i\t%i\n", n, n2); }
Referenced by Skylark_Female::OnMateDying(), Skylark_Female::OnMateHomeless(), Skylark_Clutch::st_Developing(), Skylark_Female::st_Dying(), Skylark_Female::st_GivingUpTerritory(), Skylark_Female::st_StartingNewBrood(), Skylark_Female::st_StoppingBreeding(), and Skylark_Female::Step().
◆ WriteSKPOM2()
void Skylark_Population_Manager::WriteSKPOM2 |
( |
const int |
n, |
|
|
const int |
n2 |
|
) |
| const |
|
inline |
◆ EMi
double Skylark_Population_Manager::EMi |
|
protected |
◆ F_Mig_Mort
int Skylark_Population_Manager::F_Mig_Mort |
|
protected |
◆ m_IsBadWeather
bool Skylark_Population_Manager::m_IsBadWeather |
|
protected |
◆ M_Mig_Mort
int Skylark_Population_Manager::M_Mig_Mort |
|
protected |
◆ m_NoChickDeaths
int Skylark_Population_Manager::m_NoChickDeaths |
|
protected |
◆ m_NoFledgeDeaths
int Skylark_Population_Manager::m_NoFledgeDeaths |
|
protected |
◆ m_NoPestEffects
int Skylark_Population_Manager::m_NoPestEffects |
|
protected |
◆ m_StriglingMort
int Skylark_Population_Manager::m_StriglingMort[4] |
|
protected |
◆ m_TotalEggs
int Skylark_Population_Manager::m_TotalEggs |
|
protected |
◆ m_TotalNestlings
int Skylark_Population_Manager::m_TotalNestlings |
|
protected |
◆ m_TotalPrefledgelings
int Skylark_Population_Manager::m_TotalPrefledgelings |
|
protected |
◆ SKPOM1
FILE* Skylark_Population_Manager::SKPOM1 |
|
protected |
◆ SKPOM2
FILE* Skylark_Population_Manager::SKPOM2 |
|
protected |
◆ TheSkylarkTerrs
Referenced by DoFirst(), Init(), Skylark_Male::OnEvicted(), Skylark_Population_Manager(), Skylark_Male::st_Arriving(), SupplyNoTerritories(), TheSkylarkTerrsSupply_quality(), TheSkylarkTerrsSupply_size(), TheSkylarkTerrsSupply_x(), TheSkylarkTerrsSupply_y(), and ~Skylark_Population_Manager().
◆ VegTypeFledgelings
int* Skylark_Population_Manager::VegTypeFledgelings |
The documentation for this class was generated from the following files:
Definition: PopulationManager.h:59
int Supply_m_Location_x() const
Returns the ALMaSS x-coordinate.
Definition: PopulationManager.h:239
int No
Definition: skylarks_all.h:225
CfgFloat cfg_MinDaysToHatch
The time taken to egg hatch under optimal conditions.
static int NestlingMortProb
Definition: skylarks_all.cpp:159
Definition: MapErrorMsg.h:37
int m_NoPestEffects
Definition: skylarks_all.h:441
Definition: skylarks_all.h:552
static int Breed_Res_Thresh1
Definition: skylarks_all.cpp:167
virtual TAnimal * SupplyAnimalPtr(unsigned int a_index, unsigned int a_animal)
Returns the pointer indexed by a_index and a_animal. Note NO RANGE CHECK.
Definition: PopulationManager.h:678
double SupplyTemp(void)
Passes a request on to the associated Weather class function, the temperature for the current day.
Definition: Landscape.h:1993
Definition: skylarks_all.h:648
void Tick(void)
Definition: skylarks_all.h:372
CfgInt cfg_PmEventfrequency
double EMi
Definition: skylarks_all.h:433
static int ClutchMortProb
Definition: skylarks_all.cpp:158
std::string VegtypeToString(TTypesOfVegetation a_veg)
Returns the text representation of a TTypesOfVegetation type.
Definition: Landscape.cpp:6518
virtual void Init(void)
Definition: skylarks_all.cpp:297
double HeightScore[111]
Definition: skylarks_all.cpp:193
TTypesOfPopulation m_population_type
Definition: PopulationManager.h:858
static int FoodTripsPerDay
Definition: skylarks_all.cpp:166
vector< unsigned > BeforeStepActions
Holds the season list of possible before step actions.
Definition: PopulationManager.h:819
Landscape * g_land
Definition: skylarks_all.cpp:44
CfgInt cfg_CatastropheEventStartYear
int HQualityOpenTallVeg
Definition: skylarks_all.cpp:228
Skylark_Male * Dad
Definition: skylarks_all.h:241
double VegHindranceD[111]
Definition: skylarks_all.cpp:191
int HQualityMetalRoad
Definition: skylarks_all.cpp:232
class Calendar * g_date
Definition: Calendar.cpp:37
CfgInt cfg_PreFledgeMortProb
Landscape * L
Definition: skylarks_all.h:214
const char * m_ListNames[32]
A list of life-stage names.
Definition: PopulationManager.h:628
int Supply_size(int ref) const
Definition: skylarks_all.cpp:1394
static double EggTemp
Definition: skylarks_all.cpp:163
bool m_IsBadWeather
Definition: skylarks_all.h:442
CfgInt cfg_juvreturnmort
Immigration mortality for juveniles.
int age
Definition: skylarks_all.h:252
CfgInt cfg_HQualityTallVeg
double value() const
Definition: Configurator.h:142
int by
Definition: skylarks_all.h:212
void ProbeReportPOM(int a_time)
Definition: skylarks_all.cpp:1073
int PatchyPremium
Definition: skylarks_all.cpp:239
CfgInt cfg_adultreturnmort
Immigration mortality for juveniles.
CfgInt cfg_FoodTripsPerDay
void LoadParameters()
Definition: skylarks_all.cpp:423
int x
Definition: skylarks_all.h:209
double TempHindrance[31]
Definition: skylarks_all.cpp:189
static double MeanHatchingWeight
Definition: skylarks_all.cpp:161
SkTerritories * TheSkylarkTerrs
Definition: skylarks_all.h:496
void OnAddNestling(Skylark_Nestling *N)
Definition: skylarks_all.cpp:4649
Definition: skylarks_all.h:588
CfgFloat cfg_heightconstant_b
int HQualityNeutral
Definition: skylarks_all.cpp:234
int JuvenileReturnMort
Definition: skylarks_all.cpp:199
CfgFloat cfg_hindconstantD_b
CfgBool cfg_ReallyBigOutputUsed
int m_ListNameLength
the number of life-stages simulated in the population manager
Definition: PopulationManager.h:626
CfgInt cfg_HQualityMetalRoad
Definition: skylarks_all.h:223
unsigned SupplyFarmOwnerRef() const
Get the current location farm ref if any.
Definition: PopulationManager.cpp:1547
double VegHindranceH[111]
Definition: skylarks_all.cpp:190
FILE * SKPOM1
Definition: skylarks_all.h:444
void SensibleCopy()
Definition: skylarks_all.cpp:6620
static double MD_Hatch
Definition: skylarks_all.cpp:168
int * VegTypeFledgelings
Definition: skylarks_all.h:497
CfgInt cfg_NestlingMortProb
bool value() const
Definition: Configurator.h:164
Landscape * m_TheLandscape
holds an internal pointer to the landscape
Definition: PopulationManager.h:624
double size
Definition: skylarks_all.h:250
bool OpenTheBreedingPairsProbe() override
Definition: skylarks_all.cpp:817
AOR_Probe * m_AOR_Probe
A pointer to the AOR probe.
Definition: PopulationManager.h:875
CfgFloat cfg_MD_Threshold
int m_NoFledgeDeaths
Definition: skylarks_all.h:439
int Supply_x(int ref) const
Definition: skylarks_all.cpp:1358
int HQualityTrack
Definition: skylarks_all.cpp:231
virtual void DoProbe(int a_lifestage)
Definition: AOR_Probe.cpp:104
double RainHindrance[21]
Definition: skylarks_all.cpp:188
void EvaluateAllTerritories(void)
Definition: skylarks_all.cpp:1893
int F_Mig_Mort
Definition: skylarks_all.h:432
int HQualityTallVeg
Definition: skylarks_all.cpp:241
int SupplySimAreaHeight(void)
Gets the simulation landscape height.
Definition: Landscape.h:2302
bool OpenTheFledgelingProbe() override
Definition: skylarks_all.cpp:860
int SupplyFarmOwner(int a_x, int a_y)
Returns the farm owner pointer for the polygon referenced by a_polyref or a_x, a_y.
Definition: Landscape.h:1774
long Date(void)
Definition: Calendar.h:57
int HQualityVeg30cm
Definition: skylarks_all.cpp:237
int SupplySimAreaWidth(void)
Gets the simulation landscape width.
Definition: Landscape.h:2297
int HQualityHedge
Definition: skylarks_all.cpp:235
double DensityScore[111]
Definition: skylarks_all.cpp:192
static double MD_Threshold
Definition: skylarks_all.cpp:164
int m_TotalEggs
Definition: skylarks_all.h:436
double FemaleNestAcceptScore
Definition: skylarks_all.cpp:223
static double Cooling_Rate_Eggs
Definition: skylarks_all.cpp:162
CfgInt cfg_heightconstant_c
int Supply_m_Location_y() const
Returns the ALMaSS y-coordinate.
Definition: PopulationManager.h:243
CfgFloat cfg_NestPlacementMinQual
CfgInt cfg_densityconstant_c
int Supply_quality(int ref) const
Definition: skylarks_all.cpp:2014
static double MeanExtractionRatePerMinute
Definition: skylarks_all.cpp:165
void OnSetMyClutch(Skylark_Clutch *p_C)
Definition: skylarks_all.h:744
int SupplyNoTerritories() const
Definition: skylarks_all.cpp:1362
double SupplyVegArea(int v)
Records all area vegetation types and transform it into a table.
Definition: Landscape.h:305
double MaxFeedRain
Definition: skylarks_all.cpp:196
void Warn(MapErrorState a_level, std::string a_msg1, std::string a_msg2)
Definition: MapErrorMsg.cpp:69
int m_TotalNestlings
Definition: skylarks_all.h:437
SkTerritories * Terrs
Definition: skylarks_all.h:215
double GetWindPeriod(long a_date, unsigned int a_period)
Definition: Weather.cpp:697
CfgFloat cfg_NestLeavingWeight
int SupplyDayInYear(void)
Passes a request on to the associated Calendar class function, the day in the year.
Definition: Landscape.h:2267
CfgFloat cfg_MeanHatchingWeight
int HQualityBareEarth
Definition: skylarks_all.cpp:242
CfgBool cfg_CfgRipleysOutputUsed
CfgInt cfg_HQualityOpenTallVeg
Definition: skylarks_all.h:760
CfgFloat cfg_densityconstant_a
bool Paired
Definition: skylarks_all.h:670
int SupplyYearNumber(void)
Passes a request on to the associated Calendar class function, returns m_simulationyear
Definition: Landscape.h:2287
int value() const
Definition: Configurator.h:116
CfgFloat cfg_FemaleMinTerritoryAcceptScore
Probe_Data * TheProbe[100]
Holds a list of pointers to standard output probes.
Definition: PopulationManager.h:588
int m_TotalPrefledgelings
Definition: skylarks_all.h:438
CfgFloat cfg_tramline_foraging
bool OpenTheBreedingSuccessProbe() override
Definition: skylarks_all.cpp:830
CfgFloat cfg_MeanExtractionRatePerMinute
CfgFloat cfg_densityconstant_b
int HQualityHedgeScrub
Definition: skylarks_all.cpp:233
Definition: LandscapeFarmingEnums.h:610
bool OpenTheRipleysOutputProbe()
Definition: PopulationManager.cpp:897
static int PreFledgeMortProb
Definition: skylarks_all.cpp:160
const char * StateNames[100]
Definition: PopulationManager.h:801
virtual void CopyMyself(int a_sktype)
Definition: skylarks_all.cpp:6601
void PreProcessLandscape2(Landscape *L)
Definition: skylarks_all.cpp:1660
unsigned m_RefFarms[25]
Definition: PopulationManager.h:439
CfgFloat cfg_heightconstant_a
Definition: skylarks_all.h:326
const int January
Julian start dates of the month of January.
Definition: Landscape.h:38
class Weather * g_weather
Definition: Weather.cpp:49
bool sex
Definition: skylarks_all.h:242
bool OpenTheReallyBigProbe()
Definition: PopulationManager.cpp:1005
MapErrorMsg * g_msg
Definition: MapErrorMsg.cpp:41
unsigned GetLiveArraySize(int a_listindex) override
Gets the number of 'live' objects for a list index in the TheArray.
Definition: PopulationManager.h:657
CfgFloat cfg_Cooling_Rate_Eggs
Maximum immigration mortality for females.
Definition: skylarks_all.h:248
double IsTramline
Definition: skylarks_all.cpp:221
int TheFledgelingProbe() override
Definition: skylarks_all.cpp:644
double NotTramline
Definition: skylarks_all.cpp:222
double GetTempPeriod(long a_date, unsigned int a_period)
Definition: Weather.cpp:707
int m_StriglingMort[4]
Definition: skylarks_all.h:435
FILE * SKPOM2
Definition: skylarks_all.h:445
int HQualityTall
Definition: skylarks_all.cpp:229
int y
Definition: skylarks_all.h:210
The base class for all farm types.
Definition: Farm.h:755
void FileOutput(int No, int time, int ProbeNo) const
Definition: PopulationManager.cpp:1626
void CreateObjects(int ob_type, TAnimal *pTAo, void *null, Skylark_struct *data, int number)
Definition: skylarks_all.cpp:539
string m_SimulationName
stores the simulation name
Definition: PopulationManager.h:622
virtual unsigned SupplyListIndexSize()
Definition: PopulationManager.h:725
int m_NoProbes
Definition: PopulationManager.h:787
Skylark_Male * Dad
Definition: skylarks_all.h:233
unsigned m_NoFarms
Definition: PopulationManager.h:436
CfgInt cfg_ClutchMortProb
CfgInt cfg_HQualityHedgeScrub
Definition: skylarks_all.h:676
Definition: skylarks_all.h:624
int g_random_fnc(const int a_range)
Definition: ALMaSS_Random.cpp:74
static double NestLeavingWeight
Definition: skylarks_all.cpp:155
double NestPlacementMinQual
The minimum quality for nest placement.
Definition: skylarks_all.cpp:227
CfgFloat cfg_hindconstantH_b
double size
Definition: skylarks_all.h:240
Definition: skylarks_all.h:238
int Supply_y(int ref) const
Definition: skylarks_all.cpp:1390
enum { toss_Initiation=0, toss_Developing, toss_Hatching, toss_CDying, toss_NDeveloping, toss_NMaturing, toss_NDying, toss_PDeveloping, toss_PMaturing, toss_PDying, toss_MFlocking, toss_MFloating, toss_MArriving, toss_MImmigrating, toss_MEmigrating, toss_MTempLeavingArea, toss_MFindingTerritory, toss_AttractingAMate, toss_FollowingMate, toss_ScaringOffChicks, toss_MCaringForYoung, toss_MDying, toss_MRehousing, toss_FFlocking, toss_FFloating, toss_FArriving, toss_FImmigrating, toss_FEmigrating, toss_FTempLeavingArea, toss_FFindingTerritory, toss_BuildingUpResources, toss_MakingNest, toss_PreparingForBreeding, toss_Laying, toss_StartingNewBrood, toss_EggHatching, toss_Incubating, toss_StoppingBreeding, toss_FCaringForYoung, toss_FDying, toss_GivingUpTerritory, toss_Destroy, } TTypesOfSkState
Definition: skylarks_all.h:92
int mh
Definition: skylarks_all.h:213
int age
Definition: skylarks_all.h:243
CfgInt cfg_HQualityBareEarth
void PushIndividual(const unsigned a_listindex, TAnimal *a_individual_ptr)
Definition: PopulationManager.cpp:1682
Population_Manager(Landscape *a_l_ptr, int a_numberLifeStages=12)
Definition: PopulationManager.cpp:200
Skylark_Female * Mum
Definition: skylarks_all.h:226
double GetRain(long a_date)
Definition: Weather.h:506
void SensibleCopy()
Definition: skylarks_all.cpp:6626
ofstream * ReallyBigOutputPrb
Definition: PopulationManager.h:873
int HQualityTall2
Definition: skylarks_all.cpp:230
int HQualityWater
Definition: skylarks_all.cpp:236
float ProbePOM(int ListIndex, const Probe_Data *p_TheProbe)
Modified probe for POM Output.
Definition: skylarks_all.cpp:1089
CfgInt cfg_HQualityNeutral
CfgInt cfg_SkStartNos
The number of skylarks that start in the simulation.
CfgInt cfg_Breed_Res_Thresh1
Definition: skylarks_all.h:231
CfgInt cfg_HQualityVeg30cm
void OnAddPreFledgeling(Skylark_PreFledgeling *P, const Skylark_Nestling *N)
Definition: skylarks_all.cpp:4232
int bx
Definition: skylarks_all.h:211
int m_NoChickDeaths
Definition: skylarks_all.h:440
int M_Mig_Mort
Definition: skylarks_all.h:431
void IncLiveArraySize(int a_listindex)
Increments the number of 'live' objects for a list index in the TheArray.
Definition: PopulationManager.h:665