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
Ladybird_Pupae Class Referencefinal

#include <Ladybird_All.h>

Inheritance diagram for Ladybird_Pupae:
Ladybird_Base Beetle_Pupae Beetle_Base Beetle_Base TAnimal TAnimal TALMaSSObject TALMaSSObject

Public Member Functions

 Ladybird_Pupae (int a_x, int a_y, Landscape *a_l_ptr, Ladybird_Population_Manager *a_bpm_ptr)
 Constructor method. More...
 
void ReInit (int a_x, int a_y, Landscape *a_l_ptr, Ladybird_Population_Manager *a_bpm_ptr)
 Constructor method. More...
 
TTypesOfBeetleState St_Emerge () override
 The method that removes the pupa and substitutes it by adult (called in the end of development) More...
 
void BeginStep () override
 The standard method that is run before the Step() method. More...
 
double calcDailyMortChance (int a_temp2, const double a_lengthOfStageAtTemp) override
 calculates the length of the pupal stage depending on the temperature More...
 
TTypesOfBeetleState St_Develop () override
 Pupal state development. More...
 
- Public Member Functions inherited from Ladybird_Base
 Ladybird_Base (Ladybird_Population_Manager *a_lpm_ptr)
 Class constructor. More...
 
 ~Ladybird_Base () override=default
 
- Public Member Functions inherited from Beetle_Base
 Beetle_Base (int a_x, int a_y, Landscape *a_l_ptr, Beetle_Population_Manager *a_bpm_ptr)
 Beetle_Base Constructor. More...
 
virtual void SetState (const TTypesOfBeetleState a_state)
 Used to force a beetle state (e.g. at start of the simulation) More...
 
virtual void StDie ()
 Common state Die. More...
 
void CopyMyself (int a_beetle)
 For experimental purposes. More...
 
virtual bool GetDensityDependentMortality ()
 The density dependent mortality calculation (cannibalism) defaults to none. More...
 
void KillAndRemoveFromMap ()
 Kills the beetle - this version forces the beetle to re-enter the Step code and call st_Dying. More...
 
void IncDensity (int a_x, int a_y, int a_lifestage)
 The method inreases the number of beetles in this specific location by one. Used when called by a beetle of different lifestage than the one incremented. More...
 
void DecDensity (int a_x, int a_y)
 The method decreases the number of beetles in this specific location by one. More...
 
void KillOneInMap (int a_x, int a_y, int a_lifestage)
 The method decreases the number of beetles in this specific location by one. More...
 
void IncDensity (const int a_x, const int a_y)
 The method inreases the number of beetles in this specific location by one. More...
 
void DecDensity (const int a_x, const int a_y, const int a_lifestage)
 The method decreases the number of beetles in this specific location by one. Used when called by a beetle of different lifestage than the one dying. More...
 
int GetDensity (int a_x, int a_y) const
 The method to return the number of beetles in this specific location. More...
 
int GetDensityRange (int a_x, int a_y, int a_range) const
 The method to return the number of beetles in this specific location with a range. More...
 
int GetDensityRangeEdge (int a_x, int a_y, int a_range) const
 The method to return the number of beetles in this specific location with a range. More...
 
virtual double GetDevelopmentConstants (const int a_i) const
 the method returns the larvae development constant to be used in day degrees calculation More...
 
int WhatState () override
 Return the beetle state as an integer. 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 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 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...
 
- Public Member Functions inherited from Beetle_Pupae
 Beetle_Pupae (int x, int y, Landscape *L, Beetle_Population_Manager *a_bpm_ptr)
 Pupae class constructor. More...
 
void ReInit (int a_x, int a_y, Landscape *a_l_ptr, Beetle_Population_Manager *a_bpm_ptr) override
 ReInit for object pool. More...
 
void Step () override
 Pupae Step code. More...
 
void EndStep () override
 Pupae EndStep code. More...
 
double GetStriglingMortality () const override
 Mortality by Strigling: similar for all forms– should use base class method. More...
 
double GetSoilCultivationMortality () const override
 the method overrides the method that returns the mortality due to soil cultivation More...
 
double GetInsecticideApplication () const override
 the method overrides the method that returns the mortality due to insecticide application More...
 
double GetHarvestMortality () const override
 the method overrides the method that returns the mortality due to harvest More...
 
