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

#include <Osmia.h>

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

Public Member Functions

 Osmia_Pupa (struct_Osmia *data)
 Osmia_Pupa constructor. More...
 
virtual void ReInit (struct_Osmia *data)
 Osmia_Pupa ReInit for object pool. More...
 
virtual ~Osmia_Pupa ()
 
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...
 
- Public Member Functions inherited from Osmia_Prepupa
 Osmia_Prepupa (struct_Osmia *data)
 Osmia_Prepupa constructor. More...
 
virtual ~Osmia_Prepupa ()
 
- Public Member Functions inherited from Osmia_Larva
 Osmia_Larva (struct_Osmia *data)
 Osmia_Larva constructor. More...
 
virtual ~Osmia_Larva ()
 
- Public Member Functions inherited from Osmia_Egg
 Osmia_Egg (struct_Osmia *data)
 Osmia_Egg constructor. More...
 
virtual ~Osmia_Egg ()
 Osmia_Egg destructor. 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_Emerge (void)
 Behavioural state for emerging from the pupa. More...
 
virtual bool DailyMortality ()
 Daily mortality test for pupae. More...
 
- Protected Member Functions inherited from Osmia_Prepupa
virtual TTypeOfOsmiaState st_Pupate (void)
 Behavioural state for emerging from the pupa. More...
 
- Protected Member Functions inherited from Osmia_Larva
virtual TTypeOfOsmiaState st_Prepupate (void)
 Behavioural state pupate. More...
 
- Protected Member Functions inherited from Osmia_Egg
virtual TTypeOfOsmiaState st_Hatch (void)
 Behavioural state hatch. More...
 
- Protected Member Functions inherited from TAnimal
void CorrectWrapRound ()
 Corrects wrap around co-ordinate problems. 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...
 
- Protected Attributes inherited from Osmia_Prepupa
double m_myOsmiaPrepupaDevelTotalDays
 
- Protected Attributes inherited from Osmia_Egg
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...
 
- 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_Pupa()

Osmia_Pupa::Osmia_Pupa ( struct_Osmia data)

Osmia_Pupa constructor.

582  : Osmia_Prepupa(data)
583 {
584  ReInit(data);
585 }

References ReInit().

◆ ~Osmia_Pupa()

Osmia_Pupa::~Osmia_Pupa ( void  )
virtual
577 {
578  ;
579 }

Member Function Documentation

◆ DailyMortality()

virtual bool Osmia_Pupa::DailyMortality ( )
inlineprotectedvirtual

Daily mortality test for pupae.

Reimplemented from Osmia_Prepupa.

484 { if (g_rand_uni_fnc() < m_DailyDevelopmentMortPupae) return true; else return false; }

References g_rand_uni_fnc(), and Osmia_Base::m_DailyDevelopmentMortPupae.

Referenced by st_Develop().

◆ ReInit()

void Osmia_Pupa::ReInit ( struct_Osmia data)
virtual

Osmia_Pupa ReInit for object pool.

Reimplemented from Osmia_Prepupa.

Reimplemented in Osmia_Female, and Osmia_InCocoon.

571 {
572  Osmia_Prepupa::ReInit(data);
573 }

References Osmia_Prepupa::ReInit().

Referenced by Osmia_Pupa(), and Osmia_InCocoon::ReInit().

◆ st_Develop()

TTypeOfOsmiaState Osmia_Pupa::st_Develop ( void  )
protectedvirtual

Behavioural state development.

Reimplemented from Osmia_Prepupa.

Reimplemented in Osmia_Female, and Osmia_InCocoon.

618 {
619  if (DailyMortality()) return toOsmias_Die;
620  m_Age++;
622  if (DD > 0) m_AgeDegrees += DD;
624  {
625  return toOsmias_NextStage;
626  }
627  return toOsmias_Develop;
628 }

References DailyMortality(), Osmia_Base::m_Age, Osmia_Egg::m_AgeDegrees, Osmia_Base::m_OsmiaPupaDevelThreshold, Osmia_Base::m_OsmiaPupaDevelTotalDD, TAnimal::m_OurLandscape, Landscape::SupplyTemp(), toOsmias_Develop, toOsmias_Die, and toOsmias_NextStage.

Referenced by Step().

◆ st_Emerge()

TTypeOfOsmiaState Osmia_Pupa::st_Emerge ( void  )
protectedvirtual

Behavioural state for emerging from the pupa.

Determines sex, and creates a new Osmia adult in cocoon object and passes the data from the pupa to it, then signals young object removal.

Reimplemented in Osmia_InCocoon.

