|
ALMaSS Bembidion ODdox
1.1
The bembidion model description following ODdox protocol
|
The class describing the base class for beetle objects objects. More...
#include <bembidion_all.h>
Public Member Functions | |
| 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 | BeginStep () |
| BeginStep - empty. More... | |
| virtual void | Step () |
| Step - empty. 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 | 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 int | WhatState () |
| virtual void | Dying () |
| void | CheckManagement (void) |
| void | CheckManagementXY (int x, int y) |
| virtual bool | OnFarmEvent (FarmToDo) |
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... | |
Public Attributes | |
| TTypesOfBeetleState | CurrentBState |
| Current behavioural state. More... | |
| Bembidion_Population_Manager * | m_OurPopulation |
| Pointer to the population manager. More... | |
Additional Inherited Members | |
Protected Member Functions inherited from TAnimal | |
| void | CorrectWrapRound () |
| Corrects wrap around co-ordinate problems. More... | |
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... | |
The class describing the base class for beetle objects objects.
Definition at line 141 of file bembidion_all.h.
| Bembidion_Base::Bembidion_Base | ( | int | x, |
| int | y, | ||
| Landscape * | L, | ||
| Bembidion_Population_Manager * | BPM | ||
| ) |
Constructor.
Definition at line 205 of file Bembidion_all.cpp.
References CurrentBState, m_OurPopulation, and tobs_Initiation.
|
inlinevirtual |
BeginStep - empty.
Reimplemented from TAnimal.
Reimplemented in Bembidion_Adult, Bembidion_Pupae, Bembidion_Larvae, and Bembidion_Egg_List.
Definition at line 150 of file bembidion_all.h.
| void Bembidion_Base::CopyMyself | ( | int | a_beetle | ) |
For experimental purposes.
Used for experimental manipulation of the population. This method clones a beetle a_beetles times at the same location as the original.
Definition at line 240 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, m_OurPopulation, struct_Bembidion::x, and struct_Bembidion::y.
Referenced by Bembidion_Population_Manager::Catastrophe().
| void Bembidion_Base::CopyMyselfB | ( | int | a_beetle | ) |
For experimental purposes.
Used for experimental manipulation of the population. This method clones a beetle a_beetles times within +/- 32m of the individuals location using wrap around.
Definition at line 258 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, m_OurPopulation, Population_Manager::SimH, Population_Manager::SimW, struct_Bembidion::x, and struct_Bembidion::y.
|
inlinevirtual |
EndStep - empty.
Reimplemented from TAnimal.
Reimplemented in Bembidion_Adult.
Definition at line 154 of file bembidion_all.h.
| void Bembidion_Base::ReInit | ( | int | x, |
| int | y, | ||
| Landscape * | L, | ||
| Bembidion_Population_Manager * | BPM | ||
| ) |
ReInit for object pool.
Definition at line 213 of file Bembidion_all.cpp.
References CurrentBState, m_OurPopulation, TALMaSSObject::ReinitialiseObject(), and tobs_Initiation.
Referenced by Bembidion_Larvae::ReInit(), Bembidion_Pupae::ReInit(), and Bembidion_Adult::ReInit().
|
virtual |
Common state Die.
Do the housekeeping necessary to die as an object in the system.
Definition at line 224 of file Bembidion_all.cpp.
References CurrentBState, Population_Manager::LamdaDeath(), TALMaSSObject::m_CurrentStateNo, TAnimal::m_Location_x, TAnimal::m_Location_y, m_OurPopulation, TALMaSSObject::m_StepDone, and tobs_Destroy.
Referenced by Bembidion_Adult::EndStep(), Bembidion_Adult::InternalPesticideHandlingAndResponse(), Bembidion_Larvae::Step(), Bembidion_Pupae::Step(), and Bembidion_Adult::Step().
|
inlinevirtual |
Step - empty.
Reimplemented from TAnimal.
Reimplemented in Bembidion_Adult, Bembidion_Pupae, Bembidion_Larvae, and Bembidion_Egg_List.
Definition at line 152 of file bembidion_all.h.
| TTypesOfBeetleState Bembidion_Base::CurrentBState |
Current behavioural state.
Definition at line 159 of file bembidion_all.h.
Referenced by Bembidion_Larvae::BeginStep(), Bembidion_Pupae::BeginStep(), Bembidion_Adult::BeginStep(), Bembidion_Base(), Bembidion_Population_Manager::Catastrophe(), Bembidion_Larvae::KillThis(), Bembidion_Pupae::KillThis(), Bembidion_Larvae::OnFarmEvent(), Bembidion_Pupae::OnFarmEvent(), Bembidion_Adult::OnFarmEvent(), ReInit(), Bembidion_Adult::st_Aging(), st_Die(), Bembidion_Egg_List::Step(), Bembidion_Larvae::Step(), Bembidion_Pupae::Step(), and Bembidion_Adult::Step().
| Bembidion_Population_Manager* Bembidion_Base::m_OurPopulation |
Pointer to the population manager.
Definition at line 161 of file bembidion_all.h.
Referenced by Bembidion_Base(), Bembidion_Adult::CanReproduce(), CopyMyself(), CopyMyselfB(), Bembidion_Adult::DDepMort(), Bembidion_Adult::MoveTo(), Bembidion_Adult::MoveTo_quality_assess(), Bembidion_Adult::MoveToAggr(), ReInit(), Bembidion_Adult::Reproduce(), Bembidion_Egg_List::st_Develop(), Bembidion_Larvae::st_Develop(), Bembidion_Pupae::st_Develop(), st_Die(), Bembidion_Pupae::st_Emerge(), Bembidion_Egg_List::st_Hatch(), Bembidion_Larvae::st_Pupate(), Bembidion_Larvae::Step(), and Bembidion_Adult::Step().