ALMaSS Skylark ODDox
1.1
The skylark model description following ODdox protocol
|
#include <skylarks_all.h>
Public Member Functions | |
Skylark_Nestling (int x, int y, Skylark_Male *Daddy, Landscape *L, SkTerritories *Terrs, Skylark_Population_Manager *SPM, int bx, int by, int mh) | |
virtual void | ReInit (int x, int y, Skylark_Male *Daddy, Landscape *L, SkTerritories *Terrs, Skylark_Population_Manager *SPM, int bx, int by, int mh) |
virtual void | BeginStep (void) |
BeingStep behaviour - must be implemented in descendent classes. More... | |
virtual void | Step (void) |
Step behaviour - must be implemented in descendent classes. More... | |
virtual void | EndStep (void) |
EndStep behaviour - must be implemented in descendent classes. More... | |
virtual double | On_FoodSupply (double food) |
void | OnDadDead () |
void | OnYouHaveBeenEaten () |
void | OnDeserted () |
![]() | |
Skylark_Base (int x, int y, SkTerritories *Terrs, Landscape *L, Skylark_Population_Manager *SPM, int bx, int by, int mh) | |
virtual void | ReInit (int x, int y, SkTerritories *Terrs, Landscape *L, Skylark_Population_Manager *SPM, int bx, int by, int mh) |
void | AddStriglingMort (int lifestage) |
virtual int | WhatState () |
bool | InSquare (rectangle R) |
![]() | |
unsigned | SupplyFarmOwnerRef () |
AnimalPosition | SupplyPosition () |
APoint | SupplyPoint () |
int | SupplyPolygonRef () |
int | Supply_m_Location_x () |
int | Supply_m_Location_y () |
virtual void | KillThis () |
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 void | Dying () |
void | CheckManagement (void) |
void | CheckManagementXY (int x, int y) |
![]() | |
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 | |
virtual int | st_Developing () |
virtual void | st_Maturing () |
virtual void | st_Dying () |
virtual bool | OnFarmEvent (FarmToDo event) |
virtual void | PesticideResponse (void) |
![]() | |
bool | DailyMortality (int mort) |
![]() | |
void | CorrectWrapRound () |
Corrects wrap around co-ordinate problems. More... | |
Protected Attributes | |
bool | Sex |
int | m_EM_fail |
int | m_NestLeavingChance |
Skylark_Male * | m_Dad |
double | m_EM |
double | m_GrNeed |
![]() | |
int | m_Location_x |
int | m_Location_y |
Landscape * | m_OurLandscape |
![]() | |
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 | |
![]() | |
double | m_pesticide_accumulation |
double | m_pcide_conc |
TTypesOfSkState | m_CurrentSkState |
int | Age |
double | m_Size |
int | m_Born_x |
int | m_Born_y |
int | m_MyHome |
The vegetation type where the skylark was born. More... | |
SkTerritories * | m_OurTerritories |
Skylark_Population_Manager * | m_OurPopulationManager |
Skylark_Nestling::Skylark_Nestling | ( | int | x, |
int | y, | ||
Skylark_Male * | Daddy, | ||
Landscape * | L, | ||
SkTerritories * | Terrs, | ||
Skylark_Population_Manager * | SPM, | ||
int | bx, | ||
int | by, | ||
int | mh | ||
) |
References Skylark_Base::Age, cfg_NestLeavingChance, cfg_PEmax, m_Dad, m_EM, m_EM_fail, m_GrNeed, m_NestLeavingChance, Skylark_Base::m_Size, MeanHatchingWeight, and Sex.
|
virtual |
BeingStep behaviour - must be implemented in descendent classes.
Reimplemented from TAnimal.
Reimplemented in Skylark_PreFledgeling.
References TAnimal::CheckManagement(), and TALMaSSObject::m_CurrentStateNo.
|
virtual |
EndStep behaviour - must be implemented in descendent classes.
Reimplemented from TAnimal.
Reimplemented in Skylark_PreFledgeling.
References g_land, Skylark_Base::m_CurrentSkState, TALMaSSObject::m_CurrentStateNo, m_Dad, TALMaSSObject::m_StepDone, Skylark_Male::OnNestPredatation(), PesticideResponse(), st_Developing(), st_Dying(), st_Maturing(), toss_Destroy, toss_NDeveloping, toss_NDying, and Landscape::Warn().
|
virtual |
Reimplemented from Skylark_Base.
References Skylark_Base::Age, CE_nest, m_EM, m_GrNeed, and Skylark_Base::m_Size.
Referenced by Skylark_Male::OnFoodMessage(), and Skylark_Male::st_CaringForYoung().
void Skylark_Nestling::OnDadDead | ( | ) |
References m_Dad.
Referenced by Skylark_Male::OnMateDying(), Skylark_Male::OnMateLeaving(), Skylark_Male::st_Dying(), and Skylark_Male::st_ScaringOffChicks().
void Skylark_Nestling::OnDeserted | ( | ) |
|
protectedvirtual |
Reimplemented from TAnimal.
Reimplemented in Skylark_PreFledgeling.
References Skylark_Base::AddStriglingMort(), autumn_harrow, autumn_or_spring_plough, autumn_plough, autumn_roll, autumn_sow, burn_straw_stubble, cattle_out, cattle_out_low, cfg_insecticide_direct_mortN, cfg_strigling_nestling, cut_to_hay, cut_to_silage, cut_weeds, deep_ploughing, Landscape::EventtypeToString(), fa_ammoniumsulphate, fa_greenmanure, fa_manure, fa_npk, fa_pk, fa_sludge, fa_slurry, fp_greenmanure, fp_liquidNH3, fp_manganesesulphate, fp_manure, fp_npk, fp_npks, fp_pk, fp_sludge, fp_slurry, fungicide_treat, g_land, glyphosate, growth_regulator, harvest, hay_bailing, hay_turning, herbicide_treat, hilling_up, insecticide_treat, Skylark_Base::m_CurrentSkState, TAnimal::m_Location_x, TAnimal::m_Location_y, TAnimal::m_OurLandscape, molluscicide, mow, pigs_out, product_treat, row_cultivation, sleep_all_day, spring_harrow, spring_plough, spring_roll, spring_sow, straw_chopping, strigling, strigling_sow, stubble_harrowing, Landscape::SupplyGrazingPressure(), swathing, syninsecticide_treat, toss_NDying, trial_insecticidetreat, Landscape::Warn(), water, and winter_plough.
void Skylark_Nestling::OnYouHaveBeenEaten | ( | ) |
|
protectedvirtual |
Reimplemented from Skylark_Base.
Reimplemented in Skylark_PreFledgeling.
References cfg_Skylark_nestling_Biodegredation, cfg_Skylark_nestling_NOEL, Skylark_Base::m_CurrentSkState, Skylark_Base::m_pesticide_accumulation, Skylark_Base::m_Size, and toss_NDying.
Referenced by EndStep().
|
virtual |
References Skylark_Base::Age, cfg_NestLeavingChance, cfg_PEmax, m_Dad, m_EM, m_EM_fail, m_GrNeed, m_NestLeavingChance, Skylark_Base::m_Size, MeanHatchingWeight, Skylark_Base::ReInit(), and Sex.
Referenced by Skylark_PreFledgeling::ReInit().
|
protectedvirtual |
Reimplemented in Skylark_PreFledgeling.
References Skylark_Base::Age, cfg_PEmax, Skylark_Base::DailyMortality(), EM_nest_T, m_EM, m_GrNeed, m_NestLeavingChance, TAnimal::m_OurLandscape, Skylark_Base::m_OurPopulationManager, Skylark_Base::m_Size, NestLeavingWeight, NestlingMortProb, Landscape::SupplyDayInYear(), Landscape::SupplyTemp(), and Skylark_Population_Manager::WriteSKPOM2().
Referenced by EndStep().
|
protectedvirtual |
Reimplemented in Skylark_PreFledgeling.
References Skylark_Base::m_CurrentSkState, TALMaSSObject::m_CurrentStateNo, m_Dad, Skylark_Male::OnNestlingDeath(), and toss_Destroy.
Referenced by EndStep().
|
protectedvirtual |
Reimplemented in Skylark_PreFledgeling.
References PreFledgeling_struct::age, Skylark_Base::Age, Skylark_struct::bx, Skylark_struct::by, Skylark_Population_Manager::CreateObjects(), PreFledgeling_struct::Dad, Skylark_struct::L, Skylark_Base::m_Born_x, Skylark_Base::m_Born_y, m_Dad, TAnimal::m_Location_x, TAnimal::m_Location_y, Skylark_Base::m_MyHome, TAnimal::m_OurLandscape, Skylark_Base::m_OurPopulationManager, Skylark_Base::m_OurTerritories, Skylark_Base::m_Size, Skylark_struct::mh, PreFledgeling_struct::sex, Sex, PreFledgeling_struct::size, Skylark_struct::Terrs, Skylark_struct::x, and Skylark_struct::y.
Referenced by EndStep().
|
virtual |
Step behaviour - must be implemented in descendent classes.
Reimplemented from TAnimal.
Reimplemented in Skylark_PreFledgeling.
References g_land, Skylark_Base::m_CurrentSkState, TALMaSSObject::m_StepDone, toss_Destroy, toss_Initiation, toss_NDeveloping, toss_NDying, and Landscape::Warn().
|
protected |
|
protected |
|
protected |
Referenced by ReInit(), and Skylark_Nestling().
|
protected |
|
protected |
Referenced by ReInit(), Skylark_Nestling(), and st_Developing().
|
protected |