void InternalPesticideHandlingAndResponse () override
 Handle pesticide events code for the beetle. More...
 

Additional Inherited Members

- Static Public Member Functions inherited from Ladybird_Base
static void SetLadybirdStagesNutritionalValue (const vector< int > &a_list)
 Sets the list of aphid equivalents of each ladybird stage. More...
 
- Static Public Member Functions inherited from Beetle_Base
static int GetDensityStage (int a_x, int a_y, unsigned a_stage)
 The method to return the number of beetles in this specific location for a given stage. More...
 
static int GetDensityStages (int a_x, int a_y, int a_numberstageStart, int a_numberstangeEnd)
 The method to return the number of beetles in this specific location, summing multiple stages. More...
 
static int GetDensityRangeStages (int a_x, int a_y, int a_range, int a_numberstageStart, int a_numberstangeEnd)
 The method to return the number of beetles in this specific location with a range, summing multiple stages. More...
 
static void SetDevelopmentConstants (const std::vector< double > &a_value)
 Set the day degree constant. More...
 
static void SetTodaysTempCategory (int a_category)
 Set the soil temperature category used for calculatiung mortality steps. More...
 
static void SetMoveDistribution (const string &a_type_str, const string &a_args_str)
 Set the movement distribution. More...
 
static void SetBeetleSuitableForHibernation (const TTovList &a_list)
 Set the list of tovs that are suitable for hibernation. More...
 
static void SetBeetleReproductionLandscape (const TToleList &a_list)
 Set the list of toles that the beetles are allowed to reproduce upon. More...
 
static void SetBeetleHalfReproductionLandscape (const TToleList &a_list)
 Set the list of toles that the beetles are allowed to reproduce upon, but that yield half of normal fertility (bembidion) More...
 
static void SetDipsersalDayDegrees (const int a_value)
 
static void SetMaxShortRangeAttempts (const int a_value)
 
static void SetDDepRange (const int a_value)
 Set density-dependent range parameter. More...
 
static void SizeBeetleMap (const int a_value)
 Size the lifestage map. More...
 
static void SetBeetleMap (const int a_value, SimplePositionMapInt *a_map_ptr)
 Set lifestage map. More...
 
static int ChooseDirection (const double(&a_probabilities)[8])
 The function that draws the random number and checks in which interval in the probabilities vector are we This would be the direction the beetle will take. More...
 
- 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 Public Member Functions inherited from Beetle_Pupae
static void SetDailyPupaeMort (const double a_value)
 Set the daily fixed mortality probability. More...
 
static void SetPupaMaxAge (const int a_value)
 Set the max age. More...
 
static void SetPupalPPPElimRate (const double a_rate)
 
static void SetPPPPThreshold (const double a_thresh)
 
static void SetPPPPEffectProb (const double a_conc)
 
static void SetPPPPEffectProbDecay (const double a_decay)
 
static void SetPupa_SoilCultivationMortality (const double a_value)
 Set Pupal soil mortality parameter. More...
 
static void SetPupa_InsecticideApplication (const double a_value)
 Set Pupal insecticide mortality parameter. More...
 
static void SetPupa_StriglingMort (const double a_value)
 Set mechanical weeding mortality parameter. More...
 
static void SetPupa_HarvestMort (const double a_value)
 Set harvest mortality parameter. More...
 
- Static Public Attributes inherited from Beetle_Base
static vector< SimplePositionMapInt * > m_BeetleMaps = {}
 A list of pointers to the specific map for a beetle lifestage. More...
 
- Protected Member Functions inherited from Ladybird_Base
void EatToday (const int a_add)
 Adds to the counter of eaten aphids. More...
 
virtual int GetEatenToday () const
 return the value of daily aphid consumption counter More...
 
virtual void SetEatenToday (int a)
 set the value of the counter of eaten aphids More...
 
int GetAphidsToEat ()
 return how many aphids are left to be eaten More...
 
virtual int GetAphidsAppetite ()
 The function returns the aphids appetite (virtual function stub: to be overridden) More...
 
virtual void ResetAphidsAppetite ()
 reset the appetite to zero More...
 
virtual int EatAphids (int a_x, int a_y, int a_appetite)
 the method that is responsible for aphid foraging behaviour (removes the aphids from the aphid model) More...
 
