Loading [MathJax]/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_Egg Class Referencefinal

#include <Oedothorax.h>

Inheritance diagram for Oedothorax_Egg:
Spider_Egg Spider_Base TAnimal TALMaSSObject

Public Member Functions

 Oedothorax_Egg (int x, int y, Landscape *L, Oedothorax_Population_Manager *EPM, int Eggs)
 
bool OnFarmEvent (FarmToDo event) override
 Determines the impact of any farm management events at the eggsac's location
More...
 
- Public Member Functions inherited from Spider_Egg
void EndStep ()
 EndStep behaviour - must be implemented in descendent classes. More...
 
 Spider_Egg (int x, int y, Landscape *L, Spider_Population_Manager *EPM, int Eggs)
 The Spider_Egg constructor
More...
 
virtual void ReInit (int x, int y, Landscape *L, Spider_Population_Manager *EPM, int Eggs)
 Used to reinitialise and object
More...
 
virtual void BeginStep ()
 The begin step code
More...
 
virtual void Step ()
 The Step code
More...
 
void SetNoEggs (int Eggs)
 Sets the number of eggs attribute
More...
 
int GetNoEggs ()
 Returns the number of eggs in the eggsac
More...
 
- Public Member Functions inherited from Spider_Base
 Spider_Base (int x, int y, Landscape *L, Spider_Population_Manager *SpMan)
 Constructor
More...
 
void ReInit (int x, int y, Landscape *L, Spider_Population_Manager *SpMan)
 Reinitialise object code
More...
 
void Init (Spider_Population_Manager *p_spMan)
 Used it initialise objects (also used by ReInit)
More...
 
virtual int WhatState ()
 Returns the current spider behavioural state
More...
 
virtual void KillThis ()
 Destroys the spider
More...
 
- Public Member Functions inherited from TAnimal
 TAnimal (int x, int y, Landscape *L)
 The TAnimal constructor saving the x,y, location and the landscape pointer. More...
 
 TAnimal (int x, int y)
 The TAnimal constructor saving the x,y used if landscape is already set. More...
 
void SetGuardMapIndex (int a_index_x, int a_index_y)
 Set the guard map index, this is used to avoid two animals operating in the same location when using multithread. More...
 
unsigned SupplyFarmOwnerRef () const
 Get the current location farm ref if any. More...
 
AnimalPosition SupplyPosition () const
 Returns the objects location and habitat type and veg type. More...
 
APoint SupplyPoint () const
 Returns the objects location in ALMaSS coordinates. More...
 
int SupplyPolygonRef () const
 Returns the polygon reference where the object is located. More...
 
TTypesOfLandscapeElement SupplyPolygonType () const
 Returns the polygon type where the object is located. More...
 
int Supply_m_Location_x () const
 Returns the ALMaSS x-coordinate. More...
 
int Supply_m_Location_y () const
 Returns the ALMaSS y-coordinate. More...
 
int SupplyGuardCellX () const
 Returns the x-index to the guard cell. More...
 
int SupplyGuardCellY () const
 Returns the y-index to the guard cell. More...
 
int SupplyAge () const
 Returns the animals age in days. More...
 
void SetAge (int a_age)
 Sets the animals age in days. More...
 
virtual void CopyMyself ()
 Used to copy the object details to another in descendent classes. More...
 
void SetX (const int a_x)
 Sets the x-coordinate. More...
 
void SetY (const int a_y)
 Sets the y-coordinate. More...
 
virtual void ReinitialiseObject (int a_x, int a_y, Landscape *a_l_ptr)
 
virtual void ReinitialiseObject (int a_x, int a_y)
 Used to re-use an object - must be implemented in descendent classes. More...
 
virtual void Dying ()
 A wrapped for KillThis - ideally should not be used. More...
 
void CheckManagement ()
 Used to start a check for any management related effects at the objects current location. More...
 
