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.
41 #ifndef VolePopulationManagerH
42 #define VolePopulationManagerH
95 TrapLineMap(
unsigned int a_width,
unsigned int a_height,
unsigned int a_resolution,
const char* a_file);
99 bool IsTrap(
const unsigned a_x,
const unsigned a_y) {
100 if (
GetValue(a_x, a_y) == 1)
return true;
103 void Output(
const InTrapPosition& a_tp,
int a_day,
int a_sex,
bool a_terr,
int a_age,
int a_bx,
int a_by,
108 void Init(
const char* a_inifile);
125 virtual void OPrint(
int a_value);
126 virtual void OPrint(
double a_value);
127 virtual void OPrint(
const char* a_value);
173 #ifdef __VOLEPESTICIDEON
175 void AddToImpacted() {m_impacted++;}
176 void AddToNotImpacted() {m_notimpacted++;}
177 void AddToGeneticImpacted() {m_geneticimpacted++;}
178 void incLittersLost() { m_LittersLost++; }
179 void incLittersProduced() { m_LittersProduced++; }
183 int m_geneticimpacted;
184 double m_geneticsterilitychance;
185 double m_f1sterilitychance;
187 int m_LittersProduced;
197 const auto new_VB = dynamic_cast<Vole_Base*>(
SupplyAnimalPtr(a_list, a_vole));
198 return new_VB->SupplyMyAllele(a_locus, a_chromosome);
229 static bool RecordGeneticsToday(
int p_today,
int p_year,
int p_start_year,
int p_interval);
231 bool SupplyOlderFemales(
unsigned p_x,
unsigned p_y,
unsigned p_Age,
unsigned p_range)
const;
234 int SupplyInOlderTerr(
unsigned p_x,
unsigned p_y,
unsigned p_Age,
unsigned p_Range)
const;
238 vector<Vole_Base*>*
SupplyVoleList(
unsigned x,
unsigned y,
unsigned range)
const;
239 bool InSquare(
int p_x,
int p_y,
int p_sqx,
int p_sqy,
int p_range)
const;
248 bool BarrierSearch(
int F_x,
int F_y,
int M_x,
int M_y)
const;
FILE * TestFile2
Definition: PopulationManager.h:817
void TheAgeSexLocationProbe()
Definition: VolePopulationManager.cpp:3053
Definition: vole_all.h:96
CfgBool cfg_RecordVoleMort("VOLE_RECORDMORT_ON", CFG_CUSTOM, false)
int vole_tole_init_optimal(Landscape *m_TheLandscape, int x, int y)
Definition: Vole_toletoc.cpp:342
int Supply_m_Location_x() const
Returns the ALMaSS x-coordinate.
Definition: PopulationManager.h:239
static CfgBool cfg_useagesexlocation("VOLE_USEAGESEXLOCATION", CFG_CUSTOM, false)
void AddToFrag2Male()
Definition: VolePopulationManager.h:214
Definition: VolePopulationManager.h:84
double MutationChance
Definition: GeneticMaterial.cpp:49
unsigned int SupplyNumberOfPolygons(void)
Returns the number of polygons in the landscape.
Definition: Landscape.h:2127
Definition: MapErrorMsg.h:37
void AddToFrag1Male()
Definition: VolePopulationManager.h:212
double g_rand_uni_fnc()
Definition: ALMaSS_Random.cpp:56
void CloseOutput() const
Definition: VolePopulationManager.cpp:3294
void ImpactedProbe() override
Definition: VolePopulationManager.cpp:462
CfgInt cfg_MinFemaleTerritorySize
static CfgBool cfg_VoleUseResistanceOuput("VOLE_RESISTANCEOUTPUT_ON_OFF", CFG_CUSTOM, false)
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
CfgInt cfg_PmEventfrequency
double SupplyMeanTemp(long a_date, unsigned int a_period)
Passes a request on to the associated Weather class function, the mean temperature for the current da...
Definition: Landscape.h:1978
static CfgInt cfg_MaxAllele("GENETICS_MAXALLELE", CFG_CUSTOM, 255)
bool IsTrap(int p_x, int p_y) const
Definition: VolePopulationManager.h:201
Definition: VolePopulationManager.h:80
static CfgInt cfg_vole_starting_numberF("VOLE_START_NO_F", CFG_CUSTOM, 5000)
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
static CfgInt cfg_VoleSampleFileDayTwo("VOLE_SAMPLE_FILE_DAY_TWO", CFG_CUSTOM, 287)
Definition: vole_all.h:61
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
void OpenOutput(const char *a_filename)
Definition: VolePopulationManager.cpp:3293
void AddToJuvs(const int juvs)
Definition: VolePopulationManager.h:250
double g_DailyMortChance
Definition: Vole_all.cpp:183
virtual void OPrint()
Definition: VolePopulationManager.cpp:3283
Vole_Male * FindOutsideRadiusMale(int p_x, int p_y)
Definition: VolePopulationManager.cpp:1773
void CopyMyself(VoleObject a_vole)
Duplicates a vole.
Definition: Vole_all.cpp:300
TTypesOfPopulation m_population_type
Definition: PopulationManager.h:858
Definition: vole_all.h:66
CfgFloat cfg_extradispmort
Input parameter for daily extra mortality chance while dispersing.
Base class for voles - all vole objects are descended from this class.
Definition: vole_all.h:145
static CfgBool cfg_VoleSampleDataUsed("VOLE_SAMPLE_FILE_USED", CFG_CUSTOM, false)
void CloseSexRatiosProbe()
Definition: VolePopulationManager.cpp:3178
Definition: vole_all.h:98
char * value() const
Definition: Configurator.h:182
static CfgInt cfg_VoleResistanceDay("VOLE_RESISTANCEOUTPUT_DAY", CFG_CUSTOM, 365)
Vole_MaleList MList
Definition: VolePopulationManager.h:223
int SupplyHowManyVoles(unsigned a_x, unsigned a_y, unsigned a_range) const
Definition: VolePopulationManager.cpp:890
void OpenResistanceOutput()
Opens the output file ready for resistance results.
Definition: VolePopulationManager.cpp:3462
vector< unsigned > BeforeStepActions
Holds the season list of possible before step actions.
Definition: PopulationManager.h:819
Vole_Female * FindClosestFemale(int p_x, int p_y, int p_steps) const
Definition: VolePopulationManager.cpp:1602
Definition: vole_all.h:64
void Catastrophe() override
Definition: VolePopulationManager.cpp:2896
Definition: vole_all.h:63
int m_dataI[100]
Definition: VolePopulationManager.h:138
bool OpenSexRatiosProbe()
Definition: VolePopulationManager.cpp:3161
void CorrectCoords(int &x, int &y)
Function to prevent wrap around errors with co-ordinates using x/y pair.
Definition: Landscape.h:2206
Definition: VolePopulationManager.h:64
void CloseResistanceOutput() const
Closes the output file ready for resistance results.
Definition: VolePopulationManager.cpp:3475
void ClearMap()
Definition: BinaryMapBase.cpp:74
uint64 GetValue(unsigned a_x, unsigned a_y)
Definition: BinaryMapBase.cpp:79
String configurator entry class.
Definition: Configurator.h:173
int FatherStateAtBirth
Definition: vole_all.h:129
class Calendar * g_date
Definition: Calendar.cpp:37
virtual void SupplyLocXY(unsigned, unsigned, int &, int &)
A stub for identifying an individual at a location.
Definition: PopulationManager.h:593
const char * m_ListNames[32]
A list of life-stage names.
Definition: PopulationManager.h:628
Definition: VolePopulationManager.h:82
Definition: vole_all.h:95
static CfgInt cfg_SexRatiosOutput_day("VOLE_SEXRATIOSOUTPUT_DAY", CFG_CUSTOM, -1)
CfgBool cfg_ReallyBigOutputUsed
static CfgBool cfg_volestartinoptimalonly("VOLE_STARTINOPTIMALONLY", CFG_CUSTOM, false)
int NoYoungKilledToday9
Definition: VolePopulationManager.h:274
int m_geneticproductfertilityeffect
Definition: VolePopulationManager.h:277
int m_ndInt
Definition: VolePopulationManager.h:136
Definition: VolePopulationManager.h:76
Definition: vole_all.h:97
virtual void LandscapeQuadrantOutputProbe(int a_day)
Definition: VolePopulationManager.cpp:2976
void ChangeData(int a_data, int a_value)
Definition: VolePopulationManager.cpp:3302
int ListClosestMales(int p_x, int p_y, int p_steps)
Definition: VolePopulationManager.cpp:1305
int m_total2
Definition: VolePopulationManager.h:160
void Init(const char *a_inifile)
Reads in the trap coords, creates the map and sets up the output files.
Definition: VolePopulationManager.cpp:3231
static CfgInt cfg_GeneticsResultOutputFirstYear("GENETICS_RESULT_OUTPUT_FIRST_YEAR", CFG_CUSTOM, 100000)
Definition: vole_all.h:69
const float ReproTable_base[2][12]
Definition: VolePopulationManager.cpp:169
int SimHH
stores the simulation height halved
Definition: PopulationManager.h:618
CfgBool cfg_GeneticsResultOutputUsed("GENETICS_RESULT_OUTPUT_USED", CFG_CUSTOM, false)
double value() const
Definition: Configurator.h:142
unsigned int uint32
Definition: ALMaSS_Setup.h:34
FILE * TestFile
Definition: PopulationManager.h:816
int SupplyMonth(void)
Passes a request on to the associated Calendar class function, returns m_month + 1 (the calendar mont...
Definition: Landscape.h:2272
A struct for passing data to create a new vole.
Definition: vole_all.h:115
static CfgBool cfg_voleLandscapeGridOutputUsed("VOLE_LANDSCAPEGRIDOUTPUTUSED", CFG_CUSTOM, true)
static CfgFloat cfg_geneticsterilitychance("VOLE_GENETICSTERILITYCHANCE", CFG_CUSTOM, 0)
CfgInt cfg_MinMaleTerritorySize
int m_StepSize
Definition: PopulationManager.h:802
int GetDayInMonth(void)
Definition: Calendar.h:77
unsigned m_x
Definition: PopulationManager.h:173
A class for simulation virtual traplines.
Definition: VolePopulationManager.h:92
Definition: vole_all.h:60
static CfgFloat cfg_VoleBackgroundMort("VOLE_BCKMORT", CFG_CUSTOM, 0.0025)
int MinReproAgeM
Definition: Vole_all.cpp:139
static CfgInt cfg_SexRatiosOutput_interval("VOLE_SEXRATIOSOUTPUT_INTERVAL", CFG_CUSTOM, 1)
void ReproductionProbe() const
Definition: VolePopulationManager.cpp:969
static CfgFloat cfg_ResistanceStartFrequency("VOLE_RESISTANCESTARTFREQ", CFG_CUSTOM, 0.01)
void SendMessage(TTypeOfVoleMessage p_message, unsigned p_x, unsigned p_y, unsigned p_range, bool p_sex, double p_Weight)
Definition: VolePopulationManager.cpp:2711
int m_ListNameLength
the number of life-stages simulated in the population manager
Definition: PopulationManager.h:626
Definition: VolePopulationManager.h:79
void GeneticsOutputFile(unsigned listindex)
Definition: VolePopulationManager.cpp:3307
int vole_tole_init_friendly(Landscape *m_TheLandscape, int x, int y)
Definition: Vole_toletoc.cpp:381
static CfgFloat cfg_GrassStartGrowthDay("VOLE_GRASSSTARTGROWTHDAY", CFG_CUSTOM, 80)
vector< Vole_Female * > Vole_FemaleList
Definition: VolePopulationManager.h:57
The class for female voles.
Definition: vole_all.h:536
Definition: vole_all.h:70
Definition: vole_all.h:55
static CfgInt cfg_GeneticsResultOutputInterval_1("GENETICS_RESULT_OUTPUT_INTERVAL_ONE", CFG_CUSTOM, 100000)
int m_GrowthStartDate
Definition: VolePopulationManager.h:153
vector< double > VoleHabitatBaseQualities
Definition: VolePopulationManager.h:167
bool SuitableStartingLocation(int a_x, int a_y) const
Definition: VolePopulationManager.cpp:450
Definition: vole_all.h:57
static CfgInt cfg_VoleSampleFileDayOne("VOLE_SAMPLE_FILE_DAY_ONE", CFG_CUSTOM, 109)
bool value() const
Definition: Configurator.h:164
bool InSquare(int p_x, int p_y, int p_sqx, int p_sqy, int p_range) const
Definition: VolePopulationManager.cpp:2555
Landscape * m_TheLandscape
holds an internal pointer to the landscape
Definition: PopulationManager.h:624
unsigned SupplyAge()
Definition: vole_all.h:369
void GeneticsResultsOutput(FILE *ofile, unsigned listindex) override
Definition: VolePopulationManager.cpp:3396
ofstream * m_VoleResistanceOutputFile
Definition: VolePopulationManager.h:190
int m_female3
Definition: VolePopulationManager.h:163
int SimWH
stores the simulation width halved
Definition: PopulationManager.h:620
void AddToNoYoungInfanticideCount(const int m_NoOfYoung, const int m_YoungAge)
Definition: VolePopulationManager.h:251
Definition: vole_all.h:99
unsigned m_noTraps
The total number of traps.
Definition: VolePopulationManager.h:110
The class for female voles.
Definition: vole_all.h:578
~TrapLineMap()
TrapLineMap destructor.
Definition: VolePopulationManager.cpp:3225
vector< Vole_Base * > * SupplyVoleList(unsigned x, unsigned y, unsigned range) const
Definition: VolePopulationManager.cpp:2611
static CfgFloat cfg_VoleFemaleMove("VOLE_FEMALEMOVE", CFG_CUSTOM, 0.0505)
AOR_Probe * m_AOR_Probe
A pointer to the AOR probe.
Definition: PopulationManager.h:875
Definition: vole_all.h:68
int NoYoungKilledToday8
Definition: VolePopulationManager.h:274
int YoungProducedToday
Definition: VolePopulationManager.h:273
The landscape class containing all environmental and topographical data.
Definition: Landscape.h:142
int NoYoungKilledToday4
Definition: VolePopulationManager.h:274
Class for the genetic material optionally carried by animals in ALMaSS.
Definition: GeneticMaterial.h:94
unsigned char g_MaxAllele
Definition: GeneticMaterial.cpp:50
int SimH
stores the simulation height
Definition: PopulationManager.h:614
double g_NoFemalesMove
Definition: Vole_all.cpp:199
virtual void TheSexRatiosProbe()
Definition: VolePopulationManager.cpp:3188
Definition: BinaryMapBase.h:28
static CfgFloat cfg_f1sterilitychance("VOLE_FONESTERILITYCHANCE", CFG_CUSTOM, 0.0)
int m_total3
Definition: VolePopulationManager.h:164
virtual void DoProbe(int a_lifestage)
Definition: AOR_Probe.cpp:104
void SetMapValue(unsigned x, unsigned y, a_type p)
Definition: MovementMap.h:143
static CfgStr cfg_VoleRecordMortFile("VOLE_RECORDMORTFILE", CFG_CUSTOM, "VoleMortalityCauses.txt")
Vole_FemaleList FList
Definition: VolePopulationManager.h:221
a_type GetMapValue(unsigned x, unsigned y)
Definition: MovementMap.h:140
int SupplyCountFemales(unsigned p_x, unsigned p_y, unsigned p_TerrRange) const
Definition: VolePopulationManager.cpp:2238
int SupplySimAreaWidth(void)
Gets the simulation landscape width.
Definition: Landscape.h:2297
void TheRipleysOutputProbe(ofstream *a_prb) override
Special output functionality.
Definition: VolePopulationManager.cpp:3037
A simple class defining an x,y coordinate set.
Definition: ALMaSS_Setup.h:52
static CfgInt cfg_GeneticResultOutputSecondYear("GENETICS_RESULT_OUTPUT_SECOND_YEAR", CFG_CUSTOM, 100000)
static CfgInt cfg_genetetic_output_sample_size("VOLE_GENETIC_SAMPLE_SIZE", CFG_CUSTOM, 500)
Definition: VolePopulationManager.h:85
Definition: vole_all.h:71
Bool configurator entry class.
Definition: Configurator.h:155
vector< APoint > m_TrapCoords
List of trap co-ordinates.
Definition: VolePopulationManager.h:112
Class to handle statistics and constructs based on allele frequencies.
Definition: GeneticMaterial.h:61
static CfgFloat cfg_MutationChance("GENETICS_MUTATION_CHANCE", CFG_CUSTOM, 0.001)
int FatherId
Definition: vole_all.h:127
int Supply_m_Location_y() const
Returns the ALMaSS y-coordinate.
Definition: PopulationManager.h:243
The base class for all ALMaSS animal classes. Includes all the functionality required to be handled b...
Definition: PopulationManager.h:200
bool SupplyTerritorial()
Definition: vole_all.h:335
Definition: vole_all.h:67
bool IsTrap(const unsigned a_x, const unsigned a_y)
Is there a trap at this x,y?
Definition: VolePopulationManager.h:99
void TheReallyBigOutputProbe() override
Definition: VolePopulationManager.cpp:3086
Vole_Population_Manager * VPM
Definition: vole_all.h:131
static CfgInt cfg_GeneticsResultOutputDay_1("GENETICS_RESULT_OUTPUT_DAY_ONE", CFG_CUSTOM, 3)
Definition: VolePopulationManager.h:75
FILE * SexRatiosPrb
Definition: VolePopulationManager.h:194
Definition: VolePopulationManager.h:78
static CfgBool cfg_UseVoleTraplines("VOLE_TRAPLINES_ON_OFF", CFG_CUSTOM, false)
int m_female2
Definition: VolePopulationManager.h:159
void Warn(MapErrorState a_level, std::string a_msg1, std::string a_msg2)
Definition: MapErrorMsg.cpp:69
int ReproTable[4][12]
Definition: VolePopulationManager.h:218
Definition: VolePopulationManager.h:83
Base class for all population managers for agent based models.
Definition: PopulationManager.h:645
TTypeOfVoleMortality
Types of vole mortality.
Definition: VolePopulationManager.h:71
Vole_Male * FindWithinRadiusMale(int p_x, int p_y) const
Definition: VolePopulationManager.cpp:1885
int SupplyDayInYear(void)
Passes a request on to the associated Calendar class function, the day in the year.
Definition: Landscape.h:2267
int g_sigAgeDiff
Definition: Vole_all.cpp:147
bool m_is_paralleled
This is used to indicate whether the species is paralleled.
Definition: PopulationManager.h:796
TTypesOfPesticide SupplyPesticideType(void)
Gets type of pesticide effect from a reference.
Definition: Landscape.h:788
int m_x
Definition: ALMaSS_Setup.h:55
bool SupplyOlderFemales(unsigned p_x, unsigned p_y, unsigned p_Age, unsigned p_range) const
Definition: VolePopulationManager.cpp:744
unsigned IDNumber
Definition: VolePopulationManager.h:219
void AddToFrag1Female()
Definition: VolePopulationManager.h:213
vector< Vole_Male * > Vole_MaleList
Definition: VolePopulationManager.h:52
int SupplyYearNumber(void)
Passes a request on to the associated Calendar class function, returns m_simulationyear
Definition: Landscape.h:2287
void ClearMapValue(unsigned x, unsigned y)
Definition: MovementMap.h:146
static CfgInt cfg_geneticproductfertilityeffect("VOLE_GENETICPRODUCTFERTILITYEFFECT", CFG_CUSTOM, 50)
TrapLineMap(unsigned int a_width, unsigned int a_height, unsigned int a_resolution, const char *a_file)
TrapLineMap constructor.
Definition: VolePopulationManager.cpp:3222
int value() const
Definition: Configurator.h:116
CfgInt cfg_CatastropheEventStartYear
int thisYear
Definition: VolePopulationManager.h:150
TTypesOfLandscapeElement m_EleType
Definition: PopulationManager.h:175
static bool RecordGeneticsToday(int p_today, int p_year, int p_start_year, int p_interval)
Definition: VolePopulationManager.cpp:735
void AddToYoungYr(const int young)
Definition: VolePopulationManager.h:249
double AssessHabitat(int p_Polyref) const
Assess the quality of habitat at p_Polyref.
Definition: VolePopulationManager.cpp:718
int y
Definition: vole_all.h:118
void TheAOROutputProbe() override
Definition: VolePopulationManager.cpp:3034
unsigned m_y
Definition: PopulationManager.h:174
static CfgInt cfg_voleLandscapeGridOutputDay("VOLE_LANDSCAPEGRIDOUTPUTDAY", CFG_CUSTOM, 10000)
void Initiation(AlleleFreq *Al)
Definition: GeneticMaterial.cpp:363
int SimW
stores the simulation width
Definition: PopulationManager.h:616
The class to handle all vole population related matters.
Definition: VolePopulationManager.h:148
int GetCurrentStateNo() const
Returns the current state number.
Definition: PopulationManager.h:137
bool OpenTheRipleysOutputProbe()
Definition: PopulationManager.cpp:897
void CreateObjects(VoleObject a_obType, TAnimal *a_pvo, struct_Vole_Adult *a_as, int a_number)
Definition: VolePopulationManager.cpp:2756
int m_total1
Definition: VolePopulationManager.h:156
int NoYoungKilledToday
Definition: VolePopulationManager.h:274
double vole_toletoc_asses_habitat_score(Landscape *m_TheLandscape, int p_Polyref)
Definition: Vole_toletoc.cpp:451
const char * StateNames[100]
Definition: PopulationManager.h:801
void ResetData()
Definition: VolePopulationManager.cpp:3298
void AddToFrag2Female()
Definition: VolePopulationManager.h:215
static CfgInt cfg_SexRatiosOutputFirstYear("VOLE_SEXRATIOSOUTPUT_FIRSTYEAR", CFG_CUSTOM, 1)
Vole_Male * FindRandomMale()
Definition: VolePopulationManager.cpp:2222
int m_male2
Definition: VolePopulationManager.h:158
static CfgFloat cfg_GrassStartGrowth("VOLE_GRASSSTARTGROWTH", CFG_CUSTOM, 3.552)
The class for juvenile male voles.
Definition: vole_all.h:458
double g_extradispmort
Definition: Vole_all.cpp:198
virtual void Init()
Definition: VolePopulationManager.cpp:230
AlleleFreq * AFreq
Definition: VolePopulationManager.h:272
int g_MaleReproductFinish
Definition: Vole_all.cpp:177
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
FILE * YoungsFile
Definition: VolePopulationManager.h:275
Definition: VolePopulationManager.h:73
A class for storing the position of the trap the vole is in.
Definition: vole_all.h:106
void AddToFrag3Female()
Definition: VolePopulationManager.h:217
static CfgStr cfg_SexRatiosOutput_filename("VOLE_SEXRATIOS_FILENAME", CFG_CUSTOM, "VoleSexRatios.txt")
ofstream * m_File
Definition: VolePopulationManager.h:134
TrapLineMap * m_Traplines
Definition: VolePopulationManager.h:166
Integer configurator entry class.
Definition: Configurator.h:102
ofstream * m_VoleAgeSexLocationFile
Definition: VolePopulationManager.h:189
CfgBool cfg_ReallyBigOutputMonthly_used
VoleSummaryOutput(const char *a_filename, Landscape *a_land, int a_numdataINT, int a_numdataDOUBLE)
Definition: VolePopulationManager.cpp:3274
int MotherId
Definition: vole_all.h:128
The class for male voles.
Definition: vole_all.h:499
VoleObject
Definition: vole_all.h:94
Definition: PopulationManager.h:60
double GetHabitatQuality(const int a_index) const
Definition: VolePopulationManager.h:230
~Vole_Population_Manager() override
Definition: VolePopulationManager.cpp:208
static CfgBool cfg_genetic_output("VOLE_GENETIC_OUTPUT", CFG_CUSTOM, true)
TTypeOfVoleMessage
Types of vole message.
Definition: VolePopulationManager.h:63
Double configurator entry class.
Definition: Configurator.h:126
string m_SimulationName
stores the simulation name
Definition: PopulationManager.h:622
int SupplyInOlderTerr(unsigned p_x, unsigned p_y, unsigned p_Age, unsigned p_Range) const
Definition: VolePopulationManager.cpp:2370
int m_male3
Definition: VolePopulationManager.h:162
void Output(const InTrapPosition &a_tp, int a_day, int a_sex, bool a_terr, int a_age, int a_bx, int a_by, int a_ID) const
Definition: VolePopulationManager.cpp:3262
Landscape * m_landscape
Definition: VolePopulationManager.h:135
double MoveToLessFavourable
Definition: VolePopulationManager.cpp:155
static CfgFloat cfg_MoveToLessFavourable("VOLEMOVETOLESSFAVOURALBLE", CFG_CUSTOM, 0.005)
VoleSummaryOutput * m_VoleRecordMort
Definition: VolePopulationManager.h:193
static CfgInt cfg_MateRadius("FEMALE_MATE_RADIUS", CFG_CUSTOM, 250)
A base class for summary outputs.
Definition: VolePopulationManager.h:120
Definition: VolePopulationManager.h:74
int m_ndDouble
Definition: VolePopulationManager.h:137
static CfgInt cfg_vole_reprofinishdate("VOLE_REPROFINISHDATE", CFG_CUSTOM, 243)
bool BarrierSearch(int F_x, int F_y, int M_x, int M_y) const
Definition: VolePopulationManager.cpp:975
Definition: Configurator.h:70
int g_random_fnc(const int a_range)
Definition: ALMaSS_Random.cpp:74
static CfgInt cfg_VoleTrapResolution("VOLE_TRAPRESOLUTION", CFG_CUSTOM, 2)
int MinReproAgeF
Definition: Vole_all.cpp:141
bool SupplySex()
Definition: vole_all.h:341
Definition: vole_all.h:65
virtual void Shuffle(unsigned Type)
Definition: PopulationManager.cpp:1229
double m_dataD[100]
Definition: VolePopulationManager.h:139
static CfgInt cfg_GeneticsResultOutputDay_2("GENETICS_RESULT_OUTPUT_DAY_TWO", CFG_CUSTOM, 6)
int x
Definition: vole_all.h:117
CfgBool cfg_ResistanceDominant
Vole_Population_Manager(Landscape *p_L)
Definition: VolePopulationManager.cpp:193
int SupplyYear(void)
Passes a request on to the associated Calendar class function, returns m_year.
Definition: Landscape.h:2282
uint32 GetVoleAllele(const int a_list, const int a_vole, const int a_locus, const int a_chromosome)
used to get a specific vole allele from outside the population manager
Definition: VolePopulationManager.h:196
void PushIndividual(const unsigned a_listindex, TAnimal *a_individual_ptr)
Definition: PopulationManager.cpp:1682
void DoFirst() override
Definition: VolePopulationManager.cpp:487
void CreateObjectsInit(VoleObject a_obType, TAnimal *a_pvo, struct_Vole_Adult *a_voleStruct, int a_number)
Definition: VolePopulationManager.cpp:2856
int SupplyGrowthStartDate() const
Definition: VolePopulationManager.h:233
Definition: vole_all.h:58
ofstream * ReallyBigOutputPrb
Definition: PopulationManager.h:873
Definition: VolePopulationManager.h:72
void AddToFrag3Male()
Definition: VolePopulationManager.h:216
int ListClosestFemales(int p_x, int p_y, int p_steps)
Definition: VolePopulationManager.cpp:1454
static CfgInt cfg_vole_starting_numberM("VOLE_START_NO_M", CFG_CUSTOM, 5000)
Vole_Male * FindClosestMale(int p_x, int p_y, int p_steps) const
Definition: VolePopulationManager.cpp:2026
Definition: VolePopulationManager.h:81
void AddToYoung(const int young)
Definition: VolePopulationManager.h:245
virtual void OPrintEndl()
Definition: VolePopulationManager.cpp:3292
void Warn(std::string a_msg1, std::string a_msg2)
Wrapper for the g_msg Warn function.
Definition: Landscape.h:2250
int m_male1
Definition: VolePopulationManager.h:154
CfgBool cfg_CfgRipleysOutputUsed
Definition: GeneticMaterial.h:125
int m_female1
Definition: VolePopulationManager.h:155
virtual ~VoleSummaryOutput()
Definition: VolePopulationManager.cpp:3282
void ResistanceOutput()
Resistance results file output
Definition: VolePopulationManager.cpp:3481
int SupplyPolyRef(int a_x, int a_y)
Get the in map polygon reference number from the x, y location.
Definition: Landscape.h:2157
int JuvsProducedToday
Definition: VolePopulationManager.h:273
Definition: VolePopulationManager.h:77
void SetValue(unsigned a_x, unsigned a_y, unsigned a_value)
Definition: BinaryMapBase.cpp:98
bool vole_tole_assess_barrier(Landscape *m_TheLandscape, int p_Polyref)
Definition: Vole_toletoc.cpp:813
int m_y
Definition: ALMaSS_Setup.h:56
int YearsTotal
Definition: VolePopulationManager.h:150
long SupplyGlobalDate(void)
Passes a request on to the associated Calendar class function, returns the simulation global date for...
Definition: Landscape.h:2292
Definition: vole_all.h:59
static CfgStr cfg_VoleTraplinesfile("VOLE_TRAPLINESFILE", CFG_CUSTOM, "VoleTraplines.txt")
static CfgInt cfg_sigAgeDiff("VOLE_SIGAGEDIFF", CFG_CUSTOM, 30)
CfgBool cfg_SexRatiosOutput_used("VOLE_SEXRATIOSOUTPUT_USED", CFG_CUSTOM, false)
IDMap< TAnimal * > * m_VoleMap
Definition: VolePopulationManager.h:276
FILE * m_ofile
Definition: VolePopulationManager.h:113
TTypesOfVegetation m_VegType
Definition: PopulationManager.h:176
void IncLiveArraySize(int a_listindex)
Increments the number of 'live' objects for a list index in the TheArray.
Definition: PopulationManager.h:665
double g_DailyMortChanceMaleTerr
Definition: Vole_all.cpp:184