Goose Management Model ODdox
1.02
|
Goose_Base.h This is the c++ code file for the goose base class
More...
#include <iostream>
#include <fstream>
#include <list>
#include <vector>
#include "../Landscape/ls.h"
#include "../BatchALMaSS/PopulationManager.h"
#include "../GooseManagement/GooseMemoryMap.h"
#include "../GooseManagement/Goose_Base.h"
#include "../BatchALMaSS/CurveClasses.h"
#include "../Hunters/Hunters_all.h"
#include "../GooseManagement/Goose_Population_Manager.h"
#include "../BatchALMaSS/BoostRandomGenerators.h"
Go to the source code of this file.
Variables | |
CfgInt | cfg_goose_AfterDarkTime |
The number of minutes that geese will be foraging after sunset. More... | |
CfgFloat | cfg_goose_BMRconstant1 |
The cost of BMR per kg goose - constant 1. More... | |
CfgFloat | cfg_goose_BMRconstant2 |
The cost of BMR per kg goose - constant 2. More... | |
CfgFloat | cfg_goose_daytime_BMR_multiplier |
To calculate daily energy budget. This is the multiple of BMR spent during daytime Default is based on Madsen 1985 ("Relations between change in spring habitat selection...") More... | |
CfgFloat | cfg_goose_InitialEnergyReserveProportion |
The initial proportion of weight that can be stored as energy reserves. More... | |
CfgFloat | cfg_goose_MinForageRateDecayRate |
The decay rate for the minimum forage rate. More... | |
CfgFloat | cfg_goose_nighttime_BMR_multiplier |
To calculate daily energy budget. This is the multiple of BMR spent during nighttime. More... | |
CfgInt | cfg_goose_pf_springmigdateend |
Input: Date for end of spring migration. More... | |
CfgInt | cfg_goose_pf_springmigdatestart |
Input: Date for onset of spring migration. More... | |
CfgInt | cfg_goose_RoostLeaveDistMean |
The mean for the normal distribution which determines roost leave time. More... | |
CfgInt | cfg_goose_RoostLeaveDistSD |
The standard deviation for the normal distribution which determines roost leave time. More... | |
CfgFloat | cfg_goose_snow_scaler |
The decrease in intake rate resulting from snow. More... | |
ALMaSS_MathFuncs | g_AlmassMathFuncs |
This variable provides access the to the internal ALMaSS math functions. More... | |
MapErrorMsg * | g_msg |
This pointer provides access the to the internal ALMaSS error message system. More... | |
boost::variate_generator< base_generator_type &, boost::uniform_real<> > | g_rand_uni |
A random number generator (0-1) More... | |
boost::variate_generator< base_generator_type &, boost::uniform_int<> > | g_rand_uni2 |
A random number generator (0-9999) More... | |
Goose_Base.h This is the c++ code file for the goose base class
by Chris J. Topping
Version of 8th February 2013
Definition in file Goose_Base.cpp.
CfgInt cfg_goose_AfterDarkTime |
The number of minutes that geese will be foraging after sunset.
Referenced by Goose_Base::st_ChooseForageLocation(), and Goose_Base::st_Forage().
CfgFloat cfg_goose_BMRconstant1 |
The cost of BMR per kg goose - constant 1.
Referenced by Goose_Base::Init(), and Goose_Population_Manager::WriteConfig().
CfgFloat cfg_goose_BMRconstant2 |
The cost of BMR per kg goose - constant 2.
Referenced by Goose_Base::Init(), and Goose_Population_Manager::WriteConfig().
CfgFloat cfg_goose_daytime_BMR_multiplier |
To calculate daily energy budget. This is the multiple of BMR spent during daytime Default is based on Madsen 1985 ("Relations between change in spring habitat selection...")
Referenced by Goose_Base::StartDay().
CfgFloat cfg_goose_InitialEnergyReserveProportion |
The initial proportion of weight that can be stored as energy reserves.
Referenced by Goose_Base::Init(), and Goose_Population_Manager::WriteConfig().
CfgFloat cfg_goose_MinForageRateDecayRate |
The decay rate for the minimum forage rate.
Referenced by Goose_Base::st_Forage().
CfgFloat cfg_goose_nighttime_BMR_multiplier |
To calculate daily energy budget. This is the multiple of BMR spent during nighttime.
Referenced by Goose_Base::StartDay().
CfgInt cfg_goose_pf_springmigdateend |
Input: Date for end of spring migration.
Referenced by Goose_Population_Manager::DoImmigration(), Goose_Population_Manager::GetImmigrationNumbers(), and Goose_Base::Init().
CfgInt cfg_goose_pf_springmigdatestart |
Input: Date for onset of spring migration.
Referenced by Goose_Population_Manager::DoImmigration(), Goose_Population_Manager::GetImmigrationNumbers(), and Goose_Base::Init().
CfgInt cfg_goose_RoostLeaveDistMean |
The mean for the normal distribution which determines roost leave time.
Referenced by Goose_Population_Manager::Goose_Population_Manager(), and Goose_Population_Manager::WriteConfig().
CfgInt cfg_goose_RoostLeaveDistSD |
The standard deviation for the normal distribution which determines roost leave time.
Referenced by Goose_Population_Manager::Goose_Population_Manager(), and Goose_Population_Manager::WriteConfig().
CfgFloat cfg_goose_snow_scaler |
The decrease in intake rate resulting from snow.
Referenced by Goose_Base::AdjustIntakeRateToSnowDepth(), and Goose_Population_Manager::WriteConfig().
ALMaSS_MathFuncs g_AlmassMathFuncs |
This variable provides access the to the internal ALMaSS math functions.
Referenced by Goose_Base::EvaluateForageToHopLoc(), Goose_Base::FlyTo(), Goose_Base::On_Bang(), and Goose_Base::st_ChooseForageLocation().
MapErrorMsg* g_msg |
This pointer provides access the to the internal ALMaSS error message system.
Definition at line 41 of file maperrormsg.cpp.
Referenced by OptimisingFarm::ActualProfit(), Landscape::AddBeetleBanks(), LE_TypeClass::BackTranslateEleTypes(), LE_TypeClass::BackTranslateVegTypes(), Goose_Population_Manager::BirdsShot(), Goose_Population_Manager::BirdsToShootAtPoly(), Landscape::BorderAdd(), Landscape::BorderNeed(), Landscape::BorderScan(), RasterMap::CellReplacementNeighbour(), Landscape::CentroidSpiralOut(), Farm::CheckRotationManagementLoop(), Crop::ChooseNextCrop(), FarmManager::ConnectFarm(), Landscape::ConsolidatePolys(), FarmManager::CreateFarms(), CropRotation::CropRotation(), Calendar::DayLength(), AnimalFarm::determineMinFodder(), Hunter_Population_Manager::DistributeHunters(), Hunter_Population_Manager::DistributeHuntersByRules(), Hunter_Population_Manager::DoFirst(), FarmManager::DumpFarmrefs(), Landscape::DumpMapGraphics(), Landscape::DumpMapInfoByArea(), PesticideMap::DumpPMap(), Configurator::DumpSymbols(), Landscape::DumpTreatCounters(), Landscape::EventDump(), Landscape::EventDumpPesticides(), Landscape::EventtypeToString(), Configurator::ExtractString(), OptimisingFarm::Find_neighbour_to_imitate(), FarmManager::FindClosestFarm(), FarmManager::FindClosestFarmOpenness(), FarmManager::FindClosestFarmOpennessProb(), FarmManager::FindClosestFarmOpennessProbNearRoostIsBest(), FarmManager::FindClosestFarmOpennessProbSmallIsBest(), OptimisingFarm::findCropByName(), OptimisingFarm::findCropByName_almass(), FarmManager::FindFarmWithOpenness(), FarmManager::FindFarmWithRandom(), Landscape::ForceArea(), RasterMap::Get(), DataForOptimisation::Get_farmType(), FarmManager::GetFarmCentroid(), FarmManager::GetFarmPtr(), CropRotation::GetFirstCrop(), CropRotation::GetNextCrop(), FarmManager::GetRenumberedFarmRef(), Landscape::GISASCII_Output(), OptimisingFarm::HandleEvents(), Hunter_Population_Manager::HunterLeaderMessage(), Landscape::IncTreatCounter(), Goose_Population_Manager::InHuntingSeason(), Hunter_Population_Manager::Init(), RasterMap::Init1(), RasterMap::Init2(), OptimisingFarm::Initialize(), Farm::InitiateManagement(), Landscape::InitOsmiaBeeNesting(), Farm::InvIntPartition(), Landscape::Landscape(), Farm::LeSwitch(), OptimisingFarm::Make_rotations(), Farm::Management(), OptimisingFarm::Match_crop_to_field(), Landscape::NewElement(), Configurator::ParseCfgLine(), PollenNectarDevelopmentData::PollenNectarDevelopmentData(), Landscape::PolysDump(), Landscape::PolysRenumber(), Landscape::PolysValidate(), Landscape::PolytypeToString(), FarmManager::PrintOutput(), OptimisingFarm::randomizeCropList(), RasterMap::RasterMap(), VegElement::ReadBugPercentageFile(), FarmManager::ReadCropsData_perFarm_and_Soil_and_Size_almass(), FarmManager::ReadCropsData_perFarmType_almass(), FarmManager::ReadCropsData_perSoilType_almass(), Landscape::ReadPolys2(), Farm::ReadRotation(), Configurator::ReadSymbols(), Farm::RemoveField(), GooseActiveForageLocation::RemoveGeese(), Landscape::RemoveSmallPolygons(), Hunter_Population_Manager::RuleSet10Based(), Pesticide::SavePPM(), CfgInt::set(), CfgFloat::set(), Configurator::SetCfgBool(), Configurator::SetCfgFloat(), Configurator::SetCfgGatekeeper(), Configurator::SetCfgInt(), Configurator::SetCfgStr(), Hunter_Population_Manager::SetHuntingSeason(), PlantGrowthData::SetVegNum(), Configurator::ShowIdType(), Goose_Base::st_ChooseForageLocation(), Goose_Base::st_Forage(), OptimisingFarm::total(), OptimisingFarm::Translate_crops_to_almass(), FarmManager::TranslateAnimalsCodes(), FarmManager::TranslateCropCodes(), FarmManager::TranslateCropsCodes(), FarmManager::TranslateCropVariablesCodes(), LE_TypeClass::TranslateEleTypes(), FarmManager::TranslateFarmCodes(), FarmManager::TranslateFarmSizeCodes(), FarmManager::TranslateLivestockParametersCodes(), FarmManager::TranslateParametersCodes(), FarmManager::TranslateSoilCodes(), LE_TypeClass::TranslateVegTypes(), Landscape::UnsprayedMarginAdd(), UserDefinedFarm::UserDefinedFarm(), Landscape::VegDump(), PlantGrowthData::VegTypeToCurveNum(), Landscape::VegtypeToString(), Landscape::Warn(), Weather::Weather(), and Landscape::~Landscape().
boost::variate_generator<base_generator_type&, boost::uniform_real<> > g_rand_uni |
A random number generator (0-1)
Referenced by LE::GetOsmiaNest(), and Weather::Tick().
boost::variate_generator<base_generator_type&, boost::uniform_int<> > g_rand_uni2 |
A random number generator (0-9999)
Referenced by Goose_Base::st_ChooseForageLocation().