int Cannibalise (int a_appetite)
 Perform the cannibalisation behaviour from the perspective of a cannibal : receives the appetite to fulfill, returns how much is left to be eaten after an attempt to cannibalise. More...
 
virtual void CalcAphidsAppetite ()
 Calculates the appetite of aphids based on the age (Arshad et al, 2017) More...
 
bool CanMove ()
 returns true if the beetle can still move today More...
 
int GetMaxDailyDistance ()
 
- Protected Member Functions inherited from Beetle_Base
virtual void Init (Beetle_Population_Manager *a_bpm_ptr)
 Init for a beetle object. More...
 
bool OnFarmEvent (FarmToDo event) override
 the farming event mortality. This is the function that is used for all the beetles. It calls methods that are re-defined by object and by method. More...
 
virtual bool CheckManagementBeetle ()
 
virtual double TempRelatedMortality ()
 Basic movement for beetle. More...
 
virtual int GetDDepthRange () const
 range at which density dependent mortality is applied - base class does not override, but others might need to More...
 
void Beetle_1M_Move (int a_dist)
 The function that calculates the cumulative probability for the movement direction. It calls the movement factor method and processes ints result to adjust "p" (by reference) More...
 
virtual bool IsLocationAllowed (int x, int y)
 
virtual double GetShortRangeDistance () const
 returns the length of the short range hop
More...
 
virtual double MovementFactor (int x, int y, int x1, int y1)
 function that calculates the factor that is taken into account when considering the movement of the individual More...
 
virtual bool DailyMortality ()
 Checks daily mortality returns true on death, default, no death. More...
 
- Protected Member Functions inherited from TAnimal
void CorrectWrapRound ()
 Corrects wrap around co-ordinate problems. More...
 
- Protected Member Functions inherited from Beetle_Pupae
int CalcLengthOfStageAtTemp (int a_temp2) const
 calculates the length of the pupal stage depending on the temperature More...
 
double GetDailyMortalityRate () const override
 returns daily background mortality rate More...
 
- Static Protected Member Functions inherited from Ladybird_Base
static int GetTempMortRange (double a_temp)
 returns the mortality range that corresponds to the temperature More...
 
- Protected Attributes inherited from Ladybird_Base
int m_EatenToday { 0 }
 number of aphids or aphid equivalents eaten today More...
 
int m_WantToEatToday { 0 }
 number of ladybird larvae younger than this to eat in EndStep More...
 
int m_AphidsAppetite { 0 }
 the today's appetite More...
 
int m_MoveCounter { 0 }
 the counter of the steps made today More...
 
Ladybird_Population_Managerm_OurPopulationLadybird { nullptr }
 pointer to the population manager More...
 
- Protected Attributes inherited from Beetle_Base
TTypesOfBeetleState m_CurrentBState { tobs_Initiation }
 Current behavioural state. More...
 
Beetle_Population_Managerm_OurPopulation { nullptr }
 Pointer to the population manager. More...
 
double m_BodyBurden { -1.0 }
 Current body burden of pesticide. More...
 
double m_CurrentPppEffectProb { -1.0 }
 Current effect probability. More...
 
unsigned m_Lifestage { 0 }
 This is a useful parameter holding the beetle type (this includes larval stages) 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...
 
- Protected Attributes inherited from Beetle_Pupae
double m_AgeDegrees
 Record pupal day degrees. More...
 
int m_DayMade
 
- Static Protected Attributes inherited from Ladybird_Base
static vector< int > m_LadybirdStagesNutritionalValue = {}
 Holds the aphid equivalents of each ladybird stage. More...
 
- Static Protected Attributes inherited from Beetle_Base
static vector< double > m_DevelopmentConstants = {}
 Day degree constant, the target to reach before next stage. More...
 
static std::unique_ptr< probability_distributionm_Move_distribution = nullptr
 Probabilty of adult movement by distance to be defined by the probability type and parameters. More...
 
static TTovList m_BeetleSuitableForHibernation = {tov_Undefined}
 the list of tovs that are suitable for hibernation More...
 
static TToleList m_BeetleReproductionLandscape = {tole_Foobar}
 the list of toles that the beetles are allowed to reproduce upon More...
 
static TToleList m_BeetleHalfReproductionLandscape = {tole_Foobar}
 the list of toles that the beetles are allowed to reproduce upon, but that yield half of normal fertility (bembidion) More...
 
