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

#include <Osmia.h>

Inheritance diagram for Osmia_Egg:
Osmia_Base TAnimal TALMaSSObject Osmia_Larva Osmia_Prepupa Osmia_Pupa Osmia_InCocoon Osmia_Female

Public Member Functions

 Osmia_Egg (struct_Osmia *data)
 Osmia_Egg constructor. More...
 
virtual void ReInit (struct_Osmia *data)
 Osmia_Egg ReInit for object pool. More...
 
virtual ~Osmia_Egg ()
 Osmia_Egg destructor. More...
 
virtual void Step (void)
 The Step is the second 'part' of the timestep that an animal can behave in. It is called continuously until all animals report that they are 'DONE'. More...
 
double GetAgeDegrees ()
 A typical interface function - this one returns the agedegrees. More...
 
void SetAgeDegrees (unsigned a_agedegrees)
 A typical interface function - this one returns the agedegrees. More...
 
- Public Member Functions inherited from Osmia_Base
 Osmia_Base (struct_Osmia *data)
 Osmia constructor. More...
 
void ReInit (struct_Osmia *data)
 Osmia reinitialise object methods. More...
 
virtual ~Osmia_Base ()
 Osmia destructor. More...
 
virtual void st_Dying (void)
 Behavioural state dying. More...
 
virtual void BeginStep (void)
 The BeginStep is the first 'part' of the timestep that an animal can behave in. It is called once per timestep. More...
 
virtual void EndStep (void)
 The EndStep is the third 'part' of the timestep that an animal can behave in. It is called once per timestep. More...
 
int GetAge ()
 A typical interface function - this one returns the age. More...
 
void SetAge (int a_age)
 A typical interface function - this one returns the age. More...
 
double GetMass ()
 Returns the bee's mass. More...
 
void SetMass (double a_mass)
 Sets the bee's mass. More...
 
void SetParasitised (TTypeOfOsmiaParasitoids a_status)
 Set the parasitised status. More...
 
TTypeOfOsmiaParasitoids GetParasitised (void)
 Set the parasitised status. More...
 
Osmia_NestGetNest ()
 
- 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 KillThis ()
 Sets all parameters ready for object destruction. 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 int WhatState ()
 Returns the objects current state number. 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...
 
virtual bool OnFarmEvent (FarmToDo)
 Must be reimplemented if used in descendent classes. Sets the action on a management event. 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...
 

Protected Member Functions

virtual TTypeOfOsmiaState st_Develop (void)
 Behavioural state development. More...
 
virtual TTypeOfOsmiaState st_Hatch (void)
 Behavioural state hatch. More...
 
virtual bool DailyMortality ()
 Daily mortality test for eggs. More...
 
- Protected Member Functions inherited from TAnimal
void CorrectWrapRound ()
 Corrects wrap around co-ordinate problems. More...
 

Protected Attributes

double m_AgeDegrees = 0.0
 This contains the age in degrees for development. More...
 
bool m_Sex
 Holds the sex of the egg. Female = fertilized = true. More...
 
int m_StageAge
 Holds the age when the stage was initiated. More...
 
double m_egg_pest_mortality
 Holds the mortality caused by pesticide. More...
 
- Protected Attributes inherited from Osmia_Base
TTypeOfOsmiaState m_CurrentOState
 Variable to record current behavioural state. More...
 
int m_Age
 A typical member variable - this one is the age in days. More...
 
Osmia_Population_Managerm_OurPopulationManager
 This is a time saving pointer to the correct population manager object. More...
 
TTypeOfOsmiaParasitoids m_ParasitoidStatus
 Holds the parasitoid status - only one is allowed. More...
 
Osmia_Nestm_OurNest
 
double m_Mass
 
int m_foragehours
 A variable to hold the number of available forage hours left in a day. 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...
 

Additional Inherited Members

