ALMaSS Hare ODDox
1.1
The hare model description following ODdox protocol
|
The base class for all ALMaSS animal classes. More...
#include <PopulationManager.h>
Public Member Functions | |
virtual void | BeginStep (void) |
BeingStep behaviour - must be implemented in descendent classes. More... | |
void | CheckManagement (void) |
void | CheckManagementXY (int x, int y) |
virtual void | CopyMyself () |
virtual void | Dying () |
virtual void | EndStep (void) |
EndStep behaviour - must be implemented in descendent classes. More... | |
virtual void | KillThis () |
virtual bool | OnFarmEvent (FarmToDo) |
virtual void | ReinitialiseObject (int x, int y, Landscape *L) |
Used to re-use an object - must be implemented in descendent classes. More... | |
void | SetX (int a_x) |
void | SetY (int a_y) |
virtual void | Step (void) |
Step behaviour - must be implemented in descendent classes. More... | |
int | Supply_m_Location_x () |
int | Supply_m_Location_y () |
unsigned | SupplyFarmOwnerRef () |
APoint | SupplyPoint () |
int | SupplyPolygonRef () |
AnimalPosition | SupplyPosition () |
TAnimal (int x, int y, Landscape *L) | |
virtual int | WhatState () |
Public Member Functions inherited from TALMaSSObject | |
int | GetCurrentStateNo () |
Returns the current state number. More... | |
bool | GetStepDone () |
Returns the step done indicator flag. More... | |
void | OnArrayBoundsError () |
Used for debugging only, tests basic object properties. More... | |
virtual void | ReinitialiseObject () |
Used to re-use an object - must be implemented in descendent classes. More... | |
void | SetCurrentStateNo (int a_num) |
Sets the current state number. More... | |
void | SetStepDone (bool a_bool) |
Sets the step done indicator flag. More... | |
TALMaSSObject () | |
The constructor for TALMaSSObject. More... | |
virtual | ~TALMaSSObject () |
The destructor for TALMaSSObject. More... | |
Protected Member Functions | |
void | CorrectWrapRound () |
Corrects wrap around co-ordinate problems. More... | |
Protected Attributes | |
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 base class for all ALMaSS animal classes.
Includes all the functionality required to be handled by classes derived from Population_Manager, hence a number of empty methods that MUST be reimplemented in descendent classes e.g. CopyMyself()
Definition at line 205 of file PopulationManager.h.
TAnimal::TAnimal | ( | int | x, |
int | y, | ||
Landscape * | L | ||
) |
TAnimal Constructor
Definition at line 1367 of file PopulationManager.cpp.
|
inlinevirtual |
BeingStep behaviour - must be implemented in descendent classes.
Reimplemented from TALMaSSObject.
Reimplemented in Hare_Female, Hare_Male, Hare_Juvenile, Hare_Young, Hare_Infant, and THare.
Definition at line 250 of file PopulationManager.h.
void TAnimal::CheckManagement | ( | void | ) |
Checks to see if there has been a management event at the TAnimals' x,y location. If so calls an event handler to handle the management event.
Definition at line 1404 of file PopulationManager.cpp.
References sleep_all_day.
Referenced by Hare_Infant::BeginStep(), Hare_Young::BeginStep(), Hare_Juvenile::BeginStep(), Hare_Male::BeginStep(), and Hare_Female::BeginStep().
void TAnimal::CheckManagementXY | ( | int | x, |
int | y | ||
) |
Checks to see if there has been a management event at the x,y location. If so calls an event handler to handle the management event.
Definition at line 1417 of file PopulationManager.cpp.
References sleep_all_day.
|
inlinevirtual |
Definition at line 224 of file PopulationManager.h.
|
inlineprotected |
Corrects wrap around co-ordinate problems.
Does the standard wrap around testing of positions. Uses the addition and modulus operators to avoid testing for negative or > landscape extent. This would be an alternative that should be tested for speed at some point.
Definition at line 231 of file PopulationManager.h.
References m_Location_x, m_Location_y, m_OurLandscape, Landscape::SupplySimAreaHeight(), and Landscape::SupplySimAreaWidth().
|
inlinevirtual |
Definition at line 266 of file PopulationManager.h.
References KillThis().
Referenced by THare_Population_Manager::Catastrophe(), and THare_Population_Manager::ExtraPopMort().
|
inlinevirtual |
EndStep behaviour - must be implemented in descendent classes.
Reimplemented from TALMaSSObject.
Reimplemented in Hare_Female, Hare_Male, Hare_Juvenile, Hare_Young, Hare_Infant, and THare.
Definition at line 254 of file PopulationManager.h.
|
inlinevirtual |
Definition at line 219 of file PopulationManager.h.
References TALMaSSObject::m_CurrentStateNo, and TALMaSSObject::m_StepDone.
Referenced by Dying().
|
inlinevirtual |
Reimplemented in Hare_Young, Hare_Infant, and THare.
Definition at line 271 of file PopulationManager.h.
|
inlinevirtual |
Used to re-use an object - must be implemented in descendent classes.
Definition at line 257 of file PopulationManager.h.
References m_Location_x, m_Location_y, m_OurLandscape, and TALMaSSObject::ReinitialiseObject().
|
inline |
Definition at line 240 of file PopulationManager.h.
References m_Location_x.
|
inline |
Definition at line 243 of file PopulationManager.h.
References m_Location_y.
|
inlinevirtual |
Step behaviour - must be implemented in descendent classes.
Reimplemented from TALMaSSObject.
Reimplemented in Hare_Female, Hare_Male, Hare_Juvenile, Hare_Young, Hare_Infant, and THare.
Definition at line 252 of file PopulationManager.h.
|
inline |
Definition at line 213 of file PopulationManager.h.
References m_Location_x.
Referenced by Population_Manager::FindClosest(), THare_Population_Manager::HuntingGrid(), CompareX::operator()(), and THare_Population_Manager::TheRipleysOutputProbe().
|
inline |
Definition at line 216 of file PopulationManager.h.
References m_Location_y.
Referenced by THare_Population_Manager::HuntingGrid(), CompareY::operator()(), and THare_Population_Manager::TheRipleysOutputProbe().
unsigned TAnimal::SupplyFarmOwnerRef | ( | ) |
Provides the farmer reference for the location of a TAnimal
Definition at line 1359 of file PopulationManager.cpp.
|
inline |
Definition at line 209 of file PopulationManager.h.
References m_Location_x, and m_Location_y.
Referenced by THare_Population_Manager::HuntingDifferentiatedBeetleBankArea().
|
inline |
Definition at line 210 of file PopulationManager.h.
References m_Location_x, m_Location_y, m_OurLandscape, and Landscape::SupplyPolyRef().
AnimalPosition TAnimal::SupplyPosition | ( | ) |
Provides the location of an animal in terms of x,y,elementtype and vegetation type
Definition at line 1345 of file PopulationManager.cpp.
References AnimalPosition::m_EleType, AnimalPosition::m_VegType, AnimalPosition::m_x, and AnimalPosition::m_y.
|
inlinevirtual |
Definition at line 263 of file PopulationManager.h.
Referenced by CompareState::operator()().
|
protected |
Definition at line 225 of file PopulationManager.h.
Referenced by Hare_Infant::BeginStep(), Hare_Young::BeginStep(), Hare_Juvenile::BeginStep(), Hare_Male::BeginStep(), Hare_Female::BeginStep(), CorrectWrapRound(), THare::Forage(), THare::ForageP(), THare::GetPegDirection(), THare::GetPegDistance(), THare::MovePeg(), Hare_Female::PlaceYoung(), Hare_Infant::ReInit(), Hare_Young::ReInit(), Hare_Juvenile::ReInit(), Hare_Male::ReInit(), Hare_Female::ReInit(), ReinitialiseObject(), THare::Run(), SetX(), Hare_Juvenile::st_Dispersal(), Hare_Female::st_Dispersal(), Hare_Male::st_Foraging(), Hare_Female::st_Foraging(), Hare_Infant::st_NextStage(), Hare_Young::st_NextStage(), Hare_Juvenile::st_NextStage(), Supply_m_Location_x(), SupplyPoint(), and SupplyPolygonRef().
|
protected |
Definition at line 228 of file PopulationManager.h.
Referenced by Hare_Infant::BeginStep(), Hare_Young::BeginStep(), Hare_Juvenile::BeginStep(), Hare_Male::BeginStep(), Hare_Female::BeginStep(), CorrectWrapRound(), THare::Forage(), THare::ForageP(), THare::GetPegDirection(), THare::GetPegDistance(), THare::MovePeg(), Hare_Female::PlaceYoung(), Hare_Infant::ReInit(), Hare_Young::ReInit(), Hare_Juvenile::ReInit(), Hare_Male::ReInit(), Hare_Female::ReInit(), ReinitialiseObject(), THare::Run(), SetY(), Hare_Juvenile::st_Dispersal(), Hare_Female::st_Dispersal(), Hare_Male::st_Foraging(), Hare_Female::st_Foraging(), Hare_Infant::st_NextStage(), Hare_Young::st_NextStage(), Hare_Juvenile::st_NextStage(), Supply_m_Location_y(), SupplyPoint(), and SupplyPolygonRef().
|
protected |
Definition at line 229 of file PopulationManager.h.
Referenced by Hare_Female::AllYoungKilled(), Hare_Female::AllYoungMatured(), Hare_Male::BeginStep(), Hare_Female::BeginStep(), CorrectWrapRound(), Hare_Female::dumpEnergy(), THare::EnergyBalance(), THare::ForageSquare(), THare::ForageSquareP(), Hare_Female::GiveBirth(), Hare_Male::InternalPesticideHandlingAndResponse(), Hare_Female::InternalPesticideHandlingAndResponse(), THare::ON_MumDead(), Hare_Female::ON_RemoveYoung(), Hare_Female::ON_YoungKilled(), Hare_Infant::OnFarmEvent(), Hare_Young::OnFarmEvent(), Hare_Female::PlaceYoung(), Hare_Infant::ReInit(), Hare_Young::ReInit(), Hare_Juvenile::ReInit(), Hare_Male::ReInit(), Hare_Female::ReInit(), ReinitialiseObject(), THare::Run(), Hare_Juvenile::ShouldMature(), Hare_Juvenile::st_Dispersal(), Hare_Infant::st_NextStage(), Hare_Young::st_NextStage(), Hare_Juvenile::st_NextStage(), Hare_Female::st_ReproBehaviour(), Hare_Infant::Step(), Hare_Young::Step(), Hare_Juvenile::Step(), Hare_Male::Step(), Hare_Female::Step(), SupplyPolygonRef(), THare::TimeBudget(), and Hare_Female::UpdateOestrous().