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
Erigone_Egg Class Reference

#include <Erigone.h>

Inheritance diagram for Erigone_Egg:
Spider_Egg Spider_Base TAnimal TALMaSSObject

Public Member Functions

 Erigone_Egg (int x, int y, Landscape *L, Erigone_Population_Manager *EPM, int Eggs)
 
virtual bool OnFarmEvent (FarmToDo event)
 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

◆ Erigone_Egg()

Erigone_Egg::Erigone_Egg ( int  x,
int  y,
Landscape L,
Erigone_Population_Manager EPM,
int  Eggs 
)
92  : Spider_Egg(x, y, L, SpPM, Eggs) {
93 
94 }

Member Function Documentation

◆ OnFarmEvent()

bool Erigone_Egg::OnFarmEvent ( FarmToDo  event)
virtual

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

Reimplemented from Spider_Egg.

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

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_Erig_Egg_FireMort, cfg_Erig_Egg_GrazingMort, cfg_Erig_Egg_HarrowMort, cfg_Erig_Egg_HarvestMort, cfg_Erig_Egg_InsecticideApplication, cfg_Erig_Egg_PloughMort, cfg_Erig_Egg_StriglingMort, cfg_Erig_PesticideTrialAdultToxicMort, 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
cfg_Erig_Egg_InsecticideApplication
static CfgInt cfg_Erig_Egg_InsecticideApplication("ERIGONE_EGG_INSECTICIDEAPPLICATION", CFG_CUSTOM, 900)
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
cfg_Erig_Egg_StriglingMort
static CfgInt cfg_Erig_Egg_StriglingMort("ERIGONE_EGG_STRIGLINGMORT", CFG_CUSTOM, 370)
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
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
cfg_Erig_PesticideTrialAdultToxicMort
static CfgInt cfg_Erig_PesticideTrialAdultToxicMort("ERIGONE_PESTICIDETRIALADULTTOXICMORT", CFG_CUSTOM, 900)
cfg_biocide_reduction_val
CfgFloat cfg_biocide_reduction_val
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_Erig_Egg_HarrowMort
static CfgInt cfg_Erig_Egg_HarrowMort("ERIGONE_EGG_HARROWMORT", CFG_CUSTOM, 250)
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
cfg_Erig_Egg_FireMort
static CfgInt cfg_Erig_Egg_FireMort("ERIGONE_EGG_FIREMORT", CFG_CUSTOM, 500)
fa_pks
Definition: Treatment.h:145
cfg_Erig_Egg_GrazingMort
static CfgInt cfg_Erig_Egg_GrazingMort("ERIGONE_EGG_GRAZINGMORT", CFG_CUSTOM, 40)
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
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
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
cfg_Erig_Egg_PloughMort
static CfgInt cfg_Erig_Egg_PloughMort("ERIGONE_EGG_PLOUGHMORT", CFG_CUSTOM, 380)
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
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
cfg_Erig_Egg_HarvestMort
static CfgInt cfg_Erig_Egg_HarvestMort("ERIGONE_EGG_HARVESTMORT", CFG_CUSTOM, 240)
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
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
strigling_sow
Definition: Treatment.h:107