- Static Public Member Functions inherited from Osmia_Base
static void SetParameterValues ()
 Used to populate the static members holding mortality and development parameters. More...
 
static void SetTemp (double a_temperature)
 
static void SetParasitoidManager (OsmiaParasitoid_Population_Manager *a_popman)
 
- 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...
 
- Static Protected Attributes inherited from Osmia_Base
static OsmiaParasitoid_Population_Managerm_OurParasitoidPopulationManager = NULL
 This is a time saving pointer to the parasitoid population manager object. More...
 
static double m_TempToday = -9999
 The temperature today. This is static because there is only one temperature today. More...
 
static int m_TempTodayInt = -9999
 The temperature today to the nearest degree. This is static because there is only one temperature today. This is mostly for use in temperature indexed arrays (if used) More...
 
static double m_DailyDevelopmentMortEggs = 0
 This holds the daily mortality for eggs. More...
 
static double m_DailyDevelopmentMortLarvae = 0
 This holds the daily mortality for larvae. More...
 
static double m_DailyDevelopmentMortPrepupae = 0
 This holds the daily mortality for pre-pupae. More...
 
static double m_DailyDevelopmentMortPupae = 0
 This holds the daily mortality for pupae. More...
 
static double m_OsmiaEggDevelTotalDD = 0
 Is the number of day degrees needed for egg development to hatch. More...
 
static double m_OsmiaEggDevelThreshold = 0
 Is temperature developmental threshold for egg development. More...
 
static double m_OsmiaLarvaDevelTotalDD = 0
 Is the number of day degrees needed for larval hatch above the developmental threshold for larvae. More...
 
static double m_OsmiaLarvaDevelThreshold = 0
 Is temperature developmental threshold for larval development. More...
 
static double m_OsmiaPupaDevelTotalDD = 0
 Is the number of day degrees needed for pupal hatch above the developmental threshold for pupae. More...
 
static double m_OsmiaPupaDevelThreshold = 0
 Is temperature developmental threshold for pupal development. More...
 
static double m_OsmiaPrepupalDevelTotalDays = 0
 Number of days for prepupal development. More...
 
static double m_OsmiaPrepupalDevelTotalDays10pct = 0
 10% of the number of days for prepupal development - just for speed More...
 
static double m_OsmiaInCocoonOverwinteringTempThreshold = 0
 holds the value for the InCocoon overwintering temperature threshold More...
 
static double m_OsmiaInCocoonEmergenceTempThreshold = 0
 holds the value for the InCocoon emergence temperature threshold More...
 
static double m_OsmiaInCocoonPrewinteringTempThreshold = 0
 holds the value for the InCocoon prewintering temperature threshold More...
 
static double m_OsmiaInCocoonWinterMortConst = 0.0
 holds the constant term value for the InCocoon winter mortality calculation More...
 
static double m_OsmiaInCocoonWinterMortSlope = 0.0
 holds the coefficient value for the InCocoon winter mortality calculation More...
 
static double m_OsmiaInCocoonEmergCountConst = 0.0
 holds the constant term value for the InCocoon emergence counter calculation More...
 
static double m_OsmiaInCocoonEmergCountSlope = 0.0
 holds the coefficient value for the InCocoon emergence counter calculation More...
 
static double m_OsmiaFemaleMassFromProvMassConst = 0.0
 holds the constant term value for the female mass calculation from provision mass More...
 
static double m_OsmiaFemaleMassFromProvMassSlope = 0.0
 holds the coefficient value for the female mass calculation from provision mass More...
 
static double m_MaleMinTargetProvisionMass = 0.0
 The minimum target provisioning for a male cell. More...
 
static double m_MaleMaxTargetProvisionMass = 0.0
 The maximum target provisioning for a male cell. More...
 
static double m_FemaleMinTargetProvisionMass = 0.0
 The minimum target provisioning for a female cell. More...
 
static double m_FemaleMaxTargetProvisionMass = 0.0
 The maximum target provisioning for a female cell. More...
 
