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
Bembidion_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 
24 //Version modified 10th April 2023 by C.J.Topping
25 */
26 //----------------
27 
28 #ifndef Bembidion_allH
29 #define Bembidion_allH
30 
31 //----------------
32 
33 #include "Beetle_BaseClasses.h"
34 
35 extern const char* g_simulationName;
36 
37 //-------------------
38 // Forward Declarations
39 
41 class Landscape;
42 class MovementMap;
43 class SimplePositionMap;
44 
46 
47 // ------------------------------------------------------------------------------------------
48 // Start Beetle_Base class
49 // ------------------------------------------------------------------------------------------
50 // - - - - - - - - - - Start Static Member Access - - - - - - - - - -
51 // - - - - - - - - - - End Static Member Access - - - - - - - - - -
52 // - - - - - - - - - - Start public functions with forced override - - - - - - - - - -
53 // - - - - - - - - - - End public functions with forced override - - - - - - - - - -
54 // + + + + + + + + + + Start Attributes + + + + + + + + + +
55 // - - - - - - - - - - Static members used for parameter input - - - - - - - - - -
56 // - - - - - - - - - - End Static Member Access - - - - - - - - - -
57 // + + + + + + + + + + End Attributes + + + + + + + + + +
58 // - - - - - - - - - - Start functions with forced override - - - - - - - - - -
59 // - - - - - - - - - - End functions with forced override - - - - - - - - - -
60 // -------------------- End Beetle_Base class --------------------
61 // ------------------------------------------------------------------------------------------
62 //---------------
63 
69 // ------------------------------------------------------------------------------------------
70 // Start Beetle_Egg_List class
71 // ------------------------------------------------------------------------------------------
78 public:
80  Bembidion_Egg_List(int a_today, Bembidion_Population_Manager* a_bpm_ptr, Landscape* a_l_ptr);
81 };
82 
83 // -------------------- End Bembidion_Egg_List class --------------------
84 
85 // ------------------------------------------------------------------------------------------
86 // Start Bembidion_Larvae1 class
87 // ------------------------------------------------------------------------------------------
90 public:
92  Bembidion_Larvae1(int a_x, int a_y, Landscape* a_l_ptr, Bembidion_Population_Manager* a_bpm_ptr);
94  virtual void ReInit(int a_x, int a_y, Landscape* a_l_ptr, Bembidion_Population_Manager* a_bpm_ptr);
95 };
96 
97 // -------------------- End Bembidion_Larvae1 class --------------------
98 
99 // ------------------------------------------------------------------------------------------
100 // Start Bembidion_Larvae2 class
101 // ------------------------------------------------------------------------------------------
104 public:
106  Bembidion_Larvae2(int a_x, int a_y, Landscape* a_l_ptr, Bembidion_Population_Manager* a_bpm_ptr);
108  void ReInit(int a_x, int a_y, Landscape* a_l_ptr, Bembidion_Population_Manager* a_bpm_ptr) override;
109 };
110 
111 // -------------------- End Bembidion_Larvae2 class --------------------
112 
113 // ------------------------------------------------------------------------------------------
114 // Start Bembidion_Larvae3 class
115 // ------------------------------------------------------------------------------------------
118 public:
120  Bembidion_Larvae3(int a_x, int a_y, Landscape* a_l_ptr, Bembidion_Population_Manager* a_bpm_ptr);
122  // ReSharper disable once CppHidingFunction
123  void ReInit(int a_x, int a_y, Landscape* a_l_ptr, Bembidion_Population_Manager* a_bpm_ptr) override;
124 };
125 
126 // -------------------- End Bembidion_Larvae3 class --------------------
127 
128 // ------------------------------------------------------------------------------------------
129 // Start Bembidion_Pupae class
130 // ------------------------------------------------------------------------------------------
131 class Bembidion_Pupae final : public Beetle_Pupae {
132 public:
134  Bembidion_Pupae(int a_x, int a_y, Landscape* a_l_ptr, Bembidion_Population_Manager* a_bpm_ptr);
136  double calcDailyMortChance(int a_temp2, double a_lengthOfStageAtTemp) override;
137 };
138 
139 
140 // -------------------- End Bembidion_Pupae class --------------------
141 
142 // ------------------------------------------------------------------------------------------
143 // Start Bembidion_Adult class
144 // ------------------------------------------------------------------------------------------
145 class Bembidion_Adult final : public Beetle_Adult {
146 public:
148  Bembidion_Adult(int a_x, int a_y, Landscape* a_l_ptr, Bembidion_Population_Manager* a_bpm_ptr);
149 
150 protected:
152  bool WinterMort() const override;
157  void CheckReproduction() override {
158  } // This has to compile to do nothing
159 };
160 
161 // -------------------- End Bembidion_Pupae class --------------------
162 
163 // ------------------------------------------------------------------------------------------
164 // Start Bembidion_Population_Managerclass
165 // ------------------------------------------------------------------------------------------
167 public:
169  void CreateObjects(int a_ob_type, TAnimal* a_pvo_ptr, void* null, Struct_Beetle* a_data, int a_number) override;
172 
173 protected:
175  void CalculateDailyEggProduction(double a_temptoday) override;
176  void DoFirst() override;
177  bool OnFarmEvent(FarmToDo a_event, Beetle_Base* a_caller) override;
178  //----------
179 };
180 
181 // -------------------- End Bembidion_Population_Manager class --------------------
182 
183 #endif
cfg_Beetlestartnos
CfgInt cfg_Beetlestartnos
The number of beetles to start in the simulation.
fiber_removal
Definition: Treatment.h:129
fp_rsm
Definition: Treatment.h:64
org_insecticide
Definition: Treatment.h:84
Bembidion_Larvae1::Bembidion_Larvae1
Bembidion_Larvae1(int a_x, int a_y, Landscape *a_l_ptr, Bembidion_Population_Manager *a_bpm_ptr)
constructor for Larvae1
Definition: Bembidion_All.cpp:63
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
Bembidion_Larvae1
Class for beetle larval stage 1, most functionality is in Beetle_Larvae.
Definition: Bembidion_All.h:89
fa_sk
Definition: Treatment.h:71
row_cultivation
Definition: Treatment.h:88
fa_pk
Definition: Treatment.h:68
tobs_Aggregating
Definition: Beetle_BaseClasses.h:69
fp_npk
Definition: Treatment.h:52
strigling
Definition: Treatment.h:89
cfg_BeetleTotalNoEggs
CfgInt cfg_BeetleTotalNoEggs
The maximum number of eggs a beetle can produce.
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
Beetle_Population_Manager::m_InFieldNo
int m_InFieldNo
In-field counter.
Definition: Beetle_BaseClasses.h:1117
Landscape::TranslateVegTypes
TTypesOfVegetation TranslateVegTypes(int VegReference)
Returns vegetation type translated from the ALMaSS reference number.
Definition: Landscape.h:2326
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
Bembidion_Population_Manager::DoFirst
void DoFirst() override
Does day degree development calculations here.
Definition: Bembidion_All.cpp:304
insecticide_treat
Definition: Treatment.h:83
straw_chopping
Definition: Treatment.h:99
Bembidion_Larvae3::ReInit
void ReInit(int a_x, int a_y, Landscape *a_l_ptr, Bembidion_Population_Manager *a_bpm_ptr) override
ReInit for object pool.
Definition: Bembidion_All.cpp:99
fa_greenmanure
Definition: Treatment.h:76
bob_Pupa
Definition: Beetle_BaseClasses.h:86
cfg_pm_EventFrequency
CfgInt cfg_pm_EventFrequency
stubble_plough
Definition: Treatment.h:35
growth_regulator
Definition: Treatment.h:81
Bembidion_Population_Manager
Definition: Bembidion_All.h:166
deep_ploughing
Definition: Treatment.h:43
hilling_up
Definition: Treatment.h:91
green_harvest
Definition: Treatment.h:127
autumn_or_spring_plough
Definition: Treatment.h:103
Bembidion_Pupae::Bembidion_Pupae
Bembidion_Pupae(int a_x, int a_y, Landscape *a_l_ptr, Bembidion_Population_Manager *a_bpm_ptr)
constructor for pupae
Definition: Bembidion_All.cpp:107
Population_Manager::m_population_type
TTypesOfPopulation m_population_type
Definition: PopulationManager.h:858
Beetle_Adult::m_StartAggregatingDay
static int m_StartAggregatingDay
Definition: Beetle_BaseClasses.h:887
flower_cutting
Definition: Treatment.h:121
Bembidion_Population_Manager::CreateObjects
void CreateObjects(int a_ob_type, TAnimal *a_pvo_ptr, void *null, Struct_Beetle *a_data, int a_number) override
Method to add beetles to the population.
Definition: Bembidion_All.cpp:253
spring_plough
Definition: Treatment.h:44
fp_sk
Definition: Treatment.h:56
pruning
Definition: Treatment.h:125
cfg_ReallyBigOutput_used
CfgBool cfg_ReallyBigOutput_used
Beetle_Population_Manager::m_AdultEggLayingThreshold
double m_AdultEggLayingThreshold
Temperature threshold for egg laying.
Definition: Beetle_BaseClasses.h:1064
fp_manure
Definition: Treatment.h:61
herbicide_treat
Definition: Treatment.h:80
fp_ammoniumsulphate
Definition: Treatment.h:60
flammebehandling
Definition: Treatment.h:90
straw_covering
Definition: Treatment.h:123
fp_boron
Definition: Treatment.h:131
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
SimplePositionMap
Used to map locations of individuals for density estimates - space inefficient but good for testing.
Definition: PositionMap.h:45
Beetle_Adult::m_EggCounter
int m_EggCounter
The number of eggs produced.
Definition: Beetle_BaseClasses.h:876
Bembidion_Adult::CheckDormancy
TTypesOfBeetleState CheckDormancy() override
Override for standard beetle CheckDormancy due to death test.
Definition: Bembidion_All.cpp:150
fp_cu
Definition: Treatment.h:138
bulb_harvest
Definition: Treatment.h:122
preseeding_cultivator
Definition: Treatment.h:39
Struct_Beetle::m_l
Landscape * m_l
Definition: Beetle_BaseClasses.h:129
Bembidion_Larvae3::Bembidion_Larvae3
Bembidion_Larvae3(int a_x, int a_y, Landscape *a_l_ptr, Bembidion_Population_Manager *a_bpm_ptr)
constructor for Larvae3
Definition: Bembidion_All.cpp:93
trial_control
Definition: Treatment.h:110
fp_npks
Definition: Treatment.h:51
Bembidion_Egg_List
The class describing the Bembidion Egg_List objects. In general case this class should have only a co...
Definition: Bembidion_All.h:72
CfgFloat::value
double value() const
Definition: Configurator.h:142
burn_top
Definition: Treatment.h:143
Bembidion_Larvae2
Class for beetle larval stage 2, most functionality is in Beetle_Larvae.
Definition: Bembidion_All.h:103
FarmToDo
FarmToDo
Definition: Treatment.h:31
cfg_BembidionDevelopmentInflectionPoints
static CfgArray_Double cfg_BembidionDevelopmentInflectionPoints("BEMBIDION_DEVELOPMENTINFLECTIONPOINTS", CFG_CUSTOM, 10, vector< double >{12.0, 12.0, 12.0, 12.0, 12.0, 9999, 9999, 9999, 9999, 9999})
Inflection point in day degree calculations - default bembidion.
fp_nk
Definition: Treatment.h:133
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
org_herbicide
Definition: Treatment.h:85
Beetle_Adult::CheckForDispersal
bool CheckForDispersal()
the method that checks for the dispersal
Definition: Beetle_BaseClasses.cpp:974
cfg_BembidionLarvalMortCategories
static CfgInt cfg_BembidionLarvalMortCategories("BEMBIDION_LARVALMORTCATEGORIES", CFG_CUSTOM, 7)
probability_distribution
Definition: ALMaSS_Random.h:70
Bembidion_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: Bembidion_All.cpp:292
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
autumn_roll
Definition: Treatment.h:38
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
Beetle_Adult::m_HibernateDegrees
double m_HibernateDegrees
The number of day degrees experienced in the spring which may trigger dispersal.
Definition: Beetle_BaseClasses.h:871
Bembidion_Larvae2::ReInit
void ReInit(int a_x, int a_y, Landscape *a_l_ptr, Bembidion_Population_Manager *a_bpm_ptr) override
ReInit for object pool.
Definition: Bembidion_All.cpp:85
Struct_Beetle::m_y
int m_y
Definition: Beetle_BaseClasses.h:128
fp_manganesesulphate
Definition: Treatment.h:59
TOP_Bembidion
Definition: PopulationManager.h:62
hay_turning
Definition: Treatment.h:100
Bembidion_Larvae3
Class for beetle larval stage 3, most functionality is in Beetle_Larvae.
Definition: Bembidion_All.h:117
straw_removal
Definition: Treatment.h:124
fa_n
Definition: Treatment.h:139
shredding
Definition: Treatment.h:126
cfg_BeetleLarvalStagesNum
CfgInt cfg_BeetleLarvalStagesNum
The number of larval stages for this species.
Beetle_Adult::SetTodaysEggProduction
static void SetTodaysEggProduction(const int a_value)
Daily temperature determined egg production.
Definition: Beetle_BaseClasses.h:848
pheromone
Definition: Treatment.h:149
fp_n
Definition: Treatment.h:132
manual_weeding
Definition: Treatment.h:148
fa_npk
Definition: Treatment.h:67
Bembidion_Pupae::calcDailyMortChance
double calcDailyMortChance(int a_temp2, double a_lengthOfStageAtTemp) override
calculates the length of the pupal stage depending on the temperature
Definition: Bembidion_All.cpp:111
Population_Manager_Base::m_TheLandscape
Landscape * m_TheLandscape
holds an internal pointer to the landscape
Definition: PopulationManager.h:624
winter_plough
Definition: Treatment.h:42
fp_calcium
Definition: Treatment.h:65
spring_harrow
Definition: Treatment.h:45
cut_to_silage
Definition: Treatment.h:98
Landscape
The landscape class containing all environmental and topographical data.
Definition: Landscape.h:142
fa_sludge
Definition: Treatment.h:77
pigs_out
Definition: Treatment.h:96
Beetle_Adult::m_negDegrees
double m_negDegrees
The number of negative day degrees experienced.
Definition: Beetle_BaseClasses.h:869
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_BeetleHibernationEndDay
CfgInt cfg_BeetleHibernationEndDay
The latest day in a year for beetle to wake up from habination.
fp_p
Definition: Treatment.h:54
cut_to_hay
Definition: Treatment.h:97
fa_boron
Definition: Treatment.h:141
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
Beetle_Egg_List
The class describing the beetle Egg_List objects.
Definition: Beetle_BaseClasses.h:382
cfg_BeetleInCropRef
CfgInt cfg_BeetleInCropRef
A reference to a crop type if we are looking for mortality locations within a special crop.
Landscape::SupplySimAreaHeight
int SupplySimAreaHeight(void)
Gets the simulation landscape height.
Definition: Landscape.h:2302
Beetle_Larvae::m_LarvalStage
int m_LarvalStage
Current larval growth stage (1-3), used as a small speed hack.
Definition: Beetle_BaseClasses.h:619
Landscape::SupplySimAreaWidth
int SupplySimAreaWidth(void)
Gets the simulation landscape width.
Definition: Landscape.h:2297
cfg_RipleysOutput_used
CfgBool cfg_RipleysOutput_used
fa_k
Definition: Treatment.h:70
spring_roll
Definition: Treatment.h:46
Beetle_Population_Manager
The population manager class for beetles.
Definition: Beetle_BaseClasses.h:1006
g_simulationName
const char * g_simulationName
CfgBool
Bool configurator entry class.
Definition: Configurator.h:155
Bembidion_Egg_List::Bembidion_Egg_List
Bembidion_Egg_List(int a_today, Bembidion_Population_Manager *a_bpm_ptr, Landscape *a_l_ptr)
Egg_List class constructor.
Definition: Bembidion_All.cpp:57
TAnimal
The base class for all ALMaSS animal classes. Includes all the functionality required to be handled b...
Definition: PopulationManager.h:200
Bembidion_Larvae1::ReInit
virtual void ReInit(int a_x, int a_y, Landscape *a_l_ptr, Bembidion_Population_Manager *a_bpm_ptr)
ReInit for object pool.
Definition: Bembidion_All.cpp:70
fp_nc
Definition: Treatment.h:135
fungicide_treat
Definition: Treatment.h:82
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
fp_greenmanure
Definition: Treatment.h:62
shallow_harrow
Definition: Treatment.h:119
fa_slurry
Definition: Treatment.h:72
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
Beetle_Base::GetHarvestMortality
virtual double GetHarvestMortality() const
the method overrides the method that returns the mortality due to harvest
Definition: Beetle_BaseClasses.h:369
fa_pks
Definition: Treatment.h:145
cfg_biocide_reduction_val
CfgFloat cfg_biocide_reduction_val
CfgArray_Double
Definition: Configurator.h:208
Beetle_Population_Manager::m_InCropRef
TTypesOfVegetation m_InCropRef
In crop tole reference.
Definition: Beetle_BaseClasses.h:1123
org_fungicide
Definition: Treatment.h:86
Beetle_Population_Manager::m_BeetleLarvalStagesNum
int m_BeetleLarvalStagesNum
Definition: Beetle_BaseClasses.h:1058
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
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
biocide
Definition: Treatment.h:116
swathing
Definition: Treatment.h:93
Beetle_Adult::m_AdultDispersalThreshold
static double m_AdultDispersalThreshold
Adult dispersal temp threshold for DD calcuation.
Definition: Beetle_BaseClasses.h:921
g_speedy_Divides
double g_speedy_Divides[2001]
A generally useful array of fast divide calculators by multiplication.
Definition: Landscape.cpp:344
glyphosate
Definition: Treatment.h:114
CfgInt::value
int value() const
Definition: Configurator.h:116
fa_manure
Definition: Treatment.h:75
CfgArray_Double::value
std::vector< double > value() const
Definition: Configurator.h:219
bob_Larva3
Definition: Beetle_BaseClasses.h:85
spring_sow
Definition: Treatment.h:47
Bembidion_Pupae
Definition: Bembidion_All.h:131
cut_weeds
Definition: Treatment.h:106
Beetle_Base::m_CurrentBState
TTypesOfBeetleState m_CurrentBState
Current behavioural state.
Definition: Beetle_BaseClasses.h:158
Bembidion_All.h
Beetle_Population_Manager::m_MortalityTempMax
double m_MortalityTempMax
Threshold temperatures for mortalities: Max.
Definition: Beetle_BaseClasses.h:1046
Bembidion_Adult::St_Hibernate
TTypesOfBeetleState St_Hibernate() override
Override for state hibernate for Bembidion.
Definition: Bembidion_All.cpp:173
Beetle_Larvae
The class describing the beetle larvae objects.
Definition: Beetle_BaseClasses.h:535
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
fp_ns
Definition: Treatment.h:134
Bembidion_Adult
Definition: Bembidion_All.h:145
bed_forming
Definition: Treatment.h:118
bob_foobar
Definition: Beetle_BaseClasses.h:88
product_treat
Definition: Treatment.h:113
Beetle_Population_Manager::m_EggProductionSlope
double m_EggProductionSlope
the slope of the linear function that defines todays egg production
Definition: Beetle_BaseClasses.h:1066
autumn_sow
Definition: Treatment.h:41
Beetle_Population_Manager::m_InCropNo
int m_InCropNo
In-crop counter.
Definition: Beetle_BaseClasses.h:1119
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
fa_calcium
Definition: Treatment.h:79
Beetle_Pupae
The class describing the beetle pupae objects.
Definition: Beetle_BaseClasses.h:688
Bembidion_Adult::CheckReproduction
void CheckReproduction() override
Starts reproduction when ready.
Definition: Bembidion_All.h:157
Beetle_Population_Manager::m_DevelopmentInflectionPoints
vector< double > m_DevelopmentInflectionPoints
Inflection point in day degree calculations for non-adult stages.
Definition: Beetle_BaseClasses.h:1070
fa_ammoniumsulphate
Definition: Treatment.h:74
bob_Larva1
Definition: Beetle_BaseClasses.h:83
CfgFloat
Double configurator entry class.
Definition: Configurator.h:126
Population_Manager_Base::m_SimulationName
string m_SimulationName
stores the simulation name
Definition: PopulationManager.h:622
Bembidion_Population_Manager::OnFarmEvent
bool OnFarmEvent(FarmToDo a_event, Beetle_Base *a_caller) override
Returns the consequence of farme events at a the current location.
Definition: Bembidion_All.cpp:323
tobs_Dispersing
Definition: Beetle_BaseClasses.h:71
autumn_sow_with_ferti
Definition: Treatment.h:136
fa_p
Definition: Treatment.h:69
mow
Definition: Treatment.h:105
Bembidion_Adult::WinterMort
bool WinterMort() const override
The method for calculating overwintering mortality.
Definition: Bembidion_All.cpp:138
fa_rsm
Definition: Treatment.h:78
Bembidion_Larvae2::Bembidion_Larvae2
Bembidion_Larvae2(int a_x, int a_y, Landscape *a_l_ptr, Bembidion_Population_Manager *a_bpm_ptr)
constructor for Larvae2
Definition: Bembidion_All.cpp:78
CFG_CUSTOM
Definition: Configurator.h:70
g_random_fnc
int g_random_fnc(const int a_range)
Definition: ALMaSS_Random.cpp:74
Beetle_Adult::GetStartAggregationDayProb
int GetStartAggregationDayProb() const
return the aggregation start day probability
Definition: Beetle_BaseClasses.cpp:903
fa_npks
Definition: Treatment.h:66
water
Definition: Treatment.h:92
stubble_harrowing
Definition: Treatment.h:102
cfg_BembidionLarvalDailyTemperatureMort
static CfgArray_Double cfg_BembidionLarvalDailyTemperatureMort("BEMBIDION_LARVALDAILYTEMPERATUREMORT", CFG_CUSTOM, 3 *7, vector< double >{ 0.0855, 0.0855, 0.1036, 0.0563, 0.0515, 0.0657, 0.0957, 0.0626, 0.0626, 0.0940, 0.0529, 0.0492, 0.0633, 0.0933, 0.0631, 0.0631, 0.0545, 0.0268, 0.0236, 0.0295, 0.0595 })
The daily fixed temperature related mmortality larval probability.
Beetle_Base
The base class for all beetles.
Definition: Beetle_BaseClasses.h:150
Beetle_Population_Manager::m_OffFieldNo
int m_OffFieldNo
Off-field counter.
Definition: Beetle_BaseClasses.h:1121
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
hay_bailing
Definition: Treatment.h:101
tobs_BDying
Definition: Beetle_BaseClasses.h:73
Struct_Beetle::m_x
int m_x
Definition: Beetle_BaseClasses.h:127
fa_manganesesulphate
Definition: Treatment.h:73
Population_Manager::TheSubArrays
vector< vector< forward_list< TAnimal * > * > > TheSubArrays
Hold all the animal pointers.
Definition: PopulationManager.h:804
fp_k
Definition: Treatment.h:55
Landscape::Warn
void Warn(std::string a_msg1, std::string a_msg2)
Wrapper for the g_msg Warn function.
Definition: Landscape.h:2250
bob_Egg
Definition: Beetle_BaseClasses.h:82
Beetle_Base::GetStriglingMortality
virtual double GetStriglingMortality() const
Mortality by Strigling: similar for all forms– should use base class method.
Definition: Beetle_BaseClasses.h:363
autumn_plough
Definition: Treatment.h:34
bob_Adult
Definition: Beetle_BaseClasses.h:87
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
Bembidion_Population_Manager::Bembidion_Population_Manager
Bembidion_Population_Manager(Landscape *a_l_ptr)
Constructor.
Definition: Bembidion_All.cpp:207
bob_Larva2
Definition: Beetle_BaseClasses.h:84
cfg_pm_EventSize
CfgInt cfg_pm_EventSize
tobs_Hibernating
Definition: Beetle_BaseClasses.h:70
Bembidion_Adult::Bembidion_Adult
Bembidion_Adult(int a_x, int a_y, Landscape *a_l_ptr, Bembidion_Population_Manager *a_bpm_ptr)
constructor for Bembidion adult
Definition: Bembidion_All.cpp:133
spring_sow_with_ferti
Definition: Treatment.h:115
sleep_all_day
Definition: Treatment.h:33
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