ALMaSS Vole ODDox
1.1
The vole model description following ODdox protocol
|
The base class for predators encompsassing all their general behaviours. More...
#include <Predators.h>
Public Member Functions | |
TPredator (Vole_Population_Manager *ThePrey, int p_x, int p_y, Landscape *p_L, TPredator_Population_Manager *p_PPM) | |
~TPredator () | |
bool | OverlapMyTerritory (unsigned x, unsigned y) |
virtual void | st_Dispersal () |
virtual void | st_Movement () |
virtual int | st_Hunting () |
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... | |
unsigned | SupplySpeciesID () |
int | SupplyKill () |
bool | SupplyTerr () |
int | SupplyKillEff () |
int | SupplyHomeRange () |
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... | |
Protected Attributes | |
TTypeOfPredatorState | CurrentPState |
unsigned | SpeciesID |
unsigned | m_DispersalMax |
unsigned | m_SearchArea |
int | m_kills_this_season |
int | PreyResponse1 |
int | PreyResponse2 |
int | m_Search_x |
int | m_Search_y |
int | SimW |
int | SimH |
unsigned | m_FailureCount |
unsigned | m_NoFailuresBeforeDispersal |
unsigned | m_HomeRange |
bool | m_HaveTerritory |
int | m_KillEfficiency |
Vole_Population_Manager * | m_Prey |
TPredator_Population_Manager * | m_OurPopulationManager |
vector< Vole_Base * > * | CurrentPrey |
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 | |
Protected Member Functions inherited from TAnimal | |
void | CorrectWrapRound () |
Corrects wrap around co-ordinate problems. More... | |
The base class for predators encompsassing all their general behaviours.
Defines simple predators that are really nothing more than moving mortality probabilities of different sizes and strengths. Breeding is once a year if enough prey are eaten, and death occurs if a starvation criteria is reached. The last individual cannot die so the population can never go extinct. If predators do not eat for a definable number of hunts then they may disperse, otherwise they move only locally. Different types of predators can be defined in the same simulation by defining the Weasel and Owl classes using configuration variables to create e.g. specialist or generalist predators, with different movement patterns, hunting efficiency and numerical responses.
Definition at line 87 of file Predators.h.
TPredator::TPredator | ( | Vole_Population_Manager * | ThePrey, |
int | p_x, | ||
int | p_y, | ||
Landscape * | p_L, | ||
TPredator_Population_Manager * | p_PPM | ||
) |
Tpredator constructor
Definition at line 696 of file Predators.cpp.
References CurrentPState, m_DispersalMax, m_FailureCount, m_HaveTerritory, m_HomeRange, m_KillEfficiency, m_kills_this_season, TAnimal::m_Location_x, TAnimal::m_Location_y, m_NoFailuresBeforeDispersal, TAnimal::m_OurLandscape, m_OurPopulationManager, m_Prey, m_Search_x, m_Search_y, m_SearchArea, PreyResponse1, PreyResponse2, SimH, SimW, Landscape::SupplySimAreaHeight(), Landscape::SupplySimAreaWidth(), and tops_InitialState.
TPredator::~TPredator | ( | ) |
Definition at line 719 of file Predators.cpp.
|
inlinevirtual |
BeingStep behaviour - must be implemented in descendent classes.
Reimplemented from TAnimal.
Reimplemented in Owl, and Weasel.
Definition at line 130 of file Predators.h.
|
inlinevirtual |
EndStep behaviour - must be implemented in descendent classes.
Reimplemented from TAnimal.
Reimplemented in Owl, and Weasel.
Definition at line 132 of file Predators.h.
bool TPredator::OverlapMyTerritory | ( | unsigned | x, |
unsigned | y | ||
) |
Definition at line 770 of file Predators.cpp.
References m_HomeRange, TAnimal::m_Location_x, TAnimal::m_Location_y, SimH, and SimW.
Referenced by TPredator_Population_Manager::InOtherTerritory().
|
virtual |
Moves the home range to an area where it does not overlap with a conspecific
Definition at line 787 of file Predators.cpp.
References TPredator_Population_Manager::InOtherTerritory(), m_DispersalMax, m_HaveTerritory, TAnimal::m_Location_x, TAnimal::m_Location_y, m_OurPopulationManager, SimH, SimW, and SpeciesID.
Referenced by Weasel::Step(), and Owl::Step().
|
virtual |
Definition at line 726 of file Predators.cpp.
References CurrentPrey, m_KillEfficiency, m_kills_this_season, m_Prey, m_Search_x, m_Search_y, m_SearchArea, and Vole_Population_Manager::SupplyVoleList().
Referenced by Weasel::Step(), and Owl::Step().
|
virtual |
Definition at line 753 of file Predators.cpp.
References m_HomeRange, TAnimal::m_Location_x, TAnimal::m_Location_y, m_Search_x, m_Search_y, m_SearchArea, SimH, and SimW.
Referenced by Weasel::Step(), and Owl::Step().
|
inlinevirtual |
Step behaviour - must be implemented in descendent classes.
Reimplemented from TAnimal.
Reimplemented in Owl, and Weasel.
Definition at line 131 of file Predators.h.
|
inline |
Definition at line 138 of file Predators.h.
References m_HomeRange.
Referenced by TPredator_Population_Manager::PredSampleFile().
|
inline |
Definition at line 135 of file Predators.h.
References m_kills_this_season.
Referenced by TPredator_Population_Manager::PredSampleFile().
|
inline |
Definition at line 137 of file Predators.h.
References m_KillEfficiency.
Referenced by TPredator_Population_Manager::PredSampleFile().
|
inline |
Definition at line 134 of file Predators.h.
References SpeciesID.
Referenced by TPredator_Population_Manager::PredSampleFile().
|
inline |
Definition at line 136 of file Predators.h.
References m_HaveTerritory.
Referenced by TPredator_Population_Manager::PredSampleFile().
|
protected |
Definition at line 121 of file Predators.h.
Referenced by st_Hunting().
|
protected |
Definition at line 103 of file Predators.h.
Referenced by Weasel::Step(), Owl::Step(), and TPredator().
|
protected |
Definition at line 105 of file Predators.h.
Referenced by Owl::Owl(), st_Dispersal(), TPredator(), and Weasel::Weasel().
|
protected |
Definition at line 114 of file Predators.h.
Referenced by Weasel::Step(), Owl::Step(), and TPredator().
|
protected |
Definition at line 117 of file Predators.h.
Referenced by st_Dispersal(), Weasel::Step(), Owl::Step(), SupplyTerr(), and TPredator().
|
protected |
Definition at line 116 of file Predators.h.
Referenced by OverlapMyTerritory(), Owl::Owl(), st_Movement(), SupplyHomeRange(), TPredator(), and Weasel::Weasel().
|
protected |
Definition at line 118 of file Predators.h.
Referenced by Owl::Owl(), st_Hunting(), SupplyKillEff(), TPredator(), and Weasel::Weasel().
|
protected |
Definition at line 107 of file Predators.h.
Referenced by Weasel::BeginStep(), Owl::BeginStep(), st_Hunting(), SupplyKill(), and TPredator().
|
protected |
Definition at line 115 of file Predators.h.
Referenced by Owl::Owl(), Weasel::Step(), Owl::Step(), TPredator(), and Weasel::Weasel().
|
protected |
Definition at line 120 of file Predators.h.
Referenced by Weasel::BeginStep(), Owl::BeginStep(), st_Dispersal(), and TPredator().
|
protected |
Definition at line 119 of file Predators.h.
Referenced by st_Hunting(), and TPredator().
|
protected |
Definition at line 110 of file Predators.h.
Referenced by st_Hunting(), st_Movement(), and TPredator().
|
protected |
Definition at line 111 of file Predators.h.
Referenced by st_Hunting(), st_Movement(), and TPredator().
|
protected |
Definition at line 106 of file Predators.h.
Referenced by Owl::Owl(), st_Hunting(), st_Movement(), TPredator(), and Weasel::Weasel().
|
protected |
Definition at line 108 of file Predators.h.
Referenced by Owl::Owl(), Weasel::Step(), Owl::Step(), TPredator(), and Weasel::Weasel().
|
protected |
Definition at line 109 of file Predators.h.
Referenced by Owl::Owl(), Weasel::Step(), Owl::Step(), TPredator(), and Weasel::Weasel().
|
protected |
Definition at line 113 of file Predators.h.
Referenced by OverlapMyTerritory(), st_Dispersal(), st_Movement(), and TPredator().
|
protected |
Definition at line 112 of file Predators.h.
Referenced by OverlapMyTerritory(), st_Dispersal(), st_Movement(), and TPredator().
|
protected |
Definition at line 104 of file Predators.h.
Referenced by Owl::Owl(), st_Dispersal(), SupplySpeciesID(), and Weasel::Weasel().