Goose Management Model ODdox
1.02
|
Go to the documentation of this file.
40 #include "../BatchALMaSS/ALMaSS_Setup.h"
41 #include "../Landscape/ls.h"
42 #include "../BatchALMaSS/PopulationManager.h"
45 #include "../BatchALMaSS/CurveClasses.h"
46 #include "../Hunters/Hunters_all.h"
49 #include "../BatchALMaSS/BoostRandomGenerators.h"
52 extern boost::variate_generator<base_generator_type&, boost::uniform_real<> >
g_rand_uni;
71 Init(p_NPM, a_weight, a_sex, a_roost);
81 double daylightprop = m_OurLandscape->SupplyDaylightProp();
82 double nighttimeprop = m_OurLandscape->SupplyNightProp();
90 Init(p_NPM, a_weight, a_sex, a_roost);
140 m_OurLandscape->CorrectCoordsPointNoWrap(pt);
155 Init(p_NPM, a_weight, a_sex, a_groupsize, a_roost);
173 Init(p_NPM, a_weight, a_sex, a_grpsize, a_roost);
186 if (m_StepDone || m_CurrentStateNo == -1)
return;
216 m_OurLandscape->Warn(
"Goose_Pinkfoot_FamilyGroup::Step()",
"unknown state - default");
249 Init(p_NPM, a_weight, a_sex, a_roost);
265 Init(p_NPM, a_weight, a_sex, a_roost);
277 if (m_StepDone || m_CurrentStateNo == -1)
return;
307 m_OurLandscape->Warn(
"Goose_Pinkfoot_FamilyGroup::Step()",
"unknown state - default");
TTypeOfGoose_BaseState st_Roost()
Roosting until next forage or next morning.
int m_myForageIndex
Temporary storage for a forage location index - this is a speed optimisation.
double m_DEB
The daily energy budget excluding flying (kJ)
int m_groupsize
The size of the group this bird represents.
static double m_GooseFieldForageDist[gs_foobar]
The maximum distance travelled from roost to forage sites for each species of goose (m)
TTypeOfGoose_BaseState st_ChooseForageLocation(void)
Selects a forage location based on past memory, or initiates an exploration.
void ReInit(Landscape *p_L, Goose_Population_Manager *p_NPM, double a_weight, bool a_sex, APoint a_roost)
ReInit for object pool.
static double m_GooseMaxAppetiteScaler
Scaler to determine the max kJ possible to eat per day based on non-energy reserve weight.
static double m_GooseForageDistX2[gs_foobar]
Double the maximum distance travelled from roost to forage sites for each species of goose (m) - this...
The landscape class containing all environmental and topographical data.
GooseSpecies m_myspecies
Holds goose species.
double m_DailyMaxAppetite
The daily max kJ possible to get as intake.
void Init(Goose_Population_Manager *p_NPM, double a_weight, bool a_sex, APoint a_roost)
Intitialise object.
TTypeOfGoose_BaseState CurrentGState
Variable to record current behavioural state.
void st_Dying(void)
Behavioural state dying.
double GetThermalCosts(GooseSpecies a_goose)
Get daily thermal costs const.
static double m_GooseForageDist[gs_foobar]
The maximum distance travelled from roost to forage sites for each species of goose (m)
GooseMemoryMap * m_MyMemory
The Goose Memory.
The class to handle all goose population related matters.
void On_Migrate(TTypeOfLeaveReason a_leavereason)
The goose is told to leave the simulation area (poss due to bad weather)
Header file for the Goose Memory Map and associated classes.
void FlyTo(int a_x, int a_y)
The goose flys to the location specified by a_x, a_y.
double m_BMR
The daily BMR.
void EvaluateForageToHopLoc(APoint a_HopLoc)
Do a forage evaluation from current location to a_HopLoc.
Goose_Base.h This is the header file for the goose base class
A class to describe the goose base.
TTypeOfGoose_BaseState st_Forage()
Behavioural forage.
Double configurator entry class.
GooseSpeciesType m_myGooseSpeciesType
Holds the goose species type.
Goose_Population_Manager * m_OurPopulationManager
This is a time saving pointer to the correct population manager object.
static double m_GooseFieldForageDistX2[gs_foobar]
Double the maximum distance travelled from roost to forage sites for each species of goose (m) - this...
void RemoveGeeseFromForageLocation(GooseSpeciesType a_type, int a_index, int a_number)
Removes a goose or geese to the forage location - requires an index.
APoint m_MyRoost
The current roost location.
Goose_Population_Manager.h This is the header file for the goose population manager class