void CheckManagementXY (int a_x, int a_y)
 Used to start a check for any management related effects at x,y. More...
 
- Public Member Functions inherited from TALMaSSObject
int GetCurrentStateNo () const
 Returns the current state number. More...
 
void SetCurrentStateNo (int a_num)
 Sets the current state number. More...
 
bool GetStepDone () const
 Returns the step done indicator flag. More...
 
void SetStepDone (bool a_bool)
 Sets the step done indicator flag. More...
 
void ReinitialiseObjectBase ()
 Used to initialise an object. More...
 
 TALMaSSObject ()
 The constructor for TALMaSSObject. More...
 
virtual ~TALMaSSObject ()=default
 The destructor for TALMaSSObject. More...
 

Additional Inherited Members

- Static Public Member Functions inherited from TAnimal
static void SetSimulationWidth (int a_value)
 Sets the simulation width. More...
 
static void SetSimulationHeight (int a_value)
 Sets the simulation height. More...
 
static void SetDayInYear (int a_value)
 Sets the day in year attribute. More...
 
static void SetOurLandscape (Landscape *a_value)
 Sets the landscape pointer. More...
 
static void SetTempToday (double a_value)
 Sets the temperature today attribute. More...
 
- Static Public Member Functions inherited from TALMaSSObject
static void OnArrayBoundsError ()
 Used for debugging only, tests basic object properties. More...
 
- Public Attributes inherited from Spider_Base
double m_pesticide_accum
 Body-burden of pesticde
More...
 
Spider_Population_Managerm_OurPopulationManager
 
- Static Public Attributes inherited from Spider_Egg
static int m_HatDensityDepMortConst = 0
 This is a space for holding cfg species specific parameters - this is the mortality constant associated with Spider_Egg::Hatch. More...
 
static int m_DailyEggMortConst = 0
 This is a space for holding cfg species specific parameters - this is the daily egg mortality probability Spider_Egg::st_Develop. More...
 
static double m_EggDevelConst = 0
 This is a space for holding cfg species specific parameters - this is a developmental threshold for hatch in Spider_Egg::st_Develop. More...
 
- Static Public Attributes inherited from Spider_Base
static int m_DenDependenceConst0 = 0
 This is the number of local spiders needed before density dependent mortality will kill
More...
 
static int m_SimW = 0
 The width of the landscape
More...
 
static int m_SimH = 0
 The height of the landscape
More...
 
- Protected Member Functions inherited from Spider_Egg
TTypesOfSpiderState st_Develop ()
 The behavioural state develop
More...
 
virtual void st_Hatch ()
 The behavioural state hatch
More...
 
virtual void st_Die ()
 The behavioural state die
More...
 
virtual void Hatch (int a_eggsackspread, unsigned a_doubleeggsacspread, unsigned a_noeggs, unsigned a_range)
 Determines the number and location of spiderlings to survive hatching and triggers creation of juvenile objects
More...
 
- Protected Member Functions inherited from Spider_Base
virtual bool EggPosValid (unsigned a_x, unsigned a_y)
 Checks if its possible to create an eggsac here
More...
 
bool HatchDensityMort (int a_x, int a_y, int a_range)
 Checks for density-dependent mortality at this location
More...
 
virtual int CheckPosMap (unsigned x, unsigned y)
 Returns the value in m_OurPosMap for this location
More...
 
virtual bool GetPosMapPositive (unsigned x, unsigned y, unsigned range)
 Returns whether there are any non-zero values within range of this coordinate (TL corner)
More...
 
virtual int GetPosMapDensity (unsigned x, unsigned y, unsigned range)
 Returns total number of non-zero locations within range of this coordinate (TL corner)
More...
 
virtual void ClearPosMap (unsigned x, unsigned y)
 Clears a PosMap location
More...
 
virtual void SetPosMap (unsigned x, unsigned y)
 Sets a PosMap location to non-zero
More...
 