static double m_FemaleMaxMass = 0.0
 The maximum female mass. More...
 
static double m_FemaleMinMass = 0.0
 The minimum female mass. More...
 
static double m_MaleMaxMass = 0.0
 The minimum Male mass. More...
 
static double m_PollenScoreToMg = 0.0
 The conversion rate from pollen availability score to mg pollen provisioned per day. More...
 
static double m_DensityDependentPollenRemovalConst = 0.0
 A parameter to link linear reduction in pollen availability to Osmia numbers per 1km2. More...
 
static double m_MinimumCellConstructionTime = 0.0
 The shortest possible construction time for a cell - normally 1 day. More...
 
static double m_MaximumCellConstructionTime = 0.0
 The longest possible construction time for a cell. More...
 
static int m_TotalNestsPossible = 0
 The maximum number of nests possible for a bee. More...
 
static double m_BombylidProbability = 0.0
 holds the probability of bombylid fly parasitism if open nest parasitoid More...
 
static double m_ParasitismProbToTimeCellOpen = 0.0
 holds the ratio of open cell parasitism to time cell is open More...
 
static vector< double > m_ParasitoidAttackChance = {}
 Holds the probability per capita of parasitoid attack for a subpopulation sized cell. More...
 
static double m_OsmiaFemaleR50distance = 0.0
 holds the value for the female typical homing distance More...
 
static double m_OsmiaFemaleR90distance = 0.0
 holds the value for the female max homing distance More...
 
static int m_OsmiaFemalePrenesting = 0
 holds the value for the duration of prenesting More...
 
static int m_OsmiaFemaleLifespan = 0
 holds the value for max female lifespan More...
 
static probability_distribution m_generalmovementdistances = probability_distribution(cfg_OsmiaGeneralMovementProbType.value(), cfg_OsmiaGenerallMovementProbArgs.value())
 Static instance of the probability_distribution class of distance probablilties for nest searching and foraging. More...
 
static probability_distribution m_dispersalmovementdistances = probability_distribution(cfg_OsmiaDispersalMovementProbType.value(), cfg_OsmiaDispersalMovementProbArgs.value())
 Static instance of the probability_distribution class of distance probablilties for dispersal. More...
 
static probability_distribution m_eggspernestdistribution = probability_distribution(cfg_OsmiaEggsPerNestProbType.value(), cfg_OsmiaEggsPerNestProbArgs.value())
 Static instance of the probability_distribution class of distance probablilties for numbers of eggs per nest. More...
 
static probability_distribution m_exp_ZeroToOne = probability_distribution("BETA", "1.0, 5.0")
 Static instance of the probability_distribution class of distance probablilties for approx exponential probs zero to 1.0. More...
 
static double m_CocoonToProvisionMass = 0.0
 The ratio of cocoon to provision mass. More...
 
static double m_ProvisionToCocoonMass = 0.0
 The ratio of provison to cocoon mass. More...
 
static double m_TotalProvisioningMassLoss = 0.0
 The total provision mass loss expected first cocoon to last. More...
 
static double m_TotalProvisioningMassLossRange = 0.0
 The variability around the expected total mass loss. More...
 
static double m_TotalProvisioningMassLossRangeX2 = 0.0
 Twice the variability around the expected total mass loss. More...
 
static bool m_UsingMechanisticParasitoids = false
 Flag for switching between ways of calculating parasitism. More...
 
static double m_OsmiaFemaleBckMort = 0.0
 Holds the parameter for unspecified female daily mortality. More...
 
static int m_OsmiaFemaleMinEggsPerNest = 0
 Holds the parameter for minimum planned eggs per nest. More...
 
static int m_OsmiaFindNestAttemptNo = 0
 Holds the parameter for number of find nest tries. More...
 
static int m_OsmiaFemaleMaxEggsPerNest = 0
 Holds the parameter for maximum planned eggs per nest. More...
 
