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
Oedothorax.h
Go to the documentation of this file.
1 // Version of 28th November 2023
2 /*
3 *******************************************************************************************************
4 Copyright (c) 2023, Christopher John Topping, Aarhus University
5 All rights reserved.
6 
7 Redistribution and use in source and binary forms, with or without modification, are permitted provided
8 that the following conditions are met:
9 
10 Redistributions of source code must retain the above copyright notice, this list of conditions and the
11 following disclaimer.
12 Redistributions in binary form must reproduce the above copyright notice, this list of conditions and
13 the following disclaimer in the documentation and/or other materials provided with the distribution.
14 
15 THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" AND ANY EXPRESS OR
16 IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND
17 FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT HOLDER OR CONTRIBUTORS
18 BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING,
19 BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR
20 BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT
21 LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS
22 SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
23 ********************************************************************************************************
24 */
25 
26 //---------------------------------------------------------------------------
27 #ifndef Spider_allH
28 #define Spider_allH
29 //---------------------------------------------------------------------------
30 // Forward Declarations
31 
33 class Landscape;
34 class m_JuvPosMap;
35 class m_AdultPosMap;
36 class Spider_Base;
37 class struct_Spider;
38 
39 //---------------------------------------------------------------------------------------------------------------------------------------
40 
41 class Oedothorax_Egg final : public Spider_Egg
42 {
43 public:
44  Oedothorax_Egg(int x, int y,Landscape* L, Oedothorax_Population_Manager* EPM, int Eggs); // NOLINT(readability-inconsistent-declaration-parameter-name)
45 protected:
46 public:
47  bool OnFarmEvent(FarmToDo event) override;
48 };
49 //---------------------------------------------------------------------------------------------------------------------------------------
50 
52 {
53 public:
56  void CalcDrought();
57  virtual bool OnFarmEvent(FarmToDo event);
58 };
59 //---------------------------------------------------------------------------------------------------------------------------------------
60 
62 {
63 public:
65 protected:
66  void CalcDrought() override;
67  virtual bool OnFarmEvent(FarmToDo event);
69  virtual int CalculateEggsPerEggSac();
70 };
71 //---------------------------------------------------------------------------------------------------------------------------------------
72 
73 #endif
74 
cfg_OedothoraxAdult_GrazingMort
static CfgInt cfg_OedothoraxAdult_GrazingMort("OEDOTHORAX_ADULT_GRAZINGMORT", CFG_CUSTOM, 40)
fiber_removal
Definition: Treatment.h:129
fp_rsm
Definition: Treatment.h:64
org_insecticide
Definition: Treatment.h:84
fa_sk
Definition: Treatment.h:71
row_cultivation
Definition: Treatment.h:88
fa_pk
Definition: Treatment.h:68
winter_harrow
Definition: Treatment.h:144
fp_npk
Definition: Treatment.h:52
strigling
Definition: Treatment.h:89
g_rand_uni_fnc
double g_rand_uni_fnc()
Definition: ALMaSS_Random.cpp:56
harvest
Definition: Treatment.h:94
fa_nk
Definition: Treatment.h:142
Spider_Egg
The generic base class for spider eggsacs
Definition: Spider_BaseClasses.h:344
OedothoraxEggsPerSac
const int OedothoraxEggsPerSac[13]
Definition: Oedothorax.cpp:80
insecticide_treat
Definition: Treatment.h:83
straw_chopping
Definition: Treatment.h:99
fa_greenmanure
Definition: Treatment.h:76
Oedothorax_Population_Manager
Definition: Oedothorax_Population_Manager.h:39
stubble_plough
Definition: Treatment.h:35
cfg_Oedothorax_lowplantbiomass
static CfgFloat cfg_Oedothorax_lowplantbiomass("ERIGONE_LOWPLANTBIOMASS", CFG_CUSTOM, 10.0)
growth_regulator
Definition: Treatment.h:81
Oedothorax_Egg::Oedothorax_Egg
Oedothorax_Egg(int x, int y, Landscape *L, Oedothorax_Population_Manager *EPM, int Eggs)
Definition: Oedothorax.cpp:86
deep_ploughing
Definition: Treatment.h:43
hilling_up
Definition: Treatment.h:91
Spider_Juvenile::m_MustBalloon
bool m_MustBalloon
Flag to force ballooning if possible
Definition: Spider_BaseClasses.h:403
green_harvest
Definition: Treatment.h:127
autumn_or_spring_plough
Definition: Treatment.h:103
flower_cutting
Definition: Treatment.h:121
cfg_ReallyBigOutputUsed
CfgBool cfg_ReallyBigOutputUsed
cfg_OedothoraxJuv_HarvestBalloon
static CfgInt cfg_OedothoraxJuv_HarvestBalloon("OEDOTHORAX_JUVENILE_HARVESTBALLOON", CFG_CUSTOM, 320)
Spider_Population_Manager::GetTodaysMonth
int GetTodaysMonth()
Return current month
Definition: Spider_BaseClasses.h:201
spring_plough
Definition: Treatment.h:44
fp_sk
Definition: Treatment.h:56
pruning
Definition: Treatment.h:125
Oedothorax_Juvenile::OnFarmEvent
virtual bool OnFarmEvent(FarmToDo event)
Determines the impact of any farm management events at the juvenile's location
Definition: Oedothorax.cpp:277
Spider_Base::m_OurPopulationManager
Spider_Population_Manager * m_OurPopulationManager
Definition: Spider_BaseClasses.h:309
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
Oedothorax_Juvenile::CalcDrought
void CalcDrought()
For extension in descendent classes to calculate drought days for mortality
Definition: Oedothorax.cpp:263
fp_boron
Definition: Treatment.h:131
Spider_Population_Manager::GetTodaysDroughtSc
double GetTodaysDroughtSc(int index)
Returns the drought score for high, medium or low plant biomass
Definition: Spider_BaseClasses.h:204
Oedothorax_Female::CalcDrought
void CalcDrought() override
For extension in descendent classes to calculate drought days for mortality
Definition: Oedothorax.cpp:456
fp_cu
Definition: Treatment.h:138
bulb_harvest
Definition: Treatment.h:122
preseeding_cultivator
Definition: Treatment.h:39
trial_control
Definition: Treatment.h:110
fp_npks
Definition: Treatment.h:51
CfgFloat::value
double value() const
Definition: Configurator.h:142
burn_top
Definition: Treatment.h:143
cfg_OedothoraxJuvenile_InsecticideApplication
static CfgInt cfg_OedothoraxJuvenile_InsecticideApplication("OEDOTHORAX_JUVENILE_INSECTICIDEAPPLICATION", CFG_CUSTOM, 900)
FarmToDo
FarmToDo
Definition: Treatment.h:31
Oedothorax_Female::CalculateEggsPerEggSac
virtual int CalculateEggsPerEggSac()
Determines the number of eggs per egg sac.
Definition: Oedothorax.cpp:634
fp_nk
Definition: Treatment.h:133
burn_straw_stubble
Definition: Treatment.h:104
org_herbicide
Definition: Treatment.h:85
fa_cu
Definition: Treatment.h:140
autumn_roll
Definition: Treatment.h:38
strigling_hill
Definition: Treatment.h:117
heavy_cultivator_aggregate
Definition: Treatment.h:120
fp_manganesesulphate
Definition: Treatment.h:59
hay_turning
Definition: Treatment.h:100
Oedothorax_Juvenile
Definition: Oedothorax.h:51
last_treatment
Definition: Treatment.h:150
straw_removal
Definition: Treatment.h:124
cfg_OedothoraxEgg_FireMort
static CfgInt cfg_OedothoraxEgg_FireMort("OEDOTHORAX_EGG_FIREMORT", CFG_CUSTOM, 500)
fa_n
Definition: Treatment.h:139
shredding
Definition: Treatment.h:126
Spider_Base::m_CurrentSpState
TTypesOfSpiderState m_CurrentSpState
Stores the current behavioural state
Definition: Spider_BaseClasses.h:304
pheromone
Definition: Treatment.h:149
fp_n
Definition: Treatment.h:132
manual_weeding
Definition: Treatment.h:148
fa_npk
Definition: Treatment.h:67
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
cfg_OedothoraxAdult_HarrowMort
static CfgInt cfg_OedothoraxAdult_HarrowMort("OEDOTHORAX_ADULT_HARROWMORT", CFG_CUSTOM, 250)
cfg_OedothoraxEgg_HarrowMort
static CfgInt cfg_OedothoraxEgg_HarrowMort("OEDOTHORAX_EGG_HARROWMORT", CFG_CUSTOM, 250)
cfg_OedothoraxPesticideTrialAdultToxicMort
static CfgInt cfg_OedothoraxPesticideTrialAdultToxicMort("OEDOTHORAX_PESTICIDETRIALADULTTOXICMORT", CFG_CUSTOM, 900)
fa_sludge
Definition: Treatment.h:77
pigs_out
Definition: Treatment.h:96
Oedothorax_Female::Oedothorax_Female
Oedothorax_Female(int x, int y, Landscape *L, Oedothorax_Population_Manager *EPM)
Definition: Oedothorax.cpp:452
fp_p
Definition: Treatment.h:54
suckering
Definition: Treatment.h:130
cut_to_hay
Definition: Treatment.h:97
fa_boron
Definition: Treatment.h:141
cfg_OedothoraxAdult_GrazingBalloon
static CfgInt cfg_OedothoraxAdult_GrazingBalloon("OEDOTHORAX_ADULT_GRAZINGBALLOON", CFG_CUSTOM, 40)
Landscape::SupplyAttIsVegGrass
bool SupplyAttIsVegGrass(int a_polyref)
Returns whether a polygon a_polyref has the attribute Is Grass set.
Definition: Landscape.h:899
TAnimal::m_Location_y
int m_Location_y
The objects ALMaSS y coordinate.
Definition: PopulationManager.h:366
fa_k
Definition: Treatment.h:70
spring_roll
Definition: Treatment.h:46
Spider_Juvenile
The generic base class for juvenile spiders
Definition: Spider_BaseClasses.h:389
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
Spider_Female
The generic base class for female spiders
Definition: Spider_BaseClasses.h:459
struct_Spider
This is a data class that is used to create new instances of spider objects by CreateObjects in the r...
Definition: Spider_BaseClasses.h:94
cfg_OedothoraxJuv_GrazingMort
static CfgInt cfg_OedothoraxJuv_GrazingMort("OEDOTHORAX_JUVENILE_GRAZINGMORT", CFG_CUSTOM, 40)
sfq_None
Definition: Spider_BaseClasses.h:59
sfq_Best
Definition: Spider_BaseClasses.h:62
syninsecticide_treat
Definition: Treatment.h:111
fp_nc
Definition: Treatment.h:135
fungicide_treat
Definition: Treatment.h:82
fp_sludge
Definition: Treatment.h:63
sfq_Ok
Definition: Spider_BaseClasses.h:61
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
fa_pks
Definition: Treatment.h:145
cfg_OedothoraxJuv_PloughMort
static CfgInt cfg_OedothoraxJuv_PloughMort("OEDOTHORAX_JUV_PLOUGHMORT", CFG_CUSTOM, 380)
org_fungicide
Definition: Treatment.h:86
summer_harrow
Definition: Treatment.h:49
Landscape::SupplyVegBiomass
double SupplyVegBiomass(int a_polyref)
Returns the biomass of the vegetation using the polygon reference number a_polyref or based on the x,...
Definition: Landscape.h:1542
cattle_out
Definition: Treatment.h:95
harvestshoots
Definition: Treatment.h:147
SpiderFoodQuality
SpiderFoodQuality
The enumeration lists five catagories of habitat for spiders. Chameleon is used when the vegetation t...
Definition: Spider_BaseClasses.h:55
stubble_cultivator_heavy
Definition: Treatment.h:36
tosps_Dying
Definition: Spider_BaseClasses.h:75
biocide
Definition: Treatment.h:116
swathing
Definition: Treatment.h:93
glyphosate
Definition: Treatment.h:114
cfg_OedothoraxAdult_FireMort
static CfgInt cfg_OedothoraxAdult_FireMort("OEDOTHORAX_ADULT_FIREMORT", CFG_CUSTOM, 500)
cfg_biocide_reduction_val
CfgFloat cfg_biocide_reduction_val
CfgInt::value
int value() const
Definition: Configurator.h:116
Landscape::SupplyIsVeg
bool SupplyIsVeg(int a_x, int a_y)
Indicated if this polygon type is descended from VegElement.
Definition: Landscape.h:1672
fa_manure
Definition: Treatment.h:75
Oedothorax_Egg::OnFarmEvent
bool OnFarmEvent(FarmToDo event) override
Determines the impact of any farm management events at the eggsac's location
Definition: Oedothorax.cpp:91
spring_sow
Definition: Treatment.h:47
cut_weeds
Definition: Treatment.h:106
trial_toxiccontrol
Definition: Treatment.h:109
cfg_OedothoraxJuv_GrazingBalloon
static CfgInt cfg_OedothoraxJuv_GrazingBalloon("OEDOTHORAX_JUVENILE_GRAZINGBALLOON", CFG_CUSTOM, 40)
summer_plough
Definition: Treatment.h:48
cfg_OedothoraxEgg_GrazingMort
static CfgInt cfg_OedothoraxEgg_GrazingMort("OEDOTHORAX_EGG_GRAZINGMORT", CFG_CUSTOM, 40)
cfg_OedothoraxEgg_PloughMort
static CfgInt cfg_OedothoraxEgg_PloughMort("OEDOTHORAX_EGG_PLOUGHMORT", CFG_CUSTOM, 380)
fp_pks
Definition: Treatment.h:146
fp_ns
Definition: Treatment.h:134
cfg_OedothoraxJuv_StriglingMort
static CfgInt cfg_OedothoraxJuv_StriglingMort("OEDOTHORAX_JUVENILE_STRIGLINGMORT", CFG_CUSTOM, 370)
bed_forming
Definition: Treatment.h:118
product_treat
Definition: Treatment.h:113
cfg_OedothoraxJuv_HarvestMort
static CfgInt cfg_OedothoraxJuv_HarvestMort("OEDOTHORAX_JUVENILE_HARVESTMORT", CFG_CUSTOM, 240)
cfg_OedothoraxAdult_StriglingMort
static CfgInt cfg_OedothoraxAdult_StriglingMort("OEDOTHORAX_ADULT_STRIGLINGMORT", CFG_CUSTOM, 370)
Oedothorax_Egg
Definition: Oedothorax.h:41
autumn_sow
Definition: Treatment.h:41
CfgInt
Integer configurator entry class.
Definition: Configurator.h:102
Oedothorax_Juvenile::CheckToleTovIndex
SpiderFoodQuality CheckToleTovIndex()
Returns the movement map value at current location
Definition: Oedothorax.cpp:255
cfg_OedothoraxPesticideTrialJuvenileToxicMort
static CfgInt cfg_OedothoraxPesticideTrialJuvenileToxicMort("OEDOTHORAX_PESTICIDETRIALJUVENILETOXICMORT", CFG_CUSTOM, 900)
autumn_harrow
Definition: Treatment.h:37
fa_calcium
Definition: Treatment.h:79
fa_ammoniumsulphate
Definition: Treatment.h:74
CfgFloat
Double configurator entry class.
Definition: Configurator.h:126
Oedothorax_Female::OnFarmEvent
virtual bool OnFarmEvent(FarmToDo event)
Determines the impact of any farm management events at the female's location
Definition: Oedothorax.cpp:469
autumn_sow_with_ferti
Definition: Treatment.h:136
trial_insecticidetreat
Definition: Treatment.h:108
fa_p
Definition: Treatment.h:69
mow
Definition: Treatment.h:105
Oedothorax_Juvenile::Oedothorax_Juvenile
Oedothorax_Juvenile(int x, int y, Landscape *L, Oedothorax_Population_Manager *EPM)
Definition: Oedothorax.cpp:250
cfg_OedothoraxEgg_HarvestMort
static CfgInt cfg_OedothoraxEgg_HarvestMort("OEDOTHORAX_EGG_HARVESTMORT", CFG_CUSTOM, 240)
cfg_OedothoraxJuv_FireMort
static CfgInt cfg_OedothoraxJuv_FireMort("OEDOTHORAX_JUVENILE_FIREMORT", CFG_CUSTOM, 500)
Spider_Base
Definition: Spider_BaseClasses.h:285
fa_rsm
Definition: Treatment.h:78
CFG_CUSTOM
Definition: Configurator.h:70
g_random_fnc
int g_random_fnc(const int a_range)
Definition: ALMaSS_Random.cpp:74
fa_npks
Definition: Treatment.h:66
water
Definition: Treatment.h:92
stubble_harrowing
Definition: Treatment.h:102
cfg_OedothoraxJuv_HarrowMort
static CfgInt cfg_OedothoraxJuv_HarrowMort("OEDOTHORAX_JUV_HARROWMORT", CFG_CUSTOM, 250)
Oedothorax_Female
Definition: Oedothorax.h:61
fp_liquidNH3
Definition: Treatment.h:57
molluscicide
Definition: Treatment.h:87
hay_bailing
Definition: Treatment.h:101
fa_manganesesulphate
Definition: Treatment.h:73
cfg_OedothoraxAdult_HarvestBalloon
static CfgInt cfg_OedothoraxAdult_HarvestBalloon("OEDOTHORAX_ADULT_HARVESTBALLOON", CFG_CUSTOM, 320)
Spider_Base::KillThis
virtual void KillThis()
Destroys the spider
Definition: Spider_BaseClasses.h:321
fp_k
Definition: Treatment.h:55
cfg_OedothoraxEgg_StriglingMort
static CfgInt cfg_OedothoraxEgg_StriglingMort("OEDOTHORAX_EGG_STRIGLINGMORT", CFG_CUSTOM, 370)
autumn_plough
Definition: Treatment.h:34
TAnimal::m_Location_x
int m_Location_x
The objects ALMaSS x coordinate.
Definition: PopulationManager.h:362
fp_slurry
Definition: Treatment.h:58
cfg_OedothoraxAdult_PloughMort
static CfgInt cfg_OedothoraxAdult_PloughMort("OEDOTHORAX_ADULT_PLOUGHMORT", CFG_CUSTOM, 380)
cfg_OedothoraxAdult_HarvestMort
static CfgInt cfg_OedothoraxAdult_HarvestMort("OEDOTHORAX_ADULT_HARVESTMORT", CFG_CUSTOM, 240)
fiber_covering
Definition: Treatment.h:128
cfg_OedothoraxAdult_InsecticideApplication
static CfgInt cfg_OedothoraxAdult_InsecticideApplication("OEDOTHORAX_ADULT_INSECTICIDEAPPLICATION", CFG_CUSTOM, 900)
cfg_Oedothorax_mediumplantbiomass
static CfgFloat cfg_Oedothorax_mediumplantbiomass("ERIGONE_MEDIUMPLANTBIOMASS", CFG_CUSTOM, 100.0)
summer_sow
Definition: Treatment.h:50
spring_sow_with_ferti
Definition: Treatment.h:115
sleep_all_day
Definition: Treatment.h:33
cfg_OedothoraxEgg_InsecticideApplication
static CfgInt cfg_OedothoraxEgg_InsecticideApplication("OEDOTHORAX_EGG_INSECTICIDEAPPLICATION", CFG_CUSTOM, 900)
strigling_sow
Definition: Treatment.h:107