ALMaSS  1.2 (after EcoStack, March 2024)
The Animal, Landscape and Man Simulation System
vole_all.h
Go to the documentation of this file.
1 /*
2 *******************************************************************************************************
3 Copyright (c) 2011, Christopher John Topping, Aarhus University
4 All rights reserved.
5 
6 Redistribution and use in source and binary forms, with or without modification, are permitted provided
7 that the following conditions are met:
8 
9 Redistributions of source code must retain the above copyright notice, this list of conditions and the
10 following disclaimer.
11 Redistributions in binary form must reproduce the above copyright notice, this list of conditions and
12 the following disclaimer in the documentation and/or other materials provided with the distribution.
13 
14 THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" AND ANY EXPRESS OR
15 IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND
16 FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT HOLDER OR CONTRIBUTORS
17 BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING,
18 BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR
19 BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT
20 LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS
21 SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
22 ********************************************************************************************************
23 */
39 //---------------------------------------------------------------------------
40 #ifndef Vole_allH
41 #define Vole_allH
42 
43 #include "GeneticMaterial.h"
44 
45 class MovementMap16;
46 
47 //---------------------------------------------------------------------------
48 //---------------------------------------------------------------------------
49 
54 typedef enum {
56  //Males
62  //Females
73 
74 typedef enum {
80 //------------------------------------------------------------------------------
81 
82 // Forward Declarations
83 
85 class Landscape;
86 class AlleleFreq1616;
89 class AlleleFreq;
90 class GeneticMaterial;
91 
92 //------------------------------------------------------------------------------
93 
94 typedef enum {
100 } VoleObject;
101 
107 public:
108  bool m_inAtrap;
109 };
110 
116 public:
117  int x;
118  int y;
119  int age;
120  double weight;
121  int xborn;
122  int yborn;
124  int ElemBorn;
125  int VegBorn;
127  int FatherId;
128  int MotherId;
132  //GeneticMaterial256_16 Genes256_16;
134  bool m_flag;
135  bool m_gflag;
136  bool m_dflag;
137  double misc_use; // used to pass a parameter e.g. for pesticide use
138 };
139 
140 //------------------------------------------------------------------------------
145 class Vole_Base : public TAnimal {
146  // Attributes
147 protected:
156  unsigned int m_MinTerrRange;
158  unsigned m_MotherId;
160  unsigned m_FatherId;
162  int m_Death;
166  bool m_Sex;
168  bool m_Mature;
170  int m_Age;
172  int m_XBorn; //*TD*
174  int m_YBorn; //*TD*
178  int m_ElemBorn; //*TD*
180  int m_VegBorn; //*TD*
184  double m_Weight;
186  bool m_fertile;
187 #ifdef __VoleStarvationDays
188 
189  int m_StarvationDays;
190 #endif
191  // No of young produced;
200  unsigned IDNo;
204  //GeneticMaterial256_16 MyGenes;
208  static unsigned int m_MaxMaleTerritorySize;
210  static unsigned int m_MaxFemaleTerritorySize;
212  static unsigned int m_MinMaleTerritorySize;
214  static unsigned int m_MinFemaleTerritorySize;
216  static double m_MinFVoleHabQual;
218  static double m_MinJMVoleHabQual;
220  static double m_MinMVoleHabQual;
225  // The values below were fitted by trial and error but await a detailed sensitivity analysis when spatial data is available
227  static double m_FHabQualThreshold3;
229  static double m_FHabQualThreshold2;
231  static double m_FHabQualThreshold1;
233  static double m_MHabQualThreshold3;
235  static double m_MHabQualThreshold2;
237  static double m_MHabQualThreshold1;
239  static bool m_BreedingSeason;
240 #ifdef __VoleStarvationDays
241 
243  static int m_MaxStarvationDays;
244 #endif
245 
246 #ifdef __VOLEPESTICIDEON
247 public:
248  double SupplyPesticideLoad() { return m_pesticideload; }
249  double SupplyBioDegradeRate() { return m_pesticideBioDegradeRate; }
250  void SetPesticideInfluenced1(bool a_bool) { m_pesticideInfluenced1 = a_bool; }
251  void SetPesticideInfluenced2(bool a_bool) { m_pesticideInfluenced2 = a_bool; }
252  bool GetPesticideInfluenced1() { return m_pesticideInfluenced1; }
253  bool GetPesticideInfluenced2() { return m_pesticideInfluenced2; }
254 protected:
255  bool m_pesticideInfluenced1;
256  bool m_pesticideInfluenced2;
257  double m_pesticideInfluenced3;
258  double m_pesticideload;
259  double m_pesticideBioDegradeRate;
260  void AddToPesticidLoad(double a_pestamount) { m_pesticideload+=a_pestamount; }
261  void BioDegradePesticide() { m_pesticideload *= m_pesticideBioDegradeRate; }
262  void ClearPesticidLoad() { m_pesticideload = 0.0; }
263  void SetBioDegradeRate(double a_rate) { m_pesticideBioDegradeRate = a_rate; }
264  virtual void PesticideIngestion( void );
265  virtual void ActOnPesticideDose( void );
266  virtual void ModelinkPesticide() { ; }
267  virtual void ModelinkPesticide21TWA(double /* a_dose */ ) { ; }
268  virtual void Vinclozolin(double /* a_dose */ ) { ; }
269  virtual void GeneralOrganophosphate(double /* a_dose */) { ; }
270  virtual void GeneralEndocrineDisruptor(double /* a_dose */) { ; }
271  virtual void GeneticDemoPesticide(double /* a_dose */){ ; }
272 #endif
273 #ifdef __VOLERODENTICIDEON
274  virtual void RodenticideIngestion(void);
275 #endif
276 
277 public:
278  // Functions
279  Vole_Base(struct_Vole_Adult* a_AVoleStruct_ptr);
280  ~Vole_Base() override;
281  virtual void Init(struct_Vole_Adult* a_AVoleStruct_ptr);
282  virtual void ReInit(struct_Vole_Adult* a_AVoleStruct_ptr);
283 
284  void BeginStep() override {
285  };
286 
287  void Step() override {
288  };
289  void EndStep() override;
290  void st_Dying();
291 
293  void SetBreedingSeason(bool a_flag) { m_BreedingSeason = a_flag; }
295  void SetWeight(double W) { m_Weight = W; }
297  void Setm_Mature() { m_Mature = true; }
299  void Set_BirthYear(int BirthYear) { m_BirthYear = BirthYear; }
300 
302  void Set_MotherId(unsigned MotherIdNo) { m_MotherId = MotherIdNo; }; // ***TD***
304  void Set_FatherId(unsigned FatherIdNo) { m_FatherId = FatherIdNo; }; // ***TD***
306  void Set_NoYoungTot(int a_NoOfYoung) { m_NoOfYoungTotal += a_NoOfYoung; }; // ***TD***
308  void Set_XBorn(int a_Location_x) { m_XBorn = a_Location_x; }; // ***TD***
310  void Set_YBorn(int a_Location_y) { m_YBorn = a_Location_y; }; // ***TD***
312  void Set_ElemBorn(int a_Location_x, int a_Location_y) // ***TD***
313  {
314  TTypesOfLandscapeElement const m_EBorn = m_OurLandscape->SupplyElementType(a_Location_x, a_Location_y);
316  }
317 
319  void Set_VegBorn(int a_Location_x, int a_Location_y) // ***TD***
320  {
321  TTypesOfVegetation const m_VBorn = (m_OurLandscape->SupplyVegType(a_Location_x, a_Location_y));
323  }
324 
326  void Set_PolyRefBorn(int a_Location_x, int a_Location_y) { m_PolyRefBorn = (m_OurLandscape->SupplyPolyRef(a_Location_x, a_Location_y)); }; // ***TD***
328  void Set_Age(int Age) { m_Age = Age; }
329 
331  int WhatState() override { return CurrentVState; }
335  bool SupplyTerritorial() { return m_Have_Territory; } // ***TD***
337  int SupplyFatherId() { return m_FatherId; }; // ***TD***
339  int SupplyMotherId() { return m_MotherId; }; // ***TD***
341  bool SupplySex() { return m_Sex; };
343  int SupplyBirthYear() { return m_BirthYear; }; // ***TD***
345  int SupplyTotNoYoung() { return m_NoOfYoungTotal; }; // ***TD***
347  int SupplyXBorn() { return m_XBorn; }; // ***TD***
349  int SupplyYBorn() { return m_YBorn; }; // ***TD***
351  int SupplyPolyRefBorn() { return m_PolyRefBorn; }; // ***TD***
353  int SupplyElemBorn() { return m_ElemBorn; }; // ***TD***
357  int SupplyVegBorn() { return m_VegBorn; }; // ***TD***
359  int SupplyTerrRange() { return m_TerrRange; }; // ***TD***
361  double SupplyWeight() { return m_Weight; };
363  int SupplyIDNo() { return IDNo; }; // ***TD***
365  bool SupplyMature() { return m_Mature; };
367  int SupplyDeathCause() { return m_Death; }; // ***TD***
369  unsigned SupplyAge() { return m_Age; };
371  unsigned SupplyX() { return m_Location_x; };
373  unsigned SupplyY() { return m_Location_y; };
375  bool SupplyInTrap() { return m_intrappos.m_inAtrap; }
379  void SetFree() { m_intrappos.m_inAtrap = false; }
385  int SupplyAllele(int locus, int allele) { return m_MyGenes.GetAllele(locus, allele); }
386  uint32 SupplyMyAllele(int i, int j) { return m_MyGenes.GetAllele(i, j); } //*TD
401 
402  virtual void OnKilled() {
403  };
404  virtual bool MortalityTest();
408  void CopyMyself(VoleObject a_vole);
413  void SetFertile(bool f) {
417  m_fertile = f;
418  }
419 
424  bool GetFertile() {
428  return m_fertile;
429  }
430 
431 protected:
432  double CalculateCarryingCapacity(int x, int y, int a_ddep) const;
433  //double CalculateCarryingCapacity(int x,int y,int &p_stand_x,int &p_stand_y);
434  int MoveQuality(int p_x, int p_y) const;
435  void MoveTo(int p_Vector, int p_Distance, int iterations);
436  void DoWalking(int p_Distance, int& p_Vector, int& vx, int& vy) const;
437  void DoWalkingCorrect(int p_Distance, int& p_Vector, int& vx, int& vy) const;
438  void Escape(int p_Vector, int p_Distance);
439  void CheckTraps();
440 
441  virtual void SetLocation() {
442  };
443 
444  virtual void FreeLocation() {
445  };
446  virtual bool GetLocation(int /*unused*/, int /*unused*/) { return false; };
447 };
448 
449 //------------------------------------------------------------------------------
450 
458 class Vole_JuvenileMale : public Vole_Base {
459 public:
460  Vole_JuvenileMale(struct_Vole_Adult* p_aVoleStruct);
461  ~Vole_JuvenileMale() override;
462  void ReInit(struct_Vole_Adult* p_aVoleStruct) override;
463  bool OnFarmEvent(FarmToDo event) override;
464  void BeginStep() override;
465  void Step() override;
466  void EndStep() override;
467  void OnKilled() override;
468 
469 protected:
470  void SetLocation() override;
471  void FreeLocation() override;
472  bool GetLocation(int px, int py) override;
473  TTypeOfVoleState Dispersal(double p_OldQual, int p_Distance);
474  void DetermineTerritorySize();
475  inline bool CanFeed();
476  void st_JuvenileExplore(void);
477  void st_BecomeSubAdult(void);
479 #ifdef __VOLEPESTICIDEON
480  virtual void ModelinkPesticide();
481  virtual void ModelinkPesticide21TWA(double a_dose);
482  virtual void Vinclozolin(double a_dose);
483  virtual void GeneralOrganophosphate(double a_dose);
484  virtual void GeneralEndocrineDisruptor(double /* a_dose */);
485  virtual void GeneticDemoPesticide(double /* a_dose */);
486 
487 #endif
488 };
489 
490 //------------------------------------------------------------------------------
491 
499 class Vole_Male : public Vole_JuvenileMale {
500 public:
501  Vole_Male(struct_Vole_Adult* p_aVoleStruct);
502  void ReInit(struct_Vole_Adult* p_aVoleStruct) override;
503  ~Vole_Male() override;
504  //virtual bool OnFarmEvent(FarmToDo event);
505  //virtual void BeginStep();
506  void Step() override;
507  void EndStep() override;
508 
509 protected:
510  VoleDispersalReturns Dispersal(double p_OldQual, int p_Distance);
511  void DetermineTerritorySize();
512  inline bool CanFeed() const;
513  int st_Maturation(void) const;
514  void st_Infanticide(void) const;
515  bool MortalityTest() override;
517 #ifdef __VOLEPESTICIDEON
518  virtual void ModelinkPesticide();
519  virtual void ModelinkPesticide21TWA(double a_dose);
520  virtual void Vinclozolin(double a_dose);
521  virtual void GeneralOrganophosphate(double a_dose);
522  virtual void GeneralEndocrineDisruptor(double /* a_dose */);
523  virtual void GeneticDemoPesticide(double /* a_dose */);
524 #endif
525 };
526 
527 //------------------------------------------------------------------------------
528 
537 public:
538  Vole_JuvenileFemale(struct_Vole_Adult* p_aVoleStruct);
539  void ReInit(struct_Vole_Adult* p_aVoleStruct) override;
540  ~Vole_JuvenileFemale() override;
541  bool OnFarmEvent(FarmToDo event) override;
542  void BeginStep() override;
543  void Step() override;
544  void EndStep() override;
545  void OnKilled() override;
546 
547 protected:
548  // Methods
549  int Dispersal(double p_OldQual, int p_Distance);
550  int st_Evaluate_n_Explore();
551  void st_BecomeSubAdult(void);
552  //unsigned HowManyOldFemales(int p_x, int p_y);
553  void SetLocation() override;
554  void FreeLocation() override;
555  bool GetLocation(int px, int py) override;
556 #ifdef __VOLEPESTICIDEON
557  double m_maturitydelay;
558  virtual void ModelinkPesticide();
559  virtual void ModelinkPesticide21TWA(double a_dose);
560  virtual void Vinclozolin(double a_dose);
561  virtual void GeneralOrganophosphate(double a_dose);
562  virtual void GeneralEndocrineDisruptor(double /* a_dose */);
563  virtual void GeneticDemoPesticide(double /* a_dose */);
564 public:
565  void SetMaturityDelay(double a_delay) { m_maturitydelay = a_delay; }
566 #endif
567 };
568 
569 //---------------------------------------------------------------------------
570 
579 public:
580  Vole_Female(struct_Vole_Adult* p_aVoleStruct);
581  void ReInit(struct_Vole_Adult* p_aVoleStruct) override;
582  ~Vole_Female() override;
583  void Step() override;
584  int SupplyNoOfYoung() { return m_NoOfYoung; };
585 
586  int SupplyMateId() { return m_MatesIdNo; };
587  int SupplyMateSB() { return m_MateLive; };
588 
589  unsigned SupplyYoungAge() { return m_YoungAge; };
590  bool SupplyPregnant() { return m_Pregnant; };
591 
592  void Set_MateState(int MateState) { m_MateLive = MateState; };
593  void OnInfanticideAttempt();
594 
595 protected:
596  //Attributes
597 
619  unsigned m_YoungAge;
625 
626  // Methods
632  int st_Evaluate_n_Explore();
633  int st_Special_Explore();
635 #ifdef __VOLEPESTICIDEON
636  unsigned int m_pesticideloadindex;
637  double m_pesticideloadarray[21];
638  virtual void ModelinkPesticide();
639  virtual void ModelinkPesticide21TWA(double a_dose);
640  virtual void Vinclozolin(double a_dose);
641  virtual void GeneralOrganophosphate(double a_dose);
642  virtual void GeneralEndocrineDisruptor(double /* a_dose */);
643  static int m_EndoCrineDisruptionGestationLength;
644  virtual void GeneticDemoPesticide(double /* a_dose */);
645 #endif
646 };
647 
648 //---------------------------------------------------------------------------
649 #endif
growthperdayM
const double growthperdayM
Definition: Vole_all.cpp:133
Vole_Base::SupplyXBorn
int SupplyXBorn()
Definition: vole_all.h:347
Vole_Base::m_LifeSpan
int m_LifeSpan
Definition: vole_all.h:182
Vole_Base::Set_ElemBorn
void Set_ElemBorn(int a_Location_x, int a_Location_y)
Definition: vole_all.h:312
vob_JuvenileFemale
Definition: vole_all.h:96
Vole_Base::RodenticideIngestion
virtual void RodenticideIngestion(void)
Definition: Vole_all.cpp:3115
fiber_removal
Definition: Treatment.h:129
cfg_PesticideAccumulationThreshold
static CfgFloat cfg_PesticideAccumulationThreshold("VOLE_PESTICDEACCUMULATIONTHRESHOLD", CFG_CUSTOM, 20.0)
fp_rsm
Definition: Treatment.h:64
tovmort_MPest
Definition: VolePopulationManager.h:84
Vole_Base::m_MotherId
unsigned m_MotherId
Definition: vole_all.h:158
org_insecticide
Definition: Treatment.h:84
TTypeOfVoleState
TTypeOfVoleState
Vole behavioural states.
Definition: vole_all.h:54
fa_sk
Definition: Treatment.h:71
MinReproAgeM
int MinReproAgeM
Definition: Vole_all.cpp:139
row_cultivation
Definition: Treatment.h:88
fa_pk
Definition: Treatment.h:68
WARN_FILE
Definition: MapErrorMsg.h:37
Vole_Male::EndStep
void EndStep() override
Male vole EndStep.
Definition: Vole_all.cpp:2286
Vole_Male::MortalityTest
bool MortalityTest() override
Do a mortality test.
Definition: Vole_all.cpp:2556
winter_harrow
Definition: Treatment.h:144
fp_npk
Definition: Treatment.h:52
strigling
Definition: Treatment.h:89
g_rand_uni_fnc
double g_rand_uni_fnc()
Definition: ALMaSS_Random.cpp:56
GeneticMaterial::UnsetGeneticFlag
void UnsetGeneticFlag()
Definition: GeneticMaterial.cpp:175
harvest
Definition: Treatment.h:94
fa_nk
Definition: Treatment.h:142
MinReproAgeF
int MinReproAgeF
Definition: Vole_all.cpp:141
Vole_Base::m_ElemBorn
int m_ElemBorn
Definition: vole_all.h:178
Vole_Base::SupplyTotNoYoung
int SupplyTotNoYoung()
Definition: vole_all.h:345
TAnimal::SupplyPosition
AnimalPosition SupplyPosition() const
Returns the objects location and habitat type and veg type.
Definition: PopulationManager.cpp:1533
Vole_Population_Manager::IsTrap
bool IsTrap(int p_x, int p_y) const
Definition: VolePopulationManager.h:201
tovmort_MPred
Definition: VolePopulationManager.h:80
cfg_vole_LifeMonths
static CfgInt cfg_vole_LifeMonths("VOLE_LIFEMONTHS", CFG_CUSTOM, 3)
Vole_Base::m_FHabQualThreshold2
static double m_FHabQualThreshold2
Definition: vole_all.h:229
insecticide_treat
Definition: Treatment.h:83
Vole_Base::m_MHabQualThreshold2
static double m_MHabQualThreshold2
Definition: vole_all.h:235
Vole_Base::CurrentVState
TTypeOfVoleState CurrentVState
Definition: vole_all.h:406
Vole_Base::Init
virtual void Init(struct_Vole_Adult *a_AVoleStruct_ptr)
Definition: Vole_all.cpp:228
straw_chopping
Definition: Treatment.h:99
Vole_Base::SupplyElemBorn
int SupplyElemBorn()
Definition: vole_all.h:353
Vole_Female::~Vole_Female
~Vole_Female() override
Definition: Vole_all.cpp:1711
Landscape::SupplyVegType
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
fa_greenmanure
Definition: Treatment.h:76
tovs_MDying
Definition: vole_all.h:61
Landscape::SupplyElementType
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
stubble_plough
Definition: Treatment.h:35
Vole_Base::m_MinTerrRange
unsigned int m_MinTerrRange
Definition: vole_all.h:156
growth_regulator
Definition: Treatment.h:81
Vole_Female::SupplyMateId
int SupplyMateId()
Definition: vole_all.h:586
cfg_productapplicendyear
CfgInt cfg_productapplicendyear
MinReproWeightF
const int MinReproWeightF
Definition: Vole_all.cpp:145
FemNoMature
const int FemNoMature
Definition: Vole_all.cpp:117
Population_Manager_Base::SupplySimH
int SupplySimH() const
Returns landscape height in m.
Definition: PopulationManager.h:569
Vole_Population_Manager::AddToJuvs
void AddToJuvs(const int juvs)
Definition: VolePopulationManager.h:250
deep_ploughing
Definition: Treatment.h:43
hilling_up
Definition: Treatment.h:91
Vole_Base::MoveTo
void MoveTo(int p_Vector, int p_Distance, int iterations)
Movement.
Definition: Vole_all.cpp:883
cfg_PesticideLitterSizeReduction
static CfgFloat cfg_PesticideLitterSizeReduction("VOLE_PCIDE_LITTERSIZEREDUCTION", CFG_CUSTOM, 0.0038)
Vole_Base::SupplyY
unsigned SupplyY()
Definition: vole_all.h:373
green_harvest
Definition: Treatment.h:127
autumn_or_spring_plough
Definition: Treatment.h:103
Vole_Female::st_ReproBehaviour
TTypeOfVoleState st_ReproBehaviour() const
Reproductive switch.
Definition: Vole_all.cpp:1794
TheGestationPeriod
const unsigned TheGestationPeriod
Definition: Vole_all.cpp:121
flower_cutting
Definition: Treatment.h:121
Vole_Base::UnsetGeneticFlag
void UnsetGeneticFlag()
Definition: vole_all.h:396
tovs_GiveBirth
Definition: vole_all.h:66
Vole_Base
Base class for voles - all vole objects are descended from this class.
Definition: vole_all.h:145
vob_Female
Definition: vole_all.h:98
Vole_Base::m_BirthYear
int m_BirthYear
Definition: vole_all.h:149
Vole_Base::CheckTraps
void CheckTraps()
Definition: Vole_all.cpp:2590
Vole_Population_Manager::SupplyHowManyVoles
int SupplyHowManyVoles(unsigned a_x, unsigned a_y, unsigned a_range) const
Definition: VolePopulationManager.cpp:890
Vole_Base::MoveQuality
int MoveQuality(int p_x, int p_y) const
Test a location for quality while moving.
Definition: Vole_all.cpp:1186
spring_plough
Definition: Treatment.h:44
Vole_Male::~Vole_Male
~Vole_Male() override
Definition: Vole_all.cpp:2231
fp_sk
Definition: Treatment.h:56
cfg_MaxMaleTerrSize
static CfgInt cfg_MaxMaleTerrSize("VOLE_MAXMALETERRITORYSIZE", CFG_CUSTOM, 23)
pruning
Definition: Treatment.h:125
Vole_Population_Manager::FindClosestFemale
Vole_Female * FindClosestFemale(int p_x, int p_y, int p_steps) const
Definition: VolePopulationManager.cpp:1602
Vole_Base::m_VegBorn
int m_VegBorn
Definition: vole_all.h:180
tovs_ReproBehaviour
Definition: vole_all.h:64
cfg_InfanticideRangeRelToTerRange
static CfgFloat cfg_InfanticideRangeRelToTerRange("VOLE_IINFANTICIDERANGE_RELTO_TERRANGE", CFG_CUSTOM, 0.5)
Vole_JuvenileMale::st_Eval_n_Explore
TTypeOfVoleState st_Eval_n_Explore(void)
JuvenileMale vole main territory assessment behaviour.
Definition: Vole_all.cpp:2981
tovs_FEvaluateExplore
Definition: vole_all.h:63
Vole_Female::m_MatesGenes
GeneticMaterial m_MatesGenes
The DNA passed from the male on mating.
Definition: vole_all.h:624
Vole_Base::m_Mature
bool m_Mature
Definition: vole_all.h:168
tovm_Infanticide
Definition: VolePopulationManager.h:64
g_speedy_Divides
double g_speedy_Divides[2001]
A generally useful array of fast divide calculators by multiplication.
Definition: Landscape.cpp:344
TAnimal::m_guard_cell_y
int m_guard_cell_y
The index y to the guard cell.
Definition: PopulationManager.h:374
Vole_JuvenileMale::Dispersal
TTypeOfVoleState Dispersal(double p_OldQual, int p_Distance)
JuvenileMale vole dispersal behaviour.
Definition: Vole_all.cpp:3007
struct_Vole_Adult::FatherStateAtBirth
int FatherStateAtBirth
Definition: vole_all.h:129
fp_manure
Definition: Treatment.h:61
herbicide_treat
Definition: Treatment.h:80
fp_ammoniumsulphate
Definition: Treatment.h:60
Vole_Base::SupplyTrapPosition
InTrapPosition SupplyTrapPosition()
Definition: vole_all.h:377
Vole_Base::SupplyInTrap
bool SupplyInTrap()
Definition: vole_all.h:375
flammebehandling
Definition: Treatment.h:90
MinReproWeightM
const unsigned MinReproWeightM
Definition: Vole_all.cpp:143
tovmort_MLife
Definition: VolePopulationManager.h:82
straw_covering
Definition: Treatment.h:123
vob_JuvenileMale
Definition: vole_all.h:95
l_pest_enable_pesticide_engine
CfgBool l_pest_enable_pesticide_engine
Used to turn on or off the PPP functionality of ALMaSS.
Vole_Base::UnsetDirectFlag
void UnsetDirectFlag()
Definition: vole_all.h:398
VoleSoilCultivationMort
const double VoleSoilCultivationMort
Definition: Vole_all.cpp:190
fp_boron
Definition: Treatment.h:131
Vole_Base::Setm_Mature
void Setm_Mature()
Definition: vole_all.h:297
Vole_Base::SupplyX
unsigned SupplyX()
Definition: vole_all.h:371
tovmort_MFarm
Definition: VolePopulationManager.h:76
Landscape::BackTranslateVegTypes
int BackTranslateVegTypes(TTypesOfVegetation VegReference)
Returns the ALMaSS reference number translated from the TTypesOfVegetation type.
Definition: Landscape.h:2338
vob_Male
Definition: vole_all.h:97
VoleSummaryOutput::ChangeData
void ChangeData(int a_data, int a_value)
Definition: VolePopulationManager.cpp:3302
fp_cu
Definition: Treatment.h:138
Vole_JuvenileMale::~Vole_JuvenileMale
~Vole_JuvenileMale() override
Definition: Vole_all.cpp:3105
GeneticMaterial::HeterozygosityCount
int HeterozygosityCount()
Definition: GeneticMaterial.cpp:325
bulb_harvest
Definition: Treatment.h:122
preseeding_cultivator
Definition: Treatment.h:39
Vole_Base::m_MinJMVoleHabQual
static double m_MinJMVoleHabQual
Definition: vole_all.h:218
Vole_Female::st_Evaluate_n_Explore
int st_Evaluate_n_Explore()
Main territory evaluation behaviour.
Definition: Vole_all.cpp:2042
trial_control
Definition: Treatment.h:110
tovs_UpdateGestation
Definition: vole_all.h:69
fp_npks
Definition: Treatment.h:51
Vole_JuvenileMale::Step
void Step() override
Juvenile Male vole Step.
Definition: Vole_all.cpp:2915
CfgFloat::value
double value() const
Definition: Configurator.h:142
uint32
unsigned int uint32
Definition: ALMaSS_Setup.h:34
WeanedWeight
const int WeanedWeight
Definition: Vole_all.cpp:125
burn_top
Definition: Treatment.h:143
Vole_Base::SetDirectFlag
void SetDirectFlag()
Definition: vole_all.h:394
cfg_InfanticideProbability
static CfgFloat cfg_InfanticideProbability("INFANTI_PROBA", CFG_CUSTOM, 0.01)
FarmToDo
FarmToDo
Definition: Treatment.h:31
MaleMovement
const unsigned MaleMovement[4]
Definition: Vole_all.cpp:173
g_extradispmort
double g_extradispmort
Definition: Vole_all.cpp:198
Vole_Base::GetFertile
bool GetFertile()
Get the male vole fertility.
Definition: vole_all.h:424
cfg_MaxFemaleTerrSize
static CfgInt cfg_MaxFemaleTerrSize("VOLE_MAXFEMALETERRITORYSIZE", CFG_CUSTOM, 8)
struct_Vole_Adult
A struct for passing data to create a new vole.
Definition: vole_all.h:115
fp_nk
Definition: Treatment.h:133
Vole_Female::SupplyYoungAge
unsigned SupplyYoungAge()
Definition: vole_all.h:589
Vole_Base::SetWeight
void SetWeight(double W)
Definition: vole_all.h:295
Vole_Female::Set_MateState
void Set_MateState(int MateState)
Definition: vole_all.h:592
Vole_JuvenileMale::OnKilled
void OnKilled() override
JuvenileMale vole death by external entity.
Definition: Vole_all.cpp:3073
AnimalPosition::m_x
unsigned m_x
Definition: PopulationManager.h:173
burn_straw_stubble
Definition: Treatment.h:104
VoleMoveInterval
const unsigned VoleMoveInterval
Definition: Vole_all.cpp:171
org_herbicide
Definition: Treatment.h:85
Vole_Base::m_MyGenes
GeneticMaterial m_MyGenes
Definition: vole_all.h:205
tovs_Infanticide
Definition: vole_all.h:60
Vole_Base::SupplyElemType
TTypesOfLandscapeElement SupplyElemType()
Definition: vole_all.h:355
Vole_Male::Step
void Step() override
Male vole Step.
Definition: Vole_all.cpp:2246
Vole_Female::m_YoungAge
unsigned m_YoungAge
The age of current litter in days.
Definition: vole_all.h:619
Vole_Base::SupplyIDNo
int SupplyIDNo()
Definition: vole_all.h:363
g_NoFemalesMove
double g_NoFemalesMove
Definition: Vole_all.cpp:199
fa_cu
Definition: Treatment.h:140
Vole_Base::m_FHabQualThreshold1
static double m_FHabQualThreshold1
Definition: vole_all.h:231
autumn_roll
Definition: Treatment.h:38
strigling_hill
Definition: Treatment.h:117
heavy_cultivator_aggregate
Definition: Treatment.h:120
VoleHarvestMort
const double VoleHarvestMort
Definition: Vole_all.cpp:186
GrowStopDate
const int GrowStopDate
Definition: Vole_all.cpp:137
Vole_JuvenileFemale::Step
void Step() override
JuvenileFemale vole Step.
Definition: Vole_all.cpp:1279
Vole_Population_Manager::SendMessage
void SendMessage(TTypeOfVoleMessage p_message, unsigned p_x, unsigned p_y, unsigned p_range, bool p_sex, double p_Weight)
Definition: VolePopulationManager.cpp:2711
Vole_Male::CanFeed
bool CanFeed() const
Currently not used.
Definition: Vole_all.cpp:2583
fp_manganesesulphate
Definition: Treatment.h:59
GeneticMaterial::UnsetDirectFlag
void UnsetDirectFlag()
Definition: GeneticMaterial.cpp:179
struct_Vole_Adult::weight
double weight
Definition: vole_all.h:120
tovmort_FDisp
Definition: VolePopulationManager.h:79
Vole_JuvenileMale::FreeLocation
void FreeLocation() override
Map location function.
Definition: Vole_all.cpp:2861
hay_turning
Definition: Treatment.h:100
Vole_Base::Set_MotherId
void Set_MotherId(unsigned MotherIdNo)
Definition: vole_all.h:302
Vole_JuvenileFemale
The class for female voles.
Definition: vole_all.h:536
last_treatment
Definition: Treatment.h:150
cfg_MinReproAgeF
CfgInt cfg_MinReproAgeF("VOLE_MINREPROAGEF", CFG_CUSTOM, 23)
tovs_SpecialExplore
Definition: vole_all.h:70
straw_removal
Definition: Treatment.h:124
tovs_InitialState
Definition: vole_all.h:55
GeneticMaterial::GetDirectFlag
uint32 GetDirectFlag()
Definition: GeneticMaterial.cpp:188
Vole_Base::Set_XBorn
void Set_XBorn(int a_Location_x)
Definition: vole_all.h:308
Vole_Base::m_PolyRefBorn
int m_PolyRefBorn
Definition: vole_all.h:176
Vole_Base::GetLocation
virtual bool GetLocation(int, int)
Definition: vole_all.h:446
fa_n
Definition: Treatment.h:139
Vole_Base::m_Have_Territory
bool m_Have_Territory
Definition: vole_all.h:196
shredding
Definition: Treatment.h:126
Vole_Base::WhatState
int WhatState() override
Definition: vole_all.h:331
Vole_Base::m_Weight
double m_Weight
Definition: vole_all.h:184
Vole_Base::EndStep
void EndStep() override
All voles age at the end of the day.
Definition: Vole_all.cpp:323
g_MaleReproductFinish
int g_MaleReproductFinish
Definition: Vole_all.cpp:177
Vole_Base::SetFree
void SetFree()
Definition: vole_all.h:379
Vole_Female::SupplyMateSB
int SupplyMateSB()
Definition: vole_all.h:587
pheromone
Definition: Treatment.h:149
GeneticMaterial::SetDirectFlag
void SetDirectFlag()
Definition: GeneticMaterial.cpp:170
fp_n
Definition: Treatment.h:132
tovs_JuvenileExploration
Definition: vole_all.h:57
manual_weeding
Definition: Treatment.h:148
CfgBool::value
bool value() const
Definition: Configurator.h:164
Vole_Base::Set_YBorn
void Set_YBorn(int a_Location_y)
Definition: vole_all.h:310
fa_npk
Definition: Treatment.h:67
Vole_Base::m_MaxFemaleTerritorySize
static unsigned int m_MaxFemaleTerritorySize
Definition: vole_all.h:210
Vole_Base::SupplyAge
unsigned SupplyAge()
Definition: vole_all.h:369
Vole_Base::Set_VegBorn
void Set_VegBorn(int a_Location_x, int a_Location_y)
Definition: vole_all.h:319
ttop_GeneticDemo
Definition: LandscapeFarmingEnums.h:1065
Vole_JuvenileFemale::st_Evaluate_n_Explore
int st_Evaluate_n_Explore()
Main territory evaluation behaviour.
Definition: Vole_all.cpp:1587
Vole_Female::m_NoOfYoung
int m_NoOfYoung
The number of young in the current litter (if one).
Definition: vole_all.h:604
Vole_Population_Manager::AddToNoYoungInfanticideCount
void AddToNoYoungInfanticideCount(const int m_NoOfYoung, const int m_YoungAge)
Definition: VolePopulationManager.h:251
winter_plough
Definition: Treatment.h:42
MaxWeightM
const double MaxWeightM
Definition: Vole_all.cpp:127
vob_foobar
Definition: vole_all.h:99
Vole_Female
The class for female voles.
Definition: vole_all.h:578
fp_calcium
Definition: Treatment.h:65
struct_Vole_Adult::xborn
int xborn
Definition: vole_all.h:121
Vole_Male::st_Maturation
int st_Maturation(void) const
Male vole maturation control.
Definition: Vole_all.cpp:2337
spring_harrow
Definition: Treatment.h:45
cut_to_silage
Definition: Treatment.h:98
Vole_JuvenileFemale::Dispersal
int Dispersal(double p_OldQual, int p_Distance)
Female dispersal.
Definition: Vole_all.cpp:1639
Vole_Female::st_Lactating
TTypeOfVoleState st_Lactating()
Lactation.
Definition: Vole_all.cpp:1903
InfanticideChanceByAge
const double InfanticideChanceByAge[9]
Definition: Vole_all.cpp:179
tovs_Mating
Definition: vole_all.h:68
ttop_AcuteEffects
Definition: LandscapeFarmingEnums.h:1060
TTypesOfLandscapeElement
TTypesOfLandscapeElement
Values that represent the types of landscape polygon that are represented in ALMaSS.
Definition: LandscapeFarmingEnums.h:57
Landscape
The landscape class containing all environmental and topographical data.
Definition: Landscape.h:142
VoleDispersalReturns
VoleDispersalReturns
Definition: vole_all.h:74
Vole_Female::m_MatesIdNo
int m_MatesIdNo
Definition: vole_all.h:599
Vole_Base::FreeLocation
virtual void FreeLocation()
Definition: vole_all.h:444
Vole_Base::m_SimH
int m_SimH
Definition: vole_all.h:202
ttop_Vinclozolin
Definition: LandscapeFarmingEnums.h:1062
VoleStriglingMort
const double VoleStriglingMort
Definition: Vole_all.cpp:188
MaxWeightF
const double MaxWeightF
Definition: Vole_all.cpp:129
fa_sludge
Definition: Treatment.h:77
pigs_out
Definition: Treatment.h:96
GeneticMaterial
Class for the genetic material optionally carried by animals in ALMaSS.
Definition: GeneticMaterial.h:94
Vole_Base::CalculateCarryingCapacity
double CalculateCarryingCapacity(int x, int y, int a_ddep) const
Definition: Vole_all.cpp:369
Vole_Base::m_MaleTerritoryRangeSlope
static double m_MaleTerritoryRangeSlope
Definition: vole_all.h:222
Vole_JuvenileFemale::st_BecomeSubAdult
void st_BecomeSubAdult(void)
Definition: Vole_all.cpp:1553
Vole_Base::Set_Age
void Set_Age(int Age)
Definition: vole_all.h:328
fp_p
Definition: Treatment.h:54
struct_Vole_Adult::m_gflag
bool m_gflag
Definition: vole_all.h:135
Vole_JuvenileMale::DetermineTerritorySize
void DetermineTerritorySize()
Vole_Base::m_XBorn
int m_XBorn
Definition: vole_all.h:172
Vole_Female::st_Special_Explore
int st_Special_Explore()
Post weaning territory expansion.
Definition: Vole_all.cpp:2083
IDMap::SetMapValue
void SetMapValue(unsigned x, unsigned y, a_type p)
Definition: MovementMap.h:143
suckering
Definition: Treatment.h:130
struct_Vole_Adult::misc_use
double misc_use
Definition: vole_all.h:137
cut_to_hay
Definition: Treatment.h:97
Vole_Base::SupplyMyAllele
uint32 SupplyMyAllele(int i, int j)
Definition: vole_all.h:386
fa_boron
Definition: Treatment.h:141
Landscape::SupplyPesticide
double SupplyPesticide(int a_x, int a_y, PlantProtectionProducts a_ppp)
Gets total pesticide for a location.
Definition: Landscape.cpp:1386
IDMap::GetMapValue
a_type GetMapValue(unsigned x, unsigned y)
Definition: MovementMap.h:140
struct_Vole_Adult::Genes
GeneticMaterial Genes
Definition: vole_all.h:133
Vole_JuvenileFemale::SetLocation
void SetLocation() override
Location map function.
Definition: Vole_all.cpp:1612
cfg_RecordVoleMort
CfgBool cfg_RecordVoleMort
Vole_Population_Manager::SupplyCountFemales
int SupplyCountFemales(unsigned p_x, unsigned p_y, unsigned p_TerrRange) const
Definition: VolePopulationManager.cpp:2238
TAnimal::m_Location_y
int m_Location_y
The objects ALMaSS y coordinate.
Definition: PopulationManager.h:366
l_pest_daily_mort
CfgFloat l_pest_daily_mort
Daily mortality of pesticide with type 1.
fa_k
Definition: Treatment.h:70
spring_roll
Definition: Treatment.h:46
Vole_Base::SupplyYBorn
int SupplyYBorn()
Definition: vole_all.h:349
cfg_MinReproAgeM
CfgInt cfg_MinReproAgeM("VOLE_MINREPROAGEM", CFG_CUSTOM, 30)
g_DailyMortChance
double g_DailyMortChance
Definition: Vole_all.cpp:183
Vole_Base::DoWalking
void DoWalking(int p_Distance, int &p_Vector, int &vx, int &vy) const
Walking.
Definition: Vole_all.cpp:933
Vole_JuvenileMale::BeginStep
void BeginStep() override
Juvenile Male vole BeginStep.
Definition: Vole_all.cpp:2882
tovmort_FPest
Definition: VolePopulationManager.h:85
tovs_FDying
Definition: vole_all.h:71
TAnimal::m_OurLandscape
static Landscape * m_OurLandscape
A pointer to the landscape object shared with all TAnimal objects.
Definition: PopulationManager.h:342
cfg_vole_habqualscaler
static CfgFloat cfg_vole_habqualscaler("VOLE_HABQUALSCALER", CFG_CUSTOM, 2.1)
VoleHerbicicideMort
const double VoleHerbicicideMort
Definition: Vole_all.cpp:194
vdisp_CarryOn
Definition: vole_all.h:75
cfg_AorOutput_used
CfgBool cfg_AorOutput_used
CfgBool
Bool configurator entry class.
Definition: Configurator.h:155
TAnimal::CheckManagement
void CheckManagement()
Used to start a check for any management related effects at the objects current location.
Definition: PopulationManager.cpp:1591
WeanedAge
const unsigned WeanedAge
Definition: Vole_all.cpp:123
AlleleFreq
Class to handle statistics and constructs based on allele frequencies.
Definition: GeneticMaterial.h:61
Vole_Base::m_MinMaleTerritorySize
static unsigned int m_MinMaleTerritorySize
Definition: vole_all.h:212
struct_Vole_Adult::FatherId
int FatherId
Definition: vole_all.h:127
TAnimal
The base class for all ALMaSS animal classes. Includes all the functionality required to be handled b...
Definition: PopulationManager.h:200
Vole_Base::SupplyGenes
GeneticMaterial SupplyGenes()
Definition: vole_all.h:400
syninsecticide_treat
Definition: Treatment.h:111
Vole_Base::SupplyTerritorial
bool SupplyTerritorial()
Definition: vole_all.h:335
Vole_JuvenileFemale::EndStep
void EndStep() override
Female vole EndStep.
Definition: Vole_all.cpp:1327
cfg_productapplicstartyear
CfgInt cfg_productapplicstartyear
Vole_Base::DoWalkingCorrect
void DoWalkingCorrect(int p_Distance, int &p_Vector, int &vx, int &vy) const
Walking where there is a danger of stepping off the world.
Definition: Vole_all.cpp:1022
MinMaleMovement
const unsigned MinMaleMovement
Definition: Vole_all.cpp:175
fp_nc
Definition: Treatment.h:135
Vole_Base::SupplyWeight
double SupplyWeight()
Definition: vole_all.h:361
tovs_FMaturation
Definition: vole_all.h:67
fungicide_treat
Definition: Treatment.h:82
cfg_VoleResourceRegrowth
CfgFloat cfg_VoleResourceRegrowth("VOLE_RESOURCEREGROWTH", CFG_CUSTOM, 0.5)
A parameter determining the density dependence effect. Zero will have no density dependence effect,...
vdisp_Die
Definition: vole_all.h:76
struct_Vole_Adult::VPM
Vole_Population_Manager * VPM
Definition: vole_all.h:131
AnimalPosition
A class defining an animals position.
Definition: PopulationManager.h:169
fp_sludge
Definition: Treatment.h:63
Vole_JuvenileFemale::~Vole_JuvenileFemale
~Vole_JuvenileFemale() override
Definition: Vole_all.cpp:1231
Vole_Base::SupplyHeteroZyg
int SupplyHeteroZyg()
Definition: vole_all.h:383
Vole_Base::m_DispVector
int m_DispVector
Definition: vole_all.h:194
tovmort_FBck
Definition: VolePopulationManager.h:75
fp_greenmanure
Definition: Treatment.h:62
shallow_harrow
Definition: Treatment.h:119
fa_slurry
Definition: Treatment.h:72
GeneticMaterial::GetGeneticFlag
uint32 GetGeneticFlag()
Definition: GeneticMaterial.cpp:184
Vole_JuvenileMale::SetLocation
void SetLocation() override
Map location function.
Definition: Vole_all.cpp:2854
cattle_out_low
Definition: Treatment.h:112
harvest_bushfruit
Definition: Treatment.h:137
preseeding_cultivator_sow
Definition: Treatment.h:40
fp_pk
Definition: Treatment.h:53
Vole_Base::SupplyDeathCause
int SupplyDeathCause()
Definition: vole_all.h:367
tovmort_MDisp
Definition: VolePopulationManager.h:78
struct_Vole_Adult::BirthYear
int BirthYear
Definition: vole_all.h:126
MapErrorMsg::Warn
void Warn(MapErrorState a_level, std::string a_msg1, std::string a_msg2)
Definition: MapErrorMsg.cpp:69
fa_pks
Definition: Treatment.h:145
Vole_Population_Manager::ReproTable
int ReproTable[4][12]
Definition: VolePopulationManager.h:218
Landscape::SupplyRodenticide
double SupplyRodenticide(int a_x, int a_y)
Gets total rodenticide for a location.
Definition: Landscape.cpp:586
tovmort_FLife
Definition: VolePopulationManager.h:83
Vole_Base::GetGeneticFlag
int GetGeneticFlag()
Definition: vole_all.h:388
Vole_Base::m_MinFVoleHabQual
static double m_MinFVoleHabQual
Definition: vole_all.h:216
org_fungicide
Definition: Treatment.h:86
Vole_Base::m_FHabQualThreshold3
static double m_FHabQualThreshold3
Definition: vole_all.h:227
summer_harrow
Definition: Treatment.h:49
Vole_Female::SupplyNoOfYoung
int SupplyNoOfYoung()
Definition: vole_all.h:584
Vole_Base::SupplyMature
bool SupplyMature()
Definition: vole_all.h:365
Landscape::SupplyDayInYear
int SupplyDayInYear(void)
Passes a request on to the associated Calendar class function, the day in the year.
Definition: Landscape.h:2267
Landscape::SupplyVegBiomass
double SupplyVegBiomass(int a_polyref)
Returns the biomass of the vegetation using the polygon reference number a_polyref or based on the x,...
Definition: Landscape.h:1542
cattle_out
Definition: Treatment.h:95
Vole_Base::m_MHabQualThreshold3
static double m_MHabQualThreshold3
Definition: vole_all.h:233
harvestshoots
Definition: Treatment.h:147
Vole_Base::SupplyMotherId
int SupplyMotherId()
Definition: vole_all.h:339
stubble_cultivator_heavy
Definition: Treatment.h:36
Vole_Female::ReInit
void ReInit(struct_Vole_Adult *p_aVoleStruct) override
Definition: Vole_all.cpp:1692
Vole_JuvenileMale::ReInit
void ReInit(struct_Vole_Adult *p_aVoleStruct) override
Definition: Vole_all.cpp:3094
Vole_Base::st_Dying
void st_Dying()
All voles end here on death.
Definition: Vole_all.cpp:335
TALMaSSObject::m_StepDone
bool m_StepDone
Indicates whether the iterative step code is done for this timestep.
Definition: PopulationManager.h:133
GeneticMaterial::GetAllele
uint32 GetAllele(int pos, int Chromosome)
Definition: GeneticMaterial.cpp:230
Landscape::SupplyPesticideType
TTypesOfPesticide SupplyPesticideType(void)
Gets type of pesticide effect from a reference.
Definition: Landscape.h:788
Vole_Population_Manager::SupplyOlderFemales
bool SupplyOlderFemales(unsigned p_x, unsigned p_y, unsigned p_Age, unsigned p_range) const
Definition: VolePopulationManager.cpp:744
cfg_VoleEndoCrineDisruptionGestationLength
static CfgInt cfg_VoleEndoCrineDisruptionGestationLength("VOLE_ENDOCRINEDISPRUPTORGESTATION", CFG_CUSTOM, 21)
biocide
Definition: Treatment.h:116
Vole_Base::m_SimW
int m_SimW
Definition: vole_all.h:202
swathing
Definition: Treatment.h:93
Vole_Population_Manager::IDNumber
unsigned IDNumber
Definition: VolePopulationManager.h:219
Vole_Base::m_Sex
bool m_Sex
Definition: vole_all.h:166
Vole_JuvenileFemale::FreeLocation
void FreeLocation() override
Location map function.
Definition: Vole_all.cpp:1617
Landscape::SupplyYearNumber
int SupplyYearNumber(void)
Passes a request on to the associated Calendar class function, returns m_simulationyear
Definition: Landscape.h:2287
glyphosate
Definition: Treatment.h:114
VoleInsecticideMort
const double VoleInsecticideMort
Definition: Vole_all.cpp:196
IDMap::ClearMapValue
void ClearMapValue(unsigned x, unsigned y)
Definition: MovementMap.h:146
Vole_Female::m_MateLive
int m_MateLive
Definition: vole_all.h:598
Vole_JuvenileFemale::OnKilled
void OnKilled() override
Death from external entity.
Definition: Vole_all.cpp:1546
Vole_Base::m_MaxMaleTerritorySize
static unsigned int m_MaxMaleTerritorySize
Definition: vole_all.h:208
CfgInt::value
int value() const
Definition: Configurator.h:116
Vole_Female::Step
void Step() override
Female vole Step.
Definition: Vole_all.cpp:1726
Vole_Female::m_Pregnant
bool m_Pregnant
A flag indicating whether pregnant or not.
Definition: vole_all.h:609
AnimalPosition::m_EleType
TTypesOfLandscapeElement m_EleType
Definition: PopulationManager.h:175
Vole_Base::IDNo
unsigned IDNo
Definition: vole_all.h:200
Vole_Male::st_Infanticide
void st_Infanticide(void) const
Male vole infanticide behaviour.
Definition: Vole_all.cpp:2358
cfg_VoleMortalityDataUsed
static CfgBool cfg_VoleMortalityDataUsed("VOLE_MORTALITY_DATA_USED", CFG_CUSTOM, false)
fa_manure
Definition: Treatment.h:75
struct_Vole_Adult::y
int y
Definition: vole_all.h:118
GeneticMaterial.h
GeneticMaterial.h This file contains the headers for the genetic material classes
spring_sow
Definition: Treatment.h:47
AnimalPosition::m_y
unsigned m_y
Definition: PopulationManager.h:174
cfg_PesticideAccumulationThresholdModelink2
static CfgFloat cfg_PesticideAccumulationThresholdModelink2("VOLE_PESTICDEACCUMULATIONTHRESHOLD_MODELINKTWO", CFG_CUSTOM, 20.0)
GeneticMaterial256_16
Definition: GeneticMaterial.h:192
Vole_Female::st_BecomeReproductive
TTypeOfVoleState st_BecomeReproductive()
Female vole maturation control.
Definition: Vole_all.cpp:1826
cut_weeds
Definition: Treatment.h:106
trial_toxiccontrol
Definition: Treatment.h:109
Vole_Population_Manager
The class to handle all vole population related matters.
Definition: VolePopulationManager.h:148
cfg_MaxStarvationDays
static CfgInt cfg_MaxStarvationDays("VOLE_MAXSTARVATIONDAYS", CFG_CUSTOM, 29)
summer_plough
Definition: Treatment.h:48
struct_Vole_Adult::L
Landscape * L
Definition: vole_all.h:130
Landscape::EventtypeToString
std::string EventtypeToString(int a_event)
Returns the text representation of a treatment type.
Definition: Landscape.cpp:6024
TTypesOfPesticide
TTypesOfPesticide
Values that represent types of pesticide actions.
Definition: LandscapeFarmingEnums.h:1057
Population_Manager::UpdateGuardMap
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.
Definition: PopulationManager.h:768
Vole_Population_Manager::CreateObjects
void CreateObjects(VoleObject a_obType, TAnimal *a_pvo, struct_Vole_Adult *a_as, int a_number)
Definition: VolePopulationManager.cpp:2756
TAnimal::CopyMyself
virtual void CopyMyself()
Used to copy the object details to another in descendent classes.
Definition: PopulationManager.h:273
cfg_CfgRipleysOutputUsed
CfgBool cfg_CfgRipleysOutputUsed
Vole_Base::SupplyTerrRange
int SupplyTerrRange()
Definition: vole_all.h:359
fp_pks
Definition: Treatment.h:146
fp_ns
Definition: Treatment.h:134
Vole_Male::Vole_Male
Vole_Male(struct_Vole_Adult *p_aVoleStruct)
Vole_Male constructor.
Definition: Vole_all.cpp:2208
Vole_Male::DetermineTerritorySize
void DetermineTerritorySize()
Calculates the territory size needed for a vole of his weight.
Definition: Vole_all.cpp:2568
Vole_Base::Set_PolyRefBorn
void Set_PolyRefBorn(int a_Location_x, int a_Location_y)
Definition: vole_all.h:326
growthperdayF
const double growthperdayF
Definition: Vole_all.cpp:135
Vole_JuvenileMale
The class for juvenile male voles.
Definition: vole_all.h:458
bed_forming
Definition: Treatment.h:118
Vole_JuvenileMale::st_BecomeSubAdult
void st_BecomeSubAdult(void)
Definition: Vole_all.cpp:3035
MovementMap16
Movement maps are used for rapid computing of animal movement. This version uses values of 0-15 only.
Definition: MovementMap.h:112
Vole_Base::Set_NoYoungTot
void Set_NoYoungTot(int a_NoOfYoung)
Definition: vole_all.h:306
vdisp_Infanticide
Definition: vole_all.h:78
product_treat
Definition: Treatment.h:113
Vole_JuvenileMale::Vole_JuvenileMale
Vole_JuvenileMale(struct_Vole_Adult *p_aVoleStruct)
Vole_JuvenileMale constructor.
Definition: Vole_all.cpp:3084
Vole_JuvenileMale::CanFeed
bool CanFeed()
g_msg
MapErrorMsg * g_msg
Definition: MapErrorMsg.cpp:41
Vole_Base::m_intrappos
InTrapPosition m_intrappos
Definition: vole_all.h:206
tovmort_FStarve
Definition: VolePopulationManager.h:73
Vole_Base::Escape
void Escape(int p_Vector, int p_Distance)
Dispersal - directed movement.
Definition: Vole_all.cpp:1109
Vole_Base::Set_BirthYear
void Set_BirthYear(int BirthYear)
Definition: vole_all.h:299
InTrapPosition
A class for storing the position of the trap the vole is in.
Definition: vole_all.h:106
ttop_ReproductiveEffects
Definition: LandscapeFarmingEnums.h:1061
autumn_sow
Definition: Treatment.h:41
cfg_volepcidebiodegredrate
static CfgFloat cfg_volepcidebiodegredrate("VOLE_PCIDE_BIODEGREDATIONRATE", CFG_CUSTOM, 0.0)
Vole_JuvenileFemale::GetLocation
bool GetLocation(int px, int py) override
Location map function.
Definition: Vole_all.cpp:1622
TTypesOfVegetation
TTypesOfVegetation
Values that represent the types of vegetation that are represented in ALMaSS.
Definition: LandscapeFarmingEnums.h:192
CfgInt
Integer configurator entry class.
Definition: Configurator.h:102
cfg_ReallyBigOutputMonthly_used
CfgBool cfg_ReallyBigOutputMonthly_used
autumn_harrow
Definition: Treatment.h:37
Vole_Base::m_OurPopulation
Vole_Population_Manager * m_OurPopulation
Definition: vole_all.h:407
struct_Vole_Adult::MotherId
int MotherId
Definition: vole_all.h:128
Vole_Male
The class for male voles.
Definition: vole_all.h:499
fa_calcium
Definition: Treatment.h:79
TAnimal::m_guard_cell_x
int m_guard_cell_x
The index x to the guard cell.
Definition: PopulationManager.h:370
VoleObject
VoleObject
Definition: vole_all.h:94
Vole_Base::m_Age
int m_Age
Definition: vole_all.h:170
Vole_Population_Manager::GetHabitatQuality
double GetHabitatQuality(const int a_index) const
Definition: VolePopulationManager.h:230
Vole_JuvenileFemale::ReInit
void ReInit(struct_Vole_Adult *p_aVoleStruct) override
Definition: Vole_all.cpp:1216
Vole_JuvenileFemale::Vole_JuvenileFemale
Vole_JuvenileFemale(struct_Vole_Adult *p_aVoleStruct)
Vole_JuvenileFemale constructor.
Definition: Vole_all.cpp:1202
VolePigGrazingMort
const double VolePigGrazingMort
Definition: Vole_all.cpp:192
September
const int September
Julian start dates of the month of September.
Definition: Landscape.h:54
Vole_Base::ReInit
virtual void ReInit(struct_Vole_Adult *a_AVoleStruct_ptr)
Definition: Vole_all.cpp:225
Vole_Base::m_MinMVoleHabQual
static double m_MinMVoleHabQual
Definition: vole_all.h:220
DaysAtMaxGrowth
const double DaysAtMaxGrowth
Definition: Vole_all.cpp:131
Vole_Base::Set_FatherId
void Set_FatherId(unsigned FatherIdNo)
Definition: vole_all.h:304
fa_ammoniumsulphate
Definition: Treatment.h:74
struct_Vole_Adult::VegBorn
int VegBorn
Definition: vole_all.h:125
CfgFloat
Double configurator entry class.
Definition: Configurator.h:126
Population_Manager_Base::SupplySimW
int SupplySimW() const
Returns landscape width in m.
Definition: PopulationManager.h:567
cfg_PesticideWeaningReduction
static CfgFloat cfg_PesticideWeaningReduction("VOLE_PCIDE_WEANINGREDUCTION", CFG_CUSTOM, 0.0017)
autumn_sow_with_ferti
Definition: Treatment.h:136
FemaleResourceReq
const double FemaleResourceReq[13]
Definition: Vole_all.cpp:150
Vole_Male::ReInit
void ReInit(struct_Vole_Adult *p_aVoleStruct) override
Definition: Vole_all.cpp:2219
Vole_Population_Manager::SupplyInOlderTerr
int SupplyInOlderTerr(unsigned p_x, unsigned p_y, unsigned p_Age, unsigned p_Range) const
Definition: VolePopulationManager.cpp:2370
Vole_Female::Vole_Female
Vole_Female(struct_Vole_Adult *p_aVoleStruct)
Vole_Female constructor.
Definition: Vole_all.cpp:1675
Vole_Base::m_YBorn
int m_YBorn
Definition: vole_all.h:174
Vole_JuvenileMale::EndStep
void EndStep() override
Juvenile Male vole EndStep.
Definition: Vole_all.cpp:2955
ttop_ModelinkPesticide
Definition: LandscapeFarmingEnums.h:1063
trial_insecticidetreat
Definition: Treatment.h:108
Vole_Base::Step
void Step() override
Step behaviour - must be implemented in descendent classes.
Definition: vole_all.h:287
g_sigAgeDiff
int g_sigAgeDiff
Definition: Vole_all.cpp:147
fa_p
Definition: Treatment.h:69
mow
Definition: Treatment.h:105
Vole_Base::SupplyHomoZyg
int SupplyHomoZyg()
Definition: vole_all.h:381
GeneticMaterial::SetGeneticFlag
void SetGeneticFlag()
Definition: GeneticMaterial.cpp:166
Vole_Population_Manager::m_VoleRecordMort
VoleSummaryOutput * m_VoleRecordMort
Definition: VolePopulationManager.h:193
Vole_JuvenileMale::GetLocation
bool GetLocation(int px, int py) override
Map location function.
Definition: Vole_all.cpp:2868
Vole_Base::m_BornLastYear
bool m_BornLastYear
A flag set if the female was born the year before.
Definition: vole_all.h:154
MoveToLessFavourable
double MoveToLessFavourable
Definition: VolePopulationManager.cpp:155
Vole_Base::OnKilled
virtual void OnKilled()
Definition: vole_all.h:402
Vole_Female::st_UpdateGestation
TTypeOfVoleState st_UpdateGestation()
Gestation control.
Definition: Vole_all.cpp:1811
August
const int August
Julian start dates of the month of August.
Definition: Landscape.h:52
Vole_Female::m_DaysUntilBirth
int m_DaysUntilBirth
A counter counting down gestation days.
Definition: vole_all.h:614
tovmort_MBck
Definition: VolePopulationManager.h:74
InTrapPosition::m_inAtrap
bool m_inAtrap
Definition: vole_all.h:108
fa_rsm
Definition: Treatment.h:78
Vole_Female::st_Mating
TTypeOfVoleState st_Mating()
Female mating.
Definition: Vole_all.cpp:2137
Vole_Base::m_FemaleTerritoryRangeSlope
static double m_FemaleTerritoryRangeSlope
Definition: vole_all.h:224
Vole_Base::m_Death
int m_Death
Definition: vole_all.h:162
CFG_CUSTOM
Definition: Configurator.h:70
Vole_Female::st_GiveBirth
TTypeOfVoleState st_GiveBirth()
Litter production.
Definition: Vole_all.cpp:1840
g_random_fnc
int g_random_fnc(const int a_range)
Definition: ALMaSS_Random.cpp:74
fa_npks
Definition: Treatment.h:66
water
Definition: Treatment.h:92
Vole_Base::SupplySex
bool SupplySex()
Definition: vole_all.h:341
GeneticMaterial::HomozygosityCount
int HomozygosityCount()
Definition: GeneticMaterial.cpp:314
stubble_harrowing
Definition: Treatment.h:102
struct_Vole_Adult::m_flag
bool m_flag
Definition: vole_all.h:134
tovs_Lactating
Definition: vole_all.h:65
Vole_Base::m_MHabQualThreshold1
static double m_MHabQualThreshold1
Definition: vole_all.h:237
MinFemaleMovement
const unsigned MinFemaleMovement
Definition: Vole_all.cpp:170
Vole_Base::SetGeneticFlag
void SetGeneticFlag()
Definition: vole_all.h:392
Vole_Base::m_FatherId
unsigned m_FatherId
Definition: vole_all.h:160
cfg_PesticideAccumulationThreshold2
static CfgFloat cfg_PesticideAccumulationThreshold2("VOLE_PESTICDEACCUMULATIONTHRESHOLDTWO", CFG_CUSTOM, 44.1)
struct_Vole_Adult::x
int x
Definition: vole_all.h:117
cfg_PesticideFemaleMaturityDelay
static CfgFloat cfg_PesticideFemaleMaturityDelay("VOLE_PCIDE_FEMALEMATURITYDELAY", CFG_CUSTOM, 0.0192)
struct_Vole_Adult::yborn
int yborn
Definition: vole_all.h:122
Vole_Base::SupplyBornLastYear
bool SupplyBornLastYear()
Were we born this year?
Definition: vole_all.h:333
fp_liquidNH3
Definition: Treatment.h:57
molluscicide
Definition: Treatment.h:87
TALMaSSObject::m_CurrentStateNo
int m_CurrentStateNo
The basic state number for all objects - '-1' indicates death.
Definition: PopulationManager.h:131
hay_bailing
Definition: Treatment.h:101
cfg_pest_residue_or_rate
CfgBool cfg_pest_residue_or_rate
Use residue or rate. Used in Vole code.
Vole_Population_Manager::SupplyGrowthStartDate
int SupplyGrowthStartDate() const
Definition: VolePopulationManager.h:233
fa_manganesesulphate
Definition: Treatment.h:73
tovs_MMaturation
Definition: vole_all.h:58
vole_tole_move_quality
int vole_tole_move_quality(Landscape *m_TheLandscape, int x, int y)
Definition: Vole_toletoc.cpp:5
tovmort_MStarve
Definition: VolePopulationManager.h:72
Vole_Female::OnInfanticideAttempt
void OnInfanticideAttempt()
Determines whether an infanticide attempt will succeed.
Definition: Vole_all.cpp:2176
Landscape::SupplyPolyRefIndex
int SupplyPolyRefIndex(int a_x, int a_y)
Get the index to the m_elems array for a polygon at location x,y.
Definition: Landscape.h:2172
Vole_Base::Vole_Base
Vole_Base(struct_Vole_Adult *a_AVoleStruct_ptr)
Constructor for Vole_Base.
Definition: Vole_all.cpp:222
g_DailyMortChanceMaleTerr
double g_DailyMortChanceMaleTerr
Definition: Vole_all.cpp:184
cfg_MinMaleTerritorySize
CfgInt cfg_MinMaleTerritorySize("VOLE_MINMALETERRITORYSIZE", CFG_CUSTOM, 9)
Vole_Base::GetDirectFlag
int GetDirectFlag()
Definition: vole_all.h:390
fp_k
Definition: Treatment.h:55
vdisp_Mature
Definition: vole_all.h:77
cfg_ResistanceDominant
CfgBool cfg_ResistanceDominant("VOLE_RESISTANCEDOMINANT", CFG_CUSTOM, false)
Vole_Population_Manager::FindClosestMale
Vole_Male * FindClosestMale(int p_x, int p_y, int p_steps) const
Definition: VolePopulationManager.cpp:2026
tovmort_FPred
Definition: VolePopulationManager.h:81
Vole_Population_Manager::AddToYoung
void AddToYoung(const int young)
Definition: VolePopulationManager.h:245
Landscape::Warn
void Warn(std::string a_msg1, std::string a_msg2)
Wrapper for the g_msg Warn function.
Definition: Landscape.h:2250
struct_Vole_Adult::ElemBorn
int ElemBorn
Definition: vole_all.h:124
struct_Vole_Adult::age
int age
Definition: vole_all.h:119
Vole_Base::m_MinFemaleTerritorySize
static unsigned int m_MinFemaleTerritorySize
Definition: vole_all.h:214
Vole_Male::st_Eval_n_Explore
TTypeOfVoleState st_Eval_n_Explore(void)
Male vole main territory assessment behaviour.
Definition: Vole_all.cpp:2375
Vole_Base::SupplyAllele
int SupplyAllele(int locus, int allele)
Definition: vole_all.h:385
AlleleFreq1616
Definition: GeneticMaterial.h:125
autumn_plough
Definition: Treatment.h:34
Vole_Base::MortalityTest
virtual bool MortalityTest()
Do a mortality test.
Definition: Vole_all.cpp:349
Vole_Base::m_fertile
bool m_fertile
Flag indicating the fertility state (true means fertile)
Definition: vole_all.h:186
Vole_Base::m_TerrRange
int m_TerrRange
Definition: vole_all.h:164
Vole_Base::m_Reserves
int m_Reserves
Definition: vole_all.h:198
TAnimal::m_Location_x
int m_Location_x
The objects ALMaSS x coordinate.
Definition: PopulationManager.h:362
cfg_MinFemaleTerritorySize
CfgInt cfg_MinFemaleTerritorySize("VOLE_MINFEMALETERRITORYSIZE", CFG_CUSTOM, 8)
Vole_Female::SupplyPregnant
bool SupplyPregnant()
Definition: vole_all.h:590
Vole_Base::SetFertile
void SetFertile(bool f)
Set the male vole fertility.
Definition: vole_all.h:413
Landscape::SupplyPolyRef
int SupplyPolyRef(int a_x, int a_y)
Get the in map polygon reference number from the x, y location.
Definition: Landscape.h:2157
Vole_Male::Dispersal
VoleDispersalReturns Dispersal(double p_OldQual, int p_Distance)
Male vole dispersal behaviour.
Definition: Vole_all.cpp:2482
fp_slurry
Definition: Treatment.h:58
Vole_Base::m_BreedingSeason
static bool m_BreedingSeason
Definition: vole_all.h:239
struct_Vole_Adult::m_dflag
bool m_dflag
Definition: vole_all.h:136
tovmort_FFarm
Definition: VolePopulationManager.h:77
Vole_Base::~Vole_Base
~Vole_Base() override
Definition: Vole_all.cpp:291
fiber_covering
Definition: Treatment.h:128
Vole_Base::SupplyBirthYear
int SupplyBirthYear()
Definition: vole_all.h:343
Vole_JuvenileFemale::OnFarmEvent
bool OnFarmEvent(FarmToDo event) override
External event handler.
Definition: Vole_all.cpp:1377
ttop_ModelinkPesticide21TWA
Definition: LandscapeFarmingEnums.h:1064
ppp_1
Definition: LandscapeFarmingEnums.h:1079
Vole_JuvenileMale::OnFarmEvent
bool OnFarmEvent(FarmToDo event) override
JuvenileMale vole exernal event handler.
Definition: Vole_all.cpp:2687
cfg_extradispmort
CfgFloat cfg_extradispmort("VOLEDISPMORT", CFG_CUSTOM, 0.055)
Input parameter for daily extra mortality chance while dispersing.
ttop_NoPesticide
Definition: LandscapeFarmingEnums.h:1059
Vole_Base::SupplyVegBorn
int SupplyVegBorn()
Definition: vole_all.h:357
cfg_VoleDDepConst
CfgInt cfg_VoleDDepConst("VOLE_DDEPCONST", CFG_CUSTOM, 4)
Vole_Base::BeginStep
void BeginStep() override
BeingStep behaviour - must be implemented in descendent classes.
Definition: vole_all.h:284
Vole_Base::SetBreedingSeason
void SetBreedingSeason(bool a_flag)
Set Breeding Season flag.
Definition: vole_all.h:293
summer_sow
Definition: Treatment.h:50
Vole_Base::SetLocation
virtual void SetLocation()
Definition: vole_all.h:441
tovs_MEvaluateExplore
Definition: vole_all.h:59
GeneticMaterial1616
Definition: GeneticMaterial.h:153
Vole_Base::SupplyFatherId
int SupplyFatherId()
Definition: vole_all.h:337
spring_sow_with_ferti
Definition: Treatment.h:115
Vole_Base::SupplyPolyRefBorn
int SupplyPolyRefBorn()
Definition: vole_all.h:351
Vole_JuvenileMale::st_JuvenileExplore
void st_JuvenileExplore(void)
Extra movement on weaning.
Definition: Vole_all.cpp:2673
sleep_all_day
Definition: Treatment.h:33
Vole_Population_Manager::m_VoleMap
IDMap< TAnimal * > * m_VoleMap
Definition: VolePopulationManager.h:276
Landscape::BackTranslateEleTypes
int BackTranslateEleTypes(TTypesOfLandscapeElement EleReference)
Returns the ALMaSS reference number translated from the TTypesOfLandscapeElement type.
Definition: Landscape.h:2332
Vole_Base::m_NoOfYoungTotal
int m_NoOfYoungTotal
Definition: vole_all.h:192
Vole_JuvenileFemale::BeginStep
void BeginStep() override
Female vole BeginStep.
Definition: Vole_all.cpp:1246
FemaleMovement
const unsigned FemaleMovement
Definition: Vole_all.cpp:168
strigling_sow
Definition: Treatment.h:107
AnimalPosition::m_VegType
TTypesOfVegetation m_VegType
Definition: PopulationManager.h:176
struct_Vole_Adult::PolyRefBorn
int PolyRefBorn
Definition: vole_all.h:123