ALMaSS Partridge ODdox
1.1
The partridge model description following ODdox protocol
|
Go to the documentation of this file.
38 #ifndef Partridge_Population_ManagerH
39 #define Partridge_Population_ManagerH
48 #include "../BatchALMaSS/ALMaSS_Setup.h"
51 #include "../BatchALMaSS/PopulationManager.h"
56 #include "../BatchALMaSS/PopulationManager.h"
213 void WriteParAdMort(
int a_min,
int a_age,
int a_sex,
int a_cause );
244 return dynamic_cast < Partridge_Covey * > (
TheArray[
pob_Covey ] [ j ] )->XCenter();
249 return dynamic_cast < Partridge_Covey * > (
TheArray[
pob_Covey ] [ j ] )->YCenter();
268 virtual void Init(
void );
For storing assessed habitat quality.
k_factors * m_Ourkfactors
Pointer to kfactors object.
double GetHabitatQuality(int a_day)
CoverTempMap * m_nestingcovermap
Pointer to nesting cover map.
The partridge male class.
void AddQual(int a_x, int a_y, double a_qual)
virtual void DoAlmostLast()
Utility method called after EndStep.
virtual ~Partridge_Population_Manager(void)
unsigned int m_loop_index
void WriteNoHatchedPerYear(int a_min, int a_num)
Output method.
The population manager for partridge objects.
TAnimal * ObjectLoopFetch(void)
FILE * ParFlocks
Covey size 1st oct, + no. chicks.
vector< TListOfAnimals > TheArray
unsigned int m_Partridge_IDs
double GetTerrQual(int x, int y)
Partridge_Communication.h This file contains the headers for the partridge communication class
Class for calculating k-factors.
Struct to basic partridge information.
unsigned int m_loop_limit
FILE * ParJuvMort
Juvenile mortaltiy record.
int ClutchDensity(int x, int y, int radius)
Returns clutch density at x,y with radius radius.
FILE * ParClutches
For each clutch, clutch no. & size.
void CreateInitialObjects(int ob_type, int number)
PartridgeCommunicationData * m_comms_data
Message data.
Partridge_Covey.h This file contains the headers for the partridge covey class
FILE * NoHatchedPerYear
No. successful hatches per year.
double GetQualIndexed(int a_x, int a_y)
Partridge_Male * bad_guys[500]
Debug.
bool OpenParOutputFiles()
Opens the partridge output files.
virtual void DoAfter()
Utility method called before EndStep.
void WriteParJuvMort(int yr, int a_min, int a_age, int a_cause)
Output method.
FILE * ParNoB
No of breeding Pairs.
void SetQualIndexed(int a_x, int a_y, double a_qual)
virtual void DoBefore()
Utility method called before Step.
void CreateObjects(int ob_type, Partridge_struct *data, int number)
void HuntingDifferentiatedBeetleBankArea(int a_pct)
Differentiated hunting in beetlebank areas.
CoverTempMap * m_territoryqualmap
Pointer to territory quality map.
The landscape class containing all environmental and topographical data.
CoverTempMap(int a_lx, int a_ly)
void AddHatchSuccess(int sz)
int m_HatchSuccess
No hatch success.
void WriteParClutches(int a_min, int a_num1, int a_num2)
Output method.
void HuntingGrid(int p_chance)
Density grid-based hunting.
virtual void DoLast()
Ultility method called at the end of the time-step.
void DoSanityCheck()
Debug only.
void MaleImmigration(void)
If male immigration is needed - Unused.
void WriteParUnpairedMale(int a_min, int a_num)
Output method.
The base class for all ALMaSS animal classes.
The collective for a family of partridges
void CreateNestingCoverDensityMap()
Intitialises the nesting cover map.
void TestShouldFlock()
Should the birds start to flock?
double m_HabitatQuality[300]
Part of habitat quality map evaluation.
Base class for all population managers.
Struct to pass adult partridge information.
double GetQual(int a_x, int a_y)
Partridge_Communication m_messagecentre
Message class pointer.
bool FillCoveyNeigbourList(Partridge_Covey *a_covey, int a_distance, int a_x, int a_y)
Get a list of neighbour covies.
void Hunting(int p_chance)
Global hunting.
virtual void Catastrophe()
Kill/clone a configuragle proportion of population.
Partridge_Population_Manager(Landscape *a_map)
FILE * ParAdMort
Adult mortality record.
bool CloseParOutputFiles()
Closes the partridge output files.
int m_maxx
internal variables
FILE * ParUnpairedMale
No unparied males 1st Jun.
void DissolveCovey(Partridge_Covey *a_covey)
int HabitatEvalPolyField(int a_field)
Part of habitat quality map evaluation.
void AddStarved()
Record starvation event.
void ObjectLoopInit(int ob_type)
Data structure of a message.
void FillInFoodArray()
Precalculated food values with age.
void CreateCloneObjects(int ob_type, AdultPartridge_struct *as)
bool m_ShouldFlock
Flag for flocking or not.
Partridge_all.h This file contains the header for all partridge lifestage classes
void WriteParFlocks(int a_min, int a_size, int a_young)
Output method.
void UpdateNestingCoverMap()
virtual void TheAOROutputProbe()
Output method.
virtual void TheRipleysOutputProbe(FILE *a_prb)
Output method.
double GetNestingCoverDensity(int x, int y)
void WriteParAdMort(int a_min, int a_age, int a_sex, int a_cause)
Output method.
bool CoveyDissolveWeather()
void DoMaleSanityCheck()
Debug only.
virtual void DoFirst()
Utility method called before BeginStep.
void SetQual(int a_x, int a_y, double a_qual)
double EvalHabitatQual(TTypesOfLandscapeElement a_cet, int a_poly)
Part of habitat quality map evaluation.
void WriteParNoB(int a_min, int a_nob)
Output method.
double TerrEvalPoly(TTypesOfLandscapeElement a_cet, int a_poly)
Habitat evaluation.
int m_Starved
No starvation events.
void AddObject(int ob_type, TAnimal *pTAo)