static probability_distribution m_emergenceday = probability_distribution(cfg_OsmiaEmergenceProbType.value(), cfg_OsmiaEmergenceProbArgs.value())
 Static instance of the probability_distribution class of emergence day. 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

◆ Osmia_Egg()

Osmia_Egg::Osmia_Egg ( struct_Osmia data)

Osmia_Egg constructor.

275  : Osmia_Base(data)
276 {
277  ReInit(data);
278  m_AgeDegrees = 0;
279  m_Sex = data->sex;
280  m_OurNest = data->nest;
281  m_StageAge = data->age;
282  #ifdef __OSMIA_PESTICIDE
283  if(data->pest_mortality > 0) m_egg_pest_mortality = data->pest_mortality;
284  #endif
285 }

References struct_Osmia::age, m_AgeDegrees, m_egg_pest_mortality, Osmia_Base::m_OurNest, m_Sex, m_StageAge, struct_Osmia::nest, struct_Osmia::pest_mortality, ReInit(), and struct_Osmia::sex.

◆ ~Osmia_Egg()

Osmia_Egg::~Osmia_Egg ( void  )
virtual

Osmia_Egg destructor.

270 {
271  ;
272 }

Member Function Documentation

◆ DailyMortality()

virtual bool Osmia_Egg::DailyMortality ( )
inlineprotectedvirtual

Daily mortality test for eggs.

Reimplemented in Osmia_Pupa, Osmia_Prepupa, and Osmia_Larva.

424 { if (g_rand_uni_fnc() < m_DailyDevelopmentMortEggs) return true; else return false; }

References g_rand_uni_fnc(), and Osmia_Base::m_DailyDevelopmentMortEggs.

Referenced by st_Develop().

◆ GetAgeDegrees()

double Osmia_Egg::GetAgeDegrees ( )
inline

A typical interface function - this one returns the agedegrees.

415 { return m_AgeDegrees; }

References m_AgeDegrees.

◆ ReInit()

void Osmia_Egg::ReInit ( struct_Osmia data)
virtual

Osmia_Egg ReInit for object pool.

Reimplemented in Osmia_Female, Osmia_InCocoon, Osmia_Pupa, Osmia_Prepupa, and Osmia_Larva.

288  {
289  Osmia_Base::ReInit(data);
290  m_AgeDegrees = 0;
291  m_Sex = data->sex;
292  m_OurNest = data->nest;
293  m_StageAge = data->age;
294  #ifdef __OSMIA_PESTICIDE
295  //mark an egg as death because of pesticide
296  if(data->pest_mortality > 0) m_egg_pest_mortality = data->pest_mortality;
297  #endif
298 }

References struct_Osmia::age, m_AgeDegrees, m_egg_pest_mortality, Osmia_Base::m_OurNest, m_Sex, m_StageAge, struct_Osmia::nest, struct_Osmia::pest_mortality, Osmia_Base::ReInit(), and struct_Osmia::sex.

Referenced by Osmia_Egg(), and Osmia_Larva::ReInit().

◆ SetAgeDegrees()

void Osmia_Egg::SetAgeDegrees ( unsigned  a_agedegrees)
inline

A typical interface function - this one returns the agedegrees.

417 { m_AgeDegrees = a_agedegrees; }

References m_AgeDegrees.

◆ st_Develop()

TTypeOfOsmiaState Osmia_Egg::st_Develop ( void  )
protectedvirtual

Behavioural state development.

Reimplemented in Osmia_Female, Osmia_InCocoon, Osmia_Pupa, Osmia_Prepupa, and Osmia_Larva.

