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

#include <Osmia.h>

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

Public Member Functions

 Osmia_Prepupa (struct_Osmia *data)
 Osmia_Prepupa constructor. More...
 
virtual void ReInit (struct_Osmia *data)
 Osmia_Prepupa ReInit for object pool. More...
 
virtual ~Osmia_Prepupa ()
 
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_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_Pupate (void)
 Behavioural state for emerging from the pupa. More...
 
virtual bool DailyMortality ()
 Daily mortality test for prepupae. 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...
 

Protected Attributes

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...
 

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_Prepupa()

◆ ~Osmia_Prepupa()

Osmia_Prepupa::~Osmia_Prepupa ( void  )
virtual
483 {
484  ;
485 }

Member Function Documentation

◆ DailyMortality()

virtual bool Osmia_Prepupa::DailyMortality ( )
inlineprotectedvirtual

Daily mortality test for prepupae.

Reimplemented from Osmia_Larva.

Reimplemented in Osmia_Pupa.

463 { if (g_rand_uni_fnc() < m_DailyDevelopmentMortPrepupae) return true; else return false; }

References g_rand_uni_fnc(), and Osmia_Base::m_DailyDevelopmentMortPrepupae.

Referenced by st_Develop().

◆ ReInit()

void Osmia_Prepupa::ReInit ( struct_Osmia data)
virtual

Osmia_Prepupa ReInit for object pool.

Reimplemented from Osmia_Larva.

Reimplemented in Osmia_Female, Osmia_InCocoon, and Osmia_Pupa.

477 {
478  Osmia_Larva::ReInit(data);
479 }

References Osmia_Larva::ReInit().

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

◆ st_Develop()

TTypeOfOsmiaState Osmia_Prepupa::st_Develop ( void  )
protectedvirtual

Behavioural state development.

Development occurs if the prepupa does not die of non-specified causes. Temperature drives the basic development towards a target m_myOsmiaPrepupaDevelTotalDays. This has individual variation built in around a mean value.

Reimplemented from Osmia_Larva.

Reimplemented in Osmia_Female, Osmia_InCocoon, and Osmia_Pupa.

527 {
532  if (DailyMortality()) return toOsmias_Die;
533  // Get the temperature dependent development
534  m_Age++;
537  return toOsmias_Develop;
538 }

References DailyMortality(), Osmia_Population_Manager::GetPrePupalDevelDays(), Osmia_Base::m_Age, Osmia_Egg::m_AgeDegrees, m_myOsmiaPrepupaDevelTotalDays, Osmia_Base::m_OurPopulationManager, toOsmias_Develop, toOsmias_Die, and toOsmias_NextStage.

Referenced by Step().

◆ st_Pupate()

TTypeOfOsmiaState Osmia_Prepupa::st_Pupate ( void  )
protectedvirtual

Behavioural state for emerging from the pupa.

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

542 {
546  struct_Osmia sO;
548  sO.L = m_OurLandscape;
549  sO.age = m_Age;
550  sO.x = m_Location_x;
551  sO.y = m_Location_y;
552  sO.nest = m_OurNest;
553  sO.mass = m_Mass;
555  sO.sex = m_Sex;
557  #ifdef __OSMIATESTING
558  m_OurPopulationManager->RecordPrePupaLength(m_Age - m_StageAge);
559  #endif
560  KillThis(); // sets current state to -1 and StepDone to true;
561  return toOsmias_Emerged; // This is just to have a return value, it is not used
562 }

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_OsmiaPupa, toOsmias_Emerged, struct_Osmia::x, and struct_Osmia::y.

Referenced by Step().

◆ Step()

void Osmia_Prepupa::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 prepupa behaviour is simple. It calls develop until the prepupa pupates or dies.

Reimplemented from Osmia_Larva.

Reimplemented in Osmia_Female, Osmia_InCocoon, and Osmia_Pupa.

498 {
502  if (m_StepDone || m_CurrentStateNo == -1) return;
503  switch (m_CurrentOState)
504  {
505  case toOsmias_InitialState: // Initial state always starts with develop
507  break;
508  case toOsmias_Develop:
510  m_StepDone = true;
511  break;
512  case toOsmias_NextStage:
513  m_CurrentOState = st_Pupate(); // Will cause the pupa object to be replaced with an adult in cocoon
514  break;
515  case toOsmias_Die:
516  st_Dying(); // No return value - no behaviour after this
517  m_StepDone = true;
518  break;
519  default:
520  m_OurLandscape->Warn("Osmia_Prepupa::Step()", "unknown state - default");
521  std::exit(TOP_Osmia);
522  }
523 }

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

Member Data Documentation

◆ m_myOsmiaPrepupaDevelTotalDays

double Osmia_Prepupa::m_myOsmiaPrepupaDevelTotalDays
protected

/brief A target for day/temp related development

Referenced by Osmia_Prepupa(), and st_Develop().


The documentation for this class was generated from the following files:
Osmia_Larva::ReInit
virtual void ReInit(struct_Osmia *data)
Osmia_Larva ReInit for object pool.
Definition: Osmia.cpp:388
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_DailyDevelopmentMortPrepupae
static double m_DailyDevelopmentMortPrepupae
This holds the daily mortality for pre-pupae.
Definition: Osmia.h:230
Osmia_Population_Manager::GetPrePupalDevelDays
double GetPrePupalDevelDays()
Returns the amount of development a pre-pupal bee will get today based on temperature.
Definition: Osmia_Population_Manager.h:482
Osmia_Base::m_Mass
double m_Mass
Definition: Osmia.h:340
Osmia_Base::m_OsmiaPrepupalDevelTotalDays10pct
static double m_OsmiaPrepupalDevelTotalDays10pct
10% of the number of days for prepupal development - just for speed
Definition: Osmia.h:248
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
Osmia_Base::m_OsmiaPrepupalDevelTotalDays
static double m_OsmiaPrepupalDevelTotalDays
Number of days for prepupal development.
Definition: Osmia.h:246
struct_Osmia::L
Landscape * L
Landscape pointer.
Definition: Osmia_Population_Manager.h:173
toOsmias_Die
Definition: Osmia.h:75
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_Prepupa::st_Pupate
virtual TTypeOfOsmiaState st_Pupate(void)
Behavioural state for emerging from the pupa.
Definition: Osmia.cpp:541
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_Larva::Osmia_Larva
Osmia_Larva(struct_Osmia *data)
Osmia_Larva constructor.
Definition: Osmia.cpp:400
TTypeOfOsmiaLifeStages::to_OsmiaPupa
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
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_Prepupa::m_myOsmiaPrepupaDevelTotalDays
double m_myOsmiaPrepupaDevelTotalDays
Definition: Osmia.h:465
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
Osmia_Prepupa::DailyMortality
virtual bool DailyMortality()
Daily mortality test for prepupae.
Definition: Osmia.h:463
TALMaSSObject::m_CurrentStateNo
int m_CurrentStateNo
The basic state number for all objects - '-1' indicates death.
Definition: PopulationManager.h:131
Osmia_Prepupa::st_Develop
virtual TTypeOfOsmiaState st_Develop(void)
Behavioural state development.
Definition: Osmia.cpp:526
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