static int m_DipsersalDayDegrees = 8
 
static int m_DDepRange = 3
 The depth of the surrounding cells for density dependence calculations in adults. More...
 
static int m_MaxShortRangeAttempts = 1
 The number of tries allowed to find a short range legal move. More...
 
static int m_TodaysTempCategory = 0
 Set the soiltemperature category used for calculatiung mortality steps. 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...
 
- Static Protected Attributes inherited from Beetle_Pupae
static double m_DailyPupaeMort = 0.001
 Daily fixed mortality probability. More...
 
static double m_Pupa_StriglingMort = 0
 the mortality due to strigling More...
 
static double m_Pupa_HarvestMort = 0
 the mortality due to harvest More...
 
static double m_BeetlePupalPPPElimRate = 0
 the daily elimination rate for pesticides More...
 
static double m_BeetlePPPPThreshold = 0
 PPP effects threshold. More...
 
static double m_BeetlePPPPEffectProb = 0
 Effect probability on threshold excedence. More...
 
static double m_BeetlePPPPEffectProbDecay = 0
 Effect probability on threshold excedence. More...
 
static double m_Pupa_SoilCultivationMortality = 0
 The Pupal soil mortality parameter. More...
 
static double m_Pupa_InsecticideApplication = 0
 The pupal insecticide mortality parameter. More...
 
static int m_Pupa_MaxAge = 365
 The pupal maximum age, to prevent long survival in cold. More...
 

Constructor & Destructor Documentation

◆ Ladybird_Pupae()

Ladybird_Pupae::Ladybird_Pupae ( int  a_x,
int  a_y,
Landscape a_l_ptr,
Ladybird_Population_Manager a_bpm_ptr 
)

Constructor method.

475  : Beetle_Base(a_x, a_y, a_l_ptr, static_cast<Beetle_Population_Manager*>(a_bpm_ptr)), Ladybird_Base(a_bpm_ptr),
476  Beetle_Pupae(a_x, a_y, a_l_ptr, a_bpm_ptr) {
478 
479 }

References lobs_Pupa, and Beetle_Base::m_Lifestage.

Member Function Documentation

◆ BeginStep()

void Ladybird_Pupae::BeginStep ( void  )
overridevirtual

The standard method that is run before the Step() method.

Reimplemented from Beetle_Pupae.

505  {
508  return;
509  }
510  CheckManagement();
511 }

References cfg_LadybirdMaxPupalLength, TAnimal::CheckManagement(), Beetle_Base::KillAndRemoveFromMap(), TAnimal::m_AgeDays, and CfgInt::value().

◆ calcDailyMortChance()

double Ladybird_Pupae::calcDailyMortChance ( int  a_temp2,
const double  a_lengthOfStageAtTemp 
)
overridevirtual

calculates the length of the pupal stage depending on the temperature

Reimplemented from Beetle_Pupae.

498  {
499  double mortalitychance{ 0.0 };
500  const int t = GetTempMortRange(m_TemperatureToday);
501  mortalitychance += cfg_LadybirdPupaTMortality.value(t);
502  return mortalitychance;
503 }

References cfg_LadybirdPupaTMortality, Ladybird_Base::GetTempMortRange(), TAnimal::m_TemperatureToday, and CfgArray_Double::value().

Referenced by St_Develop().

◆ ReInit()

void Ladybird_Pupae::ReInit ( int  a_x,
int  a_y,
Landscape a_l_ptr,
Ladybird_Population_Manager a_bpm_ptr 
)

Constructor method.

481  {
482  Beetle_Pupae::ReInit(a_x, a_y, a_l_ptr, a_bpm_ptr);
483  m_OurPopulationLadybird = a_bpm_ptr;
485 }

References lobs_Pupa, Beetle_Base::m_Lifestage, Ladybird_Base::m_OurPopulationLadybird, and Beetle_Pupae::ReInit().

◆ St_Develop()

TTypesOfBeetleState Ladybird_Pupae::St_Develop ( )
overridevirtual

Pupal state development.

/brief This is a general develop function that makes use of functions that calculate daily mortality rates and length of the Pupa stage as a function of temperature.

Reimplemented from Beetle_Pupae.