331 {
332  /*
333  * Development is preceded by a mortality test, then a day degree calculation is made to determine the development that occured in the last 24 hours.
334  * When enough day degrees are achieved the egg hatches.If it does not hatch then the development behaviour is queued up for the next day.
335  */
336  if (!m_OurNest->GetIsOpen()){
337  if (DailyMortality()) return toOsmias_Die;
338  //killed by pesticide
339  #ifdef __OSMIA_PESTICIDE
342  return toOsmias_Die;
343  }
344  else{
345  m_egg_pest_mortality = 0; //only die ones, otherwise set it to 0
346  }
347  }
348 
349  #endif
350  }
351  m_Age++;
353  if (DD > 0) m_AgeDegrees += DD;
355  return toOsmias_Develop;
356 }

References cfg_OsmiaEggThresholdBasedPesticideResponse, DailyMortality(), g_rand_uni_fnc(), Osmia_Nest::GetIsOpen(), Osmia_Base::m_Age, m_AgeDegrees, m_egg_pest_mortality, Osmia_Base::m_OsmiaEggDevelThreshold, Osmia_Base::m_OsmiaEggDevelTotalDD, Osmia_Base::m_OurNest, Osmia_Base::m_TempToday, toOsmias_Develop, toOsmias_Die, toOsmias_NextStage, and CfgBool::value().

Referenced by Step().

◆ st_Hatch()

TTypeOfOsmiaState Osmia_Egg::st_Hatch ( void  )
protectedvirtual

Behavioural state hatch.

Creates a new larva object and passes the data from the egg to it, then signals egg object removal.

360 {
364  struct_Osmia sO;
366  sO.L = m_OurLandscape;
367  sO.age = m_Age;
368  sO.x = m_Location_x;
369  sO.y = m_Location_y;
370  sO.nest = m_OurNest;
372  sO.mass = m_Mass;
373  sO.sex = m_Sex;
375  #ifdef __OSMIATESTING
376  m_OurPopulationManager->RecordEggLength(m_Age - m_StageAge);
377  #endif
378  KillThis(); // sets current state to -1 and StepDone to true;
379  return toOsmias_Emerged; // This is just to have a return value, it is not used
380 }

References struct_Osmia::age, Osmia_Population_Manager::CreateObjects(), TAnimal::KillThis(), struct_Osmia::L, Osmia_Base::m_Age, TAnimal::m_Location_x, TAnimal::m_Location_y, Osmia_Base::m_Mass, TAnimal::m_OurLandscape, Osmia_Base::m_OurNest, Osmia_Base::m_OurPopulationManager, Osmia_Base::m_ParasitoidStatus, m_Sex, m_StageAge, struct_Osmia::mass, struct_Osmia::nest, struct_Osmia::OPM, struct_Osmia::parasitised, struct_Osmia::sex, to_OsmiaLarva, toOsmias_Emerged, struct_Osmia::x, and struct_Osmia::y.

Referenced by Step().

◆ Step()

void Osmia_Egg::Step ( void  )
virtual

The Step is the second 'part' of the timestep that an animal can behave in. It is called continuously until all animals report that they are 'DONE'.

Osmia egg behaviour is simple. It calls develop until the egg hatches or dies.

Reimplemented from Osmia_Base.

Reimplemented in Osmia_Female, Osmia_InCocoon, Osmia_Pupa, Osmia_Prepupa, and Osmia_Larva.

302 {
306  if (m_StepDone || m_CurrentStateNo == -1) return;
307  switch (m_CurrentOState)
308  {
309  case toOsmias_InitialState: // Initial state always starts with develop
311  break;
312  case toOsmias_Develop:
314  m_StepDone = true;
315  break;
316  case toOsmias_NextStage:
318  break;
319  case toOsmias_Die:
320  st_Dying(); // No return value - no behaviour after this
321  m_StepDone = true;
322  break;
323  default:
324  m_OurLandscape->Warn("Osmia_Egg::Step()", "unknown state - default");
325  std::exit(TOP_Osmia);
326  }
327 }

