ALMaSS Hare ODDox
1.1
The hare model description following ODdox protocol
|
Class for female hares. More...
#include <Hare_all.h>
Public Member Functions | |
void | AddYoung (THare *a_new) |
Add a leveret to the list of kids. More... | |
void | AllYoungKilled () |
Last leveret predated. More... | |
void | AllYoungMatured () |
No more young to look after. More... | |
virtual void | BeginStep (void) |
Female BeginStep. More... | |
void | dumpEnergy () |
Used to record energetic status. More... | |
virtual void | EndStep (void) |
Female EndStep. More... | |
Hare_Female (int p_x, int p_y, Landscape *p_L, THare_Population_Manager *p_PPM, double p_weight, int a_age, int a_Ref) | |
Female Constructor. More... | |
void | Init (double p_weight, int a_age, int a_Ref) |
Object initiation. More... | |
bool | ON_AreYouMyMum (THare *a_young) |
Debug function. More... | |
virtual void | ON_Dead () |
The female is dead. More... | |
void | ON_RemoveYoung (THare *a_young) |
A leveret has matured. More... | |
void | ON_YoungKilled (THare *a_young) |
A leveret has been killed. More... | |
void | ReInit (struct_Hare a_data) |
Female object reinitiation. More... | |
bool | SanityCheckYoungList () |
Debug function. More... | |
void | SetSterile () |
Female is sterile. More... | |
virtual void | Step (void) |
Female Step. More... | |
bool | UpdateYoung (THare *a_old, THare *a_new) |
Swap a young list pointer. More... | |
virtual | ~Hare_Female () |
Female Destructor. More... | |
Public Member Functions inherited from Hare_Juvenile | |
Hare_Juvenile (int p_x, int p_y, Landscape *p_L, THare_Population_Manager *p_PPM, double p_weight) | |
Constructor for the juvenile hare object. More... | |
void | Init (double p_weight) |
Object initiation. More... | |
void | ReInit (struct_Hare a_data) |
Juvenile object reinitiation. More... | |
virtual | ~Hare_Juvenile () |
Destructor for the juvenile hare object. More... | |
Public Member Functions inherited from THare | |
int | GetAge () |
Hare_Female * | GetMum () |
Get the mother pointer. More... | |
int | GetRefNum () |
Get the refnum for this hare. More... | |
double | GetRMR () |
Get todays RMR. More... | |
double | GetTotalWeight () |
Provide the wet weight of the hare. More... | |
double | GetWeight () |
void | loadVegPalatability (void) |
Loads static member m_vegPalatability with data. More... | |
void | ON_MumDead (Hare_Female *a_Mum) |
Inform Mum that we are dead. More... | |
void | SetMum (Hare_Female *) |
Set the mother pointer. Reimplemented in Hare_Infant. More... | |
THare (int p_x, int p_y, Landscape *p_L, THare_Population_Manager *p_PPM) | |
Constructor. More... | |
void | THareInit (int p_x, int p_y, THare_Population_Manager *p_PPM) |
Object Initiation. More... | |
virtual | ~THare () |
Destructor. More... | |
Public Member Functions inherited from TAnimal | |
void | CheckManagement (void) |
void | CheckManagementXY (int x, int y) |
virtual void | CopyMyself () |
virtual void | Dying () |
virtual void | KillThis () |
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) |
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 | DoLactation () |
Lactation. More... | |
virtual void | GeneralEndocrineDisruptor (double a_pesticide_dose) |
Handles internal effects of endocrine distrupter pesticide exposure for female. More... | |
virtual void | GeneralOrganoPhosphate (double a_pesticide_dose) |
Handles internal effects of organophosphate pesticide exposure for female. More... | |
void | GiveBirth () |
Produce a litter. More... | |
virtual void | InternalPesticideHandlingAndResponse () |
Handles internal effects of pesticide exposure. If any effects are needed this method must be re-implemented by descendent classes. More... | |
void | Mating () |
Mate. More... | |
APoint | PlaceYoung () |
Find somewhere nice for the babies to hide. More... | |
TTypeOfHareState | st_Developing () |
Female Developing. More... | |
TTypeOfHareState | st_Dispersal () |
Female Dispersal. More... | |
TTypeOfHareState | st_Foraging () |
Female Foraging. More... | |
TTypeOfHareState | st_ReproBehaviour () |
Reproductive behaviour control. More... | |
TTypeOfHareState | st_Resting () |
Resting. More... | |
void | UpdateGestation () |
Update gestation counter. More... | |
void | UpdateOestrous () |
Update oestrous counter. More... | |
Protected Member Functions inherited from Hare_Juvenile | |
bool | ShouldMature () |
Test for maturation. More... | |
TTypeOfHareState | st_Developing () |
The development code for Hare_Juvenile. More... | |
TTypeOfHareState | st_Foraging () |
Juvenile foraging. More... | |
void | st_NextStage () |
Maturation to Hare_Male or Hare_Female. More... | |
TTypeOfHareState | st_Resting () |
Juvenile Resting. More... | |
virtual bool | WasPredated () |
Test for mortality. More... | |
Protected Member Functions inherited from THare | |
void | EnergyBalance (TTypeOfActivity a_activity, int dist) |
Adjust energy balance for an activity. More... | |
double | Forage (int &time) |
Foraging. More... | |
double | ForageP (int &time) |
Foraging but also incorporating pesticide exposure. More... | |
double | ForageSquare (int a_x, int a_y) |
Forage from an area. More... | |
double | ForageSquareP (int a_x, int a_y, double *a_pestexposure) |
Forage from an area and resturn pesticide exposure as well as food. More... | |
int | GetPegDirection () |
Get direction of peg. More... | |
int | GetPegDistance () |
Get peg distance. More... | |
int | GetPegPull () |
Get attractive force of peg. More... | |
void | MovePeg () |
Move the peg according to attraction forces. More... | |
bool | OnFarmEvent (FarmToDo event) |
Do we require a response to a farm event. More... | |
bool | Run (int a_dist, int a_direction) |
Run a distance in a direction. More... | |
virtual void | Running (int a_max_dist) |
Run. More... | |
void | st_Dying () |
Tidy up before removing the object on death. More... | |
void | TimeBudget (TTypeOfActivity a_activity, int dist) |
Adjust time budger for an activity. More... | |
void | Walking (int a_dist, int a_direction) |
Walking. More... | |
Protected Member Functions inherited from TAnimal | |
void | CorrectWrapRound () |
Corrects wrap around co-ordinate problems. More... | |
Protected Attributes | |
int | m_GestationCounter |
State variable - Days in gestation. More... | |
double | m_LeveretMaterial |
State variable - Mass of foetal material. More... | |
int | m_litter_no |
State variable - current litter number. More... | |
TListOfHares | m_MyYoung |
Pointer to litter. More... | |
int | m_NoYoung |
State variable - current litter size. More... | |
int | m_OestrousCounter |
State variable - Days in oestrous. More... | |
TTypeOfActivity | m_reproActivity |
State variable - current reproductive state. More... | |
bool | m_sterile |
State variable - is/not sterile. More... | |
Protected Attributes inherited from THare | |
int | m_ActivityTime |
Minutes of potential activity time per day. More... | |
int | m_Age |
State variale - hare age. More... | |
TTypeOfHareState | m_CurrentHState |
Defines the current activity. More... | |
int | m_ddindex |
State variable used in alternative density-dependent configurations. More... | |
int | m_DensitySum |
State variable used in alternative density-dependent configurations. More... | |
double | m_EnergyMax |
State variable - the amount of energy it is possible to eat as a multiplyer or RMR. More... | |
int | m_expDensity [365] |
State variable used in alternative density-dependent configurations. More... | |
int | m_experiencedDensity |
State variable used in alternative density-dependent configurations. More... | |
double | m_fatReserve |
State variable - the energy reserve of the hare. More... | |
double | m_foragingenergy |
Energy obtained from foraging/feeding. More... | |
bool | m_IamSick |
flag for sickness - used in conjunction with disease configurations More... | |
double | m_KJForaging |
KJ/m cost of foraging per kg hare. More... | |
double | m_KJRunning |
KJ/m cost of running per kg hare. More... | |
double | m_KJWalking |
KJ/m cost of walking per kg hare. More... | |
int | m_lastYearsDensity |
State variable used in alternative density-dependent configurations. More... | |
int | m_Lifespan |
Physiolocal lifespan, assuming nothing else kills the hare (unlikely to reach this age) More... | |
Hare_Female * | m_MyMum |
Pointer to the hare's mum. More... | |
double | m_old_weight |
State variale - last hare weight. More... | |
THare_Population_Manager * | m_OurPopulationManager |
Pointer to the hare population manager. More... | |
int | m_peg_x |
peg x-coordinate More... | |
int | m_peg_y |
peg y-coordinate More... | |
double | m_pesticide_burden |
State variable used to hold the current body-burden of pesticide. More... | |
double | m_pesticidedegradationrate |
State variable used to hold the daily degredation rate of the pesticide in the body. More... | |
bool | m_pesticideInfluenced1 |
Flag to indicate pesticide effects (e.g. can be used for endocrine distruptors with delayed effects until birth). More... | |
int | m_RefNum |
Unique hare reference number, also functions as sex flag. More... | |
double | m_SpeedRunning |
m/min speed of running per kg hare More... | |
double | m_SpeedWalking |
m/min speed of walking per kg hare More... | |
int | m_StarvationDays |
State variable - the number of consecutive days in negative energy balance. More... | |
double | m_TodaysEnergy |
State variable - the amount of energy available today, can be in deficit. More... | |
Hare_Object | m_Type |
State variale - the type of hare. More... | |
double | m_weight |
State variale - hare weight g. More... | |
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 | |
Static Public Attributes inherited from THare | |
static double * | m_vegPalatability = NULL |
Will hold and array of palatability for hare for each tov type. Most are 1, but unpalatable vegetation can be specified here. More... | |
Class for female hares.
Definition at line 1040 of file Hare_all.h.
Hare_Female::Hare_Female | ( | int | p_x, |
int | p_y, | ||
Landscape * | p_L, | ||
THare_Population_Manager * | p_PPM, | ||
double | p_weight, | ||
int | a_age, | ||
int | a_Ref | ||
) |
|
virtual |
void Hare_Female::AddYoung | ( | THare * | a_new | ) |
Add a leveret to the list of kids.
Adds a new young to the mothers list
Definition at line 3844 of file Hare_all.cpp.
References m_MyYoung.
Referenced by THare_Population_Manager::CreateObjects().
void Hare_Female::AllYoungKilled | ( | ) |
Last leveret predated.
Behavioural switch to determine what to do on death of all young. Depends on what we were doing before.
Definition at line 3879 of file Hare_all.cpp.
References activity_gestation, activity_givebirth, activity_inoestrous, activity_lactation, activity_oestrouscycle, cfg_DaysToOestrous(), m_OestrousCounter, TAnimal::m_OurLandscape, m_reproActivity, and Landscape::Warn().
Referenced by ON_YoungKilled().
void Hare_Female::AllYoungMatured | ( | ) |
No more young to look after.
Definition at line 3931 of file Hare_all.cpp.
References activity_gestation, activity_givebirth, activity_inoestrous, activity_lactation, activity_oestrouscycle, cfg_DaysToOestrous(), m_NoYoung, m_OestrousCounter, TAnimal::m_OurLandscape, m_reproActivity, and Landscape::Warn().
Referenced by ON_RemoveYoung().
|
virtual |
Female BeginStep.
Reimplemented from Hare_Juvenile.
Definition at line 3162 of file Hare_all.cpp.
References cfg_hare_escape_dist(), cfg_hare_minimum_breeding_weight(), cfg_hare_proximity_alert(), cfg_HareFemaleSicknessDensityDepValue(), cfg_MaxEnergyIntakeScaler(), TAnimal::CheckManagement(), g_rand_uni, THare_Population_Manager::GetKJperM(), THare::GetRMR(), THare_Population_Manager::GetTotalDensity(), THare::m_ActivityTime, THare::m_Age, THare::m_ddindex, THare::m_DensitySum, THare::m_EnergyMax, THare::m_expDensity, THare::m_experiencedDensity, THare::m_foragingenergy, THare::m_IamSick, THare::m_KJForaging, THare::m_KJRunning, THare::m_KJWalking, THare::m_lastYearsDensity, THare::m_Lifespan, TAnimal::m_Location_x, TAnimal::m_Location_y, TAnimal::m_OurLandscape, THare::m_OurPopulationManager, TALMaSSObject::m_StepDone, THare::m_weight, ON_Dead(), THare::Running(), Landscape::SupplyDayInYear(), and Hare_Juvenile::WasPredated().
|
protected |
Lactation.
Feed the young milk.
Here the female uses energy and converts it to milk, which is shared equally between her leverets Assumptions:
a) There is a maximum amount of milk possible to feed to a leveret
b) Equal distribution of inadequate resources
NB the currency is KJ energy not milk per se
Definition at line 3787 of file Hare_all.cpp.
References g_PropSolidFood, THare::GetAge(), THare_Population_Manager::GetMaxDailyGrowthEnergy(), THare::m_fatReserve, m_MyYoung, and THare::m_OurPopulationManager.
Referenced by GiveBirth(), and st_ReproBehaviour().
void Hare_Female::dumpEnergy | ( | ) |
Used to record energetic status.
Definition at line 3472 of file Hare_all.cpp.
References THare::m_fatReserve, THare::m_foragingenergy, TAnimal::m_OurLandscape, THare::m_TodaysEnergy, THare::m_weight, and Landscape::SupplyDayInYear().
Referenced by st_Foraging().
|
virtual |
Female EndStep.
Reimplemented from Hare_Juvenile.
Definition at line 3291 of file Hare_all.cpp.
References cfg_hare_pesticideresponse_on(), InternalPesticideHandlingAndResponse(), and THare::MovePeg().
|
protectedvirtual |
Handles internal effects of endocrine distrupter pesticide exposure for female.
Reimplemented from THare.
Definition at line 4380 of file Hare_all.cpp.
References m_GestationCounter, and THare::m_pesticideInfluenced1.
Referenced by InternalPesticideHandlingAndResponse().
|
protectedvirtual |
Handles internal effects of organophosphate pesticide exposure for female.
Reimplemented from THare.
Definition at line 4393 of file Hare_all.cpp.
References g_rand_uni, l_pest_daily_mort, THare::m_CurrentHState, TALMaSSObject::m_StepDone, and tohs_Dying.
Referenced by InternalPesticideHandlingAndResponse().
|
protected |
Produce a litter.
Give birth to Hare_Infants.
Lets assume we do this a deterministic way. So the number of leverets depends on the mass of leveret material collected.
The size is determined by the mass divided by the number possible such that size stays in the range 95-125g
Litter size limited to max 4
Once they are born they need to be placed somewhere. This should be somewhere where the vegetation is not too sparse
Definition at line 3656 of file Hare_all.cpp.
References activity_lactation, activity_oestrouscycle, cfg_DaysToOestrous(), cfg_maxLeveretBirthWeight(), cfg_minLeveretBirthWeight(), THare_Population_Manager::CreateObjects(), DoLactation(), struct_Hare::HM, struct_Hare::L, m_LeveretMaterial, m_litter_no, m_OestrousCounter, TAnimal::m_OurLandscape, THare::m_OurPopulationManager, THare::m_pesticideInfluenced1, m_reproActivity, struct_Hare::Mum, PlaceYoung(), Landscape::SupplyMonth(), struct_Hare::weight, struct_Hare::x, and struct_Hare::y.
Referenced by st_ReproBehaviour().
void Hare_Female::Init | ( | double | p_weight, |
int | a_age, | ||
int | a_Ref | ||
) |
Object initiation.
Definition at line 3134 of file Hare_all.cpp.
References activity_oestrouscycle, THare_Population_Manager::GetKJperM(), hob_Female, THare::m_Age, THare::m_fatReserve, m_GestationCounter, THare::m_IamSick, THare::m_KJForaging, THare::m_KJRunning, THare::m_KJWalking, m_LeveretMaterial, m_litter_no, m_OestrousCounter, THare::m_old_weight, THare::m_OurPopulationManager, THare::m_RefNum, m_reproActivity, m_sterile, THare::m_Type, and THare::m_weight.
Referenced by Hare_Female(), and ReInit().
|
protectedvirtual |
Handles internal effects of pesticide exposure. If any effects are needed this method must be re-implemented by descendent classes.
This method is re-implemented ffrom THare for any class which has pesticide response behaviour. If the body burden exceeds the trigger then call pesticide-specific actions by dose
Reimplemented from THare.
Definition at line 4008 of file Hare_all.cpp.
References THare_Population_Manager::BodyBurdenOut(), cfg_HarePesticideAccumulationThreshold(), GeneralEndocrineDisruptor(), GeneralOrganoPhosphate(), TAnimal::m_OurLandscape, THare::m_OurPopulationManager, THare::m_pesticide_burden, THare::m_pesticidedegradationrate, THare::m_weight, Landscape::SupplyDayInYear(), Landscape::SupplyPesticideType(), Landscape::SupplyYearNumber(), ttop_AcuteEffects, ttop_NoPesticide, and ttop_ReproductiveEffects.
Referenced by EndStep().
|
protected |
Mate.
Definition at line 3610 of file Hare_all.cpp.
References activity_gestation, cfg_hare_DaysToGestation(), m_GestationCounter, m_LeveretMaterial, and m_reproActivity.
Referenced by st_ReproBehaviour().
bool Hare_Female::ON_AreYouMyMum | ( | THare * | a_young | ) |
|
virtual |
The female is dead.
Do the housekeeping needed for object destruction
Reimplemented from Hare_Juvenile.
Definition at line 3956 of file Hare_all.cpp.
References THare::m_CurrentHState, TALMaSSObject::m_CurrentStateNo, m_MyYoung, TALMaSSObject::m_StepDone, and tohs_Dying.
Referenced by BeginStep(), THare_Population_Manager::Hunting(), THare_Population_Manager::HuntingGrid(), and Step().
void Hare_Female::ON_RemoveYoung | ( | THare * | a_young | ) |
A leveret has matured.
This functions simply sorts through the m_Young vector and removes the matured young.
This is identical to ON_YoungKilled, but differs in the result of removing the last one.
Definition at line 3901 of file Hare_all.cpp.
References AllYoungMatured(), m_MyYoung, m_NoYoung, TAnimal::m_OurLandscape, and Landscape::Warn().
Referenced by Hare_Young::st_NextStage().
void Hare_Female::ON_YoungKilled | ( | THare * | a_young | ) |
A leveret has been killed.
This functions sorts through the m_Young vector and removes the dead young
Definition at line 3850 of file Hare_all.cpp.
References AllYoungKilled(), m_MyYoung, m_NoYoung, TAnimal::m_OurLandscape, and Landscape::Warn().
Referenced by THare::st_Dying().
|
protected |
Find somewhere nice for the babies to hide.
Find a place to put the young.
Definition at line 3755 of file Hare_all.cpp.
References Landscape::CorrectCoordsPt(), TAnimal::m_Location_x, TAnimal::m_Location_y, TAnimal::m_OurLandscape, and Landscape::SupplyVegHeight().
Referenced by GiveBirth().
void Hare_Female::ReInit | ( | struct_Hare | a_data | ) |
Female object reinitiation.
Definition at line 3123 of file Hare_all.cpp.
References struct_Hare::age, struct_Hare::HM, Init(), struct_Hare::L, TALMaSSObject::m_CurrentStateNo, TAnimal::m_Location_x, TAnimal::m_Location_y, TAnimal::m_OurLandscape, struct_Hare::RefNum, THare::THareInit(), struct_Hare::weight, struct_Hare::x, and struct_Hare::y.
Referenced by THare_Population_Manager::CreateObjects().
bool Hare_Female::SanityCheckYoungList | ( | ) |
Debug function.
Debug code for checking young lists.
Definition at line 3992 of file Hare_all.cpp.
References THare::GetMum(), m_MyYoung, and m_NoYoung.
|
inline |
Female is sterile.
Definition at line 1093 of file Hare_all.h.
References m_sterile.
Referenced by THare_Population_Manager::DoFirst().
|
protected |
Female Developing.
Definition at line 3297 of file Hare_all.cpp.
References activity_lactation, activity_Resting, cfg_adult_starvation_threshold(), cfg_adult_starve(), cfg_AdultMaxFat(), cfg_fixadult_starve(), cfg_juv_starve(), THare::EnergyBalance(), THare_Population_Manager::GetGrowthEfficiencyF(), THare_Population_Manager::GetGrowthEfficiencyP(), THare_Population_Manager::GetMaxDailyGrowthEnergyF(), THare_Population_Manager::GetMaxDailyGrowthEnergyP(), THare::m_Age, THare::m_fatReserve, THare::m_OurPopulationManager, m_reproActivity, THare::m_StarvationDays, THare::m_TodaysEnergy, THare::m_weight, tohs_Dispersal, tohs_Dying, and tohs_Foraging.
Referenced by Step().
|
protectedvirtual |
Female Dispersal.
Uses the base class st_dispersal but then adds some special female functionality.
Reimplemented from Hare_Juvenile.
Definition at line 3485 of file Hare_all.cpp.
References activity_oestrouscycle, TAnimal::m_Location_x, TAnimal::m_Location_y, m_MyYoung, THare::m_peg_x, THare::m_peg_y, m_reproActivity, Hare_Juvenile::st_Dispersal(), tohs_Dying, and tohs_Foraging.
Referenced by Step().
|
protected |
Female Foraging.
Effectively the day is started here, unless we have been dispersing.
At this point we have a whole day to use and need to figure out how to use it.
There are some constraints on the time we can use for foraging such that we need a certain amount of time for resting e.g. coprophagy. For now I am going to assume that the resting time required is proportional to forage time used and the ratio of the two is in cfg_ForageRestingRatio
Four different ways of implementing density dependence are selectable here.
Definition at line 3397 of file Hare_all.cpp.
References activity_Foraging, activity_lactation, cfg_ForageRestingRatio(), cfg_hare_pesticideresponse_on(), dumpEnergy(), THare::Forage(), THare::ForageP(), g_rand_uni, THare_Population_Manager::GetAdultDensity(), THare_Population_Manager::GetDelayedAdultDensity(), THare_Population_Manager::GetInterference(), THare::m_ActivityTime, THare_Population_Manager::m_HareThresholdDD, THare::m_lastYearsDensity, TAnimal::m_Location_x, TAnimal::m_Location_y, THare::m_OurPopulationManager, m_reproActivity, THare::m_TodaysEnergy, THare::TimeBudget(), tohs_Dispersal, tohs_ReproBehaviour, and tohs_Resting.
Referenced by Step().
|
protected |
Reproductive behaviour control.
A switch determining what repro behaviour to carry out.
Repro behaviour to consider:
1) Mating - either a function of her or the male - but lets keep it here so the male is a simple as possible.
2) Update Gestation.
3) Give Birth.
4) Lactation.
5) Getting resources for leveret production.
6) Determining leveret size and litter size?
Also optional mortality based upon reproductive mortality
Definition at line 3520 of file Hare_all.cpp.
References activity_gestation, activity_givebirth, activity_inoestrous, activity_lactation, activity_oestrouscycle, cfg_hare_minimum_breeding_weight(), cfg_HareFemaleReproMortValue(), DoLactation(), GiveBirth(), TAnimal::m_OurLandscape, m_reproActivity, THare::m_weight, Mating(), tohs_Dying, tohs_Resting, UpdateGestation(), UpdateOestrous(), and Landscape::Warn().
Referenced by Step().
|
protected |
Resting.
This method uses up the rest of the day in resting
Definition at line 3507 of file Hare_all.cpp.
References tohs_Developing.
Referenced by Step().
|
virtual |
Female Step.
Reimplemented from Hare_Juvenile.
Definition at line 3236 of file Hare_all.cpp.
References cfg_hare_adult_predation(), g_rand_uni, THare::m_CurrentHState, TALMaSSObject::m_CurrentStateNo, TAnimal::m_OurLandscape, TALMaSSObject::m_StepDone, ON_Dead(), st_Developing(), st_Dispersal(), st_Foraging(), st_ReproBehaviour(), st_Resting(), tohs_Developing, tohs_Dispersal, tohs_Dying, tohs_Foraging, tohs_InitialState, tohs_ReproBehaviour, tohs_Resting, and Landscape::Warn().
|
protected |
Update gestation counter.
Counts down gestation and grows foetal mass.
Figures out how much energy to use on growing the kids and add this to the m_LeveretMaterial
Some assumptions:
1) Foetal growth is linear, with a max per day
2) If the female's fat reserves fall below the hunger threshold value
she does not use energy on the foetus
3) maximum X% of the free energy is used on foetus production - this is an input variable.
Definition at line 3626 of file Hare_all.cpp.
References activity_givebirth, cfg_hare_adult_dispersal_threshold(), cfg_hare_foetusenergyproportion(), g_hare_maxFoetalKJ, THare::m_fatReserve, m_GestationCounter, m_LeveretMaterial, and m_reproActivity.
Referenced by st_ReproBehaviour().
|
protected |
Update oestrous counter.
Updates Oestrous if it is the breeding season.
Optional disease and minimum reproductive weight code for POM.
Definition at line 3580 of file Hare_all.cpp.
References activity_inoestrous, cfg_DaysToOestrous(), cfg_hare_adult_breed_threshold(), cfg_hare_minimum_breeding_weight(), cfg_ReproEndDay(), cfg_ReproStartDay(), THare::m_fatReserve, THare::m_IamSick, m_litter_no, m_OestrousCounter, TAnimal::m_OurLandscape, m_reproActivity, THare::m_weight, and Landscape::SupplyDayInYear().
Referenced by st_ReproBehaviour().
Swap a young list pointer.
This functions simply sorts through the m_Young vector and replaces the occurence of a_old with a_new. It is used to replace Hare_Infant pointers with Hare_Young pointers
Definition at line 3823 of file Hare_all.cpp.
References m_MyYoung.
Referenced by THare_Population_Manager::CreateObjects().
|
protected |
State variable - Days in gestation.
Definition at line 1054 of file Hare_all.h.
Referenced by GeneralEndocrineDisruptor(), Init(), Mating(), and UpdateGestation().
|
protected |
State variable - Mass of foetal material.
Definition at line 1056 of file Hare_all.h.
Referenced by GiveBirth(), Init(), Mating(), and UpdateGestation().
|
protected |
State variable - current litter number.
Definition at line 1047 of file Hare_all.h.
Referenced by GiveBirth(), Init(), and UpdateOestrous().
|
protected |
Pointer to litter.
Definition at line 1060 of file Hare_all.h.
Referenced by AddYoung(), DoLactation(), ON_AreYouMyMum(), ON_Dead(), ON_RemoveYoung(), ON_YoungKilled(), SanityCheckYoungList(), st_Dispersal(), and UpdateYoung().
|
protected |
State variable - current litter size.
Definition at line 1045 of file Hare_all.h.
Referenced by AllYoungMatured(), ON_AreYouMyMum(), ON_RemoveYoung(), ON_YoungKilled(), and SanityCheckYoungList().
|
protected |
State variable - Days in oestrous.
Definition at line 1052 of file Hare_all.h.
Referenced by AllYoungKilled(), AllYoungMatured(), GiveBirth(), Init(), and UpdateOestrous().
|
protected |
State variable - current reproductive state.
Definition at line 1058 of file Hare_all.h.
Referenced by AllYoungKilled(), AllYoungMatured(), GiveBirth(), Init(), Mating(), st_Developing(), st_Dispersal(), st_Foraging(), st_ReproBehaviour(), UpdateGestation(), and UpdateOestrous().
|
protected |
State variable - is/not sterile.
Definition at line 1049 of file Hare_all.h.
Referenced by Init(), and SetSterile().