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
Ladybird_All.h
Go to the documentation of this file.
1 //
2 // Last modified by Chris Topping 8 July 2023
3 /*
4 *******************************************************************************************************
5 Copyright (c) 2023, Christopher John Topping & Andrey Chuhutin, Aarhus University
6 All rights reserved.
7 
8 Redistribution and use in source and binary forms, with or without modification, are permitted provided
9 that the following conditions are met:
10 
11 Redistributions of source code must retain the above copyright notice, this list of conditions and the
12 following disclaimer.
13 Redistributions in binary form must reproduce the above copyright notice, this list of conditions and
14 the following disclaimer in the documentation and/or other materials provided with the distribution.
15 
16 THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" AND ANY EXPRESS OR
17 IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND
18 FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT HOLDER OR CONTRIBUTORS
19 BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING,
20 BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR
21 BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT
22 LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS
23 SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
24 *******************************************************************************************************
25 */
26 //---------------------------------------------------------------------------
27 
28 #ifndef LADYBIRD_ALL_H
29 #define LADYBIRD_ALL_H
30 
31 #pragma warning( disable : 4250 )
32 
33 //---------------------------------------------------------------------------
34 
35 #include "Beetle_BaseClasses.h"
37 #include <Eigen/Dense>
38 
40 enum {
43 };
44 
45 extern const char* g_simulationName;
46 
47 
48 //------------------------------------------------------------------------------
49 // Forward Declarations
50 
52 class Landscape;
53 class MovementMap;
54 class SimplePositionMap;
57 
58 
59 //------------------------------------------------------------------------------
64 enum LadybirdObjects : unsigned {
65  lobs_Egg = 0,
73 }; // Ladybirds Objects enum
74 //------------------- EndEnumerations -------------------
75 
77 {
78  int m_X;
79  int m_Y;
80  int m_No;
81 };
82 
86 class Ladybird_Base : virtual public Beetle_Base {
87  protected:
89  int m_EatenToday{ 0 };
91  int m_WantToEatToday{ 0 };
93  int m_AphidsAppetite{ 0 };
95  int m_MoveCounter{ 0 };
101  void EatToday(const int a_add) { m_EatenToday += a_add; }
103  virtual int GetEatenToday() const { return m_EatenToday; }
105  virtual void SetEatenToday(int a) { m_EatenToday = a; }
109  virtual int GetAphidsAppetite() { return 10; }
111  virtual void ResetAphidsAppetite() { m_AphidsAppetite = 0; }
113  virtual int EatAphids(int a_x, int a_y, int a_appetite);
115  int Cannibalise(int a_appetite);
117  static int GetTempMortRange(double a_temp);
121  bool CanMove() {
122  const auto maxdistance = GetMaxDailyDistance();
123  return (m_MoveCounter < maxdistance);
124  }
126  return 0; // todo interface with calcMaxDistance functions
127  }
128 public:
130  explicit Ladybird_Base(Ladybird_Population_Manager* a_lpm_ptr);
131  ~Ladybird_Base() override = default;
132 
134  static void SetLadybirdStagesNutritionalValue(const vector<int>& a_list) { m_LadybirdStagesNutritionalValue = a_list; }
135  };
136 
144 {
145 
154 public:
156  Ladybird_Egg_List(int a_today,Ladybird_Population_Manager* a_bpm_ptr, Landscape* a_l_ptr);
157 };
158 
159 
160 // ------------------------------------------------------------------------------------------
161 // Start Ladybird_Larvae2 class
162 // ------------------------------------------------------------------------------------------
163 
164 class Ladybird_Larvae1 : public virtual Beetle_Larvae, public virtual Ladybird_Base {
165 protected:
167  double m_AphidTotalNum{0};
173  static int m_MaxUsefulAphids[4];
175  static vector<double> m_LadybirdLarvalPreyDevelScalers[4];
177  static int m_LarvalAppetite[4];
180 public:
182  Ladybird_Larvae1(int a_x, int a_y, Landscape* a_l_ptr, Ladybird_Population_Manager* a_bpm_ptr);
184  ~Ladybird_Larvae1() override = default;
186  virtual void ReInit(int a_x, int a_y, Landscape* a_l_ptr, Ladybird_Population_Manager* a_bpm_ptr);
188  bool IsLocationAllowed(int a_x, int a_y) override;
190  static void SetLadybirdLarvalPreyDevelParameters(const vector<double>& a_array, int a_no_stages);
192  static void SetLadybirdLarvaeMoveMax(const int a_value) { m_LadybirdLarvaeNoMoves = a_value; }
194  static void SetLadybirdLarvaeMoveStep(const int a_value) { m_LadybirdLarvaeMoveStep = a_value; }
196  static void SetLarvalAppetite(const vector<int>& a_value) { for (int i=0; i<4; i++) m_LarvalAppetite[i] = a_value[i]; }
197 
198 protected:
200  void BeginStep() override;
202  TTypesOfBeetleState St_Develop() override;
205 };
206 
207 
208 // -------------------- End Ladybird_Larvae1 class --------------------
209 
210 // ------------------------------------------------------------------------------------------
211 // Start Ladybird_Larvae2 class
212 // ------------------------------------------------------------------------------------------
215 public:
217  Ladybird_Larvae2(int a_x, int a_y, Landscape* a_l_ptr, Ladybird_Population_Manager* a_bpm_ptr);
219  void ReInit(int a_x, int a_y, Landscape* a_l_ptr, Ladybird_Population_Manager* a_bpm_ptr) override;
220 };
221 // -------------------- End Ladybird_Larvae2 class --------------------
222 
223 // ------------------------------------------------------------------------------------------
224 // Start Ladybird_Larvae3 class
225 // ------------------------------------------------------------------------------------------
228 public:
230  Ladybird_Larvae3(int a_x, int a_y, Landscape* a_l_ptr, Ladybird_Population_Manager* a_lpm_ptr);
232  void ReInit(int a_x, int a_y, Landscape* a_l_ptr, Ladybird_Population_Manager* a_lpm_ptr) override;
233 };
234 // -------------------- End Ladybird_Larvae3 class --------------------
235 
236 // ------------------------------------------------------------------------------------------
237 // Start Ladybird_Larvae4 class
238 // ------------------------------------------------------------------------------------------
241 public:
243  Ladybird_Larvae4(int a_x, int a_y, Landscape* a_l_ptr, Ladybird_Population_Manager* a_lpm_ptr);
245  void ReInit(int a_x, int a_y, Landscape* a_l_ptr, Ladybird_Population_Manager* a_lpm_ptr) override;
246 };
247 // -------------------- End Ladybird_Larvae3 class --------------------
248 
249 // ------------------------------------------------------------------------------------------
250 // Start Ladybird_Pupae class
251 // ------------------------------------------------------------------------------------------
252 class Ladybird_Pupae final : virtual public Ladybird_Base, virtual public Beetle_Pupae {
253 public:
255  Ladybird_Pupae(int a_x, int a_y, Landscape* a_l_ptr, Ladybird_Population_Manager* a_bpm_ptr);
257  void ReInit(int a_x, int a_y, Landscape* a_l_ptr, Ladybird_Population_Manager* a_bpm_ptr);
259  TTypesOfBeetleState St_Emerge() override;
261  void BeginStep() override;
263  double calcDailyMortChance(int a_temp2, const double a_lengthOfStageAtTemp) override;
264  TTypesOfBeetleState St_Develop() override;
265 };
266 
267 
268 class Ladybird_Adult final : virtual public Ladybird_Base, virtual public Beetle_Adult {
269 protected:
272  int m_EmergenceDay{ 0 };
274  bool m_IsHibernating{ false };
276  bool m_HasOverwintered{ false };
278  int m_DailyEggs{ 0 };
280  double m_ADayDeg{ 0 };
290  static vector<double> m_HibernationClumpeSizeDist;
292  static vector<double>m_OvipositionRateTemp;
294  static vector<double>m_BackgroundMortTemp;
297 public:
298  // member functions
300  Ladybird_Adult( int a_x, int a_y, Landscape* a_l_ptr, Ladybird_Population_Manager* a_lpm_ptr );
302  void ReInit(int a_x, int a_y, Landscape* a_l_ptr, Ladybird_Population_Manager* a_lpm_ptr);
304  void BeginStep() override;
306  void SetOverwintered(const bool a_value) { m_HasOverwintered = a_value; }
308  void SetIsHibernating(const bool a_val){ m_IsHibernating = a_val; }
309  static void SetOvipositionPeriod(const bool a_cond) { m_OvipostionPeriod = a_cond; }
310  static void SetAphidsPerPreyLevel(const int a_value) { m_AphidsPerPreyLevel = a_value; }
311  static void SetHibernationClumpeSizeDist(const vector<double>& a_dist) { m_HibernationClumpeSizeDist = a_dist; }
312  static void SetOvipositionRateTemp(const vector<double>& a_dist) { m_OvipositionRateTemp = a_dist; }
313  static void SetBackgroundMortTemp(const vector<double>& a_vector) { m_BackgroundMortTemp = a_vector; }
314  static void SetShortRangeDistToday(const int a_value) { m_ShortRangeDistToday = a_value; }
315 protected:
316  // Member Functions
318  double GetExtremeTempMin() const;
320  bool WinterMort() const override { return false; }
326  TTypesOfBeetleState St_Forage() override;
330  void TryToReproduce() override;
332  static bool m_OvipostionPeriod;
340  bool LongRangeFind(int a_distance, int a_minimumflightlength, int a_target, bool (Ladybird_Adult::* a_func)(int, int, int));
348  bool FindTarget(int a_distance, int a_minimumflightlength, int a_target);
350  bool ShouldStartAggregating();
357  bool IsProbhibited(int a_x, int a_y) const;
365  inline bool IsAggregationSite(const int a_x, const int a_y, const int a_unused);
373  inline bool IsForageSite(const int a_x, const int a_y, const int a_target);
375  void setEggCounter(int num){ m_EggCounter=num; }
377  void decEggCounter(int num){ m_EggCounter-=num;}
379  int getEggCounter(){ return m_EggCounter;}
381  void setDailyEggs(int num){ m_DailyEggs=num; }
383  void decDailyEggs(int num){ m_DailyEggs-=num; }
384 };
385 
387 {
388 public:
390  std::vector<Aphid_Population_Manager*> m_AphidPopulationManagerPtrList;
391 protected:
393  vector<double> m_EggTemperatureMortality{ };
399  vector<Eigen::MatrixXi> m_cannibalism_dead_num_map;
403  void DoExtremeTempActions(double a_atemptoday) override;
405  void DoEggDailyMortalityActions(double a_atemptoday) override;
407  void DoLarvalDailyMortalityActions(double a_atemptoday) override;
409  int GetTempMortRange(double a_temp) const;
411  //void EnforceCannibalistionEvents();
415  void DayDegreeCalculations(int a_dayinyear, bool a_usehourly) override;
417  void CalculateDailyEggProduction(double a_temptoday) override {}
418 
419 public:
420  // Attributes - todo move these when the best place to put them is found, after first implementation
428  //TTovList LadybirdProhibitedTovsForMovementLarva;
437 
438  // Member functions
440  explicit Ladybird_Population_Manager(Landscape* a_l_ptr, int a_numberLifeStages);
442  ~Ladybird_Population_Manager() override;
446  return false;
447  }
448  return true;
449  }
450  void CreateObjects(int a_ob_type, TAnimal *a_pvo, void* ,Struct_Beetle* a_data, int a_number) override;
451  bool OnFarmEvent(FarmToDo a_event, Beetle_Base* a_caller) override;
453  inline bool GetFlyingWeather() const;
457  static inline double getLongRangeDuration(){return 3000.;} // 50 min * 60 sec/min // todo: move parameters to constants class
459  void SetAphidPopulationManager(Aphid_Population_Manager* a_aphid_population_manager_ptr) { m_AphidPopulationManagerPtrList.push_back(a_aphid_population_manager_ptr); }
461  int GetAphidPopulationManagerSize() const { return static_cast<int>(m_AphidPopulationManagerPtrList.size()); }
470  double GetAphidDensity(int a_x, int a_y) override;
472  void DecAphids(int a_x, int a_y, int a_num);
474  void TheAOROutputProbe() override;
476  void AddCannibalismDeath(int a_ob_type, int a_x, int a_y) {m_cannibalism_dead_num_map[a_ob_type](a_y, a_x)+=1; m_cannibalism_dead_total_num[a_ob_type]+=1;}
478  void DoSpecialBetweenLifeStages(int a_life_stage) override;
479 protected:
480  /*************************/
482  /*************************/
489  void DoFirst() override;
490 };
491 #endif
TTovList
std::unordered_set< TTypesOfVegetation > TTovList
Definition: Beetle_toletov.h:12
Beetle_Base::GetDensityRangeEdge
int GetDensityRangeEdge(int a_x, int a_y, int a_range) const
The method to return the number of beetles in this specific location with a range.
Definition: Beetle_BaseClasses.cpp:396
Ladybird_Egg_List::Ladybird_Egg_List
Ladybird_Egg_List(int a_today, Ladybird_Population_Manager *a_bpm_ptr, Landscape *a_l_ptr)
Egg_List class constructor.
Definition: Ladybird_All.cpp:307
Ladybird_Pupae
Definition: Ladybird_All.h:252
TAnimal::Supply_m_Location_x
int Supply_m_Location_x() const
Returns the ALMaSS x-coordinate.
Definition: PopulationManager.h:239
lobs_Pupa
Definition: Ladybird_All.h:70
fiber_removal
Definition: Treatment.h:129
fp_rsm
Definition: Treatment.h:64
LadybirdTovParams::getList
TTovList getList()
Definition: Ladybird_toletov.cpp:12
LadybirdToleTovs
Definition: Ladybird_toletov.h:33
Ladybird_Adult::ReInit
void ReInit(int a_x, int a_y, Landscape *a_l_ptr, Ladybird_Population_Manager *a_lpm_ptr)
ReInit for object pool.
Definition: Ladybird_All.cpp:539
org_insecticide
Definition: Treatment.h:84
Ladybird_Population_Manager::GetAphidDensity
double GetAphidDensity(int a_x, int a_y) override
Returns the number of aphids per square metre at this x,y location.
Definition: Ladybird_All.cpp:1323
Beetle_Population_Manager::IsStartHabitat
bool IsStartHabitat(int a_x, int a_y) const
Used to specify legal starting habitats for simulation start-up.
Definition: Beetle_BaseClasses.cpp:1557
fa_sk
Definition: Treatment.h:71
cfg_LadybirdLarvaAppetite
static CfgArray_Int cfg_LadybirdLarvaAppetite("LADYBIRD_LARVAL_APPETITE", CFG_CUSTOM, 4, vector< int >{ 35, 40, 80, 130 })
The appetite for larval stages per day in aphids.
Ladybird_Population_Manager::m_cannibalism_dead_num_map
vector< Eigen::MatrixXi > m_cannibalism_dead_num_map
Holds the daily dead number caused by cannibalism.
Definition: Ladybird_All.h:399
cfg_LadybirdExtremeTempMin
static CfgFloat cfg_LadybirdExtremeTempMin("LADYBIRD_EXTREME_TEMP_MIN", CFG_CUSTOM, -20.0)
row_cultivation
Definition: Treatment.h:88
tobs_Foraging
Definition: Beetle_BaseClasses.h:68
fa_pk
Definition: Treatment.h:68
Ladybird_Larvae1::m_LarvalAppetite
static int m_LarvalAppetite[4]
The max number of aphids possible to eat/day per larval stage.
Definition: Ladybird_All.h:177
tobs_Aggregating
Definition: Beetle_BaseClasses.h:69
winter_harrow
Definition: Treatment.h:144
Ladybird_Base::SetLadybirdStagesNutritionalValue
static void SetLadybirdStagesNutritionalValue(const vector< int > &a_list)
Sets the list of aphid equivalents of each ladybird stage.
Definition: Ladybird_All.h:134
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
harvest
Definition: Treatment.h:94
fa_nk
Definition: Treatment.h:142
Ladybird_Base::GetEatenToday
virtual int GetEatenToday() const
return the value of daily aphid consumption counter
Definition: Ladybird_All.h:103
Beetle_Population_Manager::m_InFieldNo
int m_InFieldNo
In-field counter.
Definition: Beetle_BaseClasses.h:1117
cfg_BeetleInCropRef
CfgInt cfg_BeetleInCropRef
A reference to a crop type if we are looking for mortality locations within a special crop.
cfg_biocide_reduction_val
CfgFloat cfg_biocide_reduction_val
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
insecticide_treat
Definition: Treatment.h:83
Population_Manager::m_MapGuard
std::vector< std::vector< omp_nest_lock_t * > > m_MapGuard
This is used to make sure animals will not behaviour at the same area - multi threads.
Definition: PopulationManager.h:790
cfg_RipleysOutput_used
CfgBool cfg_RipleysOutput_used
straw_chopping
Definition: Treatment.h:99
Ladybird_Population_Manager::SetAphidPopulationManager
void SetAphidPopulationManager(Aphid_Population_Manager *a_aphid_population_manager_ptr)
The function to set the aphid population manager pointer.
Definition: Ladybird_All.h:459
Ladybird_Base::GetAphidsToEat
int GetAphidsToEat()
return how many aphids are left to be eaten
Definition: Ladybird_All.h:107
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
Population_Manager::TheSubArraysSizes
vector< vector< int > > TheSubArraysSizes
Hold all the animal sizes in each thread.
Definition: PopulationManager.h:806
Beetle_Base::IncDensity
void IncDensity(int a_x, int a_y, int a_lifestage)
The method inreases the number of beetles in this specific location by one. Used when called by a bee...
Definition: Beetle_BaseClasses.h:255
Ladybird_Adult::m_UnsuccessfulAphidsAttempts
int m_UnsuccessfulAphidsAttempts
The variable that holds the unsuccesful searches for aphids.
Definition: Ladybird_All.h:282
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
Ladybird_Larvae1::m_AphidTotalNum
double m_AphidTotalNum
The sum of aphid populations densities experienced.
Definition: Ladybird_All.h:167
stubble_plough
Definition: Treatment.h:35
Ladybird_Base::GetTempMortRange
static int GetTempMortRange(double a_temp)
returns the mortality range that corresponds to the temperature
Definition: Ladybird_All.cpp:288
growth_regulator
Definition: Treatment.h:81
Ladybird_Adult::m_HibernationClumpeSizeDist
static vector< double > m_HibernationClumpeSizeDist
Holds the clump size distribution with density table.
Definition: Ladybird_All.h:290
g_time
int g_time
Definition: ALMaSS_CmdLine.cpp:157
Ladybird_Population_Manager::OnFarmEvent
bool OnFarmEvent(FarmToDo a_event, Beetle_Base *a_caller) override
Used to determine mortality based on an event for any beetle class - pure vitual must be overriden.
Definition: Ladybird_All.cpp:1174
Ladybird_Larvae1::m_MaxUsefulAphids
static int m_MaxUsefulAphids[4]
The max useful aphid abundance for instars 1-4.
Definition: Ladybird_All.h:173
Ladybird_Population_Manager::DoExtremeTempActions
void DoExtremeTempActions(double a_atemptoday) override
Species specific actions to cope with response to extreme temperature, if needed.
Definition: Ladybird_All.cpp:1068
Beetle_Population_Manager::m_DevelConst1
vector< double > m_DevelConst1
Day degree threshold constant for eggs to pupae.
Definition: Beetle_BaseClasses.h:1068
deep_ploughing
Definition: Treatment.h:43
hilling_up
Definition: Treatment.h:91
Ladybird_Larvae1::SetLarvalAppetite
static void SetLarvalAppetite(const vector< int > &a_value)
Definition: Ladybird_All.h:196
Ladybird_Larvae1::St_Develop
TTypesOfBeetleState St_Develop() override
The main behaviour method that is responsible for the development and eventually leading to larvae2.
Definition: Ladybird_All.cpp:367
Ladybird_Population_Manager::m_cannibalism_dead_total_num
vector< int > m_cannibalism_dead_total_num
Holds the daily total dead number for each life stage caused by cannibalism.
Definition: Ladybird_All.h:401
green_harvest
Definition: Treatment.h:127
autumn_or_spring_plough
Definition: Treatment.h:103
Beetle_Population_Manager::m_BeetlePositionMaps
vector< SimplePositionMapInt * > m_BeetlePositionMaps[bob_foobar]
Definition: Beetle_BaseClasses.h:1113
LadybirdObjects
LadybirdObjects
The enumeration lists all ladybird life stages modelled Beetles are holometabolites (have complete me...
Definition: Ladybird_All.h:64
Population_Manager::m_population_type
TTypesOfPopulation m_population_type
Definition: PopulationManager.h:858
flower_cutting
Definition: Treatment.h:121
Ladybird_Base::m_LadybirdStagesNutritionalValue
static vector< int > m_LadybirdStagesNutritionalValue
Holds the aphid equivalents of each ladybird stage.
Definition: Ladybird_All.h:99
Landscape::SupplyWind
double SupplyWind(void)
Passes a request on to the associated Weather class function, the wind speed for the current day.
Definition: Landscape.h:2061
Ladybird_Larvae2::ReInit
void ReInit(int a_x, int a_y, Landscape *a_l_ptr, Ladybird_Population_Manager *a_bpm_ptr) override
ReInit for object pool.
Definition: Ladybird_All.cpp:427
Ladybird_Population_Manager::LadybirdAggregationTovs
TTovList LadybirdAggregationTovs
the types of vegetation that are aggregation targets
Definition: Ladybird_All.h:436
Ladybird_Base::~Ladybird_Base
~Ladybird_Base() override=default
Ladybird_Adult::m_OvipostionPeriod
static bool m_OvipostionPeriod
Static variable to flag when its possible to lay eggs.
Definition: Ladybird_All.h:332
spring_plough
Definition: Treatment.h:44
Ladybird_Larvae1::IsLocationAllowed
bool IsLocationAllowed(int a_x, int a_y) override
Re-implements the function to determine if larval movement is allowed.
Definition: Ladybird_All.cpp:334
fp_sk
Definition: Treatment.h:56
pruning
Definition: Treatment.h:125
cfg_LadybirdClutchPreyScaler
static CfgArray_Double cfg_LadybirdClutchPreyScaler("LADYBIRD_CLUTCHPREYSCALER", CFG_CUSTOM, 6, vector< double > {0, 0.51, 0.81, 0.93, 0.98, 1})
Scaling parameter for prey levels effect on clutch size.
cfg_LadybirdShortMovementsMaxThreshold
static CfgInt cfg_LadybirdShortMovementsMaxThreshold("LADYBIRD_SHORTMOVEMENTTHRESHOLD", CFG_CUSTOM, 12)
Max number of attempts to short range movement before initiating a long-range move.
Beetle_Population_Manager::m_NoTemperatureCategories
int m_NoTemperatureCategories
Storage for the number of temperature categories used.
Definition: Beetle_BaseClasses.h:1050
Ladybird_Larvae3
Class for beetle larval stage 3, most functionality is in Beetle_Larvae.
Definition: Ladybird_All.h:227
cfg_LadybirdHibernaculaeSizesDist
static CfgArray_Double cfg_LadybirdHibernaculaeSizesDist("LADYBIRD_HIBERNACULAESIZEDIST", CFG_CUSTOM, 12, vector< double >{0.77, 0.95, 1.00, 1.00, 0.51, 0.80, 0.975, 1.00, 0.25, 0.64, 0.95, 1.000})
Distribution of hibernaculae sizes for three densities (four clump sizes)
Ladybird_Population_Manager::m_MortalityTempIndexToday
int m_MortalityTempIndexToday
Storage for the index to the mortality vector for todays temperature (speed optimisation)
Definition: Ladybird_All.h:395
TAnimal::m_guard_cell_y
int m_guard_cell_y
The index y to the guard cell.
Definition: PopulationManager.h:374
Ladybird_Adult::m_IsHibernating
bool m_IsHibernating
State variable: true if hibernating.
Definition: Ladybird_All.h:274
Ladybird_Adult::SetOverwintered
void SetOverwintered(const bool a_value)
sets the value of the state variable that flags that the beetle has overwintered
Definition: Ladybird_All.h:306
fp_manure
Definition: Treatment.h:61
herbicide_treat
Definition: Treatment.h:80
fp_ammoniumsulphate
Definition: Treatment.h:60
Ladybird_Population_Manager::DayDegreeCalculations
void DayDegreeCalculations(int a_dayinyear, bool a_usehourly) override
Does day degree development calculations here.
Definition: Ladybird_All.cpp:990
g_date
class Calendar * g_date
Definition: Calendar.cpp:37
Beetle_Base::GetDensityStage
static int GetDensityStage(int a_x, int a_y, unsigned a_stage)
The method to return the number of beetles in this specific location for a given stage.
Definition: Beetle_BaseClasses.cpp:379
flammebehandling
Definition: Treatment.h:90
Population_Manager_Base::m_ListNames
const char * m_ListNames[32]
A list of life-stage names.
Definition: PopulationManager.h:628
cfg_Beetlestartnos
CfgInt cfg_Beetlestartnos
The number of beetles to start in the simulation.
Ladybird_Population_Manager::CreateObjects
void CreateObjects(int a_ob_type, TAnimal *a_pvo, void *, Struct_Beetle *a_data, int a_number) override
Method to add beetles to the population - it must be overridden in all descendent classes.
Definition: Ladybird_All.cpp:1129
straw_covering
Definition: Treatment.h:123
Ladybird_Larvae1::BeginStep
void BeginStep() override
The override of a funtion that precedes Step()
Definition: Ladybird_All.cpp:357
cfg_LadybirdFlyingThreshWind
static CfgFloat cfg_LadybirdFlyingThreshWind("LADYBIRD_FLYINGTHRESHWIND", CFG_CUSTOM, 10.0)
The maximum wind speed that still allows flying (m/s)
Ladybird_Adult::IsProbhibited
bool IsProbhibited(int a_x, int a_y) const
Tests for toles that are not allowed for movement to at x,y, location.
Definition: Ladybird_All.cpp:655
fp_boron
Definition: Treatment.h:131
cfg_LadybirdAdultMortalityRate
CfgFloat cfg_LadybirdAdultMortalityRate("LADYBIRD_ADULT_MORTALITY_RATE", CFG_CUSTOM, 0.6)
The morality rate when the ladybird adult population is above the maximum allowed number.
Beetle_Base::GetInsecticideApplication
virtual double GetInsecticideApplication() const
the method overrides the method that returns the mortality due to insecticide application
Definition: Beetle_BaseClasses.h:367
cfg_LadybirdMovementTempThreshold
static CfgFloat cfg_LadybirdMovementTempThreshold("LADYBIRD_MOVEMENTTEMPTHRESHOLD", CFG_CUSTOM, 4.0)
The temperature at which the movement is possible for adults.
SimplePositionMap
Used to map locations of individuals for density estimates - space inefficient but good for testing.
Definition: PositionMap.h:45
Ladybird_Adult::m_ADayDeg
double m_ADayDeg
day degrees sum for an individual
Definition: Ladybird_All.h:280
July
const int July
Julian start dates of the month of July.
Definition: Landscape.h:50
Beetle_Adult::m_EggCounter
int m_EggCounter
The number of eggs produced.
Definition: Beetle_BaseClasses.h:876
fp_cu
Definition: Treatment.h:138
bulb_harvest
Definition: Treatment.h:122
CannibalisationEvent::m_Y
int m_Y
Definition: Ladybird_All.h:79
preseeding_cultivator
Definition: Treatment.h:39
Struct_Beetle::m_l
Landscape * m_l
Definition: Beetle_BaseClasses.h:129
cfg_LadybirdMortalityTempStep
static CfgFloat cfg_LadybirdMortalityTempStep("LADYBIRD_MORTALITY_TEMP_STEP", CFG_CUSTOM, 5.0)
g_speedyDivides
double g_speedyDivides[2001]
Beetle_Base::CheckManagementBeetle
virtual bool CheckManagementBeetle()
Definition: Beetle_BaseClasses.h:198
trial_control
Definition: Treatment.h:110
Ladybird_Adult::m_AphidsPerPreyLevel
static int m_AphidsPerPreyLevel
Speed storage for the prey level denominator.
Definition: Ladybird_All.h:286
Ladybird_Adult::decDailyEggs
void decDailyEggs(int num)
decrements daily eggs to-lay
Definition: Ladybird_All.h:383
Ladybird_Pupae::St_Develop
TTypesOfBeetleState St_Develop() override
Pupal state development.
Definition: Ladybird_All.cpp:513
fp_npks
Definition: Treatment.h:51
CfgFloat::value
double value() const
Definition: Configurator.h:142
Ladybird_Population_Manager::DoLarvalDailyMortalityActions
void DoLarvalDailyMortalityActions(double a_atemptoday) override
Species specific actions to cope with temperature related laval mortality.
Definition: Ladybird_All.cpp:1105
cfg_LadybirdParasitoidMortalityChanceMax
static CfgFloat cfg_LadybirdParasitoidMortalityChanceMax("LADYBIRD_PARASITOIDMORTALITYCHANCEMAX", CFG_CUSTOM, 0.25)
Maxcimum probability of parasitoid death for ladybirds in the spring.
hibernacula_Memory
Definition: Ladybird_All.h:41
flight_Memory_Size
Definition: Ladybird_All.h:42
cfg_LadybirdLarvaMovementThreshold
static CfgFloat cfg_LadybirdLarvaMovementThreshold("LADYBIRD_LARVAMOVEMENTTHRESHOLD", CFG_CUSTOM, 10.0)
Minimum temperature for larval movement.
burn_top
Definition: Treatment.h:143
Ladybird_Base::m_EatenToday
int m_EatenToday
number of aphids or aphid equivalents eaten today
Definition: Ladybird_All.h:89
FarmToDo
FarmToDo
Definition: Treatment.h:31
Ladybird_Adult::IsAggregationSite
bool IsAggregationSite(const int a_x, const int a_y, const int a_unused)
Tests for toles that are aggregation types at x,y, location.
Definition: Ladybird_All.cpp:661
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
Ladybird_Base::EatAphids
virtual int EatAphids(int a_x, int a_y, int a_appetite)
the method that is responsible for aphid foraging behaviour (removes the aphids from the aphid model)
Definition: Ladybird_All.cpp:240
fp_nk
Definition: Treatment.h:133
cfg_LadybirdMortalityTempMin
static CfgFloat cfg_LadybirdMortalityTempMin("LADYBIRD_MORTALITY_TEMP_MIN", CFG_CUSTOM, 10.0)
Ladybird_Adult::setDailyEggs
void setDailyEggs(int num)
sets daily eggs to-lay
Definition: Ladybird_All.h:381
Ladybird_Base::m_OurPopulationLadybird
Ladybird_Population_Manager * m_OurPopulationLadybird
pointer to the population manager
Definition: Ladybird_All.h:97
lobs_Larva1
Definition: Ladybird_All.h:66
TAnimal::m_DayInYear
static int m_DayInYear
A holder for the day in year shared with all TAnimal objects.
Definition: PopulationManager.h:358
burn_straw_stubble
Definition: Treatment.h:104
Ladybird_Adult::GetExtremeTempMin
double GetExtremeTempMin() const
returns the lower limit of bearable temperatures. below it the beetle will be subject to high mortali...
Definition: Ladybird_All.cpp:557
cfg_LadybirdAphidsToLayScaler
static CfgFloat cfg_LadybirdAphidsToLayScaler("LADYBIRD_APHIDSTOLAYSCALER", CFG_CUSTOM, 0.6)
Scaling parameter for prey levels above the threshold.
org_herbicide
Definition: Treatment.h:85
Beetle_Base::SetBeetleMap
static void SetBeetleMap(const int a_value, SimplePositionMapInt *a_map_ptr)
Set lifestage map.
Definition: Beetle_BaseClasses.h:334
Ladybird_Population_Manager::m_LadybirdProhibitedTovsForMovement
TTovList m_LadybirdProhibitedTovsForMovement
the types of vegetation that are prohibited for ladybirds
Definition: Ladybird_All.h:422
cfg_LadybirdOvipositionPeriodStart
static CfgInt cfg_LadybirdOvipositionPeriodStart("LADYBIRD_OVIPOSITIONPERIODSTART", CFG_CUSTOM, May)
Oviposition period start.
Ladybird_Adult::m_HibernationClumpSize
int m_HibernationClumpSize
Records the size of the hibernation clump.
Definition: Ladybird_All.h:288
Beetle_Population_Manager::m_AboveInflectionRates
vector< double > m_AboveInflectionRates
Day degree constant above inflection point for all non-adult stages.
Definition: Beetle_BaseClasses.h:1072
Ladybird_Base
Definition: Ladybird_All.h:86
probability_distribution
Definition: ALMaSS_Random.h:70
Ladybird_Adult::SetBackgroundMortTemp
static void SetBackgroundMortTemp(const vector< double > &a_vector)
Definition: Ladybird_All.h:313
fa_cu
Definition: Treatment.h:140
TTypesOfBeetleState
TTypesOfBeetleState
The enumeration lists all beetle behavioural states used by all the beetle species.
Definition: Beetle_BaseClasses.h:58
cfg_LadybirdAggregationEnd
static CfgInt cfg_LadybirdAggregationEnd("LADYBIRD_AGGREGATION_END", CFG_CUSTOM, 685)
Assumed daylength trigger for aggregation end. 685 = Berlin 20/10.
Ladybird_Larvae3::ReInit
void ReInit(int a_x, int a_y, Landscape *a_l_ptr, Ladybird_Population_Manager *a_lpm_ptr) override
ReInit for object pool.
Definition: Ladybird_All.cpp:446
cfg_LadybirdStartEggsNo
static CfgInt cfg_LadybirdStartEggsNo("LADYBIRS_START_EGGS_NOS", CFG_CUSTOM, 1042)
the number of eggs each one of the starting ladybirds has
autumn_roll
Definition: Treatment.h:38
Population_Manager::m_LifeStageOrderVec
vector< int > m_LifeStageOrderVec
The vector to store the life stage order for looping specie life stages.
Definition: PopulationManager.h:808
strigling_hill
Definition: Treatment.h:117
Beetle_Base::m_Lifestage
unsigned m_Lifestage
This is a useful parameter holding the beetle type (this includes larval stages)
Definition: Beetle_BaseClasses.h:166
heavy_cultivator_aggregate
Definition: Treatment.h:120
Ladybird_Larvae1::SetLadybirdLarvalPreyDevelParameters
static void SetLadybirdLarvalPreyDevelParameters(const vector< double > &a_array, int a_no_stages)
Set the larval per instar development factor, a function of aphid abundance.
Definition: Ladybird_All.cpp:338
Ladybird_Population_Manager::AddCannibalismDeath
void AddCannibalismDeath(int a_ob_type, int a_x, int a_y)
The method to add one death to t he given life stage at the given location because of cannibalism.
Definition: Ladybird_All.h:476
Landscape::SupplyTempHour
double SupplyTempHour(int hour)
Returns the temperature in a given hour (0 to 23)
Definition: Landscape.h:2103
Struct_Beetle::m_y
int m_y
Definition: Beetle_BaseClasses.h:128
g_generator
std::mt19937 g_generator
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
Ladybird_Larvae4::ReInit
void ReInit(int a_x, int a_y, Landscape *a_l_ptr, Ladybird_Population_Manager *a_lpm_ptr) override
ReInit for object pool.
Definition: Ladybird_All.cpp:465
cfg_LadybirdParasitoidMortalityChanceMin
static CfgFloat cfg_LadybirdParasitoidMortalityChanceMin("LADYBIRD_PARASITOIDMORTALITYCHANCEMIN", CFG_CUSTOM, 0.05)
Minimim probability of parasitoid death for ladybirds in the spring.
hay_turning
Definition: Treatment.h:100
Ladybird_Adult::SetOvipositionPeriod
static void SetOvipositionPeriod(const bool a_cond)
Definition: Ladybird_All.h:309
Ladybird_Base::SetEatenToday
virtual void SetEatenToday(int a)
set the value of the counter of eaten aphids
Definition: Ladybird_All.h:105
last_treatment
Definition: Treatment.h:150
straw_removal
Definition: Treatment.h:124
Ladybird_Larvae4::Ladybird_Larvae4
Ladybird_Larvae4(int a_x, int a_y, Landscape *a_l_ptr, Ladybird_Population_Manager *a_lpm_ptr)
constructor for Larvae3
Definition: Ladybird_All.cpp:455
Ladybird_Adult::m_EmergenceDay
int m_EmergenceDay
The day of the year when this particular individual emerged, to be used to track minimum delay time b...
Definition: Ladybird_All.h:272
fa_n
Definition: Treatment.h:139
Ladybird_Adult::SetHibernationClumpeSizeDist
static void SetHibernationClumpeSizeDist(const vector< double > &a_dist)
Definition: Ladybird_All.h:311
Beetle_Larvae::TempRelatedMortality
double TempRelatedMortality() const
Determine larval temperature related mortality.
Definition: Beetle_BaseClasses.h:666
shredding
Definition: Treatment.h:126
LadybirdToleTovs::LadybirdProhibitedTovsForMovementLarva
LadybirdTovParams LadybirdProhibitedTovsForMovementLarva
Definition: Ladybird_toletov.h:53
pheromone
Definition: Treatment.h:149
LadybirdToleTovs::LadybirdAggregationToles
LadybirdToleParams LadybirdAggregationToles
Definition: Ladybird_toletov.h:106
fp_n
Definition: Treatment.h:132
manual_weeding
Definition: Treatment.h:148
fa_npk
Definition: Treatment.h:67
Population_Manager_Base::m_TheLandscape
Landscape * m_TheLandscape
holds an internal pointer to the landscape
Definition: PopulationManager.h:624
Ladybird_Adult::getEggCounter
int getEggCounter()
returns thetotal egg counter (how many eggs left to lay)
Definition: Ladybird_All.h:379
Ladybird_Population_Manager::Ladybird_Population_Manager
Ladybird_Population_Manager(Landscape *a_l_ptr, int a_numberLifeStages)
Constructor for population manager class.
Definition: Ladybird_All.cpp:838
lobs_Larva3
Definition: Ladybird_All.h:68
winter_plough
Definition: Treatment.h:42
cfg_MaxShortRangeAttempts
static CfgInt cfg_MaxShortRangeAttempts("LADYBIRD_SHORTMOVESALLOWED", CFG_CUSTOM, 4)
For each short-range move, the number of squares assessed at this location for aphids before admittin...
g_landscape_ptr
Landscape * g_landscape_ptr
Definition: Landscape.cpp:352
fp_calcium
Definition: Treatment.h:65
Aphid_Population_Manager
The class to handle all Aphid population related matters in the whole landscape.
Definition: Aphid_Population_Manager.h:98
Ladybird_Larvae4
Class for beetle larval stage 3, most functionality is in Beetle_Larvae.
Definition: Ladybird_All.h:240
spring_harrow
Definition: Treatment.h:45
Ladybird_Adult::SetShortRangeDistToday
static void SetShortRangeDistToday(const int a_value)
Definition: Ladybird_All.h:314
cut_to_silage
Definition: Treatment.h:98
Ladybird_Adult::m_ShortRangeDistToday
static int m_ShortRangeDistToday
Max distance moved in short range movements today (set by populaton manager each day)
Definition: Ladybird_All.h:296
Ladybird_Adult::decEggCounter
void decEggCounter(int num)
decrements the total to-lay counter by value
Definition: Ladybird_All.h:377
cfg_LadybirdMortalityScaler
CfgFloat cfg_LadybirdMortalityScaler("LADYBIRD_ADULTMORTALTISCALER", CFG_CUSTOM, 0.01)
Scaler for mortaltity of adults with temperature.
Ladybird_Population_Manager::LadybirdLongRangeToles
TToleList LadybirdLongRangeToles
the types of landscape that are targets of long range movement
Definition: Ladybird_All.h:434
Ladybird_Larvae3::Ladybird_Larvae3
Ladybird_Larvae3(int a_x, int a_y, Landscape *a_l_ptr, Ladybird_Population_Manager *a_lpm_ptr)
constructor for Larvae3
Definition: Ladybird_All.cpp:436
CannibalisationEvent
Definition: Ladybird_All.h:76
Population_Manager::m_AOR_Probe
AOR_Probe * m_AOR_Probe
A pointer to the AOR probe.
Definition: PopulationManager.h:875
Ladybird_Adult
Definition: Ladybird_All.h:268
cfg_LadybirdAphidPreySpecies
CfgInt cfg_LadybirdAphidPreySpecies("LADYBIRD_APHIDPREYSPECIES", CFG_CUSTOM, 2)
The number of aphid species in the simulation.
cfg_LadybirdStagesNutritionalValue
static CfgArray_Int cfg_LadybirdStagesNutritionalValue("LADYBIRD_STAGES_NUTRIONAL_VALUE", CFG_CUSTOM, 7, vector< int >{1, 10, 30, 80, 120, 140, 160 })
The nutritional value in aphids of ladybird lifestages when cannibalised.
Ladybird_Population_Manager::GetLadybirdLarvaCanMove
bool GetLadybirdLarvaCanMove() const
Gets the larval movement flag for today.
Definition: Ladybird_All.h:455
TTypesOfLandscapeElement
TTypesOfLandscapeElement
Values that represent the types of landscape polygon that are represented in ALMaSS.
Definition: LandscapeFarmingEnums.h:57
cfg_LadybirdEggTemperatureMortality
static CfgArray_Double cfg_LadybirdEggTemperatureMortality("LADYBIRD_EGG_TEMPERATURE_MORTALTIY", CFG_CUSTOM, 10, vector< double >{ 0.3723, 0.222525, 0.1136, 0.045525, 0.0183, 0.031925, 0.0864, 0.181725, 0.3179, 0.494925 })
The temperature related mortality of Ladybird eggs.
Landscape
The landscape class containing all environmental and topographical data.
Definition: Landscape.h:142
Ladybird_Population_Manager::LadybirdLongRangeTovs
TTovList LadybirdLongRangeTovs
the types of vegetation that are targets of long range movement
Definition: Ladybird_All.h:432
cfg_LadybirdAphidPreyIndex
CfgInt cfg_LadybirdAphidPreyIndex("LADY_BIRD_APHID_PREY_INDEX", CFG_CUSTOM, 0)
The aphid species name.
TToleList
std::unordered_set< TTypesOfLandscapeElement > TToleList
Definition: Beetle_toletov.h:11
Ladybird_Adult::TryToReproduce
void TryToReproduce() override
Does reproduction if possible.
Definition: Ladybird_All.cpp:802
Beetle_Adult::SetAdultMaxMoveDist
static void SetAdultMaxMoveDist(const int a_value)
Set the max move distance for dispersal.
Definition: Beetle_BaseClasses.h:828
cfg_LadybirdHibernationChance
static CfgFloat cfg_LadybirdHibernationChance("LADYBIRD_HIBERNATIONCHANCE", CFG_CUSTOM, 0.1)
The daily chance to hibernate if aphids are not abundant between the aggregation start and end dates.
fa_sludge
Definition: Treatment.h:77
pigs_out
Definition: Treatment.h:96
Beetle_Larvae::ReInit
void ReInit(int a_x, int a_y, Landscape *a_l_ptr, Beetle_Population_Manager *a_bpm_ptr) override
ReInit for object pool.
Definition: Beetle_BaseClasses.cpp:655
cfg_LadybirdExtremeTempMortChance
static CfgFloat cfg_LadybirdExtremeTempMortChance("LADYBIRD_EXTREME_TEMP_MORT_CHANCE", CFG_CUSTOM, 0.25)
Ladybird_Pupae::BeginStep
void BeginStep() override
The standard method that is run before the Step() method.
Definition: Ladybird_All.cpp:505
fp_p
Definition: Treatment.h:54
Ladybird_Adult::SetIsHibernating
void SetIsHibernating(const bool a_val)
sets the value of the state variable that flags whether the beetle is currently hibernating
Definition: Ladybird_All.h:308
Ladybird_Population_Manager::GetAphidPopulationManagerSize
int GetAphidPopulationManagerSize() const
The function to get a aphid population manager number.
Definition: Ladybird_All.h:461
AOR_Probe::DoProbe
virtual void DoProbe(int a_lifestage)
Definition: AOR_Probe.cpp:104
cfg_LadybirdBackgroundMortalityAfterHibernation
static CfgFloat cfg_LadybirdBackgroundMortalityAfterHibernation("LADYBIRD_BACKGROUND_MORTALITY_AFTER_HIBERNATION", CFG_CUSTOM, 0.05)
The background mortality that a female has after hibernation.
tobs_NextStage
Definition: Beetle_BaseClasses.h:64
suckering
Definition: Treatment.h:130
Beetle_Base::m_OurPopulation
Beetle_Population_Manager * m_OurPopulation
Pointer to the population manager.
Definition: Beetle_BaseClasses.h:160
cut_to_hay
Definition: Treatment.h:97
fa_boron
Definition: Treatment.h:141
cfg_LadybirdMaximumFlightLength
static CfgInt cfg_LadybirdMaximumFlightLength("LADYBIRD_MAXIMUMFLIGHTLENGTH", CFG_CUSTOM, 500)
Minimum distance for long-range flight in m.
Beetle_Larvae::SetLarvalDailyMort
static void SetLarvalDailyMort(const vector< double > &a_value, const int a_numLarvalStages, const int a_catagories)
Set the daily fixed mortality probability based on the larval stages and temperature.
Definition: Beetle_BaseClasses.h:582
Ladybird_Adult::m_OvipositionRateTemp
static vector< double > m_OvipositionRateTemp
Oviposition rate per day under perfect food with temps 0-50 degrees.
Definition: Ladybird_All.h:292
Beetle_Egg_List
The class describing the beetle Egg_List objects.
Definition: Beetle_BaseClasses.h:382
Landscape::SupplySimAreaHeight
int SupplySimAreaHeight(void)
Gets the simulation landscape height.
Definition: Landscape.h:2302
Beetle_Base::KillOneInMap
void KillOneInMap(int a_x, int a_y, int a_lifestage)
The method decreases the number of beetles in this specific location by one.
Definition: Beetle_BaseClasses.h:271
Beetle_Larvae::m_LarvalStage
int m_LarvalStage
Current larval growth stage (1-3), used as a small speed hack.
Definition: Beetle_BaseClasses.h:619
Ladybird_Population_Manager
Definition: Ladybird_All.h:386
Ladybird_toletov.h
Ladybird_Larvae1::m_LadybirdLarvalPreyDevelScalers
static vector< double > m_LadybirdLarvalPreyDevelScalers[4]
The prey indexed scaler on development, 0-120 per larval stage.
Definition: Ladybird_All.h:175
Landscape::SupplySimAreaWidth
int SupplySimAreaWidth(void)
Gets the simulation landscape width.
Definition: Landscape.h:2297
TAnimal::m_Location_y
int m_Location_y
The objects ALMaSS y coordinate.
Definition: PopulationManager.h:366
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
Ladybird_Base::GetAphidsAppetite
virtual int GetAphidsAppetite()
The function returns the aphids appetite (virtual function stub: to be overridden)
Definition: Ladybird_All.h:109
Beetle_Population_Manager
The population manager class for beetles.
Definition: Beetle_BaseClasses.h:1006
Beetle_Pupae::CalcLengthOfStageAtTemp
int CalcLengthOfStageAtTemp(int a_temp2) const
calculates the length of the pupal stage depending on the temperature
Definition: Beetle_BaseClasses.cpp:790
Ladybird_Adult::BeginStep
void BeginStep() override
the standard begin step function as overridden by the ladybird adult
Definition: Ladybird_All.cpp:565
TAnimal::m_OurLandscape
static Landscape * m_OurLandscape
A pointer to the landscape object shared with all TAnimal objects.
Definition: PopulationManager.h:342
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
Ladybird_Base::m_AphidsAppetite
int m_AphidsAppetite
the today's appetite
Definition: Ladybird_All.h:93
lobs_Larva4
Definition: Ladybird_All.h:69
Beetle_Population_Manager::m_TemperatureCategory
int m_TemperatureCategory
Storage for the temperature category today.
Definition: Beetle_BaseClasses.h:1048
Beetle_Population_Manager::m_MortalityTempMin
double m_MortalityTempMin
hreshold temperatures for mortalities: Min
Definition: Beetle_BaseClasses.h:1044
TAnimal::Supply_m_Location_y
int Supply_m_Location_y() const
Returns the ALMaSS y-coordinate.
Definition: PopulationManager.h:243
TAnimal
The base class for all ALMaSS animal classes. Includes all the functionality required to be handled b...
Definition: PopulationManager.h:200
syninsecticide_treat
Definition: Treatment.h:111
TAnimal::m_SimulationWidth
static int m_SimulationWidth
A static member for the simulation width because it is often used by descendent classes.
Definition: PopulationManager.h:346
lobs_Egg
Definition: Ladybird_All.h:65
Ladybird_Adult::St_Hibernate
TTypesOfBeetleState St_Hibernate() override
Hibernate function for the Adult.
Definition: Ladybird_All.cpp:592
fp_nc
Definition: Treatment.h:135
LadybirdToleParams::getList
TToleList getList()
Definition: Ladybird_toletov.cpp:15
fungicide_treat
Definition: Treatment.h:82
cfg_LadybirdLarvaeMoveStep
static CfgInt cfg_LadybirdLarvaeMoveStep("LADYBIRD_LARVAE_MOVE_MAX", CFG_CUSTOM, 4)
the number meters possible to move each day for larvae
cfg_LadybirdMovementProportion
static CfgFloat cfg_LadybirdMovementProportion("LADYBIRD_MOVEMENTPROPORTION", CFG_CUSTOM, 0.71)
Proportion of time spend moving.
fp_sludge
Definition: Treatment.h:63
MovementMap
Movement maps are used for rapid computing of animal movement. This version uses values of 0-3 only.
Definition: MovementMap.h:88
Beetle_Adult::m_AdultMaxMoveDist
static int m_AdultMaxMoveDist
holds the max move distance for dispersal
Definition: Beetle_BaseClasses.h:881
fp_greenmanure
Definition: Treatment.h:62
shallow_harrow
Definition: Treatment.h:119
Ladybird_Base::Cannibalise
int Cannibalise(int a_appetite)
Perform the cannibalisation behaviour from the perspective of a cannibal : receives the appetite to f...
Definition: Ladybird_All.cpp:269
fa_slurry
Definition: Treatment.h:72
Ladybird_Adult::m_DailyEggs
int m_DailyEggs
The variables holding the amount of eggs to be laid today.
Definition: Ladybird_All.h:278
cfg_LadybirdStdDaysAfterHibernation
static CfgFloat cfg_LadybirdStdDaysAfterHibernation("LADYBIRD_STD_DAYS_AFTER_HIBERNATION", CFG_CUSTOM, 10.77)
The std number of days that a female can have after hibernation.
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
Ladybird_Population_Manager::DoFirst
void DoFirst() override
Does day degree development calculations here.
Definition: Ladybird_All.cpp:1345
Ladybird_Larvae1::Ladybird_Larvae1
Ladybird_Larvae1(int a_x, int a_y, Landscape *a_l_ptr, Ladybird_Population_Manager *a_bpm_ptr)
Constructor of larva object.
Definition: Ladybird_All.cpp:314
g_simulationName
const char * g_simulationName
Beetle_Base::GetHarvestMortality
virtual double GetHarvestMortality() const
the method overrides the method that returns the mortality due to harvest
Definition: Beetle_BaseClasses.h:369
Ladybird_Adult::St_Dispersal
TTypesOfBeetleState St_Dispersal() override
the ladybird adult's override of a dispersal beahviour
Definition: Ladybird_All.cpp:623
Ladybird_Base::CanMove
bool CanMove()
returns true if the beetle can still move today
Definition: Ladybird_All.h:121
fa_pks
Definition: Treatment.h:145
cfg_Ladybird_Emergence_Chance
static CfgFloat cfg_Ladybird_Emergence_Chance("LADYBIRD_EMERGANCE_CHANCE", CFG_CUSTOM, 0.1)
cfg_LadybirdMortalityTempMax
static CfgFloat cfg_LadybirdMortalityTempMax("LADYBIRD_MORTALITY_TEMP_MAX", CFG_CUSTOM, 35.0)
cfg_LadybirdExtremeTempMax
static CfgFloat cfg_LadybirdExtremeTempMax("LADYBIRD_EXTREME_TEMP_MAX", CFG_CUSTOM, 40.0)
CfgArray_Double
Definition: Configurator.h:208
org_fungicide
Definition: Treatment.h:86
Beetle_Population_Manager::m_BeetleLarvalStagesNum
int m_BeetleLarvalStagesNum
Definition: Beetle_BaseClasses.h:1058
summer_harrow
Definition: Treatment.h:49
cfg_LadybirdLarvalMortCategories
static CfgInt cfg_LadybirdLarvalMortCategories("LADYBIRD_LARVALMORTCATEGORIES", CFG_CUSTOM, 10)
The number of temperature categoris to consider for larval mortality with temperature.
Landscape::SupplyDayInYear
int SupplyDayInYear(void)
Passes a request on to the associated Calendar class function, the day in the year.
Definition: Landscape.h:2267
Beetle_Adult::m_CanReproduce_bool
bool m_CanReproduce_bool
Signal reproductive readiness.
Definition: Beetle_BaseClasses.h:969
cattle_out
Definition: Treatment.h:95
harvestshoots
Definition: Treatment.h:147
TAnimal::m_AgeDays
int m_AgeDays
To hold the age in days.
Definition: PopulationManager.h:378
Ladybird_Population_Manager::DecAphids
void DecAphids(int a_x, int a_y, int a_num)
the method decreases the number of aphids by "num" in the given location in all the underlying aphid ...
Definition: Ladybird_All.cpp:1331
Beetle_Base::Beetle_1M_Move
void Beetle_1M_Move(int a_dist)
The function that calculates the cumulative probability for the movement direction....
Definition: Beetle_BaseClasses.cpp:326
stubble_cultivator_heavy
Definition: Treatment.h:36
Beetle_BaseClasses.h
Beetle_Population_Manager::DoFirst
void DoFirst() override
Does day degree development calculations here.
Definition: Beetle_BaseClasses.cpp:1563
Beetle_Egg_List::SetDailyEggMort
static void SetDailyEggMort(const double a_value)
Set the daily fixed mortality probability.
Definition: Beetle_BaseClasses.h:446
Ladybird_Adult::St_Forage
TTypesOfBeetleState St_Forage() override
method that implements the foraging behaviour for adult beetles
Definition: Ladybird_All.cpp:751
Beetle_Larvae::m_DayMade
int m_DayMade
Definition: Beetle_BaseClasses.h:617
Beetle_Base::SetTodaysTempCategory
static void SetTodaysTempCategory(int a_category)
Set the soil temperature category used for calculatiung mortality steps.
Definition: Beetle_BaseClasses.h:312
Population_Manager::m_is_paralleled
bool m_is_paralleled
This is used to indicate whether the species is paralleled.
Definition: PopulationManager.h:796
APoint::m_x
int m_x
Definition: ALMaSS_Setup.h:55
Ladybird_Larvae1
Definition: Ladybird_All.h:164
biocide
Definition: Treatment.h:116
Ladybird_Larvae2::Ladybird_Larvae2
Ladybird_Larvae2(int a_x, int a_y, Landscape *a_l_ptr, Ladybird_Population_Manager *a_bpm_ptr)
constructor for Larvae2
Definition: Ladybird_All.cpp:417
swathing
Definition: Treatment.h:93
Ladybird_Population_Manager::~Ladybird_Population_Manager
~Ladybird_Population_Manager() override
Destructor: the same as in base class but needs to remove a different number of postion maps.
glyphosate
Definition: Treatment.h:114
Ladybird_Population_Manager::m_LadybirdAggregationToles
TToleList m_LadybirdAggregationToles
the types of landscape that are aggregation targets
Definition: Ladybird_All.h:426
Ladybird_Population_Manager::m_LadybirdProhibitedTovsForMovementLarva
TTovList m_LadybirdProhibitedTovsForMovementLarva
Uses the open cannibalisations events list to remove beetles.
Definition: Ladybird_All.h:413
Ladybird_Larvae1::m_LadybirdLarvaeNoMoves
static int m_LadybirdLarvaeNoMoves
The number of moves (1m) possible per day.
Definition: Ladybird_All.h:169
cfg_LadybirdMovementRatePerT
static CfgFloat cfg_LadybirdMovementRatePerT("LADYBIRD_MOVEMENTRATEPERT", CFG_CUSTOM, 0.0325)
rate of movement in m/min/T
CfgInt::value
int value() const
Definition: Configurator.h:116
Ladybird_Base::GetMaxDailyDistance
int GetMaxDailyDistance()
Definition: Ladybird_All.h:125
Ladybird_Population_Manager::m_LadybirdLarvaCanMove_bool
bool m_LadybirdLarvaCanMove_bool
minimum temperature that larva can move at
Definition: Ladybird_All.h:488
Ladybird_Larvae1::SetLadybirdLarvaeMoveStep
static void SetLadybirdLarvaeMoveStep(const int a_value)
Definition: Ladybird_All.h:194
fa_manure
Definition: Treatment.h:75
CfgArray_Double::value
std::vector< double > value() const
Definition: Configurator.h:219
spring_sow
Definition: Treatment.h:47
Beetle_Population_Manager::m_MortalityTempStep
double m_MortalityTempStep
Threshold temperatures for mortalities: Step size.
Definition: Beetle_BaseClasses.h:1042
cut_weeds
Definition: Treatment.h:106
trial_toxiccontrol
Definition: Treatment.h:109
Beetle_Base::m_DevelopmentConstants
static vector< double > m_DevelopmentConstants
Day degree constant, the target to reach before next stage.
Definition: Beetle_BaseClasses.h:168
cfg_pm_EventSize
CfgInt cfg_pm_EventSize
Beetle_Base::m_CurrentBState
TTypesOfBeetleState m_CurrentBState
Current behavioural state.
Definition: Beetle_BaseClasses.h:158
summer_plough
Definition: Treatment.h:48
Beetle_Population_Manager::m_MortalityTempMax
double m_MortalityTempMax
Threshold temperatures for mortalities: Max.
Definition: Beetle_BaseClasses.h:1046
tobs_Developing
Definition: Beetle_BaseClasses.h:61
tobs_Destroy
Definition: Beetle_BaseClasses.h:74
cfg_LadybirdMinimumFlightLength
static CfgInt cfg_LadybirdMinimumFlightLength("LADYBIRD_MINIMUMFLIGHTLENGTH", CFG_CUSTOM, 10)
Minimum distance for long-range flight in m.
Ladybird_Adult::SetAphidsPerPreyLevel
static void SetAphidsPerPreyLevel(const int a_value)
Definition: Ladybird_All.h:310
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
Beetle_Larvae
The class describing the beetle larvae objects.
Definition: Beetle_BaseClasses.h:535
Beetle_Population_Manager::PestMortLocOutputOpen
static void PestMortLocOutputOpen()
Annual pesticide mortality output file open.
Ladybird_Adult::m_BackgroundMortTemp
static vector< double > m_BackgroundMortTemp
Oviposition rate per day under perfect food with temps 0-50 degrees.
Definition: Ladybird_All.h:294
Struct_Beetle
A data class for Beetle data.
Definition: Beetle_BaseClasses.h:125
Beetle_Adult
The class describing the adult (female) beetle objects.
Definition: Beetle_BaseClasses.h:793
fp_pks
Definition: Treatment.h:146
cfg_Ladybird_DevelopmentInflectionPoints
static CfgArray_Double cfg_Ladybird_DevelopmentInflectionPoints("LADYBIRD_DEVELOPMENTINFLECTIONPOINTS", CFG_CUSTOM, 7, vector< double >{ 9999.0, 9999.0, 9999.0, 9999.0, 9999.0, 9999.0, 9999.0 })
fp_ns
Definition: Treatment.h:134
Ladybird_Population_Manager::GetFlyingWeather
bool GetFlyingWeather() const
the function returns true if the weather is suitable for flying
Definition: Ladybird_All.cpp:1317
Ladybird_Larvae1::m_StarvationCount
int m_StarvationCount
The max number of aphids possible to eat/day per larval stage.
Definition: Ladybird_All.h:179
TOP_Ladybird
Definition: PopulationManager.h:76
Ladybird_Larvae1::GetAphidsAppetite
int GetAphidsAppetite() override
The function returns the aphids appetite (virtual function stub: to be overridden)
Definition: Ladybird_All.h:204
bed_forming
Definition: Treatment.h:118
May
const int May
Julian start dates of the month of May.
Definition: Landscape.h:46
Ladybird_Adult::m_HasOverwintered
bool m_HasOverwintered
State variable: true if overwintered.
Definition: Ladybird_All.h:276
product_treat
Definition: Treatment.h:113
Ladybird_Population_Manager::m_LadybirdToleTovs
LadybirdToleTovs m_LadybirdToleTovs
Class holding all the tole tov related information - for tidyness.
Definition: Ladybird_All.h:397
Ladybird_Population_Manager::GetTempMortRange
int GetTempMortRange(double a_temp) const
Gets the temperature category for mortality calculations.
Definition: Ladybird_All.cpp:1113
Ladybird_Adult::Ladybird_Adult
Ladybird_Adult(int a_x, int a_y, Landscape *a_l_ptr, Ladybird_Population_Manager *a_lpm_ptr)
Ladybird adult constructor.
Definition: Ladybird_All.cpp:530
lobs_Larva2
Definition: Ladybird_All.h:67
Ladybird_Adult::St_Aggregate
TTypesOfBeetleState St_Aggregate() override
Aggreagte function for the adult ladybird - moves them to hibernaculae.
Definition: Ladybird_All.cpp:585
Ladybird_Pupae::Ladybird_Pupae
Ladybird_Pupae(int a_x, int a_y, Landscape *a_l_ptr, Ladybird_Population_Manager *a_bpm_ptr)
Constructor method.
Definition: Ladybird_All.cpp:474
Ladybird_Population_Manager::getLongRangeDuration
static double getLongRangeDuration()
long flight duration: used in distance calculation
Definition: Ladybird_All.h:457
Ladybird_Larvae1::SetLadybirdLarvaeMoveMax
static void SetLadybirdLarvaeMoveMax(const int a_value)
Definition: Ladybird_All.h:192
TAnimal::m_SimulationHeight
static int m_SimulationHeight
A static member for the simulation height because it is often used by descendent classes.
Definition: PopulationManager.h:350
Ladybird_All.h
cfg_LadybirdMeanDaysAfterHibernation
static CfgFloat cfg_LadybirdMeanDaysAfterHibernation("LADYBIRD_MEAN_DAYS_AFTER_HIBERNATION", CFG_CUSTOM, 147.75)
The mean number of days that a female can have after hibernation.
cfg_LadybirdAdultTemperatureMortalityParams
static CfgArray_Double cfg_LadybirdAdultTemperatureMortalityParams("LADYBIRD_ADULT_TEMPERATURE_MORTALTIY", CFG_CUSTOM, 36, vector< double >{0.034, -0.0028, 0.00007, 0.116, -0.0091, 0.0002, 0.094, -0.007, 0.00019, 0.68, -0.0553, 0.00118, 0.67, -0.0533, 0.00118, 1.468, -0.1172, 0.00249, 1.504, -0.1213, 0.00268, 1.807, -0.075, 0.00132, 2.256, -0.1791, 0.00392, 2.788, -0.2217, 0.00484, 3.836, -0.3095, 0.00672, 5.358, -0.4202, 0.00887 })
Parameters for each age class of adult, 3 params x 12 age classes, used to calculate temperature rela...
autumn_sow
Definition: Treatment.h:41
Beetle_Population_Manager::m_InCropNo
int m_InCropNo
In-crop counter.
Definition: Beetle_BaseClasses.h:1119
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
TAnimal::m_TemperatureToday
static double m_TemperatureToday
A holder for the temperature today shared with all TAnimal objects.
Definition: PopulationManager.h:354
autumn_harrow
Definition: Treatment.h:37
Ladybird_Base::EatToday
void EatToday(const int a_add)
Adds to the counter of eaten aphids.
Definition: Ladybird_All.h:101
Ladybird_Adult::FindTarget
bool FindTarget(int a_distance, int a_minimumflightlength, int a_target)
The function to determine a landing location for long range movement for foraging or aggregating.
Definition: Ladybird_All.cpp:701
tobs_Emerging
Definition: Beetle_BaseClasses.h:66
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
Ladybird_Population_Manager::m_LadybirdProhibitedTolesForMovement
TToleList m_LadybirdProhibitedTolesForMovement
the types of landscape that are prohibited for ladybirds
Definition: Ladybird_All.h:424
LadybirdToleTovs::LadybirdProhibitedToles
LadybirdToleParams LadybirdProhibitedToles
Definition: Ladybird_toletov.h:39
Beetle_Pupae
The class describing the beetle pupae objects.
Definition: Beetle_BaseClasses.h:688
September
const int September
Julian start dates of the month of September.
Definition: Landscape.h:54
Ladybird_Base::Ladybird_Base
Ladybird_Base(Ladybird_Population_Manager *a_lpm_ptr)
Class constructor.
Definition: Ladybird_All.cpp:236
CannibalisationEvent::m_No
int m_No
Definition: Ladybird_All.h:80
Ladybird_Base::ResetAphidsAppetite
virtual void ResetAphidsAppetite()
reset the appetite to zero
Definition: Ladybird_All.h:111
Beetle_Population_Manager::m_DevelopmentInflectionPoints
vector< double > m_DevelopmentInflectionPoints
Inflection point in day degree calculations for non-adult stages.
Definition: Beetle_BaseClasses.h:1070
cfg_LadybirdPupaTMortality
static CfgArray_Double cfg_LadybirdPupaTMortality("LADYBIRD_PUPAL_TMORTALITY", CFG_CUSTOM, 10, vector< double >{ 0.0959, 0.0569, 0.0313, 0.0191, 0.0203, 0.0349, 0.0629, 0.1043, 0.1591, 0.2273})
The temperature related mortality of Ladybird pupae.
fa_ammoniumsulphate
Definition: Treatment.h:74
Beetle_Pupae::m_DailyPupaeMort
static double m_DailyPupaeMort
Daily fixed mortality probability.
Definition: Beetle_BaseClasses.h:750
CfgFloat
Double configurator entry class.
Definition: Configurator.h:126
cfg_LadybirdEmergenceMortalityClump
static CfgFloat cfg_LadybirdEmergenceMortalityClump("LADYBIRD_EMERGENCEMORALTIYCLUMP", CFG_CUSTOM, 0.09)
Probability of death on emergence from hibernation if in a clump.
Population_Manager::PartitionLiveDead
virtual unsigned PartitionLiveDead(unsigned Type)
Definition: PopulationManager.cpp:1181
Population_Manager_Base::m_SimulationName
string m_SimulationName
stores the simulation name
Definition: PopulationManager.h:622
tole_Field
Definition: LandscapeFarmingEnums.h:65
Beetle_Base::SetMaxShortRangeAttempts
static void SetMaxShortRangeAttempts(const int a_value)
Definition: Beetle_BaseClasses.h:326
Ladybird_Adult::LongRangeFind
bool LongRangeFind(int a_distance, int a_minimumflightlength, int a_target, bool(Ladybird_Adult::*a_func)(int, int, int))
The function to determine a landing location for long range movement for foraging or aggregating.
Definition: Ladybird_All.cpp:672
Ladybird_Adult::IsForageSite
bool IsForageSite(const int a_x, const int a_y, const int a_target)
Tests for aphid densities at x,y.
Definition: Ladybird_All.cpp:667
tobs_Dispersing
Definition: Beetle_BaseClasses.h:71
cfg_LadybirdAphidsToLay
static CfgInt cfg_LadybirdAphidsToLay("LADYBIRD_APHIDSTOLAY", CFG_CUSTOM, 100)
The density of aphids per m2 threshold for egg laying.
autumn_sow_with_ferti
Definition: Treatment.h:136
cfg_LadybirdAdultAphidPreyDensityOK
static CfgInt cfg_LadybirdAdultAphidPreyDensityOK("LADYBIRD_ADULT_APHID_PREY_DENSITY_OK", CFG_CUSTOM, 10)
The minumum number of aphids per m2 to settle.
trial_insecticidetreat
Definition: Treatment.h:108
cfg_LadybirdEmergenceMortalityAlone
static CfgFloat cfg_LadybirdEmergenceMortalityAlone("LADYBIRD_EMERGENCEMORALTIYALONE", CFG_CUSTOM, 0.14)
Probability of on emergence from hibernation if alone.
fa_p
Definition: Treatment.h:69
mow
Definition: Treatment.h:105
Ladybird_Larvae2
Class for beetle larval stage 2, most functionality is in Beetle_Larvae.
Definition: Ladybird_All.h:214
CfgArray_Int::value
std::vector< int > value() const
Definition: Configurator.h:201
cfg_LadybirdDailyOvipostionRateTemp
static CfgArray_Double cfg_LadybirdDailyOvipostionRateTemp("LADYBIRD_DAILYOVIPOSTIONRATETEMP", CFG_CUSTOM, 51, vector< double > {0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0.25257852, 1.089359927, 2.556140369, 4.665581149, 7.404402116, 10.73055526, 14.56924629, 18.80995871, 23.30578578, 27.87607539, 32.31308909, 36.39294043, 39.89049046, 42.59718429, 44.34011106, 45, 44.52558091, 42.94187052, 40.35056184, 36.92175576, 32.87762782, 28.47001231, 23.95500656, 19.56827291, 15.50458074, 11.90429029, 8.84812057, 6.359987945, 4.416318306, 2.959328634, 1.911502299, 1.188820974, 0.711084746, 0.408588017, 0.22526765, 0.119026759, 0.060200647, 0.029109965, 0.013441098 })
Oviposition rate per day under perfect food with temps 0-50 degrees.
Beetle_Population_Manager::m_StageProductionProduction
vector< int > m_StageProductionProduction
Testing/Output attribute holding the number of larvae produced today.
Definition: Beetle_BaseClasses.h:1060
Ladybird_Population_Manager::LadybirdProhibitedTolesForMovementLarva
TToleList LadybirdProhibitedTolesForMovementLarva
the types of vegetation that are prohibited for ladybirds larva
Definition: Ladybird_All.h:430
cfg_LadybirdAphidsToLay_OffCropFactor
static CfgInt cfg_LadybirdAphidsToLay_OffCropFactor("LADYBIRD_APHIDSTOLAY_OFFCROP_FACTOR", CFG_CUSTOM, 0.25)
Offcrop LADYBIRD_APHIDSTOLAY reduction factor.
cfg_LadybirdExtremeTempMinHibernatingFactor
static CfgFloat cfg_LadybirdExtremeTempMinHibernatingFactor("LADYBIRD_EXTREME_TEMP_MIN_HIB_FACTOR", CFG_CUSTOM, 0.2)
Ladybird_Adult::WinterMort
bool WinterMort() const override
The method for calculating overwintering mortality.
Definition: Ladybird_All.h:320
Population_Manager::m_guard_cell_size
int m_guard_cell_size
Definition: PopulationManager.h:793
fa_rsm
Definition: Treatment.h:78
cfg_LadybirdMaxLarvaStageLength
static CfgInt cfg_LadybirdMaxLarvaStageLength("LADYBIRD_MAX_PUPA_STAGE_LENGTH", CFG_CUSTOM, 30)
CFG_CUSTOM
Definition: Configurator.h:70
g_random_fnc
int g_random_fnc(const int a_range)
Definition: ALMaSS_Random.cpp:74
cfg_LadybirdLarvalTemperatureMortality
static CfgArray_Double cfg_LadybirdLarvalTemperatureMortality("LADYBIRD_LARVAL_TEMPERATURE_MORTALTIY", CFG_CUSTOM, 40, vector< double >{ 0.3393, 0.215525, 0.1277, 0.075825, 0.0599, 0.079925, 0.1359, 0.227825, 0.3557, 0.519525, 0.097, 0.063225, 0.0411, 0.030625, 0.0318, 0.044625, 0.0691, 0.105225, 0.153, 0.212425, 0.0393, 0.020475, 0.0113, 0.011775, 0.0219, 0.041675, 0.0711, 0.110175, 0.1589, 0.217275, 0.0107, 0.00675, 0.0069, 0.01115, 0.0195, 0.03195, 0.0485, 0.06915, 0.0939, 0.12275 })
Beetle_Base::DecDensity
void DecDensity(int a_x, int a_y)
The method decreases the number of beetles in this specific location by one.
Definition: Beetle_BaseClasses.h:263
cfg_AphidsToStayAwake
static CfgInt cfg_AphidsToStayAwake("LADYBIRD_APHIDS_TO_STAY_AWAKE", CFG_CUSTOM, 1000)
Num of aphids needed to stay awake.
fa_npks
Definition: Treatment.h:66
Ladybird_Population_Manager::TodaysEggProductionTempFactor
double TodaysEggProductionTempFactor
the dependence between temperature and the clutch size: updated daily
Definition: Ladybird_All.h:484
water
Definition: Treatment.h:92
cfg_ReallyBigOutput_used
CfgBool cfg_ReallyBigOutput_used
stubble_harrowing
Definition: Treatment.h:102
Ladybird_Population_Manager::m_AphidPopulationManagerPtrList
std::vector< Aphid_Population_Manager * > m_AphidPopulationManagerPtrList
The pointer to aphid population manager.
Definition: Ladybird_All.h:390
cfg_BeetleLarvalStagesNum
CfgInt cfg_BeetleLarvalStagesNum
The number of larval stages for this species.
Ladybird_Pupae::ReInit
void ReInit(int a_x, int a_y, Landscape *a_l_ptr, Ladybird_Population_Manager *a_bpm_ptr)
Constructor method.
Definition: Ladybird_All.cpp:481
cfg_LadybirdAggregationStart
static CfgInt cfg_LadybirdAggregationStart("LADYBIRD_AGGREGATION_START", CFG_CUSTOM, 750)
Assumed daylength trigger for aggregation start. 750 = Berlin 20/09.
Ladybird_Population_Manager::DoSpecialBetweenLifeStages
void DoSpecialBetweenLifeStages(int a_life_stage) override
Cannibalism is handled here.
Definition: Ladybird_All.cpp:921
Ladybird_Pupae::calcDailyMortChance
double calcDailyMortChance(int a_temp2, const double a_lengthOfStageAtTemp) override
calculates the length of the pupal stage depending on the temperature
Definition: Ladybird_All.cpp:498
Beetle_Base::KillAndRemoveFromMap
void KillAndRemoveFromMap()
Kills the beetle - this version forces the beetle to re-enter the Step code and call st_Dying.
Definition: Beetle_BaseClasses.cpp:438
Ladybird_Pupae::St_Emerge
TTypesOfBeetleState St_Emerge() override
The method that removes the pupa and substitutes it by adult (called in the end of development)
Definition: Ladybird_All.cpp:488
cfg_LadybirdMinimumOviMaturation
static CfgInt cfg_LadybirdMinimumOviMaturation("LADYBIRD_MINIMUMOVIMATURATION", CFG_CUSTOM, 4)
The lentgth of time before oviposition when finding the first good forage patch.
Beetle_Base
The base class for all beetles.
Definition: Beetle_BaseClasses.h:150
Ladybird_Base::m_WantToEatToday
int m_WantToEatToday
number of ladybird larvae younger than this to eat in EndStep
Definition: Ladybird_All.h:91
Beetle_Population_Manager::m_OffFieldNo
int m_OffFieldNo
Off-field counter.
Definition: Beetle_BaseClasses.h:1121
Ladybird_Adult::setEggCounter
void setEggCounter(int num)
sets the total to-lay egg counter to a value
Definition: Ladybird_All.h:375
cfg_LadybirdFlyingThreshTemp
static CfgFloat cfg_LadybirdFlyingThreshTemp("LADYBIRD_FLYINGTHRESHTEMP", CFG_CUSTOM, 15.0)
The temperature at which the flight is possible.
fp_liquidNH3
Definition: Treatment.h:57
molluscicide
Definition: Treatment.h:87
Population_Manager::PushIndividual
void PushIndividual(const unsigned a_listindex, TAnimal *a_individual_ptr)
Definition: PopulationManager.cpp:1682
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
tobs_BDying
Definition: Beetle_BaseClasses.h:73
Ladybird_Larvae1::~Ladybird_Larvae1
~Ladybird_Larvae1() override=default
Destructor of larva object.
Ladybird_Population_Manager::DoEggDailyMortalityActions
void DoEggDailyMortalityActions(double a_atemptoday) override
Species specific actions to cope with temperature related egg mortality.
Definition: Ladybird_All.cpp:1101
Struct_Beetle::m_x
int m_x
Definition: Beetle_BaseClasses.h:127
cfg_Ladybird_Emergance_Day_Length
static CfgInt cfg_Ladybird_Emergance_Day_Length("LADYBIRD_EMERGANCE_DAY_LENGTH", CFG_CUSTOM, 755)
fa_manganesesulphate
Definition: Treatment.h:73
Ladybird_Adult::SetOvipositionRateTemp
static void SetOvipositionRateTemp(const vector< double > &a_dist)
Definition: Ladybird_All.h:312
cfg_AphidsToHibernate
static CfgInt cfg_AphidsToHibernate("LADYBIRD_APHIDS_TO_STAY_AWAKE", CFG_CUSTOM, 10)
Num of aphids that triggers hibernation.
lobs_Adult
Definition: Ladybird_All.h:71
start
Definition: Treatment.h:32
cfg_LadybirdLarvalPreyDevelParameters
static CfgArray_Double cfg_LadybirdLarvalPreyDevelParameters("LADYBIRD_LARVAL_PREY_DEVEL_PARAMETERS", CFG_CUSTOM, 4 *4, vector< double > { 50.0, 2.572, -0.0689, 0.0008, 50.0, 2.2134, -0.0608, 0.0008, 80.0, 2.612, -0.0448, 0.0003, 120.0, 1.8777, -0.0144, 0.00006 })
The 2nd order polynomial parameters and max aphids per instar.
cfg_pm_EventFrequency
CfgInt cfg_pm_EventFrequency
Beetle_Adult::ReInit
void ReInit(int a_x, int a_y, Landscape *a_l_ptr, Beetle_Population_Manager *a_bpm_ptr) override
ReInit for object pool.
Definition: Beetle_BaseClasses.cpp:898
Population_Manager::TheSubArrays
vector< vector< forward_list< TAnimal * > * > > TheSubArrays
Hold all the animal pointers.
Definition: PopulationManager.h:804
fp_k
Definition: Treatment.h:55
cfg_Ladybird_SCP
static CfgArray_Double cfg_Ladybird_SCP("LADYBIRD_SCP", CFG_CUSTOM, 12, { -15, -15, -10, -9, -5, -5, -5, -5, -5, -9, -12, -17 })
Minimum tolerated temperature at given month of the year.
Ladybird_Population_Manager::TheAOROutputProbe
void TheAOROutputProbe() override
Special output functionality.
Definition: Ladybird_All.cpp:1343
Beetle_Pupae::ReInit
void ReInit(int a_x, int a_y, Landscape *a_l_ptr, Beetle_Population_Manager *a_bpm_ptr) override
ReInit for object pool.
Definition: Beetle_BaseClasses.cpp:781
Landscape::Warn
void Warn(std::string a_msg1, std::string a_msg2)
Wrapper for the g_msg Warn function.
Definition: Landscape.h:2250
Calendar::JanFirst
bool JanFirst(void)
Definition: Calendar.h:79
cfg_LadybirdMaxPupalLength
static CfgInt cfg_LadybirdMaxPupalLength("LADYBIRD_MAXPUPALLENGTH", CFG_CUSTOM, 30)
Beetle_Base::GetStriglingMortality
virtual double GetStriglingMortality() const
Mortality by Strigling: similar for all forms– should use base class method.
Definition: Beetle_BaseClasses.h:363
Ladybird_Base::m_MoveCounter
int m_MoveCounter
the counter of the steps made today
Definition: Ladybird_All.h:95
Ladybird_Population_Manager::IsLocationAllowedLarvae
bool IsLocationAllowedLarvae(TTypesOfVegetation a_tov)
Checks the tov list of disallowed tovs and returns false if a_tov is disallowed
Definition: Ladybird_All.h:444
autumn_plough
Definition: Treatment.h:34
CfgArray_Int
Array_Int configurator entry class.
Definition: Configurator.h:189
TAnimal::m_Location_x
int m_Location_x
The objects ALMaSS x coordinate.
Definition: PopulationManager.h:362
Ladybird_Adult::m_OviMaturation
int m_OviMaturation
Counter for ovi maturation.
Definition: Ladybird_All.h:284
Ladybird_Egg_List
The class describing the beetle Egg_List objects.
Definition: Ladybird_All.h:143
cfg_LadybirdMaxAdultNumber
CfgFloat cfg_LadybirdMaxAdultNumber("LADYBIRD_MAX_ADULT_NUMBER", CFG_CUSTOM, 400000.0)
The maximum ladybird adult number allowed.
Beetle_Pupae::m_DayMade
int m_DayMade
Definition: Beetle_BaseClasses.h:747
Ladybird_Population_Manager::CalculateDailyEggProduction
void CalculateDailyEggProduction(double a_temptoday) override
Figure out the maximum number of eggs that can be laid today - must be overridden in descendent class...
Definition: Ladybird_All.h:417
Ladybird_Base::CalcAphidsAppetite
virtual void CalcAphidsAppetite()
Calculates the appetite of aphids based on the age (Arshad et al, 2017)
Definition: Ladybird_All.h:119
Beetle_Population_Manager::SupplyDevelConst1
double SupplyDevelConst1(unsigned a_index) const
Definition: Beetle_BaseClasses.h:1028
Landscape::SupplyDaylength
int SupplyDaylength(void)
Passes a request on to the associated Weather class function, the day length for the current day.
Definition: Landscape.h:2201
Beetle_Base::GetSoilCultivationMortality
virtual double GetSoilCultivationMortality() const
the method overrides the method that returns the mortality due to soil cultivation
Definition: Beetle_BaseClasses.h:365
fp_slurry
Definition: Treatment.h:58
fiber_covering
Definition: Treatment.h:128
Ladybird_Population_Manager::GetAphidPopulationManager
Aphid_Population_Manager * GetAphidPopulationManager(const int a_index) const
The function to get a aphid population manager pointer referenced by a_index.
Definition: Ladybird_All.h:463
cfg_ladybirdStartNos
static CfgInt cfg_ladybirdStartNos("LADYBIRD_STARTNO", CFG_CUSTOM, 200)
lobs_Foobar
Definition: Ladybird_All.h:72
cfg_LadybirdOvipositionPeriodEnd
static CfgInt cfg_LadybirdOvipositionPeriodEnd("LADYBIRD_OVIPOSITIONPERIODEND", CFG_CUSTOM, September)
Oviposition period end.
Beetle_Population_Manager::SupplyDayDegs
virtual double SupplyDayDegs(const unsigned a_stage, const int a_day)
Get the day degress experienced this year for a specific day created and instar/stage.
Definition: Beetle_BaseClasses.h:1030
APoint::m_y
int m_y
Definition: ALMaSS_Setup.h:56
Ladybird_Larvae1::ReInit
virtual void ReInit(int a_x, int a_y, Landscape *a_l_ptr, Ladybird_Population_Manager *a_bpm_ptr)
ReInit for object pool.
Definition: Ladybird_All.cpp:324
summer_sow
Definition: Treatment.h:50
Population_Manager::m_LiveArraySize
vector< unsigned > m_LiveArraySize
Definition: PopulationManager.h:786
tobs_Hibernating
Definition: Beetle_BaseClasses.h:70
Ladybird_Population_Manager::m_EggTemperatureMortality
vector< double > m_EggTemperatureMortality
Storage for the temperature related mortality for eggs.
Definition: Ladybird_All.h:393
Ladybird_Adult::ShouldStartAggregating
bool ShouldStartAggregating()
The method evaluates whether the beetle should start aggregation.
Definition: Ladybird_All.cpp:639
spring_sow_with_ferti
Definition: Treatment.h:115
CannibalisationEvent::m_X
int m_X
Definition: Ladybird_All.h:78
Ladybird_Population_Manager::m_LadybirdLarvaMovementThreshold
double m_LadybirdLarvaMovementThreshold
minimum temperature that larva can move at
Definition: Ladybird_All.h:486
Beetle_Base::StDie
virtual void StDie()
Common state Die.
Definition: Beetle_BaseClasses.cpp:308
sleep_all_day
Definition: Treatment.h:33
Ladybird_Larvae1::m_LadybirdLarvaeMoveStep
static int m_LadybirdLarvaeMoveStep
The size of moves (m) possible per move try.
Definition: Ladybird_All.h:171
strigling_sow
Definition: Treatment.h:107
Beetle_Population_Manager::m_DayDegs
vector< std::array< double, 365 > > m_DayDegs
Storage for daily day degrees for non-adult stages.
Definition: Beetle_BaseClasses.h:1052
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