References Osmia_Base::m_CurrentOState, TALMaSSObject::m_CurrentStateNo, TAnimal::m_OurLandscape, TALMaSSObject::m_StepDone, st_Develop(), Osmia_Base::st_Dying(), st_Hatch(), toOsmias_Develop, toOsmias_Die, toOsmias_InitialState, toOsmias_NextStage, TOP_Osmia, and Landscape::Warn().

Member Data Documentation

◆ m_AgeDegrees

◆ m_egg_pest_mortality

double Osmia_Egg::m_egg_pest_mortality
protected

Holds the mortality caused by pesticide.

Referenced by Osmia_Egg(), ReInit(), and st_Develop().

◆ m_Sex

bool Osmia_Egg::m_Sex
protected

◆ m_StageAge

int Osmia_Egg::m_StageAge
protected

The documentation for this class was generated from the following files:
g_rand_uni_fnc
double g_rand_uni_fnc()
Definition: ALMaSS_Random.cpp:56
TAnimal::KillThis
virtual void KillThis()
Sets all parameters ready for object destruction.
Definition: PopulationManager.h:263
Osmia_Base::m_Mass
double m_Mass
Definition: Osmia.h:340
cfg_OsmiaEggThresholdBasedPesticideResponse
CfgBool cfg_OsmiaEggThresholdBasedPesticideResponse("OSMIA_EGG_THRESHOLD_BASED_PESTICIDE_RESPONSE", CFG_CUSTOM, true)
The flag to use threshold based pesticide response for eggs.
struct_Osmia::y
int y
y-coord
Definition: Osmia_Population_Manager.h:167
TOP_Osmia
Definition: PopulationManager.h:69
struct_Osmia
Used for creation of a new Osmia object.
Definition: Osmia_Population_Manager.h:161
Osmia_Base::st_Dying
virtual void st_Dying(void)
Behavioural state dying.
Definition: Osmia.cpp:258
struct_Osmia::pest_mortality
double pest_mortality
The state tof the Osmia, this is used to set a dead egg because of pesticide.
Definition: Osmia_Population_Manager.h:183
struct_Osmia::L
Landscape * L
Landscape pointer.
Definition: Osmia_Population_Manager.h:173
Osmia_Egg::m_egg_pest_mortality
double m_egg_pest_mortality
Holds the mortality caused by pesticide.
Definition: Osmia.h:404
toOsmias_Die
Definition: Osmia.h:75
Osmia_Base::m_TempToday
static double m_TempToday
The temperature today. This is static because there is only one temperature today.
Definition: Osmia.h:222
Osmia_Egg::st_Develop
virtual TTypeOfOsmiaState st_Develop(void)
Behavioural state development.
Definition: Osmia.cpp:330
Osmia_Base::ReInit
void ReInit(struct_Osmia *data)
Osmia reinitialise object methods.
Definition: Osmia.cpp:198
struct_Osmia::sex
bool sex
the sex of the Osmia
Definition: Osmia_Population_Manager.h:171
struct_Osmia::age
int age
age
Definition: Osmia_Population_Manager.h:169
Osmia_Base::m_OsmiaEggDevelTotalDD
static double m_OsmiaEggDevelTotalDD
Is the number of day degrees needed for egg development to hatch.
Definition: Osmia.h:234
CfgBool::value
bool value() const
Definition: Configurator.h:164
Osmia_Egg::m_Sex
bool m_Sex
Holds the sex of the egg. Female = fertilized = true.
Definition: Osmia.h:400
Osmia_Egg::st_Hatch
virtual TTypeOfOsmiaState st_Hatch(void)
Behavioural state hatch.
Definition: Osmia.cpp:359
Osmia_Base::m_CurrentOState
TTypeOfOsmiaState m_CurrentOState
Variable to record current behavioural state.
Definition: Osmia.h:214
Osmia_Egg::DailyMortality
virtual bool DailyMortality()
Daily mortality test for eggs.
Definition: Osmia.h:424
TAnimal::m_Location_y
int m_Location_y
The objects ALMaSS y coordinate.
Definition: PopulationManager.h:366
Osmia_Base::m_OurPopulationManager
Osmia_Population_Manager * m_OurPopulationManager
This is a time saving pointer to the correct population manager object.
Definition: Osmia.h:218
Osmia_Nest::GetIsOpen
bool GetIsOpen()
Tells us whether the nest is finished for additions = false or can be added too = true.
Definition: Osmia.h:195
struct_Osmia::x
int x
x-coord
Definition: Osmia_Population_Manager.h:165
TAnimal::m_OurLandscape
static Landscape * m_OurLandscape
A pointer to the landscape object shared with all TAnimal objects.
Definition: PopulationManager.h:342
TALMaSSObject::m_StepDone
bool m_StepDone
Indicates whether the iterative step code is done for this timestep.
Definition: PopulationManager.h:133
Osmia_Base::m_OurNest
Osmia_Nest * m_OurNest
Definition: Osmia.h:338
TTypeOfOsmiaLifeStages::to_OsmiaLarva
Osmia_Egg::m_AgeDegrees
double m_AgeDegrees
This contains the age in degrees for development.
Definition: Osmia.h:398
struct_Osmia::mass
double mass
The mass of the Osmia in mg.
Definition: Osmia_Population_Manager.h:181
toOsmias_NextStage
Definition: Osmia.h:70
Osmia_Base::m_ParasitoidStatus
TTypeOfOsmiaParasitoids m_ParasitoidStatus
Holds the parasitoid status - only one is allowed.
Definition: Osmia.h:336
struct_Osmia::nest
Osmia_Nest * nest
a pointer to a nest
Definition: Osmia_Population_Manager.h:177
Osmia_Base::Osmia_Base
Osmia_Base(struct_Osmia *data)
Osmia constructor.
Definition: Osmia.cpp:185
struct_Osmia::parasitised
TTypeOfOsmiaParasitoids parasitised
Are we parasitised.
Definition: Osmia_Population_Manager.h:179
Osmia_Base::m_Age
int m_Age
A typical member variable - this one is the age in days.
Definition: Osmia.h:216
Osmia_Base::m_OsmiaEggDevelThreshold
static double m_OsmiaEggDevelThreshold
Is temperature developmental threshold for egg development.
Definition: Osmia.h:236
Osmia_Egg::m_StageAge
int m_StageAge
Holds the age when the stage was initiated.
Definition: Osmia.h:402
toOsmias_InitialState
Definition: Osmia.h:68
toOsmias_Develop
Definition: Osmia.h:69
TALMaSSObject::m_CurrentStateNo
int m_CurrentStateNo
The basic state number for all objects - '-1' indicates death.
Definition: PopulationManager.h:131
Osmia_Population_Manager::CreateObjects
void CreateObjects(TTypeOfOsmiaLifeStages ob_type, TAnimal *pvo, struct_Osmia *data, int number)
Method for creating a new individual Osmia.
Definition: Osmia_Population_Manager.cpp:492
struct_Osmia::OPM
Osmia_Population_Manager * OPM
Osmia_Population_Manager pointer.
Definition: Osmia_Population_Manager.h:175
Landscape::Warn
void Warn(std::string a_msg1, std::string a_msg2)
Wrapper for the g_msg Warn function.
Definition: Landscape.h:2250
Osmia_Base::m_DailyDevelopmentMortEggs
static double m_DailyDevelopmentMortEggs
This holds the daily mortality for eggs.
Definition: Osmia.h:226
TAnimal::m_Location_x
int m_Location_x
The objects ALMaSS x coordinate.
Definition: PopulationManager.h:362
toOsmias_Emerged
Definition: Osmia.h:74
Osmia_Egg::ReInit
virtual void ReInit(struct_Osmia *data)
Osmia_Egg ReInit for object pool.
Definition: Osmia.cpp:288