- Protected Member Functions inherited from TAnimal
void CorrectWrapRound ()
 Corrects wrap around co-ordinate problems. More...
 
- Protected Attributes inherited from Spider_Egg
int m_DateLaid
 The day in year the eggsac was produced
More...
 
int m_NoEggs
 The number of eggs contained in the eggsac
More...
 
- Protected Attributes inherited from Spider_Base
double m_AgeDegrees
 A local pointer the population manager
More...
 
int m_Age
 Stores the spiders age in days
More...
 
TTypesOfSpiderState m_CurrentSpState
 Stores the current behavioural state
More...
 
unsigned m_Lifestage { 0 }
 This is a useful parameter holding the spider type. More...
 
SimplePositionMapm_OurPosMap
 Contains a pointer to the relevant position map - allocation of this must be controlled by the descendent class init. More...
 
- Protected Attributes inherited from TAnimal
int m_Location_x
 The objects ALMaSS x coordinate. More...
 
int m_Location_y
 The objects ALMaSS y coordinate. More...
 
int m_guard_cell_x
 The index x to the guard cell. More...
 
int m_guard_cell_y
 The index y to the guard cell. More...
 
int m_AgeDays {0}
 To hold the age in days. More...
 
PesticideToxicity m_my_pesticide
 
- Protected Attributes inherited from TALMaSSObject
int m_CurrentStateNo
 The basic state number for all objects - '-1' indicates death. More...
 
bool m_StepDone
 Indicates whether the iterative step code is done for this timestep. More...
 
- Static Protected Attributes inherited from TAnimal
static Landscapem_OurLandscape = nullptr
 A pointer to the landscape object shared with all TAnimal objects. More...
 
static int m_SimulationWidth = 0
 A static member for the simulation width because it is often used by descendent classes. More...
 
static int m_SimulationHeight = 0
 A static member for the simulation height because it is often used by descendent classes. More...
 
static double m_TemperatureToday = 0.0
 A holder for the temperature today shared with all TAnimal objects. More...
 
static int m_DayInYear = 0
 A holder for the day in year shared with all TAnimal objects. More...
 

Constructor & Destructor Documentation

◆ Oedothorax_Egg()

Oedothorax_Egg::Oedothorax_Egg ( int  x,
int  y,
Landscape L,
Oedothorax_Population_Manager EPM,
int  Eggs 
)
86  : Spider_Egg(x, y, L, SpPM, Eggs) {
87 
88 }

Member Function Documentation

◆ OnFarmEvent()

bool Oedothorax_Egg::OnFarmEvent ( FarmToDo  event)
overridevirtual

Determines the impact of any farm management events at the eggsac's location

Reimplemented from Spider_Egg.

