File failed to load: https://cdnjs.cloudflare.com/ajax/libs/mathjax/2.7.5/extensions/ams.js
 |
ALMaSS
1.2 (after EcoStack, March 2024)
The Animal, Landscape and Man Simulation System
|
Go to the documentation of this file.
149 virtual void Run(
int);
193 virtual void Step (
void);
214 virtual void Step (
void);
The base class for predators encompsassing all their general behaviours.
Definition: Predators.h:87
int owl_breed_threshold
Definition: Predators.cpp:73
virtual void KillThis()
Sets all parameters ready for object destruction.
Definition: PopulationManager.h:263
Definition: Predators.h:57
void SetStepDone(bool a_bool)
Sets the step done indicator flag.
Definition: PopulationManager.h:143
virtual void Step()
Step behaviour - must be implemented in descendent classes.
Definition: PopulationManager.h:148
int weasel_StartingNo
Definition: Predators.cpp:79
virtual TAnimal * SupplyAnimalPtr(unsigned int a_index, unsigned int a_animal)
Returns the pointer indexed by a_index and a_animal. Note NO RANGE CHECK.
Definition: PopulationManager.h:678
#define OWL
Definition: Predators.cpp:49
virtual ~Weasel()
Definition: Predators.cpp:835
TTypesOfVegetation SupplyVegType(int a_x, int a_y)
Returns the vegetation type of the polygon using the polygon reference number a_polyref or coordinate...
Definition: Landscape.h:1925
TTypeOfPredatorState
Definition: Predators.h:53
static CfgInt cfg_owl_death_threshold("OWL_DT", CFG_CUSTOM,-1)
TTypesOfLandscapeElement SupplyElementType(int a_polyref)
Returns the landscape type of the polygon using the polygon reference number a_polyref or coordinates...
Definition: Landscape.h:1732
static CfgInt cfg_weasel_DispersalMax("WEASEL_DISPERSAL_MAX", CFG_CUSTOM, 200)
static CfgInt cfg_weasel_search_area("WEASEL_SEARCH_AREA", CFG_CUSTOM, 100)
virtual void EndStep()
EndStep behaviour - must be implemented in descendent classes.
Definition: PopulationManager.h:151
void CloseTheReallyBigOutputProbe()
Definition: Predators.h:171
TTypesOfPopulation m_population_type
Definition: PopulationManager.h:858
static CfgInt cfg_pred_second_sample_day("PRED_SAMPLE_FILE_DAY_TWO", CFG_CUSTOM, 287)
bool OverlapMyTerritory(unsigned x, unsigned y)
Definition: Predators.cpp:770
virtual void DoFirst()
Definition: Predators.h:167
int m_guard_cell_y
The index y to the guard cell.
Definition: PopulationManager.h:374
virtual void BeginStep(void)
BeingStep behaviour - must be implemented in descendent classes.
Definition: Predators.h:130
virtual void SupplyLocXY(unsigned, unsigned, int &, int &)
A stub for identifying an individual at a location.
Definition: PopulationManager.h:593
const char * m_ListNames[32]
A list of life-stage names.
Definition: PopulationManager.h:628
The class to handle all predator population related matters.
Definition: Predators.h:145
virtual void BeginStep()
BeingStep behaviour - must be implemented in descendent classes.
Definition: PopulationManager.h:145
static CfgInt cfg_owl_breed_threshold("OWL_BT", CFG_CUSTOM, 5000000)
int y
Definition: Predators.h:69
int SupplyKill()
Definition: Predators.h:135
void PredSpringSample()
Definition: Predators.cpp:423
unsigned supply_no_inds(unsigned list)
Definition: Predators.h:157
virtual void DoAfter()
Definition: Predators.h:169
virtual void st_Movement()
Definition: Predators.cpp:752
static CfgInt cfg_owl_StartingNo("OWL_START_NO", CFG_CUSTOM, 0)
TPredator_Population_Manager * PM
Definition: Predators.h:72
virtual void Run(int)
Definition: Predators.cpp:553
int owl_death_threshold
Definition: Predators.cpp:75
int owl_breed_day
Definition: Predators.cpp:77
int PreyResponse2
Definition: Predators.h:109
void inc_inds(unsigned list)
Definition: Predators.h:155
int SupplyMonth(void)
Passes a request on to the associated Calendar class function, returns m_month + 1 (the calendar mont...
Definition: Landscape.h:2272
void PredAutumnSample()
Definition: Predators.cpp:360
ofstream * RipleysOutputPrb
Definition: PopulationManager.h:860
static CfgInt cfg_weasel_NoFailuresBeforeDispersal("WEASEL_FAILURES", CFG_CUSTOM, 10)
static CfgInt cfg_weasel_StartingNo("WEASEL_START_NO", CFG_CUSTOM, 0)
Owl(Vole_Population_Manager *ThePrey, int p_x, int p_y, Landscape *p_L, TPredator_Population_Manager *p_PPM)
Definition: Predators.cpp:919
int m_ListNameLength
the number of life-stages simulated in the population manager
Definition: PopulationManager.h:626
unsigned m_no_individuals[2]
Definition: Predators.h:163
Landscape * L
Definition: Predators.h:71
Used for creation of a new predator object.
Definition: Predators.h:65
virtual void BeginStep(void)
BeingStep behaviour - must be implemented in descendent classes.
Definition: Predators.cpp:935
virtual void Step(void)
Step behaviour - must be implemented in descendent classes.
Definition: Predators.cpp:969
static CfgInt cfg_weasel_breed_threshold("WEASEL_BT", CFG_CUSTOM, 5)
unsigned SupplySpeciesID()
Definition: Predators.h:134
int weasel_breed_day
Definition: Predators.cpp:76
bool value() const
Definition: Configurator.h:164
The Owl class is one of two current implementations of TPredator.
Definition: Predators.h:207
void dec_inds(unsigned list)
Definition: Predators.h:156
The Weasel class is one of two current implementations of TPredator.
Definition: Predators.h:186
Landscape * m_TheLandscape
holds an internal pointer to the landscape
Definition: PopulationManager.h:624
int m_Search_x
Definition: Predators.h:110
void PredSpringAutumnSample()
Definition: Predators.cpp:486
vector< Vole_Base * > * SupplyVoleList(unsigned x, unsigned y, unsigned range) const
Definition: VolePopulationManager.cpp:2611
The landscape class containing all environmental and topographical data.
Definition: Landscape.h:142
Definition: Predators.h:58
int SupplyKillEff()
Definition: Predators.h:137
int SimH
stores the simulation height
Definition: PopulationManager.h:614
virtual void Step(void)
Step behaviour - must be implemented in descendent classes.
Definition: Predators.cpp:875
unsigned m_SearchArea
Definition: Predators.h:106
virtual void DoLast()
Definition: Predators.h:170
int SupplyDayInMonth(void)
Passes a request on to the associated Calendar class function, returns m_day_in_month
Definition: Landscape.h:2277
virtual int st_Hunting()
Definition: Predators.cpp:725
int SupplySimAreaHeight(void)
Gets the simulation landscape height.
Definition: Landscape.h:2302
int SupplySimAreaWidth(void)
Gets the simulation landscape width.
Definition: Landscape.h:2297
int m_Location_y
The objects ALMaSS y coordinate.
Definition: PopulationManager.h:366
int SimH
Definition: Predators.h:113
int m_KillEfficiency
Definition: Predators.h:118
static Landscape * m_OurLandscape
A pointer to the landscape object shared with all TAnimal objects.
Definition: PopulationManager.h:342
Bool configurator entry class.
Definition: Configurator.h:155
static CfgInt cfg_owl_breed_day("OWL_BD", CFG_CUSTOM, 120)
unsigned NoPredatorTypes
Definition: Predators.h:162
The base class for all ALMaSS animal classes. Includes all the functionality required to be handled b...
Definition: PopulationManager.h:200
virtual void st_Dispersal()
Definition: Predators.cpp:787
virtual void EndStep(void)
EndStep behaviour - must be implemented in descendent classes.
Definition: Predators.h:215
static CfgBool cfg_PredMortalityDataUsed("PRED_MORTALITY_DATA_USED", CFG_CUSTOM, false)
int PreyResponse1
Definition: Predators.h:108
Base class for all population managers for agent based models.
Definition: PopulationManager.h:645
virtual void EndStep(void)
EndStep behaviour - must be implemented in descendent classes.
Definition: Predators.h:194
int SupplyDayInYear(void)
Passes a request on to the associated Calendar class function, the day in the year.
Definition: Landscape.h:2267
int species
Definition: Predators.h:70
int weasel_death_threshold
Definition: Predators.cpp:74
bool SupplyTerr()
Definition: Predators.h:136
bool m_StepDone
Indicates whether the iterative step code is done for this timestep.
Definition: PopulationManager.h:133
Definition: PopulationManager.h:80
int SupplyYearNumber(void)
Passes a request on to the associated Calendar class function, returns m_simulationyear
Definition: Landscape.h:2287
unsigned m_FailureCount
Definition: Predators.h:114
virtual ~Owl()
Definition: Predators.cpp:1007
int value() const
Definition: Configurator.h:116
int m_Search_y
Definition: Predators.h:111
Vole_Population_Manager * m_Prey
Definition: Predators.h:119
static CfgInt cfg_weasel_kill_efficiency("WEASEL_KILL_EFF", CFG_CUSTOM, 250)
int SimW
stores the simulation width
Definition: PopulationManager.h:616
The class to handle all vole population related matters.
Definition: VolePopulationManager.h:148
int GetCurrentStateNo() const
Returns the current state number.
Definition: PopulationManager.h:137
void UpdateGuardMap(int a_x, int a_y, int &a_index_x, int &a_index_y)
Get the index of the guard map for the given location.
Definition: PopulationManager.h:768
void CreateObjects(int ob_type, TAnimal *pvo, struct_Predator *data, int number)
Definition: Predators.cpp:136
virtual void EndStep(void)
EndStep behaviour - must be implemented in descendent classes.
Definition: Predators.h:132
TTypeOfPredatorState CurrentPState
Definition: Predators.h:103
static CfgInt cfg_weasel_home_range("WEASEL_HOME_RANGE", CFG_CUSTOM, 250)
bool m_HaveTerritory
Definition: Predators.h:117
static CfgInt cfg_weasel_breed_day("WEASEL_BD", CFG_CUSTOM, 115)
virtual ~TPredator_Population_Manager(void)
Definition: Predators.cpp:83
static CfgBool cfg_PredSampleDataUsed("PRED_SAMPLE_DATA_USED", CFG_CUSTOM, false)
bool GetStepDone() const
Returns the step done indicator flag.
Definition: PopulationManager.h:141
TPredator_Population_Manager * m_OurPopulationManager
Definition: Predators.h:120
unsigned SpeciesID
Definition: Predators.h:104
Integer configurator entry class.
Definition: Configurator.h:102
unsigned m_DispersalMax
Definition: Predators.h:105
int m_guard_cell_x
The index x to the guard cell.
Definition: PopulationManager.h:370
Definition: Predators.h:55
bool InOtherTerritory(unsigned sp, int p_x, int p_y, TPredator *p_Pred)
Definition: Predators.cpp:670
static CfgInt cfg_weasel_death_threshold("WEASEL_DT", CFG_CUSTOM, 10)
string m_SimulationName
stores the simulation name
Definition: PopulationManager.h:622
TPredator(Vole_Population_Manager *ThePrey, int p_x, int p_y, Landscape *p_L, TPredator_Population_Manager *p_PPM)
Definition: Predators.cpp:695
Definition: Predators.h:56
unsigned m_HomeRange
Definition: Predators.h:116
virtual unsigned SupplyListIndexSize()
Definition: PopulationManager.h:725
int SupplyHomeRange()
Definition: Predators.h:138
virtual bool StepFinished()
Methods to run the simulations.
Definition: Predators.cpp:654
Definition: Configurator.h:70
int g_random_fnc(const int a_range)
Definition: ALMaSS_Random.cpp:74
~TPredator()
Definition: Predators.cpp:718
virtual void BeginStep(void)
BeingStep behaviour - must be implemented in descendent classes.
Definition: Predators.cpp:841
virtual void DoBefore()
Definition: Predators.h:168
int m_CurrentStateNo
The basic state number for all objects - '-1' indicates death.
Definition: PopulationManager.h:131
void PushIndividual(const unsigned a_listindex, TAnimal *a_individual_ptr)
Definition: PopulationManager.cpp:1682
void PredSampleFile()
Definition: Predators.cpp:160
int weasel_breed_threshold
Definition: Predators.cpp:72
unsigned SupplyListSize(unsigned listindex) const
Definition: PopulationManager.h:726
#define WEASEL
Definition: Predators.cpp:48
Weasel(Vole_Population_Manager *ThePrey, int p_x, int p_y, Landscape *p_L, TPredator_Population_Manager *p_PPM)
Definition: Predators.cpp:818
ofstream * ReallyBigOutputPrb
Definition: PopulationManager.h:873
TPredator_Population_Manager(Landscape *L, Vole_Population_Manager *VPM)
Definition: Predators.cpp:89
unsigned m_NoFailuresBeforeDispersal
Definition: Predators.h:115
int x
Definition: Predators.h:68
Vole_Population_Manager * m_Prey
Definition: Predators.h:161
void Warn(std::string a_msg1, std::string a_msg2)
Wrapper for the g_msg Warn function.
Definition: Landscape.h:2250
virtual void Step(void)
Step behaviour - must be implemented in descendent classes.
Definition: Predators.h:131
int m_Location_x
The objects ALMaSS x coordinate.
Definition: PopulationManager.h:362
int SimW
Definition: Predators.h:112
int SupplyPolyRef(int a_x, int a_y)
Get the in map polygon reference number from the x, y location.
Definition: Landscape.h:2157
static CfgInt cfg_pred_first_sample_day("PRED_SAMPLE_FILE_DAY_ONE", CFG_CUSTOM, 109)
vector< Vole_Base * > * CurrentPrey
Definition: Predators.h:121
int m_kills_this_season
Definition: Predators.h:107
int owl_StartingNo
Definition: Predators.cpp:78