ALMaSS Hare ODDox
1.1
The hare model description following ODdox protocol
|
The base class for all hare classes. More...
#include <Hare_all.h>
Public Member Functions | |
virtual void | BeginStep (void) |
Base implementation only - reimplemented. More... | |
virtual void | EndStep (void) |
Base implementation only - reimplemented. More... | |
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... | |
virtual void | ON_Dead (void) |
Mortality - overridden in descendent classes. 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... | |
virtual TTypeOfHareState | st_Dispersal () |
Base implementation only - reimplemented. More... | |
virtual void | Step (void) |
Base implementation only - reimplemented. 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 bool | WasPredated () |
Test for predation. 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... | |
Static Public Attributes | |
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... | |
Protected Member Functions | |
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... | |
virtual void | GeneralEndocrineDisruptor (double) |
Handles internal effects of endocrine distrupter pesticide exposure. If any effects are needed this method must be re-implemented by descendent classes. More... | |
virtual void | GeneralOrganoPhosphate (double) |
Handles internal effects of organophosphate pesticide exposure. If any effects are needed this method must be re-implemented by descendent classes. More... | |
int | GetPegDirection () |
Get direction of peg. More... | |
int | GetPegDistance () |
Get peg distance. More... | |
int | GetPegPull () |
Get attractive force of peg. 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 | 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_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... | |
The base class for all hare classes.
Definition at line 154 of file Hare_all.h.
THare::THare | ( | int | p_x, |
int | p_y, | ||
Landscape * | p_L, | ||
THare_Population_Manager * | p_PPM | ||
) |
Constructor.
THare constructor code
Definition at line 66 of file Hare_THare.cpp.
References THareInit().
|
virtual |
|
inlinevirtual |
Base implementation only - reimplemented.
Reimplemented from TAnimal.
Reimplemented in Hare_Female, Hare_Male, Hare_Juvenile, Hare_Young, and Hare_Infant.
Definition at line 344 of file Hare_all.h.
|
inlinevirtual |
Base implementation only - reimplemented.
Reimplemented from TAnimal.
Reimplemented in Hare_Female, Hare_Male, Hare_Juvenile, Hare_Young, and Hare_Infant.
Definition at line 354 of file Hare_all.h.
References MovePeg().
|
protected |
Adjust energy balance for an activity.
This method calculates energy used and subtracts this from the fat store.
The fat store is KJ so no conversion is required here. The fat store can only be a maximum X% of the body weight
Definition at line 277 of file Hare_THare.cpp.
References activity_Dispersal, activity_Foraging, activity_Resting, activity_Running, activity_Walking, THare_Population_Manager::GetRMR(), GetTotalWeight(), m_Age, m_fatReserve, m_foragingenergy, m_KJForaging, m_KJRunning, m_KJWalking, TAnimal::m_OurLandscape, m_OurPopulationManager, m_TodaysEnergy, and Landscape::Warn().
Referenced by Forage(), ForageP(), Running(), Hare_Male::st_Developing(), Hare_Female::st_Developing(), Hare_Juvenile::st_Dispersal(), Hare_Young::st_Resting(), and Hare_Juvenile::st_Resting().
|
protected |
Foraging.
This could be implemented in each hare's st_Foraging, but is implemented as a common method because all the hares do it the same way. This method determine how much energy can be foraged from the current location in the time available (a_time).
It is important that energy used for foraging is deducted from the energybudget calculations before calculating the target - otherwise growth will be affected.
Efficiency can be roughly calculated for optimal forage by calculating the number squares and the cost of foraging together with the return. e.g. 100m2 -> 10m2 forage with ext of 5.0 = 50KJ at a cost of 100*m_KJForaging.
Hence return can be calculated and the target adjusted accordingly
m_EnergyMax is the max amount of energy possible in one day (intake/cfg_hare_ExtEff to reduce calculations). This needs to be no more than they ever need, the closer to this limit the faster the code will run due to avoiding unnecessary searching, but also will prevent high energy usage being offset by too high intake. m_EnergyMax is set at the beginnng of each day in BeginStep.
Definition at line 54 of file HareForagenPeg.cpp.
References __SQRS, activity_Foraging, cfg_hare_pegmoveto_chance(), EnergyBalance(), ForageSquare(), GetPegDirection(), GetPegPull(), m_EnergyMax, TAnimal::m_Location_x, TAnimal::m_Location_y, and Walking().
Referenced by Hare_Young::st_Foraging(), Hare_Juvenile::st_Foraging(), Hare_Male::st_Foraging(), and Hare_Female::st_Foraging().
|
protected |
Foraging but also incorporating pesticide exposure.
This could be implemented in each hare's st_Foraging, but is implemented as a common method because all the hares do it the same way. This method determine how much energy can be foraged from the current location in the time available (a_time).
It is important that energy used for foraging is deducted from the energybudget calculations before calculating the target - otherwise growth will be affected.
Efficiency can be roughly calculated for optimal forage by calculating the number squares and the cost of foraging together with the return. e.g. 100m2 -> 10m2 forage with ext of 5.0 = 50KJ at a cost of 100*m_KJForaging. Hence return can be calculated and the target adjusted accordingly
The only difference between this method and THare::Forage is that this one calls the version of ForageSquare that also calculates pesticide exposure.
m_EnergyMax is the max amount of energy possible in one day. This needs to be no more than they ever need, the closer to this limit the faster the code will run due to avoiding unnecessary searching, but also will prevent high energy usage being offset by too high intake. m_EnergyMax is set at the beginnng of each day in BeginStep.
Definition at line 181 of file HareForagenPeg.cpp.
References __SQRS, activity_Foraging, cfg_hare_pegmoveto_chance(), EnergyBalance(), ForageSquareP(), GetPegDirection(), GetPegPull(), m_EnergyMax, TAnimal::m_Location_x, TAnimal::m_Location_y, m_pesticide_burden, and Walking().
Referenced by Hare_Young::st_Foraging(), Hare_Juvenile::st_Foraging(), Hare_Male::st_Foraging(), and Hare_Female::st_Foraging().
|
protected |
Forage from an area.
Definition at line 322 of file HareForagenPeg.cpp.
References __FSQRS, cfg_hare_ExtEff, Landscape::GetHareFoodQuality(), THare_Population_Manager::GetPolyFood(), TAnimal::m_OurLandscape, m_OurPopulationManager, m_vegPalatability, THare_Population_Manager::SetPolyFood(), Landscape::SupplyPolyRef(), Landscape::SupplySimAreaHeight(), Landscape::SupplySimAreaWidth(), and Landscape::SupplyVegType().
Referenced by Forage().
|
protected |
Forage from an area and resturn pesticide exposure as well as food.
Definition at line 372 of file HareForagenPeg.cpp.
References __FSQRS, cfg_hare_ExtEff, cfg_hare_pesticide_contact_exposure_rate(), cfg_hare_pesticide_ingestion_exposure_rate(), Landscape::GetHareFoodQuality(), THare_Population_Manager::GetPolyFood(), TAnimal::m_OurLandscape, m_OurPopulationManager, m_vegPalatability, ppp_1, THare_Population_Manager::SetPolyFood(), Landscape::SupplyPesticideP(), Landscape::SupplyPolyRef(), Landscape::SupplySimAreaHeight(), Landscape::SupplySimAreaWidth(), and Landscape::SupplyVegType().
Referenced by ForageP().
|
inlineprotectedvirtual |
Handles internal effects of endocrine distrupter pesticide exposure. If any effects are needed this method must be re-implemented by descendent classes.
Reimplemented in Hare_Male, and Hare_Female.
Definition at line 482 of file Hare_all.h.
|
inlineprotectedvirtual |
Handles internal effects of organophosphate pesticide exposure. If any effects are needed this method must be re-implemented by descendent classes.
Reimplemented in Hare_Male, and Hare_Female.
Definition at line 487 of file Hare_all.h.
|
inline |
Provide the age of the hare
Definition at line 377 of file Hare_all.h.
References m_Age.
Referenced by THare_Population_Manager::DoFirst(), Hare_Female::DoLactation(), and THare_Population_Manager::POMOutputs().
|
inline |
Get the mother pointer.
Definition at line 404 of file Hare_all.h.
References m_MyMum.
Referenced by Hare_Female::SanityCheckYoungList().
|
inlineprotected |
Get direction of peg.
Daily movement is limited by a peg which does not really want to move, but can be dragged slowly. This requires a set of rapid functions because they will be used a lot. NB dispersal takes no account of the peg.
Figures out the closest direction to peg.
1 NE, 3 SE, 5 SWest & 7 NW
only uses 4 returns because this is very fast and relatively simple - 8 directions would be quite difficult to implement fast
This is also complicated by the fact that the peg can be at the other end of the world due to wrap around.
Definition at line 460 of file HareForagenPeg.cpp.
References TAnimal::m_Location_x, TAnimal::m_Location_y, m_OurPopulationManager, m_peg_x, m_peg_y, Population_Manager::SimHH, and Population_Manager::SimWH.
|
inlineprotected |
Get peg distance.
Daily movement is limited by a peg which does not really want to move, but can be dragged slowly. This requires a set of rapid functions because they will be used a lot. NB dispersal takes no account of the peg.
Calculates the distance from our current x,y to the peg We must avoid sqrt and the like so our distance is in rectangular co-ordinates. This is complicated by the fact that the peg and hare may be on opposite sides of the world due to wrap around.
Definition at line 435 of file HareForagenPeg.cpp.
References TAnimal::m_Location_x, TAnimal::m_Location_y, m_OurPopulationManager, m_peg_x, m_peg_y, Population_Manager::SimH, Population_Manager::SimHH, Population_Manager::SimW, and Population_Manager::SimWH.
Referenced by GetPegPull().
|
inlineprotected |
Get attractive force of peg.
Returns the squared rectangular distance from the peg
Definition at line 451 of file HareForagenPeg.cpp.
References GetPegDistance().
|
inline |
Get the refnum for this hare.
Definition at line 419 of file Hare_all.h.
References m_RefNum.
Referenced by THare_Population_Manager::MRROutputs().
double THare::GetRMR | ( | ) |
Get todays RMR.
Gets the hare RMR based on age and mass
Definition at line 349 of file Hare_THare.cpp.
References THare_Population_Manager::GetRMR(), GetTotalWeight(), m_Age, and m_OurPopulationManager.
Referenced by Hare_Young::BeginStep(), Hare_Juvenile::BeginStep(), Hare_Male::BeginStep(), and Hare_Female::BeginStep().
|
inline |
Provide the wet weight of the hare.
Uses a standard multiplier of 3.8 to convert dry to wet weight, then adds the fat (no water here).
Definition at line 370 of file Hare_all.h.
References m_fatReserve, and m_weight.
Referenced by EnergyBalance(), GetRMR(), THare_Population_Manager::POMOutputs(), Hare_Infant::st_Developing(), and Hare_Young::st_Foraging().
|
inline |
|
protectedvirtual |
Handles internal effects of pesticide exposure. If any effects are needed this method must be re-implemented by descendent classes.
This method needs to be re-implemented for any class which has pesticide response behaviour. e.g. see Hare_Female::InternalPesticideHandlingAndResponse
Reimplemented in Hare_Female, and Hare_Male.
Definition at line 551 of file HareForagenPeg.cpp.
References m_pesticide_burden, and m_pesticidedegradationrate.
Referenced by Hare_Young::EndStep(), and Hare_Juvenile::EndStep().
void THare::loadVegPalatability | ( | void | ) |
Loads static member m_vegPalatability with data.
Definition at line 116 of file Hare_THare.cpp.
References m_vegPalatability, tov_Carrots, tov_NoGrowth, tov_None, tov_OCarrots, tov_OPotatoes, tov_PlantNursery, tov_Potatoes, tov_PotatoesIndustry, and tov_Undefined.
Referenced by THare_Population_Manager::Init().
|
protected |
Move the peg according to attraction forces.
Daily movement is limited by a peg which does not really want to move, but can be dragged slowly. This requires a set of rapid functions because they will be used a lot. NB dispersal takes no account of the peg.
Moves the peg towards the location, the speed of movement is dependent upon an inertia parameter.
Once again we have the problem of wrap around.
Definition at line 527 of file HareForagenPeg.cpp.
References g_hare_peg_inertia, TAnimal::m_Location_x, TAnimal::m_Location_y, m_OurPopulationManager, m_peg_x, m_peg_y, Population_Manager::SimHH, and Population_Manager::SimWH.
Referenced by EndStep(), Hare_Infant::EndStep(), Hare_Young::EndStep(), Hare_Juvenile::EndStep(), Hare_Male::EndStep(), and Hare_Female::EndStep().
|
inlinevirtual |
Mortality - overridden in descendent classes.
Reimplemented in Hare_Female, Hare_Male, Hare_Juvenile, Hare_Young, and Hare_Infant.
Definition at line 424 of file Hare_all.h.
Referenced by THare_Population_Manager::HuntingDifferentiatedBeetleBankArea().
|
inline |
Inform Mum that we are dead.
Really a Hare_Infant method. Implemented here because it is needed only for debug.
Definition at line 387 of file Hare_all.h.
References m_MyMum, TAnimal::m_OurLandscape, and Landscape::Warn().
|
protectedvirtual |
Do we require a response to a farm event.
Checks to see if any nasty farm event has caused any behaviour. Few do directly, most work by changes in vegetation or forage, but if they do they can be added here
Reimplemented from TAnimal.
Reimplemented in Hare_Young, and Hare_Infant.
Definition at line 372 of file Hare_THare.cpp.
References cattle_out, cfg_hare_escape_dist, pigs_out, and Running().
|
protected |
Run a distance in a direction.
Definition at line 193 of file Hare_THare.cpp.
References TAnimal::m_Location_x, TAnimal::m_Location_y, TAnimal::m_OurLandscape, m_OurPopulationManager, Population_Manager::SimH, Population_Manager::SimW, Landscape::SupplyElementType(), tole_BareRock, tole_Building, tole_Coast, tole_Freshwater, tole_Pond, tole_River, tole_Saltwater, tole_SandDune, tole_Stream, tole_UrbanNoVeg, and tole_UrbanPark.
|
protectedvirtual |
Run.
Moves the hare and alters the energy and time budget to simulate running /n All proximity alerts or other causes of running for all hares are sent via this code - the code then calls a movement code and energetic code. However these are may not the same for all hare types, so if there is a specific routine for a type, that is called, if not the default is used - there is no need to worry about this as the calling program.
Definition at line 152 of file Hare_THare.cpp.
References activity_Recovery, activity_Running, cfg_Hare_Recovery_Time, EnergyBalance(), Run(), and TimeBudget().
Referenced by Hare_Young::BeginStep(), Hare_Juvenile::BeginStep(), Hare_Male::BeginStep(), Hare_Female::BeginStep(), and OnFarmEvent().
|
inline |
Set the mother pointer. Reimplemented in Hare_Infant.
Definition at line 399 of file Hare_all.h.
Referenced by THare_Population_Manager::CreateObjects().
|
virtual |
Base implementation only - reimplemented.
This function is really a dummy - but it needs to be here.
The return values is meaningless, but stops the compiler complaining
Reimplemented in Hare_Female, Hare_Juvenile, and Hare_Young.
Definition at line 138 of file Hare_THare.cpp.
References tohs_InitialState.
|
protected |
Tidy up before removing the object on death.
Do the housekeeping necessary to die
Definition at line 172 of file Hare_THare.cpp.
References m_CurrentHState, TALMaSSObject::m_CurrentStateNo, m_MyMum, TALMaSSObject::m_StepDone, Hare_Female::ON_YoungKilled(), and tohs_DestroyObject.
Referenced by Hare_Infant::ON_Dead(), and Hare_Young::ON_Dead().
|
inlinevirtual |
Base implementation only - reimplemented.
Reimplemented from TAnimal.
Reimplemented in Hare_Female, Hare_Male, Hare_Juvenile, Hare_Young, and Hare_Infant.
Definition at line 349 of file Hare_all.h.
void THare::THareInit | ( | int | p_x, |
int | p_y, | ||
THare_Population_Manager * | p_PPM | ||
) |
Object Initiation.
Definition at line 72 of file Hare_THare.cpp.
References cfg_hare_max_age, cfg_hare_max_age_var, cfg_hare_pesticidedegradationrate(), cfg_Hare_StdSpeedRunning, cfg_Hare_StdSpeedWalking, THare_Population_Manager::GetHareRefNum(), m_ActivityTime, m_CurrentHState, m_ddindex, m_DensitySum, m_expDensity, m_experiencedDensity, m_fatReserve, m_foragingenergy, m_KJForaging, m_KJRunning, m_KJWalking, m_lastYearsDensity, m_Lifespan, m_OurPopulationManager, m_peg_x, m_peg_y, m_pesticide_burden, m_pesticidedegradationrate, m_pesticideInfluenced1, m_RefNum, m_SpeedRunning, m_SpeedWalking, m_StarvationDays, m_TodaysEnergy, and tohs_InitialState.
Referenced by Hare_Infant::ReInit(), Hare_Young::ReInit(), Hare_Juvenile::ReInit(), Hare_Male::ReInit(), Hare_Female::ReInit(), and THare().
|
protected |
Adjust time budger for an activity.
This method calculates time used for each activity and subtracts this from the day
Definition at line 314 of file Hare_THare.cpp.
References activity_Dispersal, activity_Foraging, activity_Recovery, activity_Resting, activity_Running, activity_Walking, m_ActivityTime, TAnimal::m_OurLandscape, m_SpeedRunning, m_SpeedWalking, and Landscape::Warn().
Referenced by Running(), Hare_Juvenile::st_Dispersal(), Hare_Young::st_Foraging(), Hare_Juvenile::st_Foraging(), Hare_Male::st_Foraging(), Hare_Female::st_Foraging(), Hare_Young::st_Resting(), and Hare_Juvenile::st_Resting().
|
protected |
Walking.
Moves the hare and alters the energy budget to simulate walking.
Definition at line 183 of file Hare_THare.cpp.
References Run().
Referenced by Forage(), ForageP(), and Hare_Juvenile::st_Dispersal().
|
virtual |
Test for predation.
A mortality test. Also include optional code for size and low fat reserve increased mortality - tested under the POM
Reimplemented in Hare_Juvenile.
Definition at line 357 of file Hare_THare.cpp.
References cfg_hare_lowfatextramort(), cfg_hare_minimum_breeding_weight, g_rand_uni, THare_Population_Manager::m_AdultMortRate, m_Age, m_fatReserve, m_OurPopulationManager, and m_weight.
|
protected |
Minutes of potential activity time per day.
Definition at line 203 of file Hare_all.h.
Referenced by Hare_Infant::BeginStep(), Hare_Young::BeginStep(), Hare_Juvenile::BeginStep(), Hare_Male::BeginStep(), Hare_Female::BeginStep(), Hare_Young::st_Foraging(), Hare_Juvenile::st_Foraging(), Hare_Male::st_Foraging(), Hare_Female::st_Foraging(), Hare_Young::st_Resting(), Hare_Juvenile::st_Resting(), THareInit(), and TimeBudget().
|
protected |
State variale - hare age.
Definition at line 170 of file Hare_all.h.
Referenced by Hare_Male::BeginStep(), Hare_Female::BeginStep(), EnergyBalance(), GetAge(), GetRMR(), Hare_Infant::Init(), Hare_Young::Init(), Hare_Juvenile::Init(), Hare_Male::Init(), Hare_Female::Init(), Hare_Juvenile::ShouldMature(), Hare_Infant::st_Developing(), Hare_Young::st_Developing(), Hare_Juvenile::st_Developing(), Hare_Male::st_Developing(), Hare_Female::st_Developing(), Hare_Young::st_Foraging(), Hare_Infant::st_NextStage(), Hare_Juvenile::st_NextStage(), and WasPredated().
|
protected |
Defines the current activity.
Inherits m_Location_x, m_Location_y, m_OurLandscape and general step behaviour from TAnimal
Definition at line 165 of file Hare_all.h.
Referenced by Hare_Infant::EndStep(), Hare_Young::EndStep(), Hare_Male::GeneralOrganoPhosphate(), Hare_Female::GeneralOrganoPhosphate(), Hare_Juvenile::ON_Dead(), Hare_Male::ON_Dead(), Hare_Female::ON_Dead(), st_Dying(), Hare_Infant::st_NextStage(), Hare_Young::st_NextStage(), Hare_Juvenile::st_NextStage(), Hare_Infant::Step(), Hare_Young::Step(), Hare_Juvenile::Step(), Hare_Male::Step(), Hare_Female::Step(), and THareInit().
|
protected |
State variable used in alternative density-dependent configurations.
Definition at line 281 of file Hare_all.h.
Referenced by Hare_Juvenile::BeginStep(), Hare_Male::BeginStep(), Hare_Female::BeginStep(), and THareInit().
|
protected |
State variable used in alternative density-dependent configurations.
Definition at line 291 of file Hare_all.h.
Referenced by Hare_Juvenile::BeginStep(), Hare_Male::BeginStep(), Hare_Female::BeginStep(), and THareInit().
|
protected |
State variable - the amount of energy it is possible to eat as a multiplyer or RMR.
Definition at line 223 of file Hare_all.h.
Referenced by Hare_Young::BeginStep(), Hare_Juvenile::BeginStep(), Hare_Male::BeginStep(), Hare_Female::BeginStep(), Forage(), and ForageP().
|
protected |
State variable used in alternative density-dependent configurations.
Definition at line 286 of file Hare_all.h.
Referenced by Hare_Juvenile::BeginStep(), Hare_Male::BeginStep(), Hare_Female::BeginStep(), and THareInit().
|
protected |
State variable used in alternative density-dependent configurations.
Definition at line 271 of file Hare_all.h.
Referenced by Hare_Male::BeginStep(), Hare_Female::BeginStep(), and THareInit().
|
protected |
State variable - the energy reserve of the hare.
Definition at line 213 of file Hare_all.h.
Referenced by Hare_Female::DoLactation(), Hare_Female::dumpEnergy(), EnergyBalance(), GetTotalWeight(), Hare_Male::Init(), Hare_Female::Init(), Hare_Juvenile::st_Developing(), Hare_Male::st_Developing(), Hare_Female::st_Developing(), THareInit(), Hare_Female::UpdateGestation(), Hare_Female::UpdateOestrous(), and WasPredated().
|
protected |
Energy obtained from foraging/feeding.
Definition at line 252 of file Hare_all.h.
Referenced by Hare_Male::BeginStep(), Hare_Female::BeginStep(), Hare_Female::dumpEnergy(), EnergyBalance(), and THareInit().
|
protected |
flag for sickness - used in conjunction with disease configurations
Definition at line 295 of file Hare_all.h.
Referenced by Hare_Male::BeginStep(), Hare_Female::BeginStep(), Hare_Female::Init(), and Hare_Female::UpdateOestrous().
|
protected |
KJ/m cost of foraging per kg hare.
Definition at line 238 of file Hare_all.h.
Referenced by Hare_Infant::BeginStep(), Hare_Young::BeginStep(), Hare_Juvenile::BeginStep(), Hare_Male::BeginStep(), Hare_Female::BeginStep(), EnergyBalance(), Hare_Female::Init(), and THareInit().
|
protected |
KJ/m cost of running per kg hare.
Definition at line 228 of file Hare_all.h.
Referenced by Hare_Infant::BeginStep(), Hare_Young::BeginStep(), Hare_Juvenile::BeginStep(), Hare_Male::BeginStep(), Hare_Female::BeginStep(), EnergyBalance(), Hare_Female::Init(), and THareInit().
|
protected |
KJ/m cost of walking per kg hare.
Definition at line 233 of file Hare_all.h.
Referenced by Hare_Infant::BeginStep(), Hare_Young::BeginStep(), Hare_Juvenile::BeginStep(), Hare_Male::BeginStep(), Hare_Female::BeginStep(), EnergyBalance(), Hare_Female::Init(), and THareInit().
|
protected |
State variable used in alternative density-dependent configurations.
Definition at line 276 of file Hare_all.h.
Referenced by Hare_Juvenile::BeginStep(), Hare_Male::BeginStep(), Hare_Female::BeginStep(), Hare_Male::st_Foraging(), Hare_Female::st_Foraging(), and THareInit().
|
protected |
Physiolocal lifespan, assuming nothing else kills the hare (unlikely to reach this age)
Definition at line 198 of file Hare_all.h.
Referenced by Hare_Male::BeginStep(), Hare_Female::BeginStep(), and THareInit().
|
protected |
Pointer to the hare's mum.
Definition at line 190 of file Hare_all.h.
Referenced by Hare_Infant::BeginStep(), GetMum(), ON_MumDead(), Hare_Infant::SetMum(), st_Dying(), Hare_Infant::st_NextStage(), and Hare_Young::st_NextStage().
|
protected |
State variale - last hare weight.
Definition at line 185 of file Hare_all.h.
Referenced by Hare_Infant::BeginStep(), Hare_Young::BeginStep(), Hare_Juvenile::BeginStep(), Hare_Infant::Init(), Hare_Female::Init(), Hare_Infant::st_Developing(), and Hare_Young::st_Developing().
|
protected |
Pointer to the hare population manager.
Definition at line 194 of file Hare_all.h.
Referenced by Hare_Infant::BeginStep(), Hare_Young::BeginStep(), Hare_Juvenile::BeginStep(), Hare_Male::BeginStep(), Hare_Female::BeginStep(), Hare_Female::DoLactation(), EnergyBalance(), ForageSquare(), ForageSquareP(), GetPegDirection(), GetPegDistance(), GetRMR(), Hare_Female::GiveBirth(), Hare_Female::Init(), Hare_Male::InternalPesticideHandlingAndResponse(), Hare_Female::InternalPesticideHandlingAndResponse(), MovePeg(), Run(), Hare_Infant::st_Developing(), Hare_Young::st_Developing(), Hare_Juvenile::st_Developing(), Hare_Male::st_Developing(), Hare_Female::st_Developing(), Hare_Juvenile::st_Dispersal(), Hare_Young::st_Foraging(), Hare_Juvenile::st_Foraging(), Hare_Male::st_Foraging(), Hare_Female::st_Foraging(), Hare_Infant::st_NextStage(), Hare_Young::st_NextStage(), Hare_Juvenile::st_NextStage(), THareInit(), WasPredated(), and Hare_Juvenile::WasPredated().
|
protected |
peg x-coordinate
Definition at line 256 of file Hare_all.h.
Referenced by GetPegDirection(), GetPegDistance(), MovePeg(), Hare_Female::st_Dispersal(), and THareInit().
|
protected |
peg y-coordinate
Definition at line 260 of file Hare_all.h.
Referenced by GetPegDirection(), GetPegDistance(), MovePeg(), Hare_Female::st_Dispersal(), and THareInit().
|
protected |
State variable used to hold the current body-burden of pesticide.
Definition at line 301 of file Hare_all.h.
Referenced by ForageP(), InternalPesticideHandlingAndResponse(), Hare_Male::InternalPesticideHandlingAndResponse(), Hare_Female::InternalPesticideHandlingAndResponse(), and THareInit().
|
protected |
State variable used to hold the daily degredation rate of the pesticide in the body.
Definition at line 306 of file Hare_all.h.
Referenced by InternalPesticideHandlingAndResponse(), Hare_Male::InternalPesticideHandlingAndResponse(), Hare_Female::InternalPesticideHandlingAndResponse(), and THareInit().
|
protected |
Flag to indicate pesticide effects (e.g. can be used for endocrine distruptors with delayed effects until birth).
Definition at line 311 of file Hare_all.h.
Referenced by Hare_Female::GeneralEndocrineDisruptor(), Hare_Female::GiveBirth(), and THareInit().
|
protected |
Unique hare reference number, also functions as sex flag.
Definition at line 265 of file Hare_all.h.
Referenced by GetRefNum(), Hare_Male::Init(), Hare_Female::Init(), Hare_Juvenile::st_NextStage(), and THareInit().
|
protected |
m/min speed of running per kg hare
Definition at line 243 of file Hare_all.h.
Referenced by THareInit(), and TimeBudget().
|
protected |
m/min speed of walking per kg hare
Definition at line 248 of file Hare_all.h.
Referenced by THareInit(), and TimeBudget().
|
protected |
State variable - the number of consecutive days in negative energy balance.
Definition at line 208 of file Hare_all.h.
Referenced by Hare_Infant::st_Developing(), Hare_Young::st_Developing(), Hare_Juvenile::st_Developing(), Hare_Male::st_Developing(), Hare_Female::st_Developing(), and THareInit().
|
protected |
State variable - the amount of energy available today, can be in deficit.
Definition at line 218 of file Hare_all.h.
Referenced by Hare_Female::dumpEnergy(), EnergyBalance(), Hare_Infant::ON_BeingFed(), Hare_Infant::st_Developing(), Hare_Young::st_Developing(), Hare_Juvenile::st_Developing(), Hare_Male::st_Developing(), Hare_Female::st_Developing(), Hare_Young::st_Foraging(), Hare_Juvenile::st_Foraging(), Hare_Male::st_Foraging(), Hare_Female::st_Foraging(), and THareInit().
|
protected |
State variale - the type of hare.
Definition at line 175 of file Hare_all.h.
Referenced by Hare_Infant::Init(), Hare_Young::Init(), Hare_Juvenile::Init(), Hare_Male::Init(), Hare_Female::Init(), and Hare_Juvenile::st_Dispersal().
|
static |
Will hold and array of palatability for hare for each tov type. Most are 1, but unpalatable vegetation can be specified here.
Definition at line 318 of file Hare_all.h.
Referenced by ForageSquare(), ForageSquareP(), loadVegPalatability(), Hare_Juvenile::st_Dispersal(), and THare_Population_Manager::~THare_Population_Manager().
|
protected |
State variale - hare weight g.
Definition at line 180 of file Hare_all.h.
Referenced by Hare_Infant::BeginStep(), Hare_Young::BeginStep(), Hare_Juvenile::BeginStep(), Hare_Male::BeginStep(), Hare_Female::BeginStep(), Hare_Female::dumpEnergy(), GetTotalWeight(), GetWeight(), Hare_Infant::Init(), Hare_Young::Init(), Hare_Juvenile::Init(), Hare_Male::Init(), Hare_Female::Init(), Hare_Male::InternalPesticideHandlingAndResponse(), Hare_Female::InternalPesticideHandlingAndResponse(), Hare_Infant::SetWeight(), Hare_Infant::st_Developing(), Hare_Young::st_Developing(), Hare_Juvenile::st_Developing(), Hare_Male::st_Developing(), Hare_Female::st_Developing(), Hare_Infant::st_NextStage(), Hare_Young::st_NextStage(), Hare_Juvenile::st_NextStage(), Hare_Female::st_ReproBehaviour(), Hare_Female::UpdateOestrous(), and WasPredated().