91  {
92  switch (event) {
93 // Here begins Harrow mortatlity
94  case autumn_harrow:
95  case autumn_roll:
96  case autumn_sow:
98  case bed_forming:
99  case spring_harrow:
100  case strigling_sow:
101  case spring_roll:
102  case spring_sow:
104  case row_cultivation:
105  case hilling_up:
106  case summer_harrow:
107  case summer_sow:
108  case stubble_harrowing:
111  case shallow_harrow:
112  case winter_harrow:
113  case shredding:
115  break;
116 // Here begins ploughing mortality
117  case autumn_plough:
118  case winter_plough:
119  case deep_ploughing:
120  case summer_plough:
121  case spring_plough:
125  case stubble_plough:
127  break;
128 // Here begins strigling mortality
129  case strigling:
130  case strigling_hill:
132  break;
133 // Here begins grazing mortality
134  case pigs_out:
135  case cattle_out:
136  case cattle_out_low:
138  break;
139 // Here begins harvest mortality
140  case swathing:
141  case harvest:
142  case green_harvest:
143  case harvest_bushfruit:
144  case harvestshoots:
145  case cut_to_hay:
146  case cut_to_silage:
147  case straw_chopping:
148  case hay_turning:
149  case hay_bailing:
150  case pruning:
151  case cut_weeds:
152  case mow:
153  case bulb_harvest:
154  case fiber_covering:
155  case fiber_removal:
156  case flower_cutting:
157  case straw_covering:
158  case straw_removal:
159  case manual_weeding:
161  break;
162 // Here begins fire mortality
163  case flammebehandling:
164  case burn_top:
165  case burn_straw_stubble:
167  break;
168 // Here begins insecticide mortality
170  case org_insecticide:
171  case insecticide_treat:
173  break;
174 // Here begins trial toxic mortality
176  case trial_toxiccontrol:
178  break;
179 // Here begins non-mortality events
180  case trial_control:
181  case sleep_all_day:
182  case fp_ammoniumsulphate:
183  case fp_boron:
184  case fp_calcium:
185  case fp_cu:
186  case fp_n:
187  case fp_nc:
188  case fp_nk:
189  case fp_ns:
190  case fp_npks:
191  case fp_npk:
192  case fp_pks:
193  case fp_pk:
194  case fp_k:
195  case fp_p:
196  case fp_rsm:
197  case fp_sk:
198  case fp_liquidNH3:
199  case fp_slurry:
201  case fp_manure:
202  case fp_greenmanure:
203  case fp_sludge:
204  case fa_boron:
205  case fa_calcium:
206  case fa_cu:
208  case fa_n:
209  case fa_nk:
210  case fa_npk:
211  case fa_npks:
212  case fa_pks:
213  case fa_pk:
214  case fa_k:
215  case fa_p:
216  case fa_rsm:
217  case fa_sk:
218  case fa_slurry:
219  case fa_ammoniumsulphate:
220  case fa_manure:
221  case fa_greenmanure:
222  case fa_sludge:
223  case herbicide_treat:
224  case org_fungicide:
225  case org_herbicide:
226  case growth_regulator:
227  case fungicide_treat:
228  case glyphosate:
229  case product_treat:
230  case molluscicide:
231  case last_treatment:
232  case pheromone:
233  case suckering:
234  case water:
235  break;
236  case biocide:
238  break;
239  default:
240  break;
241  }
242  return true;
243 }

References autumn_harrow, autumn_or_spring_plough, autumn_plough, autumn_roll, autumn_sow, autumn_sow_with_ferti, bed_forming, biocide, bulb_harvest, burn_straw_stubble, burn_top, cattle_out, cattle_out_low, cfg_biocide_reduction_val, cfg_OedothoraxEgg_FireMort, cfg_OedothoraxEgg_GrazingMort, cfg_OedothoraxEgg_HarrowMort, cfg_OedothoraxEgg_HarvestMort, cfg_OedothoraxEgg_InsecticideApplication, cfg_OedothoraxEgg_PloughMort, cfg_OedothoraxEgg_StriglingMort, cfg_OedothoraxPesticideTrialAdultToxicMort, cut_to_hay, cut_to_silage, cut_weeds, deep_ploughing, fa_ammoniumsulphate, fa_boron, fa_calcium, fa_cu, fa_greenmanure, fa_k, fa_manganesesulphate, fa_manure, fa_n, fa_nk, fa_npk, fa_npks, fa_p, fa_pk, fa_pks, fa_rsm, fa_sk, fa_sludge, fa_slurry, fiber_covering, fiber_removal, flammebehandling, flower_cutting, fp_ammoniumsulphate, fp_boron, fp_calcium, fp_cu, fp_greenmanure, fp_k, fp_liquidNH3, fp_manganesesulphate, fp_manure, fp_n, fp_nc, fp_nk, fp_npk, fp_npks, fp_ns, fp_p, fp_pk, fp_pks, fp_rsm, fp_sk, fp_sludge, fp_slurry, fungicide_treat, g_random_fnc(), glyphosate, green_harvest, growth_regulator, harvest, harvest_bushfruit, harvestshoots, hay_bailing, hay_turning, heavy_cultivator_aggregate, herbicide_treat, hilling_up, insecticide_treat, last_treatment, Spider_Base::m_CurrentSpState, manual_weeding, molluscicide, mow, org_fungicide, org_herbicide, org_insecticide, pheromone, pigs_out, preseeding_cultivator, preseeding_cultivator_sow, product_treat, pruning, row_cultivation, shallow_harrow, shredding, sleep_all_day, spring_harrow, spring_plough, spring_roll, spring_sow, spring_sow_with_ferti, straw_chopping, straw_covering, straw_removal, strigling, strigling_hill, strigling_sow, stubble_cultivator_heavy, stubble_harrowing, stubble_plough, suckering, summer_harrow, summer_plough, summer_sow, swathing, syninsecticide_treat, tosps_Dying, trial_control, trial_insecticidetreat, trial_toxiccontrol, CfgInt::value(), CfgFloat::value(), water, winter_harrow, and winter_plough.


