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
All Classes Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Pages
Hare_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 */
36 //---------------------------------------------------------------------------
37 #ifndef HaresH
38 #define HaresH
39 
40 
41 #include <mutex>
42 //---------------------------------------------------------------------------
43 
44 class THare;
47 
48 //------------------------------------------------------------------------------
52 typedef vector<THare*> TListOfHares;
53 //---------------------------------------------------------------------------
54 
58 typedef enum {
66 
71 typedef enum {
81  tohs_DestroyObject // Used to signal that all necessary behaviour is
82  // done, safe to remove the object
84 
89 typedef enum {
103 
104 
109 struct MRR_Entry {
113 };
114 
119 class MRR_Data {
120 public:
121  MRR_Data();
122  void AddEntry(int a_RefNum);
123  void OutputToFile();
125 
126 protected:
127  // Class for the MRR data before it is written to file-
129  vector<MRR_Entry> m_Entries;
130 };
131 
136 class struct_Hare {
137 public:
138  int x;
139  int y;
140  int age;
144  int RefNum;
145  double weight;
146 };
147 
148 /*-------------------------------------------------------------------------------------------
149 -------------------------------------- THARE ------------------------------------------
150 ---------------------------------------------------------------------------------------------*/
155 class THare : public TAnimal {
159 protected:
160  // Attributes
170  int m_Age = 0;
180  double m_weight = 0.0;
185  double m_old_weight = 0.0;
190  Hare_Female* m_MyMum = nullptr;
198  int m_Lifespan = 0;
203  int m_ActivityTime = 0;
213  double m_fatReserve = 0.0;
218  double m_TodaysEnergy = 0.0;
223  double m_EnergyMax = 0.0;;
228  double m_KJRunning = 0.0;; // KJ/metre
233  double m_KJWalking = 0.0; // KJ/metre
238  double m_KJForaging = 0.0;; // KJ/minute
243  double m_SpeedRunning = 0.0;; // metre/min
248  double m_SpeedWalking = 0.0;; // metre/min
252  double m_foragingenergy = 0.0;;
256  int m_peg_x = 0;
260  int m_peg_y = 0;
265  int m_RefNum = 0;
266 
281  int m_ddindex = 0;
286  int m_expDensity[365] = {};
291  int m_DensitySum = 0;
295  bool m_IamSick = false;
296 
301  double m_pesticide_burden = 0.0;;
312 
313 public:
318  static double* m_vegPalatability;;
319  // Methods
324  THare(int p_x, int p_y, Landscape* p_L, THare_Population_Manager* p_PPM);
329  void THareInit(int p_x, int p_y, THare_Population_Manager* p_PPM);
334  ~THare() override;
339  virtual TTypeOfHareState st_Dispersal();
344  void BeginStep(void) override {
345  }
350  void Step(void) override {
351  }
356  void EndStep(void) override { MovePeg(); }
357 
358  // Interface Functions
362  double GetWeight() { return m_weight; }
370  double GetTotalWeight() { return m_weight * 3.8 + m_fatReserve; }
371 
375  int GetAge() { return m_Age; }
383  void ON_MumDead(Hare_Female* a_Mum) {
384  if (a_Mum != m_MyMum)
385  {
386  m_OurLandscape->Warn("Hare_Infant::On_MumDead - not my mum!!", "");
387  exit(1);
388  }
389  // I am now an orphan
390  m_MyMum = nullptr;
391  }
396  static void SetMum(Hare_Female* /*a_af*/) {
397  }
402  Hare_Female* GetMum() { return m_MyMum; }
407  double GetRMR();
412  virtual bool WasPredated();
417  int GetRefNum() { return m_RefNum; }
422  virtual void ON_Dead(void) {
423  }
428  void loadVegPalatability(void);
429 
430 protected:
435  bool Run(int a_dist, int a_direction);
440  void EnergyBalance(TTypeOfActivity a_activity, int dist);
445  void TimeBudget(TTypeOfActivity a_activity, int dist);
450  void st_Dying();
455  virtual void Running(int a_max_dist);
460  void Walking(int a_dist, int a_direction);
465  double Forage(int& time); // Returns energy obtained
470  double ForageP(int& time); // Returns energy obtained
480  virtual void GeneralEndocrineDisruptor(double /* a_pesticide_dose */) {
481  }
486  virtual void GeneralOrganoPhosphate(double /* a_pesticide_dose */) {
487  }
492  double ForageSquare(int a_x, int a_y);
497  double ForageSquareP(int a_x, int a_y, double* a_pestexposure);
502  int GetPegDistance();
507  int GetPegPull();
512  int GetPegDirection();
517  void MovePeg();
522  bool OnFarmEvent(FarmToDo event) override;
523 };
524 
530 public:
531  // Methods
533  ~THare_Population_Manager(void) override;
535  void TheAOROutputProbe() override;
536  void CreateObjects(int ob_type, TAnimal* pvo, void* null, struct_Hare* data, int number);
541  double GetRMR(int a_age, double a_size);
546  int GetHareRefNum() { return ++m_RefNums; }
550  double GetMaxDailyGrowthEnergy(int a_age) {
551 #ifdef __BOUNDSCHECK
552  if ((a_age<0) || (a_age>5000)) {
553  m_TheLandscape->Warn( "Hare GetMaxDailyGrowthEnergy a_age out of bounds", NULL );
554  exit( 1 );
555  }
556 #endif
557  return m_MaxDailyGrowthEnergy[a_age];
558  }
563  double GetMaxDailyGrowthEnergyP(int a_age) {
564 #ifdef __BOUNDSCHECK
565  if ((a_age<0) || (a_age>5000)) {
566  m_TheLandscape->Warn( "Hare GetMaxDailyGrowthEnergyP a_age out of bounds", NULL );
567  exit( 1 );
568  }
569 #endif
570  return m_MaxDailyGrowthEnergyP[a_age];
571  }
576  double GetMaxDailyGrowthEnergyF(int a_age) {
577 #ifdef __BOUNDSCHECK
578  if ((a_age<0) || (a_age>5000)) {
579  m_TheLandscape->Warn( "Hare GetMaxDailyGrowthEnergyF a_age out of bounds", NULL );
580  exit( 1 );
581  }
582 #endif
583  return m_MaxDailyGrowthEnergyF[a_age];
584  }
589  double GetGrowthEfficiency(int a_age) {
590 #ifdef __BOUNDSCHECK
591  if ((a_age<0) || (a_age>5000)) {
592  m_TheLandscape->Warn( "Hare GetGrowthEfficiency a_age out of bounds", NULL );
593  exit( 1 );
594  }
595 #endif
596  return m_GrowthEfficiency[a_age];
597  }
602  double GetGrowthEfficiencyP(int a_age) {
603 #ifdef __BOUNDSCHECK
604  if ((a_age<0) || (a_age>5000)) {
605  m_TheLandscape->Warn( "Hare GetGrowthEfficiencyP a_age out of bounds", NULL );
606  exit( 1 );
607  }
608 #endif
609  return m_GrowthEfficiencyP[a_age];
610  }
615  double GetGrowthEfficiencyF(int a_age) {
616 #ifdef __BOUNDSCHECK
617  if ((a_age<0) || (a_age>5000)) {
618  m_TheLandscape->Warn( "Hare m_GrowthEfficiencyF a_age out of bounds", NULL );
619  exit( 1 );
620  }
621 #endif
622  return m_GrowthEfficiencyF[a_age];
623  }
628  double GetKJperM(int a_size) {
629 #ifdef __BOUNDSCHECK
630  if ((a_size<0) || (a_size>7000)) {
631  m_TheLandscape->Warn( "Hare GetKJperM a_size out of bounds", std::to_string(a_size) );
632  exit( 1 );
633  }
634 #endif
635  return m_KJperM[a_size];
636  }
637  int GetLitterSize(int noLitters);
642  void AddHareDensity(int x, int y, Hare_Object a_type) {
643  m_DensityMap[a_type][x >> __DENSITYSHIFT][y >> __DENSITYSHIFT]++;
644  }
649  void SubtractHareDensity(int x, int y, Hare_Object a_type) {
650  m_DensityMap[a_type][x >> __DENSITYSHIFT][y >> __DENSITYSHIFT]--;
651  }
656  int GetInfantDensity(int x, int y) { return m_DensityMap[hob_Infant][x >> __DENSITYSHIFT][y >> __DENSITYSHIFT]; }
661  int GetYoungDensity(int x, int y) { return m_DensityMap[hob_Young][x >> __DENSITYSHIFT][y >> __DENSITYSHIFT]; }
666  int GetJuvenileDensity(int x, int y) {
667  return m_DensityMap[hob_Juvenile][x >> __DENSITYSHIFT][y >> __DENSITYSHIFT];
668  }
673  int GetMaleDensity(int x, int y) { return m_DensityMap[hob_Male][x >> __DENSITYSHIFT][y >> __DENSITYSHIFT]; }
678  int GetFemaleDensity(int x, int y) { return m_DensityMap[hob_Female][x >> __DENSITYSHIFT][y >> __DENSITYSHIFT]; }
683  int GetTotalDensity(int x, int y) { return m_DensityMap[5][x >> __DENSITYSHIFT][y >> __DENSITYSHIFT]; }
688  int GetAdultDensity(int x, int y) {
689  return m_DensityMap[hob_Male][x >> __DENSITYSHIFT][y >> __DENSITYSHIFT] + m_DensityMap[hob_Female][x >>
690  __DENSITYSHIFT][y >> __DENSITYSHIFT];
691  }
696  int GetDelayedAdultDensity(int x, int y) {
697  return m_DensityMap[6][x >> __DENSITYSHIFT][y >> __DENSITYSHIFT];
698  }
707  double GetInterference(int h) {
708 #ifdef __BOUNDSCHECK
709  if ((h<0) || (h>2499)) {
710  g_msg->Warn( "Hare Interference range out of bounds", std::to_string(h) );
711  exit( 1 );
712  }
713 #endif
714  return m_Interference[h]; //[m_variableDD];
715  }
720  double GetPolyFood(int a_poly) { return m_PolyFood[a_poly]; }
725  void SetPolyFood(int a_poly, double a_value) { m_PolyFood[a_poly] = a_value; }
730  void BodyBurdenOut(int a_year, int a_day, double a_bb, double a_mgkg) {
731  fprintf(BodyBurdenPrb, "%d\t%d\t%g\t%g\n", a_year, a_day, a_bb, a_mgkg);
732  }
733 
753  double m_DMWeight[5001];
758 
759 protected:
760  // Attributes
764  int m_shot;
768  double m_Interference[2500];
769  //[21]; // this limit should never be reached, but it may be under debugging tests so watch out.
771  int m_DensityMap[8][200][200]; //NB maps larger than 50km in any one dimension -> memory overun
775  int m_LitterSize[12][7];
777  double* m_PolyFood;
778  // Energetic constants will go into these arrays
779  // They are filled by the Init method
781  double m_RMR[2][366]; // Will also needs bounds checking
783  double m_MaxDailyGrowthEnergy[5001]; // Will also needs bounds checking
785  double m_GrowthEfficiency[5001]; // Will also needs bounds checking
787  double m_MaxDailyGrowthEnergyP[5001]; // Will also needs bounds checking
789  double m_MaxDailyGrowthEnergyF[5001]; // Will also needs bounds checking
791  double m_GrowthEfficiencyP[5001]; // Will also needs bounds checking
793  double m_GrowthEfficiencyF[5001]; // Will also needs bounds checking
795  double m_KJperM[7001];
800  // Methods
801  void Init();
802  void CalcLitterSize(double mean, double SD, int litter);
803  // virtual bool StepFinished();
804  void DoFirst() override;
805  // virtual void DoBefore(){}
806  // virtual void DoAfter(){}
807  void DoLast() override;
808  void POMOutputs();
809  void MRROutputs();
811  virtual void TheRipleysOutputProbe(FILE* a_prb);
813  void ExtraPopMort(void);
814  void Hunting(void);
815  void HuntingGrid(void);
817  void Catastrophe() override;
818 };
819 
824 class Hare_Infant : public THare {
825 public:
826  void BeginStep(void) override;
827  void Step(void) override;
828  void EndStep(void) override;
833  Hare_Infant(int p_x, int p_y, Landscape* p_L, THare_Population_Manager* p_PPM);
835  void ReInit(struct_Hare a_data);
837  void Init();
842  ~Hare_Infant() override;
843  // Interface Functions
848  void ON_Dead() override;
849  void ON_BeingFed(double a_someMilk);
857  void SetWeight(double w) { m_weight = w; }
862  void SetMum(Hare_Female* a_af) { m_MyMum = a_af; }
863 
864 protected:
866  void st_NextStage();
871  bool OnFarmEvent(FarmToDo event) override;
872  // Attributes
873 };
874 
879 class Hare_Young : public Hare_Infant {
880 public:
881  void BeginStep(void) override;
882  void Step(void) override;
883  void EndStep(void) override;
884  Hare_Young(int p_x, int p_y, Landscape* p_L, THare_Population_Manager* p_PPM, double p_weight);
886  void ReInit(struct_Hare a_data);
888  void Init(double p_weight);
889  ~Hare_Young() override;
890  // Interface
895  void ON_Dead() override;
896 
897 protected:
903  TTypeOfHareState st_Dispersal() override;
913  void st_NextStage();
923  bool OnFarmEvent(FarmToDo event) override;
924 };
925 
930 class Hare_Juvenile : public THare {
931 public:
932  void BeginStep(void) override;
933  void Step(void) override;
934  void EndStep(void) override;
935  Hare_Juvenile(int p_x, int p_y, Landscape* p_L, THare_Population_Manager* p_PPM, double p_weight);
937  void ReInit(struct_Hare a_data);
939  void Init(double p_weight);
940  ~Hare_Juvenile() override;
941  // Interface
942  void ON_Dead() override;
943 
944 protected:
945  // States
951  TTypeOfHareState st_Dispersal() override;
961  void st_NextStage();
967  // Methods
972  bool ShouldMature();
974  bool WasPredated() override;
975 };
976 
981 class Hare_Male : public Hare_Juvenile {
982 public:
983  void BeginStep(void) override;
984  void Step(void) override;
985  void EndStep(void) override;
990  Hare_Male(int p_x, int p_y, Landscape* p_L, THare_Population_Manager* p_PPM, double p_weight, int a_age, int a_Ref);
992  void ReInit(struct_Hare a_data);
994  void Init(double p_weight, int a_age, int a_Ref);
999  ~Hare_Male() override;
1000  // Interface
1001  void ON_Dead() override;
1002 
1003 protected:
1004  // States
1009  TTypeOfHareState st_Developing() override;
1019  static TTypeOfHareState st_Resting();
1025  // Methods
1027  void InternalPesticideHandlingAndResponse() override;
1032  void GeneralEndocrineDisruptor(double /* a_pesticide_dose */) override;
1037  void GeneralOrganoPhosphate(double /* a_pesticide_dose */) override;
1038 };
1039 
1044 class Hare_Female : public Hare_Juvenile {
1045 protected:
1046  // Attributes
1053  //double m_SurplusEnergy;
1065  std::mutex m_MyYoungMutex;
1066 
1068  void UpdateOestrous();
1070  void UpdateGestation();
1072  void GiveBirth();
1074  APoint PlaceYoung();
1076  void DoLactation();
1078  void Mating();
1079 
1080 public:
1082  void BeginStep(void) override;
1084  void Step(void) override;
1086  void EndStep(void) override;
1088  Hare_Female(int p_x, int p_y, Landscape* p_L, THare_Population_Manager* p_PPM, double p_weight, int a_age,
1089  int a_Ref);
1091  void ReInit(struct_Hare a_data);
1093  void Init(double p_weight, int a_age, int a_Ref);
1095  ~Hare_Female() override;
1096  // Interface functions
1098  void dumpEnergy();
1100  void SetSterile() { m_sterile = true; }
1102  void ON_Dead() override;
1104  bool UpdateYoung(THare* a_old, THare* a_new);
1106  void AddYoung(THare* a_new);
1108  void ON_YoungKilled(THare* a_young);
1110  void ON_RemoveYoung(THare* a_young);
1112  void AllYoungKilled();
1114  void AllYoungMatured();
1115  // *** DeBugging Methods ***
1117  bool ON_AreYouMyMum(THare* a_young);
1119  bool SanityCheckYoungList();
1120  // *** End Debug ***
1121 
1122 protected:
1123  // States
1128  TTypeOfHareState st_Dispersal() override;
1133  TTypeOfHareState st_Developing() override;
1143  static TTypeOfHareState st_Resting();
1149  //Methods
1151  void InternalPesticideHandlingAndResponse() override;
1156  void GeneralEndocrineDisruptor(double a_pesticide_dose) override;
1161  void GeneralOrganoPhosphate(double a_pesticide_dose) override;
1162 };
1163 
1164 //---------------------------------------------------------------------------
1165 #endif
toc_None
Definition: LandscapeFarmingEnums.h:925
Hare_Male::Step
void Step(void) override
Step for Hare_Male.
Definition: Hare_All.cpp:2523
Hare_Young::ON_Dead
void ON_Dead() override
This hare has been killed.
Definition: Hare_All.cpp:1962
tohs_Dying
Definition: Hare_All.h:80
cfg_littersize_SD11
static CfgFloat cfg_littersize_SD11("HARE_LITTERSIZE_SD_K", CFG_CUSTOM, 0.6415)
THare_Population_Manager::~THare_Population_Manager
~THare_Population_Manager(void) override
THare_Population_Manager destructor.
Definition: Hare_All.cpp:383
THare::GeneralOrganoPhosphate
virtual void GeneralOrganoPhosphate(double)
Handles internal effects of organophosphate pesticide exposure. If any effects are needed this method...
Definition: Hare_All.h:486
cfg_hare_max_age_var
CfgInt cfg_hare_max_age_var("HARE_MAX_AGE_VAR", CFG_CUSTOM, 180)
Hare_Male::ReInit
void ReInit(struct_Hare a_data)
Male object reinitiation.
Definition: Hare_All.cpp:2404
Hare_Female::InternalPesticideHandlingAndResponse
void InternalPesticideHandlingAndResponse() override
Handles internal effects of pesticide exposure. If any effects are needed this method must be re-impl...
Definition: Hare_All.cpp:3690
THare_Population_Manager::SetPolyFood
void SetPolyFood(int a_poly, double a_value)
Set polygon food quality.
Definition: Hare_All.h:725
struct_Hare::x
int x
Definition: Hare_All.h:138
TAnimal::Supply_m_Location_x
int Supply_m_Location_x() const
Returns the ALMaSS x-coordinate.
Definition: PopulationManager.h:239
fiber_removal
Definition: Treatment.h:129
fp_rsm
Definition: Treatment.h:64
org_insecticide
Definition: Treatment.h:84
THare_Population_Manager::CreateObjects
void CreateObjects(int ob_type, TAnimal *pvo, void *null, struct_Hare *data, int number)
Method used to create new hares.
Definition: Hare_All.cpp:873
Hare_Female::st_Foraging
TTypeOfHareState st_Foraging()
Female Foraging.
Definition: Hare_All.cpp:3104
fa_sk
Definition: Treatment.h:71
Hare_Male::BeginStep
void BeginStep(void) override
BeginStep for Hare_Male.
Definition: Hare_All.cpp:2441
THare_Population_Manager::GetInfantDensity
int GetInfantDensity(int x, int y)
Density function - returns the density of infants in the square containing by x,y....
Definition: Hare_All.h:656
cfg_littersize_mean12
static CfgFloat cfg_littersize_mean12("HARE_LITTERSIZE_MEAN_L", CFG_CUSTOM, 0.0)
THare::m_vegPalatability
static double * m_vegPalatability
Will hold and array of palatability for hare for each tov type. Most are 1, but unpalatable vegetatio...
Definition: Hare_All.h:318
THare_Population_Manager::GetFemaleDensity
int GetFemaleDensity(int x, int y)
Density function - returns the density of females in the square containing by x,y....
Definition: Hare_All.h:678
row_cultivation
Definition: Treatment.h:88
THare_Population_Manager::m_MaxDailyGrowthEnergyF
double m_MaxDailyGrowthEnergyF[5001]
Precalculated max growth energy requirement with size for fat
Definition: Hare_All.h:789
cfg_PmEventfrequency
CfgInt cfg_PmEventfrequency
Hare_Female::UpdateYoung
bool UpdateYoung(THare *a_old, THare *a_new)
Swap a young list pointer.
Definition: Hare_All.cpp:3515
fa_pk
Definition: Treatment.h:68
WARN_FILE
Definition: MapErrorMsg.h:37
THare_Population_Manager
The class that handles all the population lists for hares.
Definition: Hare_All.h:529
cfg_littersize_mean2
static CfgFloat cfg_littersize_mean2("HARE_LITTERSIZE_MEAN_B", CFG_CUSTOM, 2.508)
winter_harrow
Definition: Treatment.h:144
fp_npk
Definition: Treatment.h:52
strigling
Definition: Treatment.h:89
Hare_Female::GiveBirth
void GiveBirth()
Produce a litter.
Definition: Hare_All.cpp:3355
g_rand_uni_fnc
double g_rand_uni_fnc()
Definition: ALMaSS_Random.cpp:56
harvest
Definition: Treatment.h:94
Hare_Female::ON_Dead
void ON_Dead() override
The female is dead.
Definition: Hare_All.cpp:3647
activity_Walking
Definition: Hare_All.h:93
cfg_juv_starve
CfgInt cfg_juv_starve("HARE_JUV_STARVE", CFG_CUSTOM, 2500)
cfg_BeetleBankInvert
CfgBool cfg_BeetleBankInvert
Hare_Female::Mating
void Mating()
Mate.
Definition: Hare_All.cpp:3311
fa_nk
Definition: Treatment.h:142
cfg_young_ddepmort
CfgInt cfg_young_ddepmort("HARE_YOUNGDDEPMORT", CFG_CUSTOM, 16)
THare_Population_Manager::m_DensityMap
int m_DensityMap[8][200][200]
Array storing densities measured in different ways
Definition: Hare_All.h:771
g_FarmIntensivenessH
double g_FarmIntensivenessH
Definition: Hare_All.cpp:301
Population_Manager::SupplyAnimalPtr
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
Landscape::SupplyTemp
double SupplyTemp(void)
Passes a request on to the associated Weather class function, the temperature for the current day.
Definition: Landscape.h:1993
THare_Population_Manager::m_PolyFood
double * m_PolyFood
Temporary storage
Definition: Hare_All.h:777
Population_Manager::DoLast
virtual void DoLast()
Definition: PopulationManager.cpp:656
insecticide_treat
Definition: Treatment.h:83
straw_chopping
Definition: Treatment.h:99
THare_Population_Manager::GetLitterSize
int GetLitterSize(int noLitters)
Returns the litter size.
Definition: Hare_All.cpp:698
struct_Hare::y
int y
Definition: Hare_All.h:139
Hare_Young::st_Foraging
TTypeOfHareState st_Foraging()
Young foraging.
Definition: Hare_All.cpp:1708
fa_greenmanure
Definition: Treatment.h:76
Hare_Male::GeneralEndocrineDisruptor
void GeneralEndocrineDisruptor(double) override
Handles internal effects of endocrine distrupter pesticide exposure. If any effects are needed this m...
Definition: Hare_All.cpp:2809
stubble_plough
Definition: Treatment.h:35
growth_regulator
Definition: Treatment.h:81
cfg_HareFemaleSicknessDensityDepValue
CfgInt cfg_HareFemaleSicknessDensityDepValue("HARE_FEMALESICKNESSDENDEPVALUE", CFG_CUSTOM, 40)
THare::GetPegDirection
int GetPegDirection()
Get direction of peg.
Definition: HareForagenPeg.cpp:467
THare_Population_Manager::THare_Population_Manager
THare_Population_Manager(Landscape *L)
This is the constructor for the hare population manager.
Definition: Hare_All.cpp:399
THare_Population_Manager::m_DMWeight
double m_DMWeight[5001]
Array for storing minimum acceptable size with age.
Definition: Hare_All.h:753
cfg_hare_pesticideresponse_on
CfgBool cfg_hare_pesticideresponse_on("HARE_PESTICIDERESPONSE_ON", CFG_CUSTOM, false)
If set to true then hares will collect and respond to pesticide information. This will slow the simul...
cfg_ReproStartDay
static CfgInt cfg_ReproStartDay("HARE_REPROSTARTDAY", CFG_CUSTOM, 18)
deep_ploughing
Definition: Treatment.h:43
cfg_young_starvation_threshold
static CfgInt cfg_young_starvation_threshold("HARE_YOUNG_STARVE_THRESHOLD", CFG_CUSTOM, 4)
hilling_up
Definition: Treatment.h:91
THare::~THare
~THare() override
Destructor.
Definition: Hare_THare.cpp:109
Hare_Juvenile::ON_Dead
void ON_Dead() override
Definition: Hare_All.cpp:2389
green_harvest
Definition: Treatment.h:127
cfg_littersize_SD4
static CfgFloat cfg_littersize_SD4("HARE_LITTERSIZE_SD_D", CFG_CUSTOM, 0.6415)
autumn_or_spring_plough
Definition: Treatment.h:103
Hare_Juvenile::BeginStep
void BeginStep(void) override
BeginStep for Hare_Juvenile.
Definition: Hare_All.cpp:2007
THare::m_pesticidedegradationrate
double m_pesticidedegradationrate
State variable used to hold the daily degredation rate of the pesticide in the body.
Definition: Hare_All.h:306
THare::m_SpeedWalking
double m_SpeedWalking
m/min speed of walking per kg hare
Definition: Hare_All.h:248
Population_Manager::m_population_type
TTypesOfPopulation m_population_type
Definition: PopulationManager.h:858
flower_cutting
Definition: Treatment.h:121
Hare_Female::SanityCheckYoungList
bool SanityCheckYoungList()
Debug function.
Definition: Hare_All.cpp:3678
Landscape::Set_all_Att_UserDefinedBool
void Set_all_Att_UserDefinedBool(bool(*udf_fnc)(TTypesOfLandscapeElement))
used to classify the userdefinedbool attribute and set it - this requires supplying the correct class...
Definition: Landscape.h:931
cfg_ReallyBigOutputUsed
CfgBool cfg_ReallyBigOutputUsed
cfg_littersize_SD2
static CfgFloat cfg_littersize_SD2("HARE_LITTERSIZE_SD_B", CFG_CUSTOM, 0.957)
Population_Manager::BeforeStepActions
vector< unsigned > BeforeStepActions
Holds the season list of possible before step actions.
Definition: PopulationManager.h:819
spring_plough
Definition: Treatment.h:44
fp_sk
Definition: Treatment.h:56
pruning
Definition: Treatment.h:125
Hare_Infant::st_NextStage
void st_NextStage()
'mature' to become a young
Definition: Hare_All.cpp:1505
cfg_littersize_SD8
static CfgFloat cfg_littersize_SD8("HARE_LITTERSIZE_SD_H", CFG_CUSTOM, 0.6415)
Hare_Object
Hare_Object
Definition: Hare_All.h:58
THare::GetRefNum
int GetRefNum()
Get the refnum for this hare.
Definition: Hare_All.h:417
cfg_littersize_mean4
static CfgFloat cfg_littersize_mean4("HARE_LITTERSIZE_MEAN_D", CFG_CUSTOM, 1.72)
THare_Population_Manager::GetKJperM
double GetKJperM(int a_size)
Get the cost of moving 1m in KJ dependent upon mass (.
Definition: Hare_All.h:628
cfg_hare_i_cut
CfgInt cfg_hare_i_cut("HARE_CUTTING_MORT_INFANT", CFG_CUSTOM, 50)
THare::m_EnergyMax
double m_EnergyMax
State variable - the amount of energy it is possible to eat as a multiplyer or RMR.
Definition: Hare_All.h:223
g_VegHeightForageReduction
double g_VegHeightForageReduction
Used to scale access to crops for modern day farm intensiveness.
Definition: Hare_All.cpp:299
activity_nonAdult
Definition: Hare_All.h:101
Hare_Male::InternalPesticideHandlingAndResponse
void InternalPesticideHandlingAndResponse() override
Handles internal effects of pesticide exposure. If any effects are needed this method must be re-impl...
Definition: Hare_All.cpp:2769
THare_Population_Manager::m_GrowthEfficiencyF
double m_GrowthEfficiencyF[5001]
Precalculated growth efficiency for fat with size
Definition: Hare_All.h:793
TAnimal::m_guard_cell_y
int m_guard_cell_y
The index y to the guard cell.
Definition: PopulationManager.h:374
g_hare_peg_inertia
double g_hare_peg_inertia
Definition: Hare_All.cpp:48
THare_Population_Manager::m_MaxDailyGrowthEnergyP
double m_MaxDailyGrowthEnergyP[5001]
Precalculated max growth energy requirement with size for protein
Definition: Hare_All.h:787
struct_Hare::age
int age
Definition: Hare_All.h:140
Hare_Juvenile::WasPredated
bool WasPredated() override
Test for mortality.
Definition: Hare_All.cpp:2380
fp_manure
Definition: Treatment.h:61
herbicide_treat
Definition: Treatment.h:80
fp_ammoniumsulphate
Definition: Treatment.h:60
activity_lactation
Definition: Hare_All.h:100
flammebehandling
Definition: Treatment.h:90
THare::m_Lifespan
int m_Lifespan
Physiolocal lifespan, assuming nothing else kills the hare (unlikely to reach this age)
Definition: Hare_All.h:198
Population_Manager_Base::m_ListNames
const char * m_ListNames[32]
A list of life-stage names.
Definition: PopulationManager.h:628
straw_covering
Definition: Treatment.h:123
Hare_Female::~Hare_Female
~Hare_Female() override
Female Destructor.
Definition: Hare_All.cpp:2864
Hare_Juvenile::Init
void Init(double p_weight)
Object initiation.
Definition: Hare_All.cpp:1984
THare_Population_Manager::m_AdultMortRate
double m_AdultMortRate
Input variable - Adult mortality rate.
Definition: Hare_All.h:741
Hare_Juvenile::EndStep
void EndStep(void) override
BeginStep for Hare_Juvenile.
Definition: Hare_All.cpp:2122
fp_boron
Definition: Treatment.h:131
hob_Juvenile
Definition: Hare_All.h:61
cfg_hare_y_tractor
CfgInt cfg_hare_y_tractor("HARE_TRACTOR_MORT_YOUNG", CFG_CUSTOM, 2)
THare::WasPredated
virtual bool WasPredated()
Test for predation.
Definition: Hare_THare.cpp:341
cfg_MaxEnergyIntakeScaler
static CfgFloat cfg_MaxEnergyIntakeScaler("HARE_MAXENERGYINTAKESCALER", CFG_CUSTOM, 1.825)
cfg_littersize_SD10
static CfgFloat cfg_littersize_SD10("HARE_LITTERSIZE_SD_J", CFG_CUSTOM, 0.6415)
cfg_MRR1
static CfgInt cfg_MRR1("HARE_MMRONE", CFG_CUSTOM, 999)
fp_cu
Definition: Treatment.h:138
Hare_Young::ReInit
void ReInit(struct_Hare a_data)
Young object reinitiation.
Definition: Hare_All.cpp:1558
bulb_harvest
Definition: Treatment.h:122
preseeding_cultivator
Definition: Treatment.h:39
Hare_Female::st_Developing
TTypeOfHareState st_Developing() override
Female Developing.
Definition: Hare_All.cpp:3002
cfg_HareInterferenceConstant
CfgFloat cfg_HareInterferenceConstant("HARE_INTERFERENCECONSTANT", CFG_CUSTOM, -0.03)
cfg_DaysToOestrous
static CfgInt cfg_DaysToOestrous("HARE_DAYSTOOESTROUS", CFG_CUSTOM, 20)
THare_Population_Manager::m_variableDD
int m_variableDD
Used to vary the density dependence each year
Definition: Hare_All.h:773
cfg_hare_max_dispersal
static CfgInt cfg_hare_max_dispersal("HARE_MAX_DISPERSAL", CFG_CUSTOM, 1000)
trial_control
Definition: Treatment.h:110
cfg_hare_femalesterility
static CfgInt cfg_hare_femalesterility("HARE_FEMALESTERILITY", CFG_CUSTOM, 1401)
cfg_HareHuntingDate
CfgInt cfg_HareHuntingDate("HARE_HUNTING_DATE", CFG_CUSTOM, 312)
fp_npks
Definition: Treatment.h:51
CfgFloat::value
double value() const
Definition: Configurator.h:142
cfg_HarePesticideAccumulationThreshold
CfgFloat cfg_HarePesticideAccumulationThreshold("HARE_PESTICIDEACCUMULATIONTHRESHOLD", CFG_CUSTOM, 0.0)
This is the value that triggers pesticide response, which may be a threshold, or if simply set to 0....
tohs_InitialState
Definition: Hare_All.h:72
THare_Population_Manager::GetHareRefNum
int GetHareRefNum()
Get the next ID number available.
Definition: Hare_All.h:546
THare::InternalPesticideHandlingAndResponse
virtual void InternalPesticideHandlingAndResponse()
Handles internal effects of pesticide exposure. If any effects are needed this method must be re-impl...
Definition: HareForagenPeg.cpp:559
burn_top
Definition: Treatment.h:143
THare::m_ActivityTime
int m_ActivityTime
Minutes of potential activity time per day.
Definition: Hare_All.h:203
FarmToDo
FarmToDo
Definition: Treatment.h:31
cfg_FarmIntensivenessH
CfgInt cfg_FarmIntensivenessH("HARE_FARMINTENSIVENESSH", CFG_CUSTOM, 40)
Landscape::SupplyMonth
int SupplyMonth(void)
Passes a request on to the associated Calendar class function, returns m_month + 1 (the calendar mont...
Definition: Landscape.h:2272
fp_nk
Definition: Treatment.h:133
cfg_minLeveretBirthWeight
static CfgFloat cfg_minLeveretBirthWeight("HARE_MINLEVERETBIRTHWEIGHT", CFG_CUSTOM, 95 *0.88 *0.33)
THare_Population_Manager::m_LitterSize
int m_LitterSize[12][7]
Storage for litter size distributions (not used in default config)
Definition: Hare_All.h:775
cfg_littersize_SD5
static CfgFloat cfg_littersize_SD5("HARE_LITTERSIZE_SD_E", CFG_CUSTOM, 0.6415)
THare_Population_Manager::AddHareDensity
void AddHareDensity(int x, int y, Hare_Object a_type)
Density function - adds one to the density in the square containing by x,y. Each square is 256x256m i...
Definition: Hare_All.h:642
Hare_Female::ON_YoungKilled
void ON_YoungKilled(THare *a_young)
A leveret has been killed.
Definition: Hare_All.cpp:3538
cfg_HareHunting
CfgFloat cfg_HareHunting("HARE_HUNTING", CFG_CUSTOM, 0.1)
THare::GetWeight
double GetWeight()
Definition: Hare_All.h:362
cfg_littersize_SD6
static CfgFloat cfg_littersize_SD6("HARE_LITTERSIZE_SD_F", CFG_CUSTOM, 0.6415)
cfg_adult_starvation_threshold
static CfgInt cfg_adult_starvation_threshold("HARE_ADULT_STARVE_THRESHOLD", CFG_CUSTOM, 16)
burn_straw_stubble
Definition: Treatment.h:104
struct_Hare::Mum
Hare_Female * Mum
Definition: Hare_All.h:143
Hare_Infant::Step
void Step(void) override
Step for the Hare_Infant.
Definition: Hare_All.cpp:1261
org_herbicide
Definition: Treatment.h:85
THare::ForageSquare
double ForageSquare(int a_x, int a_y)
Forage from an area.
Definition: HareForagenPeg.cpp:320
cfg_AgeRelatedInterferenceScaling
CfgFloat cfg_AgeRelatedInterferenceScaling("HARE_AGERELATEDINTERFERENCESCALING", CFG_CUSTOM, 1.0)
THare::m_OurPopulationManager
THare_Population_Manager * m_OurPopulationManager
Pointer to the hare population manager.
Definition: Hare_All.h:194
struct_Hare::HM
THare_Population_Manager * HM
Definition: Hare_All.h:142
Hare_Female::EndStep
void EndStep(void) override
Female EndStep.
Definition: Hare_All.cpp:2996
cfg_maxLeveretBirthWeight
static CfgFloat cfg_maxLeveretBirthWeight("HARE_MAXLEVERETBIRTHWEIGHT", CFG_CUSTOM, 125 *0.88 *0.33)
THare::OnFarmEvent
bool OnFarmEvent(FarmToDo event) override
Do we require a response to a farm event.
Definition: Hare_THare.cpp:356
Hare_Male::ON_Dead
void ON_Dead() override
Definition: Hare_All.cpp:2763
Hare_Female
Class for female hares.
Definition: Hare_All.h:1044
Hare_Infant::BeginStep
void BeginStep(void) override
BeginStep for the Hare_Infant.
Definition: Hare_All.cpp:1213
hob_Male
Definition: Hare_All.h:62
Landscape::SupplyAttUserDefinedBool
bool SupplyAttUserDefinedBool(int a_polyref)
Returns the user defined boolean attribute of a polygon using the polygon reference number a_polyref,...
Definition: Landscape.h:908
Hare_Young::st_Dispersal
TTypeOfHareState st_Dispersal() override
Not used.
Definition: Hare_All.cpp:1741
fa_cu
Definition: Treatment.h:140
Hare_Infant::Init
void Init()
Object initiation.
Definition: Hare_All.cpp:1193
autumn_roll
Definition: Treatment.h:38
THare_Population_Manager::m_GrowthEfficiencyP
double m_GrowthEfficiencyP[5001]
Precalculated growth efficiency for protein with size
Definition: Hare_All.h:791
strigling_hill
Definition: Treatment.h:117
heavy_cultivator_aggregate
Definition: Treatment.h:120
THare::loadVegPalatability
void loadVegPalatability(void)
Loads static member m_vegPalatability with data.
Definition: Hare_THare.cpp:114
THare::GetMum
Hare_Female * GetMum()
Get the mother pointer.
Definition: Hare_All.h:402
Population_Manager_Base::m_ListNameLength
int m_ListNameLength
the number of life-stages simulated in the population manager
Definition: PopulationManager.h:626
fp_manganesesulphate
Definition: Treatment.h:59
THare_Population_Manager::GetMaxDailyGrowthEnergyF
double GetMaxDailyGrowthEnergyF(int a_age)
Get the maximum daily energy needed for growth for this a_age for use in fat construction.
Definition: Hare_All.h:576
TAnimal::Dying
virtual void Dying()
A wrapped for KillThis - ideally should not be used.
Definition: PopulationManager.h:305
cfg_ForageRestingRatio
CfgFloat cfg_ForageRestingRatio("HARE_FORAGERESTRATIO", CFG_CUSTOM, 0.67)
THare::m_KJForaging
double m_KJForaging
KJ/m cost of foraging per kg hare.
Definition: Hare_All.h:238
cfg_HareStartWeight
static CfgFloat cfg_HareStartWeight("HARE_STARTWEIGHT", CFG_CUSTOM, 121.0 *0.88 *0.33)
Hare_Male::~Hare_Male
~Hare_Male() override
Destructor.
Definition: Hare_All.cpp:2426
g_land
Landscape * g_land
Definition: skylarks_all.cpp:44
hay_turning
Definition: Treatment.h:100
cfg_Hare_StdSpeedWalking
CfgFloat cfg_Hare_StdSpeedWalking("HARE_STD_SPEEDWALKING", CFG_CUSTOM, 0.65 *60)
Hare_Juvenile::ShouldMature
bool ShouldMature()
Test for maturation.
Definition: Hare_All.cpp:2366
last_treatment
Definition: Treatment.h:150
g_PropSolidFood
const double g_PropSolidFood[36]
Definition: Hare_All.cpp:306
THare_Population_Manager::m_HareThresholdDD
int m_HareThresholdDD
Input variable - Threshold density dependence level.
Definition: Hare_All.h:757
straw_removal
Definition: Treatment.h:124
activity_Dispersal
Definition: Hare_All.h:94
THare::GetRMR
double GetRMR()
Get todays RMR.
Definition: Hare_THare.cpp:333
fa_n
Definition: Treatment.h:139
shredding
Definition: Treatment.h:126
THare_Population_Manager::m_KJperM
double m_KJperM[7001]
Precalculated cost of locomotion - KJ per m per kg
Definition: Hare_All.h:795
THare_Population_Manager::m_GoodYearBadYear
float m_GoodYearBadYear
Variable for adding stochasticity.
Definition: Hare_All.h:749
THare_Population_Manager::HuntingDifferentiatedBeetleBankArea
void HuntingDifferentiatedBeetleBankArea(void)
Definition: Hare_All.cpp:3876
THare::Forage
double Forage(int &time)
Foraging.
Definition: HareForagenPeg.cpp:52
THare::st_Dispersal
virtual TTypeOfHareState st_Dispersal()
Base implementation only - reimplemented.
Definition: Hare_THare.cpp:122
MRR_Data::OutputToFile
void OutputToFile()
Definition: Hare_All.cpp:4061
THare::THareInit
void THareInit(int p_x, int p_y, THare_Population_Manager *p_PPM)
Object Initiation.
Definition: Hare_THare.cpp:70
pheromone
Definition: Treatment.h:149
THare::GetPegDistance
int GetPegDistance()
Get peg distance.
Definition: HareForagenPeg.cpp:442
fp_n
Definition: Treatment.h:132
struct_Hare::RefNum
int RefNum
Definition: Hare_All.h:144
manual_weeding
Definition: Treatment.h:148
CfgBool::value
bool value() const
Definition: Configurator.h:164
fa_npk
Definition: Treatment.h:67
THare_Population_Manager::m_MortStochast
double m_MortStochast
Stochasticity around mortality parameters
Definition: Hare_All.h:766
Population_Manager_Base::m_TheLandscape
Landscape * m_TheLandscape
holds an internal pointer to the landscape
Definition: PopulationManager.h:624
MRR_Entry::m_trappings2
int m_trappings2
Definition: Hare_All.h:112
tohs_Running
Definition: Hare_All.h:79
winter_plough
Definition: Treatment.h:42
TListOfHares
vector< THare * > TListOfHares
Definition: Hare_All.h:46
fp_calcium
Definition: Treatment.h:65
THare_Population_Manager::Init
void Init()
Sets up data structures and calculations prior to starting simulation.
Definition: Hare_All.cpp:410
THare_Population_Manager::GetYoungDensity
int GetYoungDensity(int x, int y)
Density function - returns the density of young in the square containing by x,y. Each square is 256x2...
Definition: Hare_All.h:661
Hare_Infant::~Hare_Infant
~Hare_Infant() override
Hare infant destructor.
Definition: Hare_All.cpp:1201
spring_harrow
Definition: Treatment.h:45
cfg_MRR4
static CfgInt cfg_MRR4("HARE_MMRFOUR", CFG_CUSTOM, 999)
cut_to_silage
Definition: Treatment.h:98
Hare_Female::m_OestrousCounter
int m_OestrousCounter
State variable - Days in oestrous.
Definition: Hare_All.h:1055
cfg_hare_juvenile_predation
static CfgFloat cfg_hare_juvenile_predation("HARE_JUVENILE_PREDATION", CFG_CUSTOM, 0.0027)
Population_Manager::m_AOR_Probe
AOR_Probe * m_AOR_Probe
A pointer to the AOR probe.
Definition: PopulationManager.h:875
cfg_Hare_StdSpeedRunning
CfgFloat cfg_Hare_StdSpeedRunning("HARE_STD_SPEEDRUNNING", CFG_CUSTOM, 13 *60)
ttop_AcuteEffects
Definition: LandscapeFarmingEnums.h:1060
Hare_Female::m_MyYoungMutex
std::mutex m_MyYoungMutex
mutex for the young list.
Definition: Hare_All.h:1065
Landscape
The landscape class containing all environmental and topographical data.
Definition: Landscape.h:142
cfg_littersize_mean3
static CfgFloat cfg_littersize_mean3("HARE_LITTERSIZE_MEAN_C", CFG_CUSTOM, 2.514)
THare_Population_Manager::TheRipleysOutputProbe
virtual void TheRipleysOutputProbe(FILE *a_prb)
Standard spatial output.
Definition: Hare_All.cpp:1112
cfg_hare_firstyearsterility
static CfgInt cfg_hare_firstyearsterility("HARE_FIRSTYEARSTERILITY", CFG_CUSTOM, 769)
cfg_littersize_mean10
static CfgFloat cfg_littersize_mean10("HARE_LITTERSIZE_MEAN_J", CFG_CUSTOM, 1.72)
THare
The base class for all hare classes.
Definition: Hare_All.h:155
cfg_HareHuntingThreshold
CfgInt cfg_HareHuntingThreshold("HARE_HUNTING_THRESHOLD", CFG_CUSTOM, 0)
cfg_littersize_mean5
static CfgFloat cfg_littersize_mean5("HARE_LITTERSIZE_MEAN_E", CFG_CUSTOM, 1.72)
fa_sludge
Definition: Treatment.h:77
THare::m_KJWalking
double m_KJWalking
KJ/m cost of walking per kg hare.
Definition: Hare_All.h:233
pigs_out
Definition: Treatment.h:96
Hare_Infant::OnFarmEvent
bool OnFarmEvent(FarmToDo event) override
Do we require a response to a farm event.
Definition: Hare_All.cpp:1312
g_FarmIntensiveness
double g_FarmIntensiveness
Definition: Hare_All.cpp:300
Population_Manager_Base::SimH
int SimH
stores the simulation height
Definition: PopulationManager.h:614
Hare_Young::Hare_Young
Hare_Young(int p_x, int p_y, Landscape *p_L, THare_Population_Manager *p_PPM, double p_weight)
Constructor for Hare_Young.
Definition: Hare_All.cpp:1556
Hare_Young::OnFarmEvent
bool OnFarmEvent(FarmToDo event) override
Response to farm actions.
Definition: Hare_All.cpp:1817
cfg_hare_young_predation
static CfgFloat cfg_hare_young_predation("HARE_YOUNG_PREDATION", CFG_CUSTOM, 0.003)
cfg_hare_juvenile_dispersal_threshold
static CfgFloat cfg_hare_juvenile_dispersal_threshold("HARE_JUVENILE_DISP_THESHOLD", CFG_CUSTOM, 99999)
THare::m_fatReserve
double m_fatReserve
State variable - the energy reserve of the hare.
Definition: Hare_All.h:213
fp_p
Definition: Treatment.h:54
Hare_Juvenile::st_NextStage
void st_NextStage()
Maturation to Hare_Male or Hare_Female.
Definition: Hare_All.cpp:2345
AOR_Probe::DoProbe
virtual void DoProbe(int a_lifestage)
Definition: AOR_Probe.cpp:104
suckering
Definition: Treatment.h:130
THare::m_lastYearsDensity
int m_lastYearsDensity
State variable used in alternative density-dependent configurations.
Definition: Hare_All.h:276
tohs_Dispersal
Definition: Hare_All.h:75
cut_to_hay
Definition: Treatment.h:97
fa_boron
Definition: Treatment.h:141
THare_Population_Manager::ExtraPopMort
void ExtraPopMort(void)
An extra global mortality
Definition: Hare_All.cpp:3784
tohs_DestroyObject
Definition: Hare_All.h:81
THare_Population_Manager::GetMaxDailyGrowthEnergy
double GetMaxDailyGrowthEnergy(int a_age)
Definition: Hare_All.h:550
THare::m_experiencedDensity
int m_experiencedDensity
State variable used in alternative density-dependent configurations.
Definition: Hare_All.h:271
THare::m_KJRunning
double m_KJRunning
KJ/m cost of running per kg hare.
Definition: Hare_All.h:228
Landscape::SupplySimAreaHeight
int SupplySimAreaHeight(void)
Gets the simulation landscape height.
Definition: Landscape.h:2302
cfg_littersize_SD12
static CfgFloat cfg_littersize_SD12("HARE_LITTERSIZE_SD_L", CFG_CUSTOM, 0.0)
Landscape::SupplySimAreaWidth
int SupplySimAreaWidth(void)
Gets the simulation landscape width.
Definition: Landscape.h:2297
cfg_HareHuntingBeetleBankArea
CfgFloat cfg_HareHuntingBeetleBankArea("HARE_HUNTING_BEETLEBANKAREA", CFG_CUSTOM, 0.95)
TAnimal::m_Location_y
int m_Location_y
The objects ALMaSS y coordinate.
Definition: PopulationManager.h:366
cfg_juvenile_starvation_threshold
static CfgInt cfg_juvenile_starvation_threshold("HARE_JUVENILE_STARVE_THRESHOLD", CFG_CUSTOM, 8)
fa_k
Definition: Treatment.h:70
APoint
A simple class defining an x,y coordinate set.
Definition: ALMaSS_Setup.h:52
spring_roll
Definition: Treatment.h:46
THare::m_RefNum
int m_RefNum
Unique hare reference number, also functions as sex flag.
Definition: Hare_All.h:265
Hare_Infant::ON_BeingFed
void ON_BeingFed(double a_someMilk)
Get energy from milk given.
Definition: Hare_All.cpp:1539
cfg_littersize_mean7
static CfgFloat cfg_littersize_mean7("HARE_LITTERSIZE_MEAN_G", CFG_CUSTOM, 2.17)
Landscape::CorrectCoordsPt
APoint CorrectCoordsPt(int x, int y)
Function to prevent wrap around errors with co-ordinates using x/y pair.
Definition: Landscape.h:2215
THare::m_pesticideInfluenced1
bool m_pesticideInfluenced1
Flag to indicate pesticide effects (e.g. can be used for endocrine distruptors with delayed effects u...
Definition: Hare_All.h:311
TOP_Hare
Definition: PopulationManager.h:63
cfg_hare_minimum_breeding_weight
CfgInt cfg_hare_minimum_breeding_weight("HARE_MIN_BREEDING_WT", CFG_CUSTOM, 780)
cfg_hare_i_tillage
CfgInt cfg_hare_i_tillage("HARE_TILLAGE_MORT_INFANT", CFG_CUSTOM, 100)
Hare_Young::st_Resting
TTypeOfHareState st_Resting()
Resting.
Definition: Hare_All.cpp:1750
Hare_Female::PlaceYoung
APoint PlaceYoung()
Find somewhere nice for the babies to hide.
Definition: Hare_All.cpp:3448
TAnimal::m_OurLandscape
static Landscape * m_OurLandscape
A pointer to the landscape object shared with all TAnimal objects.
Definition: PopulationManager.h:342
Hare_Young::BeginStep
void BeginStep(void) override
BeginStep for Hare_Young.
Definition: Hare_All.cpp:1587
g_MaxLeveretGrowthEnergy
const double g_MaxLeveretGrowthEnergy[36]
Definition: Hare_All.cpp:315
CfgBool
Bool configurator entry class.
Definition: Configurator.h:155
Hare_Male::st_ReproBehaviour
static TTypeOfHareState st_ReproBehaviour()
Currently Unused.
Definition: Hare_All.cpp:2754
TAnimal::CheckManagement
void CheckManagement()
Used to start a check for any management related effects at the objects current location.
Definition: PopulationManager.cpp:1591
Hare_Juvenile::~Hare_Juvenile
~Hare_Juvenile() override
Destructor for the juvenile hare object.
Definition: Hare_All.cpp:1994
THare_Population_Manager::HuntingGrid
void HuntingGrid(void)
Definition: Hare_All.cpp:3924
TTypeOfActivity
TTypeOfActivity
Enumerator for hare activities.
Definition: Hare_All.h:89
THare::Walking
void Walking(int a_dist, int a_direction)
Walking.
Definition: Hare_THare.cpp:176
hare_tole_init_friendly
bool hare_tole_init_friendly(Landscape *m_TheLandscape, int x, int y)
Definition: Hare_toletov.cpp:4
struct_Hare::L
Landscape * L
Definition: Hare_All.h:141
Hare_Female::m_NoYoung
int m_NoYoung
State variable - current litter size.
Definition: Hare_All.h:1048
Hare_Infant::SetWeight
void SetWeight(double w)
Set the weight.
Definition: Hare_All.h:857
Hare_Juvenile::Step
void Step(void) override
Step for Hare_Juvenile.
Definition: Hare_All.cpp:2060
cfg_littersize_SD1
static CfgFloat cfg_littersize_SD1("HARE_LITTERSIZE_SD_A", CFG_CUSTOM, 0.685)
TAnimal::Supply_m_Location_y
int Supply_m_Location_y() const
Returns the ALMaSS y-coordinate.
Definition: PopulationManager.h:243
cfg_MRR5
static CfgInt cfg_MRR5("HARE_MMRFIVE", CFG_CUSTOM, 270)
THare::EndStep
void EndStep(void) override
Base implementation only - reimplemented.
Definition: Hare_All.h:356
TAnimal
The base class for all ALMaSS animal classes. Includes all the functionality required to be handled b...
Definition: PopulationManager.h:200
Hare_Female::st_ReproBehaviour
TTypeOfHareState st_ReproBehaviour()
Reproductive behaviour control.
Definition: Hare_All.cpp:3222
cfg_hare_adult_predation
CfgFloat cfg_hare_adult_predation("HARE_ADULT_PREDATION", CFG_CUSTOM, 0.0015)
cfg_infant_starvation_threshold
static CfgInt cfg_infant_starvation_threshold("HARE_INFANT_STARVE_THRESHOLD", CFG_CUSTOM, 4)
THare_Population_Manager::m_shot
int m_shot
Hunting Bag.
Definition: Hare_All.h:764
syninsecticide_treat
Definition: Treatment.h:111
fp_nc
Definition: Treatment.h:135
fungicide_treat
Definition: Treatment.h:82
Hare_Female::SetSterile
void SetSterile()
Female is sterile.
Definition: Hare_All.h:1100
Hare_Male::Init
void Init(double p_weight, int a_age, int a_Ref)
Object initiation.
Definition: Hare_All.cpp:2414
activity_Foraging
Definition: Hare_All.h:92
fp_sludge
Definition: Treatment.h:63
Hare_Female::AllYoungMatured
void AllYoungMatured()
No more young to look after.
Definition: Hare_All.cpp:3622
THare_Population_Manager::GetMaxDailyGrowthEnergyP
double GetMaxDailyGrowthEnergyP(int a_age)
Get the maximum daily energy needed for growth for this a_age for use in protein construction.
Definition: Hare_All.h:563
THare::MovePeg
void MovePeg()
Move the peg according to attraction forces.
Definition: HareForagenPeg.cpp:535
hob_Young
Definition: Hare_All.h:60
cfg_littersize_SD7
static CfgFloat cfg_littersize_SD7("HARE_LITTERSIZE_SD_G", CFG_CUSTOM, 0.955)
MRR_Data::m_Entries
vector< MRR_Entry > m_Entries
Definition: Hare_All.h:129
fp_greenmanure
Definition: Treatment.h:62
cfg_littersize_mean1
static CfgFloat cfg_littersize_mean1("HARE_LITTERSIZE_MEAN_A", CFG_CUSTOM, 1.535)
shallow_harrow
Definition: Treatment.h:119
fa_slurry
Definition: Treatment.h:72
THare_Population_Manager::GetRMR
double GetRMR(int a_age, double a_size)
Returns the RMR given a specific age and mass.
Definition: Hare_All.cpp:932
Hare_Infant
Class for infant hares (stationary, only milk inputs)
Definition: Hare_All.h:824
Hare_Juvenile::st_Resting
TTypeOfHareState st_Resting()
Juvenile Resting.
Definition: Hare_All.cpp:2252
THare::m_SpeedRunning
double m_SpeedRunning
m/min speed of running per kg hare
Definition: Hare_All.h:243
cattle_out_low
Definition: Treatment.h:112
harvest_bushfruit
Definition: Treatment.h:137
preseeding_cultivator_sow
Definition: Treatment.h:40
THare_Population_Manager::DoFirst
void DoFirst() override
The first method called of the new time-step.
Definition: Hare_All.cpp:775
Hare_Female::m_sterile
bool m_sterile
State variable - is/not sterile.
Definition: Hare_All.h:1052
THare_Population_Manager::GetGrowthEfficiencyF
double GetGrowthEfficiencyF(int a_age)
Get the growth efficiency for this a_age for creating fat.
Definition: Hare_All.h:615
fp_pk
Definition: Treatment.h:53
MRR_Entry::m_HareRefNum
int m_HareRefNum
Definition: Hare_All.h:110
cfg_BeetleBankMaxX
CfgInt cfg_BeetleBankMaxX
THare_Population_Manager::POMOutputs
void POMOutputs()
This method is called to dump the information needed for POM approaches.
Definition: Hare_All.cpp:970
cfg_hare_escape_dist
CfgInt cfg_hare_escape_dist("HARE_ESCAPE_DIST", CFG_CUSTOM, 100)
THare::ON_Dead
virtual void ON_Dead(void)
Mortality - overridden in descendent classes.
Definition: Hare_All.h:422
MRR_Data::IncTrapping
void IncTrapping()
Definition: Hare_All.h:124
THare::m_old_weight
double m_old_weight
State variale - last hare weight.
Definition: Hare_All.h:185
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
cfg_hare_female_predation
static CfgFloat cfg_hare_female_predation("HARE_FEMALE_PREDATION", CFG_CUSTOM, 0.0023)
THare::GetAge
int GetAge()
Provide the age of the hare.
Definition: Hare_All.h:375
THare::m_ddindex
int m_ddindex
State variable used in alternative density-dependent configurations.
Definition: Hare_All.h:281
Population_Manager
Base class for all population managers for agent based models.
Definition: PopulationManager.h:645
org_fungicide
Definition: Treatment.h:86
THare::m_TodaysEnergy
double m_TodaysEnergy
State variable - the amount of energy available today, can be in deficit.
Definition: Hare_All.h:218
summer_harrow
Definition: Treatment.h:49
cfg_RMRrainFactor
CfgFloat cfg_RMRrainFactor("HARE_RMRRAINFACTOR", CFG_CUSTOM, 0.47)
Landscape::SupplyDayInYear
int SupplyDayInYear(void)
Passes a request on to the associated Calendar class function, the day in the year.
Definition: Landscape.h:2267
Hare_Young::EndStep
void EndStep(void) override
EndStep code for Hare_Young.
Definition: Hare_All.cpp:1684
cattle_out
Definition: Treatment.h:95
Hare_Young::st_NextStage
void st_NextStage()
Maturation to Hare_Juvenile.
Definition: Hare_All.cpp:1789
harvestshoots
Definition: Treatment.h:147
cfg_ReproEndDay
static CfgInt cfg_ReproEndDay("HARE_REPROENDDAY", CFG_CUSTOM, 240)
cfg_hare_y_cut
CfgInt cfg_hare_y_cut("HARE_CUTTING_MORT_YOUNG", CFG_CUSTOM, 10)
Hare_Young::~Hare_Young
~Hare_Young() override
Destructor for Hare_Young.
Definition: Hare_All.cpp:1578
cfg_VegHeightForageReduction
CfgFloat cfg_VegHeightForageReduction("HARE_VEGHEIGHTFORAGEREDUCTION", CFG_CUSTOM, 0.01275)
stubble_cultivator_heavy
Definition: Treatment.h:36
cfg_PmEventsize
CfgInt cfg_PmEventsize
hob_Infant
Definition: Hare_All.h:59
TALMaSSObject::m_StepDone
bool m_StepDone
Indicates whether the iterative step code is done for this timestep.
Definition: PopulationManager.h:133
Population_Manager::m_is_paralleled
bool m_is_paralleled
This is used to indicate whether the species is paralleled.
Definition: PopulationManager.h:796
Landscape::SupplyPesticideType
TTypesOfPesticide SupplyPesticideType(void)
Gets type of pesticide effect from a reference.
Definition: Landscape.h:788
Hare_Juvenile::st_Dispersal
TTypeOfHareState st_Dispersal() override
Juvenile Dispersal.
Definition: Hare_All.cpp:2185
APoint::m_x
int m_x
Definition: ALMaSS_Setup.h:55
Hare_Female::m_MyYoung
TListOfHares m_MyYoung
Pointer to litter.
Definition: Hare_All.h:1063
biocide
Definition: Treatment.h:116
swathing
Definition: Treatment.h:93
Hare_Infant::ON_Dead
void ON_Dead() override
This hare has been killed.
Definition: Hare_All.cpp:1532
THare::EnergyBalance
void EnergyBalance(TTypeOfActivity a_activity, int dist)
Adjust energy balance for an activity.
Definition: Hare_THare.cpp:261
Hare_Male::st_Developing
TTypeOfHareState st_Developing() override
Male Development.
Definition: Hare_All.cpp:2661
activity_inoestrous
Definition: Hare_All.h:97
tohs_NextStage
Definition: Hare_All.h:73
Landscape::SupplyYearNumber
int SupplyYearNumber(void)
Passes a request on to the associated Calendar class function, returns m_simulationyear
Definition: Landscape.h:2287
Hare_Female::m_LeveretMaterial
double m_LeveretMaterial
State variable - Mass of foetal material.
Definition: Hare_All.h:1059
glyphosate
Definition: Treatment.h:114
THare::m_foragingenergy
double m_foragingenergy
Energy obtained from foraging/feeding.
Definition: Hare_All.h:252
cfg_hare_i_tractor
CfgInt cfg_hare_i_tractor("HARE_TRACTOR_MORT_INFANT", CFG_CUSTOM, 5)
Hare_Male::st_Resting
static TTypeOfHareState st_Resting()
Male Resting.
Definition: Hare_All.cpp:2653
Hare_Female::ON_RemoveYoung
void ON_RemoveYoung(THare *a_young)
A leveret has matured.
Definition: Hare_All.cpp:3590
MRR_Data
Class for running mark-release-recapture experiments.
Definition: Hare_All.h:119
CfgInt::value
int value() const
Definition: Configurator.h:116
cfg_MRR2
static CfgInt cfg_MRR2("HARE_MMRTWO", CFG_CUSTOM, 999)
Hare_Juvenile::ReInit
void ReInit(struct_Hare a_data)
Juvenile object reinitiation.
Definition: Hare_All.cpp:1974
cfg_BeetleBankMinX
CfgInt cfg_BeetleBankMinX
Hare_Female::ReInit
void ReInit(struct_Hare a_data)
Female object reinitiation.
Definition: Hare_All.cpp:2834
cfg_hare_foetusenergyproportion
CfgFloat cfg_hare_foetusenergyproportion("HARE_FOETUSENERGYPROPORTION", CFG_CUSTOM, 0.024)
cfg_HareFemaleDensityDepValue
CfgFloat cfg_HareFemaleDensityDepValue("HARE_FEMALEDENDEPVALUE", CFG_CUSTOM, 0.1)
cfg_hare_adult_breed_threshold
static CfgFloat cfg_hare_adult_breed_threshold("HARE_ADULT_BREED_THESHOLD", CFG_CUSTOM, 1600 *0.03)
cfg_littersize_mean6
static CfgFloat cfg_littersize_mean6("HARE_LITTERSIZE_MEAN_F", CFG_CUSTOM, 1.72)
THare_Population_Manager::m_YoungMortRate
double m_YoungMortRate
Input variable - Young mortality rate.
Definition: Hare_All.h:745
fa_manure
Definition: Treatment.h:75
THare_Population_Manager::m_RMR
double m_RMR[2][366]
Precalculated RMR with age
Definition: Hare_All.h:781
spring_sow
Definition: Treatment.h:47
cfg_HareHuntingType
CfgInt cfg_HareHuntingType("HARE_HUNTING_TYPE", CFG_CUSTOM, 0)
Hare_Female::dumpEnergy
void dumpEnergy()
Used to record energetic status.
Definition: Hare_All.cpp:3174
Hare_Female::AllYoungKilled
void AllYoungKilled()
Last leveret predated.
Definition: Hare_All.cpp:3569
cut_weeds
Definition: Treatment.h:106
THare_Population_Manager::GetMaleDensity
int GetMaleDensity(int x, int y)
Density function - returns the density of males in the square containing by x,y. Each square is 256x2...
Definition: Hare_All.h:673
trial_toxiccontrol
Definition: Treatment.h:109
Population_Manager_Base::SimW
int SimW
stores the simulation width
Definition: PopulationManager.h:616
Hare_Female::m_litter_no
int m_litter_no
State variable - current litter number.
Definition: Hare_All.h:1050
summer_plough
Definition: Treatment.h:48
cfg_HareMortStochasticity
CfgFloat cfg_HareMortStochasticity("HARE_MORTSTOCHASTICITY", CFG_CUSTOM, 1.0)
THare::st_Dying
void st_Dying()
Tidy up before removing the object on death.
Definition: Hare_THare.cpp:165
THare_Population_Manager::m_JuvMortRate
double m_JuvMortRate
Input variable - Juvenile mortality rate.
Definition: Hare_All.h:737
THare_Population_Manager::GetAdultDensity
int GetAdultDensity(int x, int y)
Density function - returns the density of adults in the square containing by x,y. Each square is 256x...
Definition: Hare_All.h:688
Population_Manager::OpenTheRipleysOutputProbe
bool OpenTheRipleysOutputProbe()
Definition: PopulationManager.cpp:897
THare::ON_MumDead
void ON_MumDead(Hare_Female *a_Mum)
Inform Mum that we are dead.
Definition: Hare_All.h:383
Hare_Young
Class for young hares (low mobility, milk and solid food inputs)
Definition: Hare_All.h:879
cfg_Hare_Recovery_Time
CfgInt cfg_Hare_Recovery_Time("HARE_RECOVERY_TIME", CFG_CUSTOM, 10)
Landscape::EventtypeToString
std::string EventtypeToString(int a_event)
Returns the text representation of a treatment type.
Definition: Landscape.cpp:6024
cfg_littersize_mean11
static CfgFloat cfg_littersize_mean11("HARE_LITTERSIZE_MEAN_K", CFG_CUSTOM, 1.72)
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
hob_Foobar
Definition: Hare_All.h:64
Hare_Female::Step
void Step(void) override
Female Step.
Definition: Hare_All.cpp:2942
l_pest_daily_mort
CfgFloat l_pest_daily_mort
Daily mortality of pesticide with type 1.
Hare_Male
Class for male hares.
Definition: Hare_All.h:981
THare::m_expDensity
int m_expDensity[365]
State variable used in alternative density-dependent configurations.
Definition: Hare_All.h:286
THare::m_DensitySum
int m_DensitySum
State variable used in alternative density-dependent configurations.
Definition: Hare_All.h:291
Population_Manager::StateNames
const char * StateNames[100]
Definition: PopulationManager.h:801
g_hare_maxFoetalKJ
const double g_hare_maxFoetalKJ[41]
Definition: Hare_All.cpp:366
fp_pks
Definition: Treatment.h:146
cfg_hare_adult_dispersal_threshold
static CfgFloat cfg_hare_adult_dispersal_threshold("HARE_ADULT_DISP_THESHOLD", CFG_CUSTOM, 1600 *0.02)
TTypesOfCrops
TTypesOfCrops
Definition: LandscapeFarmingEnums.h:781
THare_Population_Manager::BodyBurdenPrb
FILE * BodyBurdenPrb
Definition: Hare_All.h:799
fp_ns
Definition: Treatment.h:134
THare::ForageSquareP
double ForageSquareP(int a_x, int a_y, double *a_pestexposure)
Forage from an area and resturn pesticide exposure as well as food.
Definition: HareForagenPeg.cpp:375
THare::m_pesticide_burden
double m_pesticide_burden
State variable used to hold the current body-burden of pesticide.
Definition: Hare_All.h:301
THare_Population_Manager::MRROutputs
void MRROutputs()
Special probe for data to be used in mark-release-recapture simulations.
Definition: Hare_All.cpp:1142
Hare_Infant::ReInit
void ReInit(struct_Hare a_data)
Infant object reinitiation.
Definition: Hare_All.cpp:1185
THare::m_Age
int m_Age
State variale - hare age.
Definition: Hare_All.h:170
Landscape::SupplyRain
double SupplyRain(void)
Passes a request on to the associated Weather class function, the amount of rain for the current day.
Definition: Landscape.h:1971
Hare_Female::BeginStep
void BeginStep(void) override
Female BeginStep.
Definition: Hare_All.cpp:2869
THare::ForageP
double ForageP(int &time)
Foraging but also incorporating pesticide exposure.
Definition: HareForagenPeg.cpp:179
bed_forming
Definition: Treatment.h:118
MRR_Data::MRR_Data
MRR_Data()
Definition: Hare_All.cpp:3999
Hare_Young::Step
void Step(void) override
Step code for Hare_Young.
Definition: Hare_All.cpp:1635
MRR_Data::m_currenttrapping
int m_currenttrapping
Definition: Hare_All.h:128
product_treat
Definition: Treatment.h:113
cfg_hare_DaysToGestation
static CfgInt cfg_hare_DaysToGestation("HARE_GESTATIONDAYS", CFG_CUSTOM, 41)
Population_Manager::OpenTheReallyBigProbe
bool OpenTheReallyBigProbe()
Definition: PopulationManager.cpp:1005
Landscape::SupplyVegHeight
double SupplyVegHeight(int a_polyref)
Returns the height of the vegetation using the polygon reference number a_polyref or based on the x,...
Definition: Landscape.h:1527
g_msg
MapErrorMsg * g_msg
Definition: MapErrorMsg.cpp:41
Population_Manager::GetLiveArraySize
unsigned GetLiveArraySize(int a_listindex) override
Gets the number of 'live' objects for a list index in the TheArray.
Definition: PopulationManager.h:657
tohs_Developing
Definition: Hare_All.h:74
THare::m_CurrentHState
TTypeOfHareState m_CurrentHState
Defines the current activity.
Definition: Hare_All.h:165
cfg_littersize_mean8
static CfgFloat cfg_littersize_mean8("HARE_LITTERSIZE_MEAN_H", CFG_CUSTOM, 1.72)
cfg_CfgRipleysOutputUsed
CfgBool cfg_CfgRipleysOutputUsed
THare::Step
void Step(void) override
Base implementation only - reimplemented.
Definition: Hare_All.h:350
cfg_MRR_FirstYear
static CfgInt cfg_MRR_FirstYear("HARE_MRRFIRSTYEAR", CFG_CUSTOM, 10000)
THare::m_IamSick
bool m_IamSick
flag for sickness - used in conjunction with disease configurations
Definition: Hare_All.h:295
cfg_AdultMaxFat
static CfgFloat cfg_AdultMaxFat("HARE_ADULT_MAXFAT", CFG_CUSTOM, 0.04/(0.33 *0.88))
struct_Hare
Class used to pass hare information to CreateObjects.
Definition: Hare_All.h:136
THare_Population_Manager::GetInterference
double GetInterference(int h)
Return the proportion of time used in communicating with con-specifics.
Definition: Hare_All.h:707
Hare_Female::ON_AreYouMyMum
bool ON_AreYouMyMum(THare *a_young)
Debug function.
Definition: Hare_All.cpp:3664
ttop_ReproductiveEffects
Definition: LandscapeFarmingEnums.h:1061
Hare_Female::GeneralEndocrineDisruptor
void GeneralEndocrineDisruptor(double a_pesticide_dose) override
Handles internal effects of endocrine distrupter pesticide exposure for female.
Definition: Hare_All.cpp:4101
Hare_Female::GeneralOrganoPhosphate
void GeneralOrganoPhosphate(double a_pesticide_dose) override
Handles internal effects of organophosphate pesticide exposure for female.
Definition: Hare_All.cpp:4110
autumn_sow
Definition: Treatment.h:41
Hare_Male::Hare_Male
Hare_Male(int p_x, int p_y, Landscape *p_L, THare_Population_Manager *p_PPM, double p_weight, int a_age, int a_Ref)
Constructor.
Definition: Hare_All.cpp:2402
CfgInt
Integer configurator entry class.
Definition: Configurator.h:102
cfg_hare_male_predation
static CfgFloat cfg_hare_male_predation("HARE_MALE_PREDATION", CFG_CUSTOM, 0.0023)
THare_Population_Manager::CalcLitterSize
void CalcLitterSize(double mean, double SD, int litter)
Definition: Hare_All.cpp:665
THare::THare
THare(int p_x, int p_y, Landscape *p_L, THare_Population_Manager *p_PPM)
Constructor.
Definition: Hare_THare.cpp:64
autumn_harrow
Definition: Treatment.h:37
THare_Population_Manager::GetPolyFood
double GetPolyFood(int a_poly)
Get stored polygon food quality.
Definition: Hare_All.h:720
cfg_BeetleBankMinY
CfgInt cfg_BeetleBankMinY
TAnimal::m_guard_cell_x
int m_guard_cell_x
The index x to the guard cell.
Definition: PopulationManager.h:370
fa_calcium
Definition: Treatment.h:79
THare::GeneralEndocrineDisruptor
virtual void GeneralEndocrineDisruptor(double)
Handles internal effects of endocrine distrupter pesticide exposure. If any effects are needed this m...
Definition: Hare_All.h:480
THare::m_StarvationDays
int m_StarvationDays
State variable - the number of consecutive days in negative energy balance.
Definition: Hare_All.h:208
Hare_Female::DoLactation
void DoLactation()
Lactation.
Definition: Hare_All.cpp:3479
cfg_littersize_SD9
static CfgFloat cfg_littersize_SD9("HARE_LITTERSIZE_SD_I", CFG_CUSTOM, 0.6415)
THare_Population_Manager::Hunting
void Hunting(void)
Definition: Hare_All.cpp:3827
cfg_HareThresholdDD
CfgInt cfg_HareThresholdDD("HARE_THRESHOLDDD", CFG_CUSTOM, 5)
Hare_Male::EndStep
void EndStep(void) override
EndStep code for Hare_Male.
Definition: Hare_All.cpp:2583
fa_ammoniumsulphate
Definition: Treatment.h:74
activity_Recovery
Definition: Hare_All.h:95
CfgFloat
Double configurator entry class.
Definition: Configurator.h:126
THare_Population_Manager::m_OurMRRData
MRR_Data * m_OurMRRData
Data structure for MarkReleaseRecapture expts
Definition: Hare_All.h:797
Population_Manager_Base::m_SimulationName
string m_SimulationName
stores the simulation name
Definition: PopulationManager.h:622
THare_Population_Manager::m_MaxDailyGrowthEnergy
double m_MaxDailyGrowthEnergy[5001]
Precalculated max growth energy requirement with size
Definition: Hare_All.h:783
THare_Population_Manager::TheAOROutputProbe
void TheAOROutputProbe() override
Output method.
Definition: Hare_All.cpp:1129
autumn_sow_with_ferti
Definition: Treatment.h:136
trial_insecticidetreat
Definition: Treatment.h:108
Population_Manager::SupplyListIndexSize
virtual unsigned SupplyListIndexSize()
Definition: PopulationManager.h:725
fa_p
Definition: Treatment.h:69
mow
Definition: Treatment.h:105
activity_Running
Definition: Hare_All.h:91
TTypeOfHareState
TTypeOfHareState
Enumerator for hare behavioural states.
Definition: Hare_All.h:71
Hare_Infant::st_Developing
TTypeOfHareState st_Developing()
Developmental behaviour for the infant hare.
Definition: Hare_All.cpp:1461
hob_Female
Definition: Hare_All.h:63
cfg_CatastropheEventStartYear
CfgInt cfg_CatastropheEventStartYear
THare::GetTotalWeight
double GetTotalWeight()
Provide the wet weight of the hare.
Definition: Hare_All.h:370
cfg_hare_peg_inertia
static CfgFloat cfg_hare_peg_inertia("HARE_PEG_INERTIA", CFG_CUSTOM, 1.00)
cfg_adult_starve
CfgInt cfg_adult_starve("HARE_ADULT_STARVE", CFG_CUSTOM, 5000)
Hare_Infant::Hare_Infant
Hare_Infant(int p_x, int p_y, Landscape *p_L, THare_Population_Manager *p_PPM)
Hare infant constructor.
Definition: Hare_All.cpp:1183
MRR_Entry
Data entry for mark release recapture data MRR_Data.
Definition: Hare_All.h:109
fa_rsm
Definition: Treatment.h:78
cfg_littersize_SD3
static CfgFloat cfg_littersize_SD3("HARE_LITTERSIZE_SD_C", CFG_CUSTOM, 0.955)
THare::Running
virtual void Running(int a_max_dist)
Run.
Definition: Hare_THare.cpp:136
THare::GetPegPull
int GetPegPull()
Get attractive force of peg.
Definition: HareForagenPeg.cpp:458
THare::m_MyMum
Hare_Female * m_MyMum
Pointer to the hare's mum.
Definition: Hare_All.h:190
THare::SetMum
static void SetMum(Hare_Female *)
Set the mother pointer. Reimplemented in Hare_Infant.
Definition: Hare_All.h:396
CFG_CUSTOM
Definition: Configurator.h:70
g_random_fnc
int g_random_fnc(const int a_range)
Definition: ALMaSS_Random.cpp:74
MRR_Data::AddEntry
void AddEntry(int a_RefNum)
Definition: Hare_All.cpp:4007
fa_npks
Definition: Treatment.h:66
water
Definition: Treatment.h:92
Hare_Female::UpdateGestation
void UpdateGestation()
Update gestation counter.
Definition: Hare_All.cpp:3326
stubble_harrowing
Definition: Treatment.h:102
Hare_Female::m_reproActivity
TTypeOfActivity m_reproActivity
State variable - current reproductive state.
Definition: Hare_All.h:1061
THare::m_peg_y
int m_peg_y
peg y-coordinate
Definition: Hare_All.h:260
THare::m_weight
double m_weight
State variale - hare weight g.
Definition: Hare_All.h:180
Hare_Infant::SetMum
void SetMum(Hare_Female *a_af)
Set the mother pointer.
Definition: Hare_All.h:862
Hare_Juvenile::st_Foraging
TTypeOfHareState st_Foraging()
Juvenile foraging.
Definition: Hare_All.cpp:2127
THare_Population_Manager::GetJuvenileDensity
int GetJuvenileDensity(int x, int y)
Density function - returns the density of juveniles in the square containing by x,...
Definition: Hare_All.h:666
THare_Population_Manager::GetGrowthEfficiencyP
double GetGrowthEfficiencyP(int a_age)
Get the growth efficiency for this a_age for creating protein.
Definition: Hare_All.h:602
THare::m_Type
Hare_Object m_Type
State variale - the type of hare.
Definition: Hare_All.h:175
cfg_hare_ExtEff
CfgFloat cfg_hare_ExtEff("HARE_EXTEFF", CFG_CUSTOM, 5.8)
THare::Run
bool Run(int a_dist, int a_direction)
Run a distance in a direction.
Definition: Hare_THare.cpp:186
tohs_Resting
Definition: Hare_All.h:77
cfg_fixadult_starve
CfgInt cfg_fixadult_starve("HARE_FIXADULT_STARVE", CFG_CUSTOM, 370)
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
Population_Manager::PushIndividual
void PushIndividual(const unsigned a_listindex, TAnimal *a_individual_ptr)
Definition: PopulationManager.cpp:1682
THare_Population_Manager::SubtractHareDensity
void SubtractHareDensity(int x, int y, Hare_Object a_type)
Density function - subtracts one from the density in the square containing by x,y....
Definition: Hare_All.h:649
Hare_Male::st_Foraging
TTypeOfHareState st_Foraging()
Male Foraging.
Definition: Hare_All.cpp:2595
THare_Population_Manager::GetGrowthEfficiency
double GetGrowthEfficiency(int a_age)
Get the growth efficiency for this a_age.
Definition: Hare_All.h:589
hay_bailing
Definition: Treatment.h:101
Hare_Female::Init
void Init(double p_weight, int a_age, int a_Ref)
Object initiation.
Definition: Hare_All.cpp:2844
Hare_Young::st_Developing
TTypeOfHareState st_Developing()
Developmental code for the young hare.
Definition: Hare_All.cpp:1761
fa_manganesesulphate
Definition: Treatment.h:73
struct_Hare::weight
double weight
Definition: Hare_All.h:145
cfg_hare_max_age
CfgInt cfg_hare_max_age("HARE_MAX_AGE", CFG_CUSTOM, static_cast< int >(365 *12.5))
Population_Manager::ReallyBigOutputPrb
ofstream * ReallyBigOutputPrb
Definition: PopulationManager.h:873
THare::BeginStep
void BeginStep(void) override
Base implementation only - reimplemented.
Definition: Hare_All.h:344
THare_Population_Manager::DoLast
void DoLast() override
The last method called before the new time-step starts.
Definition: Hare_All.cpp:714
Hare_Juvenile::Hare_Juvenile
Hare_Juvenile(int p_x, int p_y, Landscape *p_L, THare_Population_Manager *p_PPM, double p_weight)
Constructor for the juvenile hare object.
Definition: Hare_All.cpp:1972
Landscape::SupplyLargestPolyNumUsed
int SupplyLargestPolyNumUsed()
Returns m_LargestPolyNumUsed.
Definition: Landscape.h:578
THare_Population_Manager::m_GrowthEfficiency
double m_GrowthEfficiency[5001]
Precalculated growth efficiency with size
Definition: Hare_All.h:785
g_RMRrainFactor
double g_RMRrainFactor
Definition: Hare_All.cpp:49
fp_k
Definition: Treatment.h:55
cfg_JuvDDScale
CfgFloat cfg_JuvDDScale("HARE_JUVSCALEDD", CFG_CUSTOM, 0.5)
tohs_ReproBehaviour
Definition: Hare_All.h:78
activity_oestrouscycle
Definition: Hare_All.h:96
Hare_Juvenile::st_Developing
virtual TTypeOfHareState st_Developing()
The development code for Hare_Juvenile.
Definition: Hare_All.cpp:2266
THare::TimeBudget
void TimeBudget(TTypeOfActivity a_activity, int dist)
Adjust time budger for an activity.
Definition: Hare_THare.cpp:298
Landscape::Warn
void Warn(std::string a_msg1, std::string a_msg2)
Wrapper for the g_msg Warn function.
Definition: Landscape.h:2250
cfg_min_growth_attain
CfgFloat cfg_min_growth_attain("HARE_MINGROWTHATTAIN", CFG_CUSTOM, 0.475)
THare_Population_Manager::GetTotalDensity
int GetTotalDensity(int x, int y)
Density function - returns the density of all hares in the square containing by x,...
Definition: Hare_All.h:683
Hare_Female::st_Resting
static TTypeOfHareState st_Resting()
Resting.
Definition: Hare_All.cpp:3210
cfg_MRR_LastYear
static CfgInt cfg_MRR_LastYear("HARE_MRRLASTYEAR", CFG_CUSTOM, 0)
MRR_Entry::m_trappings1
int m_trappings1
Definition: Hare_All.h:111
Hare_Female::Hare_Female
Hare_Female(int p_x, int p_y, Landscape *p_L, THare_Population_Manager *p_PPM, double p_weight, int a_age, int a_Ref)
Female Constructor.
Definition: Hare_All.cpp:2830
cfg_BeetleBankMaxY
CfgInt cfg_BeetleBankMaxY
cfg_HareFemaleReproMortValue
CfgInt cfg_HareFemaleReproMortValue("HARE_FEMALEREPROMORT", CFG_CUSTOM, 0)
autumn_plough
Definition: Treatment.h:34
Landscape::SupplyCropType
TTypesOfCrops SupplyCropType(int a_x, int a_y)
Returns the crop type of the polygon using the polygon reference number a_polyref or coordinates a_x,...
Definition: Landscape.h:1931
cfg_hare_proximity_alert
static CfgFloat cfg_hare_proximity_alert("HARE_PROXIMITY_ALERT", CFG_CUSTOM, 0.05)
Hare_Female::AddYoung
void AddYoung(THare *a_new)
Add a leveret to the list of kids.
Definition: Hare_All.cpp:3535
TAnimal::m_Location_x
int m_Location_x
The objects ALMaSS x coordinate.
Definition: PopulationManager.h:362
activity_gestation
Definition: Hare_All.h:98
cfg_MRR3
static CfgInt cfg_MRR3("HARE_MMRTHREE", CFG_CUSTOM, 999)
THare_Population_Manager::m_Interference
double m_Interference[2500]
Array storing density-dependence effect with density
Definition: Hare_All.h:768
cfg_hare_sex_ratio
static CfgInt cfg_hare_sex_ratio("HARE_SEX_RATIO", CFG_CUSTOM, 50)
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
THare_Population_Manager::BodyBurdenOut
void BodyBurdenOut(int a_year, int a_day, double a_bb, double a_mgkg)
BodyBurden output.
Definition: Hare_All.h:730
fp_slurry
Definition: Treatment.h:58
cfg_AorOutput_used
CfgBool cfg_AorOutput_used
Hare_Infant::EndStep
void EndStep(void) override
EndStep for the Hare_Infant.
Definition: Hare_All.cpp:1295
fiber_covering
Definition: Treatment.h:128
cfg_hare_StartingNo
static CfgInt cfg_hare_StartingNo("HARE_START_NO", CFG_CUSTOM, 1000)
cfg_FarmIntensiveness
CfgFloat cfg_FarmIntensiveness("HARE_FARMINTENSIVENESS", CFG_CUSTOM, 0.01)
Hare_Juvenile
Class for juvenile hares (after 5 weeks old, fully mobile)
Definition: Hare_All.h:930
THare_Population_Manager::GetDelayedAdultDensity
int GetDelayedAdultDensity(int x, int y)
Density function - returns the density of adults in the square containing by x,y, but for last year a...
Definition: Hare_All.h:696
cfg_HareMaleDensityDepValue
CfgFloat cfg_HareMaleDensityDepValue("HARE_MALEDENDEPVALUE", CFG_CUSTOM, 0.1)
THare_Population_Manager::Catastrophe
void Catastrophe() override
Annual global change in population numbers.
Definition: Hare_All.cpp:3730
cfg_littersize_mean9
static CfgFloat cfg_littersize_mean9("HARE_LITTERSIZE_MEAN_I", CFG_CUSTOM, 1.72)
THare::m_peg_x
int m_peg_x
peg x-coordinate
Definition: Hare_All.h:256
ttop_NoPesticide
Definition: LandscapeFarmingEnums.h:1059
APoint::m_y
int m_y
Definition: ALMaSS_Setup.h:56
THare_Population_Manager::m_RefNums
int m_RefNums
The last hare ID used
Definition: Hare_All.h:762
Hare_Female::UpdateOestrous
void UpdateOestrous()
Update oestrous counter.
Definition: Hare_All.cpp:3280
summer_sow
Definition: Treatment.h:50
Landscape::GetHareFoodQuality
double GetHareFoodQuality(int a_polygon)
Returns the hare food quality of polygons LKM.
Definition: Landscape.cpp:5472
Hare_Female::st_Dispersal
TTypeOfHareState st_Dispersal() override
Female Dispersal.
Definition: Hare_All.cpp:3187
spring_sow_with_ferti
Definition: Treatment.h:115
Hare_Female::m_GestationCounter
int m_GestationCounter
State variable - Days in gestation.
Definition: Hare_All.h:1057
activity_Resting
Definition: Hare_All.h:90
tohs_Foraging
Definition: Hare_All.h:76
October
const int October
Julian start dates of the month of October.
Definition: Landscape.h:56
Hare_Male::GeneralOrganoPhosphate
void GeneralOrganoPhosphate(double) override
Handles internal effects of organophosphate pesticide exposure. If any effects are needed this method...
Definition: Hare_All.cpp:2816
activity_givebirth
Definition: Hare_All.h:99
sleep_all_day
Definition: Treatment.h:33
cfg_HareWalkingPowerConst
CfgFloat cfg_HareWalkingPowerConst("HARE_WALKINGPOWERCONST", CFG_CUSTOM, -0.316)
strigling_sow
Definition: Treatment.h:107
Population_Manager::IncLiveArraySize
void IncLiveArraySize(int a_listindex)
Increments the number of 'live' objects for a list index in the TheArray.
Definition: PopulationManager.h:665