ALMaSS Vole ODDox
1.1
The vole model description following ODdox protocol
|
Go to the documentation of this file.
195 #ifdef __VoleStarvationDays
197 int m_StarvationDays;
248 #ifdef __VoleStarvationDays
251 static int m_MaxStarvationDays;
254 #ifdef __VOLEPESTICIDEON
256 double SupplyPesticideLoad() {
return m_pesticideload; }
257 double SupplyBioDegradeRate() {
return m_pesticideBioDegradeRate; }
258 void SetPesticideInfluenced1(
bool a_bool) { m_pesticideInfluenced1 = a_bool; }
259 void SetPesticideInfluenced2(
bool a_bool) { m_pesticideInfluenced2 = a_bool; }
260 bool GetPesticideInfluenced1() {
return m_pesticideInfluenced1; }
261 bool GetPesticideInfluenced2() {
return m_pesticideInfluenced2; }
263 bool m_pesticideInfluenced1;
264 bool m_pesticideInfluenced2;
265 double m_pesticideInfluenced3;
266 double m_pesticideload;
267 double m_pesticideBioDegradeRate;
268 void AddToPesticidLoad(
double a_pestamount) { m_pesticideload+=a_pestamount; }
269 void BioDegradePesticide() { m_pesticideload *= m_pesticideBioDegradeRate; }
270 void ClearPesticidLoad() { m_pesticideload = 0.0; }
271 void SetBioDegradeRate(
double a_rate) { m_pesticideBioDegradeRate = a_rate; }
272 virtual void PesticideIngestion(
void );
273 virtual void ActOnPesticideDose(
void );
274 virtual void ModelinkPesticide() { ; }
275 virtual void ModelinkPesticide21TWA(
double ) { ; }
276 virtual void Vinclozolin(
double ) { ; }
277 virtual void GeneralOrganophosphate(
double ) { ; }
278 virtual void GeneralEndocrineDisruptor(
double ) { ; }
279 virtual void GeneticDemoPesticide(
double ){ ; }
281 #ifdef __VOLERODENTICIDEON
434 void MoveTo(
int p_Vector,
int p_Distance,
int iterations);
435 void DoWalking(
int p_Distance,
int &p_Vector,
int &vx,
int &vy);
437 void Escape(
int p_Vector,
int p_Distance);
473 #ifdef __VOLEPESTICIDEON
474 virtual void ModelinkPesticide();
475 virtual void ModelinkPesticide21TWA(
double a_dose);
476 virtual void Vinclozolin(
double a_dose);
477 virtual void GeneralOrganophosphate(
double a_dose);
478 virtual void GeneralEndocrineDisruptor(
double );
479 virtual void GeneticDemoPesticide(
double );
510 #ifdef __VOLEPESTICIDEON
511 virtual void ModelinkPesticide();
512 virtual void ModelinkPesticide21TWA(
double a_dose);
513 virtual void Vinclozolin(
double a_dose);
514 virtual void GeneralOrganophosphate(
double a_dose);
515 virtual void GeneralEndocrineDisruptor(
double );
516 virtual void GeneticDemoPesticide(
double );
541 int Dispersal(
double p_OldQual,
int p_Distance);
548 #ifdef __VOLEPESTICIDEON
549 double m_maturitydelay;
550 virtual void ModelinkPesticide();
551 virtual void ModelinkPesticide21TWA(
double a_dose);
552 virtual void Vinclozolin(
double a_dose);
553 virtual void GeneralOrganophosphate(
double a_dose);
554 virtual void GeneralEndocrineDisruptor(
double );
555 virtual void GeneticDemoPesticide(
double );
557 void SetMaturityDelay(
double a_delay) { m_maturitydelay = a_delay; }
627 #ifdef __VOLEPESTICIDEON
628 unsigned int m_pesticideloadindex;
629 double m_pesticideloadarray[21];
630 virtual void ModelinkPesticide();
631 virtual void ModelinkPesticide21TWA(
double a_dose);
632 virtual void Vinclozolin(
double a_dose);
633 virtual void GeneralOrganophosphate(
double a_dose);
634 virtual void GeneralEndocrineDisruptor(
double );
635 static int m_EndoCrineDisruptionGestationLength;
636 virtual void GeneticDemoPesticide(
double );
void Set_ElemBorn(int a_Location_x, int a_Location_y)
virtual void RodenticideIngestion(void)
TTypeOfVoleState
Vole behavioural states.
static double m_FHabQualThreshold2
TTypeOfVoleState CurrentVState
static double m_MHabQualThreshold2
TTypesOfVegetation SupplyVegType(int a_x, int a_y)
TTypesOfLandscapeElement SupplyElementType(int a_polyref)
unsigned int m_MinTerrRange
void MoveTo(int p_Vector, int p_Distance, int iterations)
Movement.
Base class for voles - all vole objects are descended from this class.
virtual void SetLocation()
Map location function.
TTypeOfVoleState st_Eval_n_Explore(void)
JuvenileMale vole main territory assessment behaviour.
GeneticMaterial m_MatesGenes
The DNA passed from the male on mating.
TTypeOfVoleState Dispersal(double p_OldQual, int p_Distance)
JuvenileMale vole dispersal behaviour.
InTrapPosition SupplyTrapPosition()
virtual void EndStep()
Female vole EndStep.
int BackTranslateVegTypes(TTypesOfVegetation VegReference)
virtual void ReInit(struct_Vole_Adult *p_aVoleStruct)
Landscape * m_OurLandscape
int HeterozygosityCount()
static double m_MinJMVoleHabQual
virtual void ReInit(struct_Vole_Adult *p_aVoleStruct)
int st_Evaluate_n_Explore()
Main territory evaluation behaviour.
virtual bool GetLocation(int px, int py)
Location map function.
bool GetFertile()
Get the male vole fertility.
A struct for passing data to create a new vole.
unsigned SupplyYoungAge()
void Set_MateState(int MateState)
GeneticMaterial m_MyGenes
TTypesOfLandscapeElement SupplyElemType()
unsigned m_YoungAge
The age of current litter in days.
virtual bool GetLocation(int px, int py)
Map location function.
static double m_FHabQualThreshold1
virtual void ReInit(struct_Vole_Adult *p_aVoleStruct)
void Set_MotherId(unsigned MotherIdNo)
The class for female voles.
void Set_XBorn(int a_Location_x)
virtual bool GetLocation(int, int)
virtual void EndStep()
All voles age at the end of the day.
void Set_YBorn(int a_Location_y)
static unsigned int m_MaxFemaleTerritorySize
void Set_VegBorn(int a_Location_x, int a_Location_y)
int st_Evaluate_n_Explore()
Main territory evaluation behaviour.
int m_NoOfYoung
The number of young in the current litter (if one).
The class for female voles.
int st_Maturation(void)
Male vole maturation control.
int Dispersal(double p_OldQual, int p_Distance)
Female dispersal.
virtual ~Vole_JuvenileMale()
TTypeOfVoleState st_Lactating()
Lactation.
The landscape class containing all environmental and topographical data.
bool CanFeed()
Currently not used.
virtual void FreeLocation()
Class for the genetic material optionally carried by animals in ALMaSS.
int MoveQuality(int p_x, int p_y)
Test a location for quality while moving.
static double m_MaleTerritoryRangeSlope
void st_BecomeSubAdult(void)
void DetermineTerritorySize()
int st_Special_Explore()
Post weaning territory expansion.
uint32 SupplyMyAllele(int i, int j)
TTypeOfVoleState st_ReproBehaviour()
Reproductive switch.
Class to handle statistics and constructs based on allele frequencies.
static unsigned int m_MinMaleTerritorySize
The base class for all ALMaSS animal classes.
GeneticMaterial SupplyGenes()
virtual void EndStep()
Male vole EndStep.
Vole_Population_Manager * VPM
A class defining an animals position.
virtual ~Vole_JuvenileFemale()
void DoWalking(int p_Distance, int &p_Vector, int &vx, int &vy)
Walking.
static double m_MinFVoleHabQual
static double m_FHabQualThreshold3
virtual bool OnFarmEvent(FarmToDo event)
External event handler.
static double m_MHabQualThreshold3
void st_Dying()
All voles end here on death.
uint32 GetAllele(int pos, int Chromosome)
virtual void OnKilled()
Death from external entity.
virtual void OnKilled()
JuvenileMale vole death by external entity.
Vole_Base(struct_Vole_Adult *p_aVoleStruct)
Constructor for Vole_Base.
void st_Infanticide(void)
Male vole infanticide behaviour.
virtual void Step()
Juvenile Male vole Step.
static unsigned int m_MaxMaleTerritorySize
bool m_Pregnant
A flag indicating whether pregnant or not.
double CalculateCarryingCapacity(int x, int y, int a_ddep)
virtual void Step()
JuvenileFemale vole Step.
GeneticMaterial.h This file contains the headers for the genetic material classes
TTypeOfVoleState st_BecomeReproductive()
Female vole maturation control.
virtual bool OnFarmEvent(FarmToDo event)
JuvenileMale vole exernal event handler.
void DoWalkingCorrect(int p_Distance, int &p_Vector, int &vx, int &vy)
Walking where there is a danger of stepping off the world.
The class to handle all vole population related matters.
virtual void CopyMyself()
Vole_Male(struct_Vole_Adult *p_aVoleStruct)
Vole_Male constructor.
virtual void FreeLocation()
Map location function.
virtual void FreeLocation()
Location map function.
void DetermineTerritorySize()
Calculates the territory size needed for a vole of his weight.
virtual void Step()
Step behaviour - must be implemented in descendent classes.
void Set_PolyRefBorn(int a_Location_x, int a_Location_y)
The class for juvenile male voles.
virtual void BeginStep()
BeingStep behaviour - must be implemented in descendent classes.
void st_BecomeSubAdult(void)
void Set_NoYoungTot(int a_NoOfYoung)
Vole_JuvenileMale(struct_Vole_Adult *p_aVoleStruct)
Vole_JuvenileMale constructor.
InTrapPosition m_intrappos
virtual void ReInit(struct_Vole_Adult *p_aVoleStruct)
virtual void EndStep()
Juvenile Male vole EndStep.
void Escape(int p_Vector, int p_Distance)
Dispersal - directed movement.
void Set_BirthYear(int BirthYear)
A class for storing the position of the trap the vole is in.
Vole_Population_Manager * m_OurPopulation
The class for male voles.
Vole_JuvenileFemale(struct_Vole_Adult *p_aVoleStruct)
Vole_JuvenileFemale constructor.
virtual void Step()
Female vole Step.
static double m_MinMVoleHabQual
void Set_FatherId(unsigned FatherIdNo)
Vole_Female(struct_Vole_Adult *p_aVoleStruct)
Vole_Female constructor.
virtual void Step()
Male vole Step.
bool m_BornLastYear
A flag set if the female was born the year before.
virtual void Init(struct_Vole_Adult *p_aVoleStruct)
TTypeOfVoleState st_UpdateGestation()
Gestation control.
int m_DaysUntilBirth
A counter counting down gestation days.
TTypeOfVoleState st_Mating()
Female mating.
static double m_FemaleTerritoryRangeSlope
TTypeOfVoleState st_GiveBirth()
Litter production.
virtual void BeginStep()
Juvenile Male vole BeginStep.
static double m_MHabQualThreshold1
bool SupplyBornLastYear()
Were we born this year?
void ReInit(struct_Vole_Adult *p_aVoleStruct)
void OnInfanticideAttempt()
Determines whether an infanticide attempt will succeed.
virtual void SetLocation()
Location map function.
virtual void BeginStep()
Female vole BeginStep.
static unsigned int m_MinFemaleTerritorySize
TTypeOfVoleState st_Eval_n_Explore(void)
Male vole main territory assessment behaviour.
int SupplyAllele(int locus, int allele)
virtual bool MortalityTest()
Do a mortality test.
virtual bool MortalityTest()
Do a mortality test.
bool m_fertile
Flag indicating the fertility state (true means fertile)
void SetFertile(bool f)
Set the male vole fertility.
int SupplyPolyRef(int a_x, int a_y)
VoleDispersalReturns Dispersal(double p_OldQual, int p_Distance)
Male vole dispersal behaviour.
static bool m_BreedingSeason
void SetBreedingSeason(bool a_flag)
Set Breeding Season flag.
virtual void SetLocation()
void st_JuvenileExplore(void)
Extra movement on weaning.
int BackTranslateEleTypes(TTypesOfLandscapeElement EleReference)