The documentation for this class was generated from the following files:
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
harvest
Definition: Treatment.h:94
fa_nk
Definition: Treatment.h:142
insecticide_treat
Definition: Treatment.h:83
straw_chopping
Definition: Treatment.h:99
fa_greenmanure
Definition: Treatment.h:76
stubble_plough
Definition: Treatment.h:35
growth_regulator
Definition: Treatment.h:81
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
flower_cutting
Definition: Treatment.h:121
spring_plough
Definition: Treatment.h:44
fp_sk
Definition: Treatment.h:56
pruning
Definition: Treatment.h:125
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
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
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
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
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
fp_p
Definition: Treatment.h:54
suckering
Definition: Treatment.h:130
cut_to_hay
Definition: Treatment.h:97
fa_boron
Definition: Treatment.h:141
fa_k
Definition: Treatment.h:70
spring_roll
Definition: Treatment.h:46
syninsecticide_treat
Definition: Treatment.h:111
fp_nc
Definition: Treatment.h:135
fungicide_treat
Definition: Treatment.h:82
fp_sludge
Definition: Treatment.h:63
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
org_fungicide
Definition: Treatment.h:86
summer_harrow
Definition: Treatment.h:49
Spider_Egg::Spider_Egg
Spider_Egg(int x, int y, Landscape *L, Spider_Population_Manager *EPM, int Eggs)
The Spider_Egg constructor
Definition: Spider_BaseClasses.cpp:222
cattle_out
Definition: Treatment.h:95
harvestshoots
Definition: Treatment.h:147
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_biocide_reduction_val
CfgFloat cfg_biocide_reduction_val
CfgInt::value
int value() const
Definition: Configurator.h:116
fa_manure
Definition: Treatment.h:75
spring_sow
Definition: Treatment.h:47
cut_weeds
Definition: Treatment.h:106
trial_toxiccontrol
Definition: Treatment.h:109
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
bed_forming
Definition: Treatment.h:118
product_treat
Definition: Treatment.h:113
autumn_sow
Definition: Treatment.h:41
autumn_harrow
Definition: Treatment.h:37
fa_calcium
Definition: Treatment.h:79
fa_ammoniumsulphate
Definition: Treatment.h:74
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
cfg_OedothoraxEgg_HarvestMort
static CfgInt cfg_OedothoraxEgg_HarvestMort("OEDOTHORAX_EGG_HARVESTMORT", CFG_CUSTOM, 240)
fa_rsm
Definition: Treatment.h:78
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
fp_liquidNH3
Definition: Treatment.h:57
molluscicide
Definition: Treatment.h:87
hay_bailing
Definition: Treatment.h:101
fa_manganesesulphate
Definition: Treatment.h:73
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
fp_slurry
Definition: Treatment.h:58
fiber_covering
Definition: Treatment.h:128
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