513  {
514  const int temp2 = static_cast<int>(floor((m_OurLandscape->SupplyTemp() - m_OurPopulation->SupplyDevelConst1(m_Lifestage)) + 0.5));
515  /*
516  * We call the function that calculates daily mortality chance, it takes into account background mortality
517  */
518  const double DailyMortChance = calcDailyMortChance(temp2, CalcLengthOfStageAtTemp(temp2));
519  // take a mortality test (temperature related mortality + daily background mortality)
520  if (g_rand_uni_fnc() < DailyMortChance + m_DailyPupaeMort) return tobs_BDying;
521  // Still alive so now do the development bit
523  return tobs_Developing; // carry on developing
524 }

References calcDailyMortChance(), Beetle_Pupae::CalcLengthOfStageAtTemp(), g_rand_uni_fnc(), Beetle_Pupae::m_DailyPupaeMort, Beetle_Pupae::m_DayMade, Beetle_Base::m_DevelopmentConstants, Beetle_Base::m_Lifestage, TAnimal::m_OurLandscape, Beetle_Base::m_OurPopulation, Beetle_Population_Manager::SupplyDayDegs(), Beetle_Population_Manager::SupplyDevelConst1(), Landscape::SupplyTemp(), tobs_BDying, tobs_Developing, and tobs_Emerging.

◆ St_Emerge()

TTypesOfBeetleState Ladybird_Pupae::St_Emerge ( )
overridevirtual

The method that removes the pupa and substitutes it by adult (called in the end of development)

Reimplemented from Beetle_Pupae.

489 {
491  DecDensity(m_Location_x, m_Location_y);// removing from map will add to map in CreateObjects
492  // We only make female adults so 50% chance.
493  if (g_rand_uni_fnc()<0.5) m_OurPopulationLadybird->CreateObjects(lobs_Adult, this, nullptr, &bs, 1);
494  m_CurrentStateNo = -1; //Destroys object
495  return tobs_Destroy;
496 }

References Ladybird_Population_Manager::CreateObjects(), Beetle_Base::DecDensity(), g_rand_uni_fnc(), lobs_Adult, TALMaSSObject::m_CurrentStateNo, TAnimal::m_Location_x, TAnimal::m_Location_y, TAnimal::m_OurLandscape, Beetle_Base::m_OurPopulation, Ladybird_Base::m_OurPopulationLadybird, and tobs_Destroy.


