ALMaSS Bembidion ODdox
1.1
The bembidion model description following ODdox protocol
|
The class describing the beetle pupae objects. More...
#include <bembidion_all.h>
Public Member Functions | |
Bembidion_Pupae (int x, int y, Landscape *L, Bembidion_Population_Manager *BPM) | |
Pupae class constructor. More... | |
void | ReInit (int x, int y, Landscape *L, Bembidion_Population_Manager *BPM) |
ReInit for object pool. More... | |
virtual void | BeginStep () |
Pupae BeginStep code. More... | |
virtual void | Step () |
Pupae Step code. More... | |
virtual void | KillThis () |
Kill this pupa. More... | |
Public Member Functions inherited from Bembidion_Base | |
Bembidion_Base (int x, int y, Landscape *L, Bembidion_Population_Manager *BPM) | |
Constructor. More... | |
void | ReInit (int x, int y, Landscape *L, Bembidion_Population_Manager *BPM) |
ReInit for object pool. More... | |
virtual void | EndStep () |
EndStep - empty. More... | |
virtual void | st_Die () |
Common state Die. More... | |
void | CopyMyself (int a_beetle) |
For experimental purposes. More... | |
void | CopyMyselfB (int a_beetle) |
For experimental purposes. More... | |
Public Member Functions inherited from TAnimal | |
unsigned | SupplyFarmOwnerRef () |
AnimalPosition | SupplyPosition () |
APoint | SupplyPoint () |
int | SupplyPolygonRef () |
int | Supply_m_Location_x () |
int | Supply_m_Location_y () |
virtual void | CopyMyself () |
void | SetX (int a_x) |
void | SetY (int a_y) |
TAnimal (int x, int y, Landscape *L) | |
virtual void | ReinitialiseObject (int x, int y, Landscape *L) |
Used to re-use an object - must be implemented in descendent classes. More... | |
virtual int | WhatState () |
virtual void | Dying () |
void | CheckManagement (void) |
void | CheckManagementXY (int x, int y) |
Public Member Functions inherited from TALMaSSObject | |
int | GetCurrentStateNo () |
Returns the current state number. More... | |
void | SetCurrentStateNo (int a_num) |
Sets the current state number. More... | |
bool | GetStepDone () |
Returns the step done indicator flag. More... | |
void | SetStepDone (bool a_bool) |
Sets the step done indicator flag. More... | |
virtual void | ReinitialiseObject () |
Used to re-use an object - must be implemented in descendent classes. More... | |
TALMaSSObject () | |
The constructor for TALMaSSObject. More... | |
virtual | ~TALMaSSObject () |
The destructor for TALMaSSObject. More... | |
void | OnArrayBoundsError () |
Used for debugging only, tests basic object properties. More... | |
Protected Member Functions | |
int | st_Develop () |
Pupal state development. More... | |
void | st_Emerge () |
Pupal state emergence. More... | |
virtual bool | DailyMortality () |
Pupae non-temperature or density related mortality. More... | |
virtual bool | OnFarmEvent (FarmToDo event) |
Pupal reactions to management events. More... | |
Protected Member Functions inherited from TAnimal | |
void | CorrectWrapRound () |
Corrects wrap around co-ordinate problems. More... | |
Protected Attributes | |
double | m_AgeDegrees |
Record pupal day degrees. More... | |
int | m_DayMade |
Protected Attributes inherited from TAnimal | |
int | m_Location_x |
int | m_Location_y |
Landscape * | m_OurLandscape |
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 | |
Public Attributes inherited from Bembidion_Base | |
TTypesOfBeetleState | CurrentBState |
Current behavioural state. More... | |
Bembidion_Population_Manager * | m_OurPopulation |
Pointer to the population manager. More... | |
The class describing the beetle pupae objects.
Definition at line 255 of file bembidion_all.h.
Bembidion_Pupae::Bembidion_Pupae | ( | int | x, |
int | y, | ||
Landscape * | L, | ||
Bembidion_Population_Manager * | BPM | ||
) |
Pupae class constructor.
Definition at line 1020 of file Bembidion_all.cpp.
References m_AgeDegrees, m_DayMade, and Landscape::SupplyDayInYear().
|
virtual |
Pupae BeginStep code.
Reimplemented from Bembidion_Base.
Definition at line 1304 of file Bembidion_all.cpp.
References TAnimal::CheckManagement(), Bembidion_Base::CurrentBState, DailyMortality(), and tobs_PDying.
|
protectedvirtual |
Pupae non-temperature or density related mortality.
Definition at line 1352 of file Bembidion_all.cpp.
References DailyPupaeMort, and g_rand_uni.
Referenced by BeginStep().
|
virtual |
Kill this pupa.
Reimplemented from TAnimal.
Definition at line 1297 of file Bembidion_all.cpp.
References Bembidion_Base::CurrentBState, and tobs_PDying.
|
protectedvirtual |
Pupal reactions to management events.
Reimplemented from TAnimal.
Definition at line 1035 of file Bembidion_all.cpp.
References autumn_harrow, autumn_or_spring_plough, autumn_plough, autumn_roll, autumn_sow, bed_forming, biocide, bulb_harvest, burn_straw_stubble, cattle_out, cattle_out_low, cfg_PesticideTrialPupaeTreatmentMort, cfg_Pupa_InsecticideApplication, cfg_Pupa_SoilCultivationMortality, Bembidion_Base::CurrentBState, cut_to_hay, cut_to_silage, cut_weeds, deep_ploughing, fa_ammoniumsulphate, fa_calcium, fa_greenmanure, fa_manganesesulphate, fa_manure, fa_npk, fa_npks, fa_pk, fa_rsm, fa_sludge, fa_slurry, flammebehandling, flower_cutting, fp_ammoniumsulphate, fp_calcium, fp_greenmanure, fp_liquidNH3, fp_manganesesulphate, fp_manure, fp_npk, fp_npks, fp_pk, fp_rsm, fp_sludge, fp_slurry, fungicide_treat, g_msg, g_rand_uni, glyphosate, growth_regulator, harvest, hay_bailing, hay_turning, heavy_cultivator_aggregate, herbicide_treat, hilling_up, insecticide_treat, TAnimal::m_OurLandscape, molluscicide, mow, PesticideTrialPupaeToxicMort, pigs_out, preseeding_cultivator, preseeding_cultivator_sow, product_treat, row_cultivation, shallow_harrow, sleep_all_day, spring_harrow, spring_plough, spring_roll, spring_sow, spring_sow_with_ferti, straw_chopping, straw_covering, straw_removal, strigling, strigling_hill, strigling_sow, stubble_cultivator_heavy, stubble_harrowing, stubble_plough, swathing, syninsecticide_treat, tobs_PDying, trial_control, trial_insecticidetreat, trial_toxiccontrol, CfgInt::value(), CfgFloat::value(), MapErrorMsg::Warn(), Landscape::Warn(), WARN_BUG, water, and winter_plough.
void Bembidion_Pupae::ReInit | ( | int | x, |
int | y, | ||
Landscape * | L, | ||
Bembidion_Population_Manager * | BPM | ||
) |
ReInit for object pool.
Definition at line 1028 of file Bembidion_all.cpp.
References m_AgeDegrees, m_DayMade, Bembidion_Base::ReInit(), and Landscape::SupplyDayInYear().
|
protected |
Pupal state development.
Definition at line 1235 of file Bembidion_all.cpp.
References g_SpeedyDivides, m_AgeDegrees, m_DayMade, TAnimal::m_OurLandscape, Bembidion_Base::m_OurPopulation, PupaDevelConst2, Bembidion_Population_Manager::SupplyPDayDeg(), and Landscape::SupplyTemp().
Referenced by Step().
|
protected |
Pupal state emergence.
Definition at line 1281 of file Bembidion_all.cpp.
References struct_Bembidion::BPM, Bembidion_Population_Manager::CreateObjects(), struct_Bembidion::L, TAnimal::m_Location_x, TAnimal::m_Location_y, TAnimal::m_OurLandscape, Bembidion_Base::m_OurPopulation, struct_Bembidion::x, and struct_Bembidion::y.
Referenced by Step().
|
virtual |
Pupae Step code.
Reimplemented from Bembidion_Base.
Definition at line 1312 of file Bembidion_all.cpp.
References Bembidion_Base::CurrentBState, TALMaSSObject::m_CurrentStateNo, TAnimal::m_OurLandscape, TALMaSSObject::m_StepDone, st_Develop(), Bembidion_Base::st_Die(), st_Emerge(), tobs_Destroy, tobs_Emerging, tobs_PDeveloping, tobs_PDying, and Landscape::Warn().
|
protected |
Record pupal day degrees.
Definition at line 281 of file bembidion_all.h.
Referenced by Bembidion_Pupae(), ReInit(), and st_Develop().
|
protected |
Records the day hatched for development calculations
Definition at line 283 of file bembidion_all.h.
Referenced by Bembidion_Pupae(), ReInit(), and st_Develop().