632 {
636  struct_Osmia sO;
638  sO.L = m_OurLandscape;
639  sO.age = m_Age;
640  sO.x = m_Location_x;
641  sO.y = m_Location_y;
642  sO.nest = m_OurNest;
644  sO.mass = m_Mass;
645  sO.sex = m_Sex;
647  #ifdef __OSMIATESTING
648  m_OurPopulationManager->RecordPupaLength(m_Age - m_StageAge);
649  #endif
650  KillThis(); // sets current state to -1 and StepDone to true;
651  return toOsmias_Emerged; // This is just to have a return value, it is not used
652 }

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, Osmia_Egg::m_Sex, Osmia_Egg::m_StageAge, struct_Osmia::mass, struct_Osmia::nest, struct_Osmia::OPM, struct_Osmia::parasitised, struct_Osmia::sex, to_OsmiaInCocoon, toOsmias_Emerged, struct_Osmia::x, and struct_Osmia::y.

Referenced by Step().

◆ Step()

void Osmia_Pupa::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 pupa behaviour is simple. It calls develop until the pupa emerges or dies.

Reimplemented from Osmia_Prepupa.

Reimplemented in Osmia_Female, and Osmia_InCocoon.

589 {
593  if (m_StepDone || m_CurrentStateNo == -1) return;
594  switch (m_CurrentOState)
595  {
596  case toOsmias_InitialState: // Initial state always starts with develop
598  break;
599  case toOsmias_Develop:
601  m_StepDone = true;
602  break;
603  case toOsmias_NextStage:
604  m_CurrentOState = st_Emerge(); // Will cause the pupa object to be replaced with an adult in cocoon
605  break;
606  case toOsmias_Die:
607  st_Dying(); // No return value - no behaviour after this
608  m_StepDone = true;
609  break;
610  default:
611  m_OurLandscape->Warn("Osmia_Pupa::Step()", "unknown state - default");
612  std::exit(TOP_Osmia);
613  }
614 }

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


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_Pupa::st_Emerge
virtual TTypeOfOsmiaState st_Emerge(void)
Behavioural state for emerging from the pupa.
Definition: Osmia.cpp:631
Landscape::SupplyTemp
double SupplyTemp(void)
Passes a request on to the associated Weather class function, the temperature for the current day.
Definition: Landscape.h:1993
Osmia_Base::m_Mass
double m_Mass
Definition: Osmia.h:340
struct_Osmia::y
int y
y-coord
Definition: Osmia_Population_Manager.h:167
Osmia_Pupa::ReInit
virtual void ReInit(struct_Osmia *data)
Osmia_Pupa ReInit for object pool.
Definition: Osmia.cpp:570
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::L
Landscape * L
Landscape pointer.
Definition: Osmia_Population_Manager.h:173
toOsmias_Die
Definition: Osmia.h:75
Osmia_Pupa::st_Develop
virtual TTypeOfOsmiaState st_Develop(void)
Behavioural state development.
Definition: Osmia.cpp:617
struct_Osmia::sex
bool sex
the sex of the Osmia
Definition: Osmia_Population_Manager.h:171
Osmia_Base::m_OsmiaPupaDevelTotalDD
static double m_OsmiaPupaDevelTotalDD
Is the number of day degrees needed for pupal hatch above the developmental threshold for pupae.
Definition: Osmia.h:242
struct_Osmia::age
int age
age
Definition: Osmia_Population_Manager.h:169
Osmia_Egg::m_Sex
bool m_Sex
Holds the sex of the egg. Female = fertilized = true.
Definition: Osmia.h:400
Osmia_Base::m_CurrentOState
TTypeOfOsmiaState m_CurrentOState
Variable to record current behavioural state.
Definition: Osmia.h:214
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
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
Osmia_Pupa::DailyMortality
virtual bool DailyMortality()
Daily mortality test for pupae.
Definition: Osmia.h:484
TALMaSSObject::m_StepDone
bool m_StepDone
Indicates whether the iterative step code is done for this timestep.
Definition: PopulationManager.h:133
Osmia_Base::m_DailyDevelopmentMortPupae
static double m_DailyDevelopmentMortPupae
This holds the daily mortality for pupae.
Definition: Osmia.h:232
Osmia_Prepupa::Osmia_Prepupa
Osmia_Prepupa(struct_Osmia *data)
Osmia_Prepupa constructor.
Definition: Osmia.cpp:488
Osmia_Base::m_OurNest
Osmia_Nest * m_OurNest
Definition: Osmia.h:338
Osmia_Egg::m_AgeDegrees
double m_AgeDegrees
This contains the age in degrees for development.
Definition: Osmia.h:398
Osmia_Base::m_OsmiaPupaDevelThreshold
static double m_OsmiaPupaDevelThreshold
Is temperature developmental threshold for pupal development.
Definition: Osmia.h:244
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
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_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
Osmia_Prepupa::ReInit
virtual void ReInit(struct_Osmia *data)
Osmia_Prepupa ReInit for object pool.
Definition: Osmia.cpp:476
TTypeOfOsmiaLifeStages::to_OsmiaInCocoon
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
TAnimal::m_Location_x
int m_Location_x
The objects ALMaSS x coordinate.
Definition: PopulationManager.h:362
toOsmias_Emerged
Definition: Osmia.h:74