The documentation for this class was generated from the following files:
lobs_Pupa
Definition: Ladybird_All.h:70
g_rand_uni_fnc
double g_rand_uni_fnc()
Definition: ALMaSS_Random.cpp:56
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
Ladybird_Base::GetTempMortRange
static int GetTempMortRange(double a_temp)
returns the mortality range that corresponds to the temperature
Definition: Ladybird_All.cpp:288
Ladybird_Population_Manager::CreateObjects
void CreateObjects(int a_ob_type, TAnimal *a_pvo, void *, Struct_Beetle *a_data, int a_number) override
Method to add beetles to the population - it must be overridden in all descendent classes.
Definition: Ladybird_All.cpp:1129
Ladybird_Base::m_OurPopulationLadybird
Ladybird_Population_Manager * m_OurPopulationLadybird
pointer to the population manager
Definition: Ladybird_All.h:97
Beetle_Base::m_Lifestage
unsigned m_Lifestage
This is a useful parameter holding the beetle type (this includes larval stages)
Definition: Beetle_BaseClasses.h:166
Beetle_Base::m_OurPopulation
Beetle_Population_Manager * m_OurPopulation
Pointer to the population manager.
Definition: Beetle_BaseClasses.h:160
TAnimal::m_Location_y
int m_Location_y
The objects ALMaSS y coordinate.
Definition: PopulationManager.h:366
Beetle_Pupae::CalcLengthOfStageAtTemp
int CalcLengthOfStageAtTemp(int a_temp2) const
calculates the length of the pupal stage depending on the temperature
Definition: Beetle_BaseClasses.cpp:790
TAnimal::m_OurLandscape
static Landscape * m_OurLandscape
A pointer to the landscape object shared with all TAnimal objects.
Definition: PopulationManager.h:342
TAnimal::CheckManagement
void CheckManagement()
Used to start a check for any management related effects at the objects current location.
Definition: PopulationManager.cpp:1591
TAnimal::m_AgeDays
int m_AgeDays
To hold the age in days.
Definition: PopulationManager.h:378
Beetle_Pupae::Beetle_Pupae
Beetle_Pupae(int x, int y, Landscape *L, Beetle_Population_Manager *a_bpm_ptr)
Pupae class constructor.
Definition: Beetle_BaseClasses.cpp:774
CfgInt::value
int value() const
Definition: Configurator.h:116
Beetle_Base::Beetle_Base
Beetle_Base(int a_x, int a_y, Landscape *a_l_ptr, Beetle_Population_Manager *a_bpm_ptr)
Beetle_Base Constructor.
Definition: Beetle_BaseClasses.cpp:291
CfgArray_Double::value
std::vector< double > value() const
Definition: Configurator.h:219
Beetle_Base::m_DevelopmentConstants
static vector< double > m_DevelopmentConstants
Day degree constant, the target to reach before next stage.
Definition: Beetle_BaseClasses.h:168
tobs_Developing
Definition: Beetle_BaseClasses.h:61
tobs_Destroy
Definition: Beetle_BaseClasses.h:74
Struct_Beetle
A data class for Beetle data.
Definition: Beetle_BaseClasses.h:125
TAnimal::m_TemperatureToday
static double m_TemperatureToday
A holder for the temperature today shared with all TAnimal objects.
Definition: PopulationManager.h:354
tobs_Emerging
Definition: Beetle_BaseClasses.h:66
Ladybird_Base::Ladybird_Base
Ladybird_Base(Ladybird_Population_Manager *a_lpm_ptr)
Class constructor.
Definition: Ladybird_All.cpp:236
cfg_LadybirdPupaTMortality
static CfgArray_Double cfg_LadybirdPupaTMortality("LADYBIRD_PUPAL_TMORTALITY", CFG_CUSTOM, 10, vector< double >{ 0.0959, 0.0569, 0.0313, 0.0191, 0.0203, 0.0349, 0.0629, 0.1043, 0.1591, 0.2273})
The temperature related mortality of Ladybird pupae.
Beetle_Pupae::m_DailyPupaeMort
static double m_DailyPupaeMort
Daily fixed mortality probability.
Definition: Beetle_BaseClasses.h:750
Beetle_Base::DecDensity
void DecDensity(int a_x, int a_y)
The method decreases the number of beetles in this specific location by one.
Definition: Beetle_BaseClasses.h:263
Ladybird_Pupae::calcDailyMortChance
double calcDailyMortChance(int a_temp2, const double a_lengthOfStageAtTemp) override
calculates the length of the pupal stage depending on the temperature
Definition: Ladybird_All.cpp:498
Beetle_Base::KillAndRemoveFromMap
void KillAndRemoveFromMap()
Kills the beetle - this version forces the beetle to re-enter the Step code and call st_Dying.
Definition: Beetle_BaseClasses.cpp:438
TALMaSSObject::m_CurrentStateNo
int m_CurrentStateNo
The basic state number for all objects - '-1' indicates death.
Definition: PopulationManager.h:131
tobs_BDying
Definition: Beetle_BaseClasses.h:73
lobs_Adult
Definition: Ladybird_All.h:71
Beetle_Pupae::ReInit
void ReInit(int a_x, int a_y, Landscape *a_l_ptr, Beetle_Population_Manager *a_bpm_ptr) override
ReInit for object pool.
Definition: Beetle_BaseClasses.cpp:781
cfg_LadybirdMaxPupalLength
static CfgInt cfg_LadybirdMaxPupalLength("LADYBIRD_MAXPUPALLENGTH", CFG_CUSTOM, 30)
TAnimal::m_Location_x
int m_Location_x
The objects ALMaSS x coordinate.
Definition: PopulationManager.h:362
Beetle_Pupae::m_DayMade
int m_DayMade
Definition: Beetle_BaseClasses.h:747
Beetle_Population_Manager::SupplyDevelConst1
double SupplyDevelConst1(unsigned a_index) const
Definition: Beetle_BaseClasses.h:1028
Beetle_Population_Manager::SupplyDayDegs
virtual double SupplyDayDegs(const unsigned a_stage, const int a_day)
Get the day degress experienced this year for a specific day created and instar/stage.
Definition: Beetle_BaseClasses.h:1030