ALMaSS  1.2 (after EcoStack, March 2024)
The Animal, Landscape and Man Simulation System
Calendar Class Reference

#include <Calendar.h>

Public Member Functions

void Reset (void)
 
void Reset2 (void)
 
bool TickMinute (void)
 
bool TickMinute10 (void)
 
bool TickHour (void)
 
void Tick (void)
 
long Date (void)
 
int DayInYear (void)
 
long OldDays (void)
 
long GlobalDate (int a_day, int a_month, int a_year)
 
int DayLength (void)
 
int SunRiseTime (void)
 
int SunSetTime (void)
 
int DayLength (int a_day_in_year)
 
int SunRiseTime (int a_day_in_year)
 
int SunSetTime (int a_day_in_year)
 
int GetFirstYear (void)
 
int GetLastYear (void)
 
int GetYear (void)
 
int GetYearNumber (void)
 
int GetMonth (void)
 
int GetMonthRaw (void)
 
int GetMinute (void)
 
int GetHour (void)
 
int GetDayInMonth (void)
 
double GetDaylightProportion (void)
 
bool JanFirst (void)
 
bool MarchFirst (void)
 
void SetFirstYear (int a_year)
 
void SetLastYear (int a_year)
 
bool ValidDate (int a_day, int a_month)
 
int DayInYear (int a_day, int a_month)
 
 Calendar (void)
 
void CreateDaylength (double latitude, double longitude, int timezone, int year=2021)
 

Private Attributes

long m_date
 
long m_olddays
 
int m_firstyear
 
int m_lastyear
 
int m_day_in_month
 
int m_day_in_year
 
int m_month
 
int m_year
 
int m_simulationyear
 
int m_todayslength
 
int m_todayssunrise
 
int m_todayssunset
 
int m_dawn
 
int m_dusk
 
double m_daylightproportion
 
int m_minutes
 
int m_hours
 
bool m_janfirst
 
bool m_marchfirst
 
int m_daylength [365]
 
int m_sunrise [365]
 
int m_sunset [365]
 

Constructor & Destructor Documentation

◆ Calendar()

Calendar::Calendar ( void  )
62 {
63  Reset();
64 }

References Reset().

Referenced by CreateCalendar().

Member Function Documentation

◆ CreateDaylength()

void Calendar::CreateDaylength ( double  latitude,
double  longitude,
int  timezone,
int  year = 2021 
)
67 {
68  SunSet sun;
69 
70  sun.setPosition(latitude, longitude, timezone);
71 
72  const int m_monthlength[12] = {
73  31, 28, 31, 30, 31, 30, 31, 31, 30, 31, 30, 31 };
74 
75  double sr, ss;
76  int diy = 0; // day in year
77 
78  for (int i = 1; i <= 12; i++) // months
79  for (int j = 1; j <= m_monthlength[i - 1]; j++) // day in month
80  {
81  sun.setCurrentDate(year, i, j);
82  sr = sun.calcSunrise();
83  ss = sun.calcSunset();
84  m_sunrise[diy] = int(sr);
85  m_sunset[diy] = int(ss);
86  m_daylength[diy] = int(ss - sr);
87  diy++;
88  }
89 
90 }

References SunSet::calcSunrise(), SunSet::calcSunset(), m_daylength, m_sunrise, m_sunset, SunSet::setCurrentDate(), and SunSet::setPosition().

Referenced by main().

◆ Date()

long Calendar::Date ( void  )
inline
57 { return m_date; }

References m_date.

Referenced by Farm::BulbHarvest(), Farm::BurnStrawStubble(), Farm::BurnTop(), Farm::CheckRotationManagementLoop(), Farm::CutToHay(), PermanentSetAside::Do(), DK_GrazingPigs::Do(), OGrazingPigs::Do(), DK_GrazingPigs_Perm::Do(), DK_OGrazingPigs::Do(), DK_OGrazingPigs_Perm::Do(), OrchardCrop::Do(), PermanentGrassTussocky::Do(), UKMaize::Do(), GenericCatchCrop::Do(), DK_OptimalFlowerMix2::Do(), NorwegianOats::Do(), NorwegianSpringBarley::Do(), OSeedGrass1::Do(), DK_GrassTussocky_Perm::Do(), WinterRapeStrigling::Do(), OCloverGrassGrazed2::Do(), OSeedGrass2::Do(), BroadBeans::Do(), HorticultureCrop::Do(), OSBarleySilage::Do(), PermanentGrassLowYield::Do(), YoungForestCrop::Do(), NLCatchCropPea::Do(), OCloverGrassGrazed1::Do(), OFieldPeas::Do(), OFieldPeasSilage::Do(), OCloverGrassSilage1::Do(), OPermanentGrassGrazed::Do(), DK_OGrassLowYield_Perm::Do(), OCarrots::Do(), BECatchPeaCrop::Do(), DE_OPeas::Do(), DK_GrassLowYield_Perm::Do(), SeedGrass1::Do(), DK_OLegume::Do(), DK_CerealLegume::Do(), OBarleyPeaCloverGrass::Do(), OMaizeSilage::Do(), DK_CerealLegume_Whole::Do(), PermanentGrassGrazed::Do(), CloverGrassGrazed2::Do(), DK_OCatchCrop::Do(), DE_OLegume::Do(), OWinterBarleyExt::Do(), DK_SpringBarley_Green::Do(), DK_Legume_Peas::Do(), FI_OPotato_North::Do(), FI_OPotato_South::Do(), FI_OPotatoIndustry_North::Do(), FI_OPotatoIndustry_South::Do(), FI_OStarchPotato_North::Do(), FI_OStarchPotato_South::Do(), DK_OLegume_Peas_CC::Do(), FodderGrass::Do(), DK_CatchCrop::Do(), BEOrchardCrop::Do(), OWinterBarley::Do(), CloverGrassGrazed1::Do(), DK_SpringBarleySilage::Do(), SeedGrass2::Do(), DK_OLegume_Beans_CC::Do(), DK_OLegume_Beans::Do(), DK_OLegume_Peas::Do(), DK_OLentils::Do(), DK_OSpringBarleyCloverGrass::Do(), NLOrchardCrop::Do(), OWinterRye::Do(), DK_FodderBeet::Do(), DK_MaizeSilage::Do(), DK_OLupines::Do(), DK_OptimalFlowerMix3::Do(), OOats::Do(), DK_OWinterRye::Do(), DE_OOats::Do(), DK_SpringOats::Do(), DK_SpringOats_CC::Do(), DK_SugarBeet::Do(), DE_OMaizeSilage::Do(), DK_Legume_Beans::Do(), DE_OSpringRye::Do(), FI_SugarBeet::Do(), DK_OptimalFlowerMix1::Do(), Maize::Do(), MaizeSilage::Do(), MaizeStrigling::Do(), DK_OSpringBarley_CC::Do(), OTriticale::Do(), DK_OWinterRye_CC::Do(), DE_OMaize::Do(), DK_OCerealLegume_Whole::Do(), DE_OWinterWheat::Do(), DK_OLegume_Whole::Do(), DK_OLegume_Whole_CC::Do(), DK_OLegumeCloverGrass_Whole::Do(), NLMaizeSpring::Do(), Oats::Do(), DK_OWinterBarley::Do(), OSpringBarleyExt::Do(), BEMaizeSpring::Do(), DK_SpringWheat::Do(), DK_Maize::Do(), UKBeans::Do(), DK_OSpringBarley::Do(), DK_OSugarBeet::Do(), OSpringBarley::Do(), DK_Legume_Whole::Do(), SpringBarleySeed::Do(), DK_OCerealLegume::Do(), OPotatoes::Do(), BEMaizeCC::Do(), DummyCropPestTesting::Do(), SpringBarleyCloverGrassStrigling::Do(), DK_OFodderBeet::Do(), FI_Potato_North::Do(), FieldPeas::Do(), FieldPeasSilage::Do(), FieldPeasStrigling::Do(), DE_OWinterRape::Do(), OWinterWheat::Do(), OWinterWheatUndersown::Do(), OWinterWheatUndersownExt::Do(), FI_StarchPotato_North::Do(), OFodderBeet::Do(), SpringBarleyCloverGrass::Do(), FI_PotatoIndustry_North::Do(), DK_OSpringOats::Do(), BEMaize::Do(), DK_OSpringWheat::Do(), OWinterRape::Do(), PLFodderLucerne2::Do(), PTOliveGroveTradOrganic::Do(), Triticale::Do(), BEBeetSpring::Do(), FI_Potato_South::Do(), FI_PotatoIndustry_South::Do(), UKBeet::Do(), FI_StarchPotato_South::Do(), NLBeetSpring::Do(), NLMaize::Do(), DE_OCabbages::Do(), DK_OVegSeeds::Do(), Carrots::Do(), DK_SpringBarleyCloverGrass::Do(), DE_OSugarBeet::Do(), DE_OBushFruitPerm::Do(), DK_OSpringOats_CC::Do(), DK_WinterFodderGrass::Do(), UKSpringBarley::Do(), UKWinterBarley::Do(), NLCarrotsSpring::Do(), BEBeet::Do(), DK_OWinterRape::Do(), DK_SpringBarley::Do(), DK_SpringBarley_CC::Do(), SpringBarleyPeaCloverGrassStrigling::Do(), DE_OPotatoes::Do(), DK_OMaize::Do(), DK_OMaizeSilage::Do(), NLBeet::Do(), NLGrassGrazedExtensive2::Do(), DE_OCarrots::Do(), NLPermanentGrassGrazedExtensive::Do(), DK_OSpringBarleySilage::Do(), DK_SpringFodderGrass::Do(), DK_WinterCloverGrassGrazedSown::Do(), SetAside::Do(), DK_OCabbages::Do(), DK_OEnergyCrop_Perm::Do(), NLCarrots::Do(), NLGrassGrazedExtensive1Spring::Do(), NLGrassGrazedExtensiveLast::Do(), DK_OCarrots::Do(), NLCabbageSpring::Do(), NLSpringBarleySpring::Do(), PotatoesIndustry::Do(), DK_WinterBarley::Do(), SugarBeet::Do(), BEWinterBarley::Do(), BEWinterBarleyCC::Do(), NorwegianPotatoes::Do(), Potatoes::Do(), PTOliveGroveIntensive::Do(), DKOBroadBeans_test::Do(), FodderBeet::Do(), BEWinterWheat::Do(), BEWinterWheatCC::Do(), DK_EnergyCrop_Perm::Do(), PTCorkOak::Do(), DK_VegSeeds::Do(), NLCabbage::Do(), NLGrassGrazedExtensive1::Do(), DK_Carrots_Spring::Do(), DK_WinterRye::Do(), DK_WinterRye_CC::Do(), SpringBarleySKManagement::Do(), DK_Carrots::Do(), PLCarrots::Do(), PTSetAside::Do(), SpringBarleySilage::Do(), SpringBarleySpr::Do(), UKWinterWheat::Do(), WinterRyeStrigling::Do(), DK_OGrassGrazed_Perm::Do(), NLSpringBarley::Do(), DK_Cabbages::Do(), BEGrassGrazed1Spring::Do(), DK_GrassGrazed_Perm::Do(), DE_OPermanentGrassLowYield::Do(), SpringBarleyPTreatment::Do(), SpringBarleyStrigling::Do(), SpringBarleyStriglingCulm::Do(), TestCrop::Do(), UKWinterRape::Do(), WinterRye::Do(), SpringBarleyStriglingSingle::Do(), DE_PermanentGrassLowYield::Do(), BEGrassGrazed1::Do(), BEGrassGrazed2::Do(), NLWinterWheat::Do(), PTOliveGroveSuperIntensive::Do(), PLSpringBarleySpr::Do(), PTBeans::Do(), PTTurnipGrazed::Do(), BEGrassGrazedLast::Do(), DK_OMixedVeg::Do(), DK_OPotato::Do(), DK_OPotatoIndustry::Do(), DK_OPotatoSeed::Do(), FI_OCaraway2::Do(), PTCabbage::Do(), PTCabbage_Hort::Do(), PTOtherDryBeans::Do(), DK_WinterWheat::Do(), DK_WinterWheat_CC::Do(), SpringBarley::Do(), DE_PermanentGrassGrazed::Do(), PLFodderLucerne1::Do(), PTHorticulture::Do(), DK_Potato::Do(), UKPotatoes::Do(), UKPermanentGrass::Do(), FR_Grassland_Perm::Do(), FI_GreenFallow_1year::Do(), PTOliveGroveTraditional::Do(), PTPotatoes::Do(), DE_GreenFallow_1year::Do(), UKTempGrass::Do(), FI_Caraway2::Do(), SpringRape::Do(), DK_OSeedGrassRye_Spring::Do(), PTShrubPastures::Do(), FI_NaturalGrassland_Perm::Do(), DE_OGreenFallow_1year::Do(), PTOats::Do(), DE_OPermanentGrassGrazed::Do(), DK_OBushFruit_Perm2::Do(), DE_HerbsPerennial_after1year::Do(), NLGrassGrazed2::Do(), NLPermanentGrassGrazed::Do(), DK_CloverGrassGrazed1::Do(), DE_OHerbsPerennial_after1year::Do(), PLBeetSpr::Do(), DK_MixedVeg::Do(), DE_HerbsPerennial_1year::Do(), NLGrassGrazed1Spring::Do(), NLGrassGrazedLast::Do(), DE_OHerbsPerennial_1year::Do(), WinterWheatStriglingSingle::Do(), PLBeans::Do(), WinterWheatStriglingCulm::Do(), WinterWheatStrigling::Do(), FI_GreenFallow_Perm::Do(), PTWinterWheat::Do(), DE_OGrasslandSilageAnnual::Do(), PTWinterRye::Do(), PTMaize_Hort::Do(), FI_BufferZone::Do(), FI_BufferZone_Perm::Do(), PTMaize::Do(), PTWinterBarley::Do(), ITGrassland::Do(), FI_NaturalGrassland::Do(), PTCloverGrassGrazed2::Do(), PTFodderMix::Do(), DK_WinterRape::Do(), DK_SetAside::Do(), FI_OSpringBarley_Malt::Do(), PTTriticale::Do(), DK_OSetAside::Do(), DK_OSetAside_PerennialFlower::Do(), DK_OSetAside_SummerMow::Do(), PTYellowLupin::Do(), DK_PotatoSeed::Do(), PTGrassGrazed::Do(), WinterRape::Do(), PTSorghum::Do(), WinterBarleyStrigling::Do(), BEPotatoesSpring::Do(), DK_OSetAside_AnnualFlower::Do(), NLGrassGrazed1::Do(), DE_BushFruitPerm::Do(), FI_OFabaBean::Do(), FI_OCaraway1::Do(), DE_Maize::Do(), DE_MaizeSilage::Do(), DE_OAsparagusEstablishedPlantation::Do(), OSpringBarleyPigs::Do(), DK_PotatoIndustry::Do(), DK_SetAside_SummerMow::Do(), FI_GrasslandPasturePerennial1::Do(), FI_GrasslandSilagePerennial1::Do(), FI_GrasslandPasturePerennial2::Do(), FI_OSpringOats::Do(), FI_OSpringRape::Do(), FI_OSpringWheat::Do(), FI_OTurnipRape::Do(), FR_SpringBarley::Do(), PTRyegrass::Do(), FI_OSpringBarley_Fodder::Do(), WinterBarley::Do(), NLPotatoesSpring::Do(), FR_SpringOats::Do(), FI_FeedingGround::Do(), DE_SpringBarley::Do(), DK_OOrchCherry::Do(), FI_GrasslandSilagePerennial2::Do(), PLWinterRye::Do(), DK_OBushFruit_Perm1::Do(), DK_OSpringFodderGrass::Do(), FI_GrasslandSilageAnnual::Do(), BEPotatoes::Do(), FI_TurnipRape::Do(), FR_Sorghum::Do(), DK_OCloverGrassGrazed3::Do(), DE_AsparagusEstablishedPlantation::Do(), DK_OWinterWheat_CC::Do(), FR_Maize_Silage::Do(), FR_Maize::Do(), DK_OWinterWheat::Do(), DK_OCloverGrassGrazed2::Do(), FI_FabaBean::Do(), PLSpringBarley::Do(), PLMaizeSilage::Do(), PLMaize::Do(), NLPotatoes::Do(), DK_OCloverGrassGrazed1::Do(), FR_WinterTriticale::Do(), FI_OWinterRye::Do(), NLTulips::Do(), FI_SpringRape::Do(), FR_Sunflower::Do(), FI_Caraway1::Do(), PLWinterTriticale::Do(), PTCloverGrassGrazed1::Do(), DE_Legumes::Do(), FI_SpringBarley_Malt::Do(), DE_Peas::Do(), SE_SpringBarley::Do(), DK_OOrchPear::Do(), DE_WinterRye::Do(), FI_OWinterWheat::Do(), DE_OTriticale::Do(), DK_OWinterFodderGrass::Do(), DE_OWinterRye::Do(), DK_OOrchardCrop_Perm::Do(), DK_OOrchOther::Do(), DK_OOrchApple::Do(), PLWinterBarley::Do(), DK_OWinterCloverGrassGrazedSown::Do(), DK_CloverGrassGrazed3::Do(), PLBeet::Do(), FI_SprSpringBarley_Fodder::Do(), DE_OWinterBarley::Do(), FI_SpringWheat::Do(), PLWinterWheat::Do(), DK_CloverGrassGrazed2::Do(), FI_SpringOats::Do(), PLSpringWheat::Do(), PLWinterWheatLate::Do(), DE_Carrots::Do(), SE_WinterRape_Seed::Do(), DK_BushFruit_Perm1::Do(), PTPermanentGrassGrazed::Do(), FI_SpringBarley_Fodder::Do(), PLPotatoes::Do(), DE_WinterBarley::Do(), DE_Oats::Do(), SE_WinterWheat::Do(), DE_Cabbage::Do(), FR_SpringWheat::Do(), DE_SpringRye::Do(), DK_SeedGrassRye_Spring::Do(), PLWinterRape::Do(), PTVineyards::Do(), FR_WinterBarley::Do(), DK_BushFruit_Perm2::Do(), DE_GrasslandSilageAnnual::Do(), FI_WinterWheat::Do(), IRWinterBarley::Do(), IRWinterOats::Do(), IRSpringBarley::Do(), IRSpringOats::Do(), FR_Grassland::Do(), DE_WinterWheatLate::Do(), DE_WinterWheat::Do(), DE_Triticale::Do(), FI_WinterRye::Do(), IRSpringWheat::Do(), FR_WinterWheat::Do(), FR_WinterRape::Do(), IRWinterWheat::Do(), FR_Potatoes::Do(), DE_WinterRape::Do(), DE_Orchard::Do(), DK_SeedGrassFescue_Spring::Do(), WinterWheat::Do(), DE_SugarBeet::Do(), DK_OrchCherry::Do(), IRGrassland_no_reseed::Do(), DE_Potatoes::Do(), DK_OrchPear::Do(), DK_OrchApple::Do(), DK_OrchOther::Do(), DK_OrchardCrop_Perm::Do(), DE_PotatoesIndustry::Do(), DE_OOrchard::Do(), IRGrassland_reseed::Do(), ITOrchard::Do(), DK_OChristmasTrees_Perm::Do(), ITOOrchard::Do(), DK_ChristmasTrees_Perm::Do(), VegElement::DoDevelopment(), Erigone_Population_Manager::DoFirst(), Oedothorax_Population_Manager::DoFirst(), Skylark_Population_Manager::DoFirst(), Skylark_Clutch::EndStep(), Skylark_Nestling::EndStep(), Skylark_PreFledgeling::EndStep(), Weather::GetSnow(), Landscape::GrainDump(), Farm::HandleEvents(), Farm::Harvest(), Farm::HarvestBF_Machine(), Farm::HarvestBushFruit(), Farm::HarvestLong(), Farm::HayBailing(), Farm::HayTurning(), WinterRape::HerbiZero(), Farm::InitiateManagement(), Farm::IrrigationStart(), Farm::ManualWeeding(), Skylark_Clutch::OnFarmEvent(), Skylark_Nestling::OnFarmEvent(), Skylark_PreFledgeling::OnFarmEvent(), Skylark_Female::OnFarmEvent(), Skylark_Male::OnFarmEvent(), Skylark_Clutch::OnMumGone(), Pesticide::RecordAllPesticideCompartments(), Pesticide::RecordPesticideLoad(), Pesticide::RecordPesticideMap(), SpringRape::RowcolOne(), WinterRape::RowcolOne(), Farm::RowCultivation(), VegElement::SetGrowthPhase(), Crop::StartUpCrop(), Skylark_Female::Step(), Skylark_Male::Step(), Farm::StrawChopping(), Farm::Strigling(), Farm::StriglingSow(), Farm::StubbleHarrowing(), Landscape::SupplyGlobalDate(), Weather::Tick(), and Landscape::Tick().

◆ DayInYear() [1/2]

int Calendar::DayInYear ( int  a_day,
int  a_month 
)
147 {
148  const int m_monthsum[12] = {
149  0, 31, 59, 90, 120, 151, 181, 212, 243, 273, 304, 334 };
150 
151  return m_monthsum[ a_month - 1 ] + a_day - 1;
152 }

◆ DayInYear() [2/2]

int Calendar::DayInYear ( void  )
inline
58 { return m_day_in_year; }

References m_day_in_year.

Referenced by BEBeet::BEBeet(), BEBeetSpring::BEBeetSpring(), BECatchPeaCrop::BECatchPeaCrop(), BEGrassGrazed1::BEGrassGrazed1(), BEGrassGrazed1Spring::BEGrassGrazed1Spring(), BEGrassGrazed2::BEGrassGrazed2(), BEGrassGrazedLast::BEGrassGrazedLast(), BEMaize::BEMaize(), BEMaizeCC::BEMaizeCC(), BEMaizeSpring::BEMaizeSpring(), BEOrchardCrop::BEOrchardCrop(), BEPotatoes::BEPotatoes(), BEPotatoesSpring::BEPotatoesSpring(), BEWinterBarley::BEWinterBarley(), BEWinterBarleyCC::BEWinterBarleyCC(), BEWinterWheat::BEWinterWheat(), BEWinterWheatCC::BEWinterWheatCC(), BroadBeans::BroadBeans(), VegElement::CalcGooseForageResources(), Carrots::Carrots(), Farm::CattleIsOut(), Farm::CattleIsOutLow(), Farm::CattleIsOutLow2(), CloverGrassGrazed1::CloverGrassGrazed1(), CloverGrassGrazed2::CloverGrassGrazed2(), DE_AsparagusEstablishedPlantation::DE_AsparagusEstablishedPlantation(), DE_BushFruitPerm::DE_BushFruitPerm(), DE_Cabbage::DE_Cabbage(), DE_Carrots::DE_Carrots(), DE_GrasslandSilageAnnual::DE_GrasslandSilageAnnual(), DE_GreenFallow_1year::DE_GreenFallow_1year(), DE_HerbsPerennial_1year::DE_HerbsPerennial_1year(), DE_HerbsPerennial_after1year::DE_HerbsPerennial_after1year(), DE_Legumes::DE_Legumes(), DE_Maize::DE_Maize(), DE_MaizeSilage::DE_MaizeSilage(), DE_OAsparagusEstablishedPlantation::DE_OAsparagusEstablishedPlantation(), DE_Oats::DE_Oats(), DE_OBushFruitPerm::DE_OBushFruitPerm(), DE_OCabbages::DE_OCabbages(), DE_OCarrots::DE_OCarrots(), DE_OGrasslandSilageAnnual::DE_OGrasslandSilageAnnual(), DE_OGreenFallow_1year::DE_OGreenFallow_1year(), DE_OHerbsPerennial_1year::DE_OHerbsPerennial_1year(), DE_OHerbsPerennial_after1year::DE_OHerbsPerennial_after1year(), DE_OLegume::DE_OLegume(), DE_OMaize::DE_OMaize(), DE_OMaizeSilage::DE_OMaizeSilage(), DE_OOats::DE_OOats(), DE_OOrchard::DE_OOrchard(), DE_OPeas::DE_OPeas(), DE_OPermanentGrassGrazed::DE_OPermanentGrassGrazed(), DE_OPermanentGrassLowYield::DE_OPermanentGrassLowYield(), DE_OPotatoes::DE_OPotatoes(), DE_Orchard::DE_Orchard(), DE_OSpringRye::DE_OSpringRye(), DE_OSugarBeet::DE_OSugarBeet(), DE_OTriticale::DE_OTriticale(), DE_OWinterBarley::DE_OWinterBarley(), DE_OWinterRape::DE_OWinterRape(), DE_OWinterRye::DE_OWinterRye(), DE_OWinterWheat::DE_OWinterWheat(), DE_Peas::DE_Peas(), DE_PermanentGrassGrazed::DE_PermanentGrassGrazed(), DE_PermanentGrassLowYield::DE_PermanentGrassLowYield(), DE_Potatoes::DE_Potatoes(), DE_PotatoesIndustry::DE_PotatoesIndustry(), DE_SpringBarley::DE_SpringBarley(), DE_SpringRye::DE_SpringRye(), DE_SugarBeet::DE_SugarBeet(), DE_Triticale::DE_Triticale(), DE_WinterBarley::DE_WinterBarley(), DE_WinterRape::DE_WinterRape(), DE_WinterRye::DE_WinterRye(), DE_WinterWheat::DE_WinterWheat(), DE_WinterWheatLate::DE_WinterWheatLate(), DK_BushFruit_Perm1::DK_BushFruit_Perm1(), DK_BushFruit_Perm2::DK_BushFruit_Perm2(), DK_Cabbages::DK_Cabbages(), DK_Carrots::DK_Carrots(), DK_Carrots_Spring::DK_Carrots_Spring(), DK_CatchCrop::DK_CatchCrop(), DK_CerealLegume::DK_CerealLegume(), DK_CerealLegume_Whole::DK_CerealLegume_Whole(), DK_ChristmasTrees_Perm::DK_ChristmasTrees_Perm(), DK_CloverGrassGrazed1::DK_CloverGrassGrazed1(), DK_CloverGrassGrazed2::DK_CloverGrassGrazed2(), DK_CloverGrassGrazed3::DK_CloverGrassGrazed3(), DK_EnergyCrop_Perm::DK_EnergyCrop_Perm(), DK_FarmForest_Perm::DK_FarmForest_Perm(), DK_FarmYoungForest_Perm::DK_FarmYoungForest_Perm(), DK_FodderBeet::DK_FodderBeet(), DK_GrassGrazed_Perm::DK_GrassGrazed_Perm(), DK_GrassLowYield_Perm::DK_GrassLowYield_Perm(), DK_GrassTussocky_Perm::DK_GrassTussocky_Perm(), DK_GrazingPigs::DK_GrazingPigs(), DK_GrazingPigs_Perm::DK_GrazingPigs_Perm(), DK_Legume_Beans::DK_Legume_Beans(), DK_Legume_Peas::DK_Legume_Peas(), DK_Legume_Whole::DK_Legume_Whole(), DK_Maize::DK_Maize(), DK_MaizeSilage::DK_MaizeSilage(), DK_MixedVeg::DK_MixedVeg(), DK_OBushFruit_Perm1::DK_OBushFruit_Perm1(), DK_OBushFruit_Perm2::DK_OBushFruit_Perm2(), DK_OCabbages::DK_OCabbages(), DK_OCarrots::DK_OCarrots(), DK_OCatchCrop::DK_OCatchCrop(), DK_OCerealLegume::DK_OCerealLegume(), DK_OCerealLegume_Whole::DK_OCerealLegume_Whole(), DK_OChristmasTrees_Perm::DK_OChristmasTrees_Perm(), DK_OCloverGrassGrazed1::DK_OCloverGrassGrazed1(), DK_OCloverGrassGrazed2::DK_OCloverGrassGrazed2(), DK_OCloverGrassGrazed3::DK_OCloverGrassGrazed3(), DK_OEnergyCrop_Perm::DK_OEnergyCrop_Perm(), DK_OFarmForest_Perm::DK_OFarmForest_Perm(), DK_OFarmYoungForest_Perm::DK_OFarmYoungForest_Perm(), DK_OFodderBeet::DK_OFodderBeet(), DK_OGrassGrazed_Perm::DK_OGrassGrazed_Perm(), DK_OGrassLowYield_Perm::DK_OGrassLowYield_Perm(), DK_OGrazingPigs::DK_OGrazingPigs(), DK_OGrazingPigs_Perm::DK_OGrazingPigs_Perm(), DK_OLegume::DK_OLegume(), DK_OLegume_Beans::DK_OLegume_Beans(), DK_OLegume_Beans_CC::DK_OLegume_Beans_CC(), DK_OLegume_Peas::DK_OLegume_Peas(), DK_OLegume_Peas_CC::DK_OLegume_Peas_CC(), DK_OLegume_Whole::DK_OLegume_Whole(), DK_OLegume_Whole_CC::DK_OLegume_Whole_CC(), DK_OLegumeCloverGrass_Whole::DK_OLegumeCloverGrass_Whole(), DK_OLentils::DK_OLentils(), DK_OLupines::DK_OLupines(), DK_OMaize::DK_OMaize(), DK_OMaizeSilage::DK_OMaizeSilage(), DK_OMixedVeg::DK_OMixedVeg(), DK_OOrchApple::DK_OOrchApple(), DK_OOrchardCrop_Perm::DK_OOrchardCrop_Perm(), DK_OOrchCherry::DK_OOrchCherry(), DK_OOrchOther::DK_OOrchOther(), DK_OOrchPear::DK_OOrchPear(), DK_OPotato::DK_OPotato(), DK_OPotatoIndustry::DK_OPotatoIndustry(), DK_OPotatoSeed::DK_OPotatoSeed(), DK_OptimalFlowerMix1::DK_OptimalFlowerMix1(), DK_OptimalFlowerMix2::DK_OptimalFlowerMix2(), DK_OptimalFlowerMix3::DK_OptimalFlowerMix3(), DK_OrchApple::DK_OrchApple(), DK_OrchardCrop_Perm::DK_OrchardCrop_Perm(), DK_OrchCherry::DK_OrchCherry(), DK_OrchOther::DK_OrchOther(), DK_OrchPear::DK_OrchPear(), DK_OSeedGrassRye_Spring::DK_OSeedGrassRye_Spring(), DK_OSetAside::DK_OSetAside(), DK_OSetAside_AnnualFlower::DK_OSetAside_AnnualFlower(), DK_OSetAside_PerennialFlower::DK_OSetAside_PerennialFlower(), DK_OSetAside_SummerMow::DK_OSetAside_SummerMow(), DK_OSpringBarley::DK_OSpringBarley(), DK_OSpringBarley_CC::DK_OSpringBarley_CC(), DK_OSpringBarleyCloverGrass::DK_OSpringBarleyCloverGrass(), DK_OSpringBarleySilage::DK_OSpringBarleySilage(), DK_OSpringFodderGrass::DK_OSpringFodderGrass(), DK_OSpringOats::DK_OSpringOats(), DK_OSpringOats_CC::DK_OSpringOats_CC(), DK_OSpringWheat::DK_OSpringWheat(), DK_OSugarBeet::DK_OSugarBeet(), DK_OVegSeeds::DK_OVegSeeds(), DK_OWinterBarley::DK_OWinterBarley(), DK_OWinterCloverGrassGrazedSown::DK_OWinterCloverGrassGrazedSown(), DK_OWinterFodderGrass::DK_OWinterFodderGrass(), DK_OWinterRape::DK_OWinterRape(), DK_OWinterRye::DK_OWinterRye(), DK_OWinterRye_CC::DK_OWinterRye_CC(), DK_OWinterWheat::DK_OWinterWheat(), DK_OWinterWheat_CC::DK_OWinterWheat_CC(), DK_PlantNursery_Perm::DK_PlantNursery_Perm(), DK_Potato::DK_Potato(), DK_PotatoIndustry::DK_PotatoIndustry(), DK_PotatoSeed::DK_PotatoSeed(), DK_SeedGrassFescue_Spring::DK_SeedGrassFescue_Spring(), DK_SeedGrassRye_Spring::DK_SeedGrassRye_Spring(), DK_SetAside::DK_SetAside(), DK_SetAside_SummerMow::DK_SetAside_SummerMow(), DK_SpringBarley::DK_SpringBarley(), DK_SpringBarley_CC::DK_SpringBarley_CC(), DK_SpringBarley_Green::DK_SpringBarley_Green(), DK_SpringBarleyCloverGrass::DK_SpringBarleyCloverGrass(), DK_SpringBarleySilage::DK_SpringBarleySilage(), DK_SpringFodderGrass::DK_SpringFodderGrass(), DK_SpringOats::DK_SpringOats(), DK_SpringOats_CC::DK_SpringOats_CC(), DK_SpringWheat::DK_SpringWheat(), DK_SugarBeet::DK_SugarBeet(), DK_VegSeeds::DK_VegSeeds(), DK_WinterBarley::DK_WinterBarley(), DK_WinterCloverGrassGrazedSown::DK_WinterCloverGrassGrazedSown(), DK_WinterFodderGrass::DK_WinterFodderGrass(), DK_WinterRape::DK_WinterRape(), DK_WinterRye::DK_WinterRye(), DK_WinterRye_CC::DK_WinterRye_CC(), DK_WinterWheat::DK_WinterWheat(), DK_WinterWheat_CC::DK_WinterWheat_CC(), DKOBroadBeans_test::DKOBroadBeans_test(), OFirstYearDanger::Do(), PermanentSetAside::Do(), OGrazingPigs::Do(), DK_GrazingPigs::Do(), DK_GrazingPigs_Perm::Do(), DK_OGrazingPigs::Do(), DK_OGrazingPigs_Perm::Do(), OrchardCrop::Do(), PermanentGrassTussocky::Do(), UKMaize::Do(), GenericCatchCrop::Do(), DK_OptimalFlowerMix2::Do(), NorwegianOats::Do(), NorwegianSpringBarley::Do(), OSeedGrass1::Do(), DK_GrassTussocky_Perm::Do(), WinterRapeStrigling::Do(), OCloverGrassGrazed2::Do(), BroadBeans::Do(), OSeedGrass2::Do(), DK_PlantNursery_Perm::Do(), DK_FarmForest_Perm::Do(), DK_FarmYoungForest_Perm::Do(), DK_OFarmForest_Perm::Do(), DK_OFarmYoungForest_Perm::Do(), HorticultureCrop::Do(), OSBarleySilage::Do(), PermanentGrassLowYield::Do(), YoungForestCrop::Do(), NLCatchCropPea::Do(), OCloverGrassGrazed1::Do(), OCloverGrassSilage1::Do(), OFieldPeas::Do(), OFieldPeasSilage::Do(), OPermanentGrassGrazed::Do(), DK_OGrassLowYield_Perm::Do(), OCarrots::Do(), DK_GrassLowYield_Perm::Do(), DE_OPeas::Do(), SeedGrass1::Do(), BECatchPeaCrop::Do(), DK_OLegume::Do(), OBarleyPeaCloverGrass::Do(), DK_CerealLegume::Do(), DK_CerealLegume_Whole::Do(), OMaizeSilage::Do(), PermanentGrassGrazed::Do(), CloverGrassGrazed2::Do(), DK_OCatchCrop::Do(), OWinterBarleyExt::Do(), DE_OLegume::Do(), DK_SpringBarley_Green::Do(), DK_Legume_Peas::Do(), FI_OPotato_North::Do(), FI_OPotato_South::Do(), FI_OPotatoIndustry_North::Do(), FI_OPotatoIndustry_South::Do(), FI_OStarchPotato_North::Do(), FI_OStarchPotato_South::Do(), DK_OLegume_Peas_CC::Do(), FodderGrass::Do(), DK_CatchCrop::Do(), CloverGrassGrazed1::Do(), OWinterBarley::Do(), DK_SpringBarleySilage::Do(), BEOrchardCrop::Do(), SeedGrass2::Do(), DK_OLegume_Beans::Do(), DK_OLegume_Beans_CC::Do(), DK_OLegume_Peas::Do(), DK_OLentils::Do(), DK_OLupines::Do(), NLOrchardCrop::Do(), DK_OSpringBarleyCloverGrass::Do(), OWinterRye::Do(), DK_FodderBeet::Do(), DK_MaizeSilage::Do(), DK_OptimalFlowerMix3::Do(), OOats::Do(), DK_OWinterRye::Do(), DE_OMaizeSilage::Do(), DE_OOats::Do(), DK_SpringOats::Do(), DK_SpringOats_CC::Do(), DK_SugarBeet::Do(), DK_Legume_Beans::Do(), DE_OSpringRye::Do(), FI_SugarBeet::Do(), Maize::Do(), DK_OptimalFlowerMix1::Do(), MaizeSilage::Do(), MaizeStrigling::Do(), DK_OSpringBarley_CC::Do(), OTriticale::Do(), DK_OWinterRye_CC::Do(), DE_OMaize::Do(), DK_OCerealLegume_Whole::Do(), DE_OWinterWheat::Do(), DK_OLegume_Whole::Do(), DK_OLegume_Whole_CC::Do(), DK_OLegumeCloverGrass_Whole::Do(), NLMaizeSpring::Do(), Oats::Do(), DK_OWinterBarley::Do(), OSpringBarleyExt::Do(), BEMaizeSpring::Do(), DK_SpringWheat::Do(), DK_Maize::Do(), UKBeans::Do(), DK_OSpringBarley::Do(), DK_OSugarBeet::Do(), OSpringBarley::Do(), DK_Legume_Whole::Do(), SpringBarleySeed::Do(), DK_OCerealLegume::Do(), BEMaizeCC::Do(), OPotatoes::Do(), SpringBarleyCloverGrassStrigling::Do(), DK_OFodderBeet::Do(), FI_Potato_North::Do(), DummyCropPestTesting::Do(), FieldPeas::Do(), FieldPeasSilage::Do(), FieldPeasStrigling::Do(), DE_OWinterRape::Do(), OWinterWheat::Do(), OWinterWheatUndersown::Do(), OWinterWheatUndersownExt::Do(), FI_StarchPotato_North::Do(), OFodderBeet::Do(), SpringBarleyCloverGrass::Do(), FI_PotatoIndustry_North::Do(), BEBeetSpring::Do(), BEMaize::Do(), DK_OSpringOats::Do(), DK_OSpringWheat::Do(), OWinterRape::Do(), PLFodderLucerne2::Do(), PTOliveGroveTradOrganic::Do(), Triticale::Do(), UKBeet::Do(), FI_Potato_South::Do(), FI_PotatoIndustry_South::Do(), FI_StarchPotato_South::Do(), NLBeetSpring::Do(), DE_OCabbages::Do(), NLMaize::Do(), Carrots::Do(), DK_OVegSeeds::Do(), DK_SpringBarleyCloverGrass::Do(), DE_OSugarBeet::Do(), DE_OBushFruitPerm::Do(), DK_OSpringOats_CC::Do(), DK_WinterFodderGrass::Do(), UKSpringBarley::Do(), UKWinterBarley::Do(), DK_OMaize::Do(), DK_OMaizeSilage::Do(), NLCarrotsSpring::Do(), BEBeet::Do(), DK_OWinterRape::Do(), DK_SpringBarley::Do(), DK_SpringBarley_CC::Do(), DE_OPotatoes::Do(), SpringBarleyPeaCloverGrassStrigling::Do(), NLBeet::Do(), NLGrassGrazedExtensive2::Do(), DE_OCarrots::Do(), NLPermanentGrassGrazedExtensive::Do(), DK_OSpringBarleySilage::Do(), DK_SpringFodderGrass::Do(), DK_WinterCloverGrassGrazedSown::Do(), SetAside::Do(), DK_OCabbages::Do(), DK_OEnergyCrop_Perm::Do(), NLCarrots::Do(), NLGrassGrazedExtensive1Spring::Do(), NLGrassGrazedExtensiveLast::Do(), DK_OCarrots::Do(), NLCabbageSpring::Do(), NLSpringBarleySpring::Do(), DK_WinterBarley::Do(), PotatoesIndustry::Do(), SugarBeet::Do(), BEWinterBarley::Do(), BEWinterBarleyCC::Do(), NorwegianPotatoes::Do(), Potatoes::Do(), PTOliveGroveIntensive::Do(), DKOBroadBeans_test::Do(), FodderBeet::Do(), BEWinterWheat::Do(), BEWinterWheatCC::Do(), DK_EnergyCrop_Perm::Do(), PTCorkOak::Do(), DK_VegSeeds::Do(), NLCabbage::Do(), NLGrassGrazedExtensive1::Do(), DK_Carrots_Spring::Do(), DK_WinterRye::Do(), DK_WinterRye_CC::Do(), SpringBarleySKManagement::Do(), DK_Carrots::Do(), PLCarrots::Do(), PTSetAside::Do(), SpringBarleySilage::Do(), SpringBarleySpr::Do(), UKWinterWheat::Do(), WinterRyeStrigling::Do(), DK_OGrassGrazed_Perm::Do(), DK_Cabbages::Do(), NLSpringBarley::Do(), BEGrassGrazed1Spring::Do(), DK_GrassGrazed_Perm::Do(), DE_OPermanentGrassLowYield::Do(), SpringBarleyStrigling::Do(), SpringBarleyStriglingCulm::Do(), SpringBarleyStriglingSingle::Do(), TestCrop::Do(), SpringBarleyPTreatment::Do(), UKWinterRape::Do(), WinterRye::Do(), DE_PermanentGrassLowYield::Do(), DK_OMixedVeg::Do(), BEGrassGrazed1::Do(), PTOliveGroveSuperIntensive::Do(), NLWinterWheat::Do(), PLSpringBarleySpr::Do(), PTBeans::Do(), PTTurnipGrazed::Do(), BEGrassGrazed2::Do(), BEGrassGrazedLast::Do(), DK_OPotato::Do(), DK_OPotatoIndustry::Do(), DK_OPotatoSeed::Do(), PTOtherDryBeans::Do(), PTCabbage::Do(), PTCabbage_Hort::Do(), DK_WinterWheat::Do(), DK_WinterWheat_CC::Do(), SpringBarley::Do(), FI_OCaraway2::Do(), DE_PermanentGrassGrazed::Do(), PTHorticulture::Do(), PLFodderLucerne1::Do(), DK_Potato::Do(), UKPermanentGrass::Do(), UKPotatoes::Do(), FR_Grassland_Perm::Do(), FI_GreenFallow_1year::Do(), PTOliveGroveTraditional::Do(), PTPotatoes::Do(), UKTempGrass::Do(), DE_GreenFallow_1year::Do(), DK_OSeedGrassRye_Spring::Do(), DE_OGreenFallow_1year::Do(), PTOats::Do(), PTShrubPastures::Do(), DE_OPermanentGrassGrazed::Do(), DK_OBushFruit_Perm2::Do(), FI_Caraway2::Do(), SpringRape::Do(), FI_NaturalGrassland_Perm::Do(), DE_HerbsPerennial_after1year::Do(), NLGrassGrazed2::Do(), NLPermanentGrassGrazed::Do(), DK_CloverGrassGrazed1::Do(), DE_OHerbsPerennial_after1year::Do(), PLBeetSpr::Do(), DK_MixedVeg::Do(), DE_HerbsPerennial_1year::Do(), NLGrassGrazed1Spring::Do(), NLGrassGrazedLast::Do(), DE_OHerbsPerennial_1year::Do(), PLBeans::Do(), FI_GreenFallow_Perm::Do(), WinterWheatStrigling::Do(), WinterWheatStriglingCulm::Do(), WinterWheatStriglingSingle::Do(), PTMaize::Do(), PTMaize_Hort::Do(), PTWinterBarley::Do(), PTWinterRye::Do(), PTWinterWheat::Do(), FI_BufferZone::Do(), FI_BufferZone_Perm::Do(), DE_OGrasslandSilageAnnual::Do(), DK_WinterRape::Do(), ITGrassland::Do(), DK_SetAside::Do(), PTCloverGrassGrazed2::Do(), PTFodderMix::Do(), PTTriticale::Do(), FI_NaturalGrassland::Do(), FI_OSpringBarley_Malt::Do(), DK_OSetAside::Do(), DK_OSetAside_AnnualFlower::Do(), DK_OSetAside_PerennialFlower::Do(), DK_OSetAside_SummerMow::Do(), DK_PotatoSeed::Do(), PTGrassGrazed::Do(), PTSorghum::Do(), WinterRape::Do(), BEPotatoesSpring::Do(), WinterBarleyStrigling::Do(), PTYellowLupin::Do(), NLGrassGrazed1::Do(), DE_BushFruitPerm::Do(), FI_OCaraway1::Do(), FI_OFabaBean::Do(), DE_Maize::Do(), FR_SpringBarley::Do(), DE_MaizeSilage::Do(), DE_OAsparagusEstablishedPlantation::Do(), FI_GrasslandSilagePerennial1::Do(), FI_OSpringRape::Do(), FI_GrasslandPasturePerennial2::Do(), DK_PotatoIndustry::Do(), DK_SetAside_SummerMow::Do(), OSpringBarleyPigs::Do(), FI_GrasslandPasturePerennial1::Do(), FI_OSpringOats::Do(), FI_OSpringWheat::Do(), FI_OTurnipRape::Do(), FR_SpringOats::Do(), NLPotatoesSpring::Do(), PTRyegrass::Do(), WinterBarley::Do(), FI_OSpringBarley_Fodder::Do(), DE_SpringBarley::Do(), DK_OOrchCherry::Do(), PLWinterRye::Do(), FI_GrasslandSilagePerennial2::Do(), FI_FeedingGround::Do(), FR_Sorghum::Do(), DK_OSpringFodderGrass::Do(), FI_GrasslandSilageAnnual::Do(), BEPotatoes::Do(), DK_OBushFruit_Perm1::Do(), FI_TurnipRape::Do(), FR_Maize_Silage::Do(), DK_OWinterWheat_CC::Do(), DE_AsparagusEstablishedPlantation::Do(), DK_OCloverGrassGrazed3::Do(), FR_Maize::Do(), DK_OCloverGrassGrazed2::Do(), DK_OWinterWheat::Do(), PLMaize::Do(), PLMaizeSilage::Do(), PLSpringBarley::Do(), NLPotatoes::Do(), FI_FabaBean::Do(), DK_OCloverGrassGrazed1::Do(), FR_WinterTriticale::Do(), NLTulips::Do(), FI_OWinterRye::Do(), FI_SpringRape::Do(), FR_Sunflower::Do(), PLWinterTriticale::Do(), PTCloverGrassGrazed1::Do(), FI_Caraway1::Do(), FI_SpringBarley_Malt::Do(), DE_Peas::Do(), DE_Legumes::Do(), SE_SpringBarley::Do(), DK_OOrchPear::Do(), DE_WinterRye::Do(), DE_OTriticale::Do(), DK_OWinterFodderGrass::Do(), DE_OWinterRye::Do(), FI_OWinterWheat::Do(), DK_OOrchApple::Do(), DK_OOrchardCrop_Perm::Do(), DK_OOrchOther::Do(), DK_OWinterCloverGrassGrazedSown::Do(), PLBeet::Do(), PLWinterWheat::Do(), DE_OWinterBarley::Do(), PLWinterBarley::Do(), DK_CloverGrassGrazed3::Do(), FI_SpringWheat::Do(), FI_SprSpringBarley_Fodder::Do(), DK_CloverGrassGrazed2::Do(), PLWinterWheatLate::Do(), PLSpringWheat::Do(), DE_Carrots::Do(), FI_SpringOats::Do(), DK_BushFruit_Perm1::Do(), PTPermanentGrassGrazed::Do(), PLPotatoes::Do(), SE_WinterRape_Seed::Do(), FI_SpringBarley_Fodder::Do(), FR_SpringWheat::Do(), DE_Cabbage::Do(), DE_WinterBarley::Do(), DE_Oats::Do(), SE_WinterWheat::Do(), DE_SpringRye::Do(), DK_SeedGrassRye_Spring::Do(), PLWinterRape::Do(), PTVineyards::Do(), FR_WinterBarley::Do(), DE_GrasslandSilageAnnual::Do(), DK_BushFruit_Perm2::Do(), FI_WinterWheat::Do(), IRSpringBarley::Do(), IRSpringOats::Do(), IRWinterBarley::Do(), IRWinterOats::Do(), FR_Grassland::Do(), FR_WinterWheat::Do(), DE_Triticale::Do(), IRSpringWheat::Do(), DE_WinterWheat::Do(), DE_WinterWheatLate::Do(), FI_WinterRye::Do(), FR_Potatoes::Do(), FR_WinterRape::Do(), IRWinterWheat::Do(), DE_WinterRape::Do(), DE_Orchard::Do(), DK_SeedGrassFescue_Spring::Do(), WinterWheat::Do(), DE_SugarBeet::Do(), DK_OrchCherry::Do(), IRGrassland_no_reseed::Do(), DE_Potatoes::Do(), DK_OrchPear::Do(), DK_OrchApple::Do(), DK_OrchardCrop_Perm::Do(), DK_OrchOther::Do(), DE_PotatoesIndustry::Do(), DE_OOrchard::Do(), IRGrassland_reseed::Do(), ITOrchard::Do(), DK_OChristmasTrees_Perm::Do(), ITOOrchard::Do(), DK_ChristmasTrees_Perm::Do(), FlowerStrip::DoDevelopment(), FlowerStripWithRotation::DoDevelopment(), FieldBoundary::DoDevelopment(), RoadsideVerge::DoDevelopment(), WaterBufferZone::DoDevelopment(), Orchard::DoDevelopment(), OrchardBand::DoDevelopment(), MownGrassStrip::DoDevelopment(), Osmia_Population_Manager::DoLast(), DummyCropPestTesting::DummyCropPestTesting(), Landscape::DumpMapInfoByArea(), FarmManager::FarmManagement(), FI_BufferZone::FI_BufferZone(), FI_BufferZone_Perm::FI_BufferZone_Perm(), FI_Caraway1::FI_Caraway1(), FI_Caraway2::FI_Caraway2(), FI_FabaBean::FI_FabaBean(), FI_FeedingGround::FI_FeedingGround(), FI_GrasslandPasturePerennial1::FI_GrasslandPasturePerennial1(), FI_GrasslandPasturePerennial2::FI_GrasslandPasturePerennial2(), FI_GrasslandSilageAnnual::FI_GrasslandSilageAnnual(), FI_GrasslandSilagePerennial1::FI_GrasslandSilagePerennial1(), FI_GrasslandSilagePerennial2::FI_GrasslandSilagePerennial2(), FI_GreenFallow_1year::FI_GreenFallow_1year(), FI_GreenFallow_Perm::FI_GreenFallow_Perm(), FI_NaturalGrassland::FI_NaturalGrassland(), FI_NaturalGrassland_Perm::FI_NaturalGrassland_Perm(), FI_OCaraway1::FI_OCaraway1(), FI_OCaraway2::FI_OCaraway2(), FI_OFabaBean::FI_OFabaBean(), FI_OPotato_North::FI_OPotato_North(), FI_OPotato_South::FI_OPotato_South(), FI_OPotatoIndustry_North::FI_OPotatoIndustry_North(), FI_OPotatoIndustry_South::FI_OPotatoIndustry_South(), FI_OSpringBarley_Fodder::FI_OSpringBarley_Fodder(), FI_OSpringBarley_Malt::FI_OSpringBarley_Malt(), FI_OSpringOats::FI_OSpringOats(), FI_OSpringRape::FI_OSpringRape(), FI_OSpringWheat::FI_OSpringWheat(), FI_OStarchPotato_North::FI_OStarchPotato_North(), FI_OStarchPotato_South::FI_OStarchPotato_South(), FI_OTurnipRape::FI_OTurnipRape(), FI_OWinterRye::FI_OWinterRye(), FI_OWinterWheat::FI_OWinterWheat(), FI_Potato_North::FI_Potato_North(), FI_Potato_South::FI_Potato_South(), FI_PotatoIndustry_North::FI_PotatoIndustry_North(), FI_PotatoIndustry_South::FI_PotatoIndustry_South(), FI_SpringBarley_Fodder::FI_SpringBarley_Fodder(), FI_SpringBarley_Malt::FI_SpringBarley_Malt(), FI_SpringOats::FI_SpringOats(), FI_SpringRape::FI_SpringRape(), FI_SpringWheat::FI_SpringWheat(), FI_SprSpringBarley_Fodder::FI_SprSpringBarley_Fodder(), FI_StarchPotato_North::FI_StarchPotato_North(), FI_StarchPotato_South::FI_StarchPotato_South(), FI_SugarBeet::FI_SugarBeet(), FI_TurnipRape::FI_TurnipRape(), FI_WinterRye::FI_WinterRye(), FI_WinterWheat::FI_WinterWheat(), FieldPeas::FieldPeas(), FieldPeasSilage::FieldPeasSilage(), FieldPeasStrigling::FieldPeasStrigling(), FodderBeet::FodderBeet(), FodderGrass::FodderGrass(), VegElement::ForceGrowthInitialiseForFirstYearCrop(), VegElement::ForceGrowthInitialize(), VegElement::ForceGrowthTest(), FR_Grassland::FR_Grassland(), FR_Grassland_Perm::FR_Grassland_Perm(), FR_Maize::FR_Maize(), FR_Maize_Silage::FR_Maize_Silage(), FR_Potatoes::FR_Potatoes(), FR_Sorghum::FR_Sorghum(), FR_SpringBarley::FR_SpringBarley(), FR_SpringOats::FR_SpringOats(), FR_SpringWheat::FR_SpringWheat(), FR_Sunflower::FR_Sunflower(), FR_WinterBarley::FR_WinterBarley(), FR_WinterRape::FR_WinterRape(), FR_WinterTriticale::FR_WinterTriticale(), FR_WinterWheat::FR_WinterWheat(), GenericCatchCrop::GenericCatchCrop(), LE::GetGooseNos(), LE::GetGooseNosToday(), LE::GetGooseNosTodayTimed(), LE::GetGooseSpNosToday(), LE::GetGooseSpNosTodayTimed(), LE::GetQuarryNos(), GlobalDate(), WinterRape::HerbiZero(), HorticultureCrop::HorticultureCrop(), IRGrassland_no_reseed::IRGrassland_no_reseed(), IRGrassland_reseed::IRGrassland_reseed(), Farm::Irrigation(), IRSpringBarley::IRSpringBarley(), IRSpringOats::IRSpringOats(), IRSpringWheat::IRSpringWheat(), IRWinterBarley::IRWinterBarley(), IRWinterOats::IRWinterOats(), IRWinterWheat::IRWinterWheat(), ITGrassland::ITGrassland(), ITOOrchard::ITOOrchard(), ITOrchard::ITOrchard(), Maize::Maize(), MaizeSilage::MaizeSilage(), MaizeStrigling::MaizeStrigling(), NLBeet::NLBeet(), NLBeetSpring::NLBeetSpring(), NLCabbage::NLCabbage(), NLCabbageSpring::NLCabbageSpring(), NLCarrots::NLCarrots(), NLCarrotsSpring::NLCarrotsSpring(), NLCatchCropPea::NLCatchCropPea(), NLGrassGrazed1::NLGrassGrazed1(), NLGrassGrazed1Spring::NLGrassGrazed1Spring(), NLGrassGrazed2::NLGrassGrazed2(), NLGrassGrazedExtensive1::NLGrassGrazedExtensive1(), NLGrassGrazedExtensive1Spring::NLGrassGrazedExtensive1Spring(), NLGrassGrazedExtensive2::NLGrassGrazedExtensive2(), NLGrassGrazedExtensiveLast::NLGrassGrazedExtensiveLast(), NLGrassGrazedLast::NLGrassGrazedLast(), NLMaize::NLMaize(), NLMaizeSpring::NLMaizeSpring(), NLOrchardCrop::NLOrchardCrop(), NLPermanentGrassGrazed::NLPermanentGrassGrazed(), NLPermanentGrassGrazedExtensive::NLPermanentGrassGrazedExtensive(), NLPotatoes::NLPotatoes(), NLPotatoesSpring::NLPotatoesSpring(), NLSpringBarley::NLSpringBarley(), NLSpringBarleySpring::NLSpringBarleySpring(), NLTulips::NLTulips(), NLWinterWheat::NLWinterWheat(), NorwegianOats::NorwegianOats(), NorwegianPotatoes::NorwegianPotatoes(), NorwegianSpringBarley::NorwegianSpringBarley(), Oats::Oats(), OBarleyPeaCloverGrass::OBarleyPeaCloverGrass(), OCarrots::OCarrots(), OCloverGrassGrazed1::OCloverGrassGrazed1(), OCloverGrassGrazed2::OCloverGrassGrazed2(), OCloverGrassSilage1::OCloverGrassSilage1(), OFieldPeas::OFieldPeas(), OFieldPeasSilage::OFieldPeasSilage(), OFodderBeet::OFodderBeet(), OGrazingPigs::OGrazingPigs(), OMaizeSilage::OMaizeSilage(), Osmia_Female::OnFarmEvent(), OOats::OOats(), OPermanentGrassGrazed::OPermanentGrassGrazed(), OPotatoes::OPotatoes(), OrchardCrop::OrchardCrop(), OSBarleySilage::OSBarleySilage(), OSeedGrass1::OSeedGrass1(), OSeedGrass2::OSeedGrass2(), OSpringBarley::OSpringBarley(), OSpringBarleyExt::OSpringBarleyExt(), OSpringBarleyPigs::OSpringBarleyPigs(), OTriticale::OTriticale(), OWinterBarley::OWinterBarley(), OWinterBarleyExt::OWinterBarleyExt(), OWinterRape::OWinterRape(), OWinterRye::OWinterRye(), OWinterWheat::OWinterWheat(), OWinterWheatUndersown::OWinterWheatUndersown(), OWinterWheatUndersownExt::OWinterWheatUndersownExt(), PermanentGrassGrazed::PermanentGrassGrazed(), PermanentGrassLowYield::PermanentGrassLowYield(), PermanentGrassTussocky::PermanentGrassTussocky(), PermanentSetAside::PermanentSetAside(), PLBeans::PLBeans(), PLBeet::PLBeet(), PLBeetSpr::PLBeetSpr(), PLCarrots::PLCarrots(), PLFodderLucerne1::PLFodderLucerne1(), PLFodderLucerne2::PLFodderLucerne2(), PLMaize::PLMaize(), PLMaizeSilage::PLMaizeSilage(), PLPotatoes::PLPotatoes(), PLSpringBarley::PLSpringBarley(), PLSpringBarleySpr::PLSpringBarleySpr(), PLSpringWheat::PLSpringWheat(), PLWinterBarley::PLWinterBarley(), PLWinterRape::PLWinterRape(), PLWinterRye::PLWinterRye(), PLWinterTriticale::PLWinterTriticale(), PLWinterWheat::PLWinterWheat(), PLWinterWheatLate::PLWinterWheatLate(), Potatoes::Potatoes(), PotatoesIndustry::PotatoesIndustry(), PTBeans::PTBeans(), PTCabbage::PTCabbage(), PTCabbage_Hort::PTCabbage_Hort(), PTCloverGrassGrazed1::PTCloverGrassGrazed1(), PTCloverGrassGrazed2::PTCloverGrassGrazed2(), PTCorkOak::PTCorkOak(), PTFodderMix::PTFodderMix(), PTGrassGrazed::PTGrassGrazed(), PTHorticulture::PTHorticulture(), PTMaize::PTMaize(), PTMaize_Hort::PTMaize_Hort(), PTOats::PTOats(), PTOliveGroveIntensive::PTOliveGroveIntensive(), PTOliveGroveSuperIntensive::PTOliveGroveSuperIntensive(), PTOliveGroveTraditional::PTOliveGroveTraditional(), PTOliveGroveTradOrganic::PTOliveGroveTradOrganic(), PTOtherDryBeans::PTOtherDryBeans(), PTPermanentGrassGrazed::PTPermanentGrassGrazed(), PTPotatoes::PTPotatoes(), PTRyegrass::PTRyegrass(), PTSetAside::PTSetAside(), PTShrubPastures::PTShrubPastures(), PTSorghum::PTSorghum(), PTTriticale::PTTriticale(), PTTurnipGrazed::PTTurnipGrazed(), PTVineyards::PTVineyards(), PTWinterBarley::PTWinterBarley(), PTWinterRye::PTWinterRye(), PTWinterWheat::PTWinterWheat(), PTYellowLupin::PTYellowLupin(), VegElement::ReduceVeg_Extended(), VegElement::ResetGeese(), SpringRape::RowcolOne(), WinterRape::RowcolOne(), SE_SpringBarley::SE_SpringBarley(), SE_WinterRape_Seed::SE_WinterRape_Seed(), SE_WinterWheat::SE_WinterWheat(), SeedGrass1::SeedGrass1(), SeedGrass2::SeedGrass2(), SetAside::SetAside(), SpringBarley::SpringBarley(), SpringBarleyCloverGrass::SpringBarleyCloverGrass(), SpringBarleyCloverGrassStrigling::SpringBarleyCloverGrassStrigling(), SpringBarleyPeaCloverGrassStrigling::SpringBarleyPeaCloverGrassStrigling(), SpringBarleyPTreatment::SpringBarleyPTreatment(), SpringBarleySeed::SpringBarleySeed(), SpringBarleySilage::SpringBarleySilage(), SpringBarleySKManagement::SpringBarleySKManagement(), SpringBarleySpr::SpringBarleySpr(), SpringBarleyStrigling::SpringBarleyStrigling(), SpringBarleyStriglingCulm::SpringBarleyStriglingCulm(), SpringBarleyStriglingSingle::SpringBarleyStriglingSingle(), SpringRape::SpringRape(), Osmia_Female::st_ReproductiveBehaviour(), Crop::StartUpCrop(), SugarBeet::SugarBeet(), Landscape::SupplyDayInYear(), PollenNectarDevelopmentData::supplyNectarHabitatSpeciesCurrentDay(), PollenNectarDevelopmentData::supplyNectarHabitatSpeciesGivenDay(), PollenNectarDevelopmentData::supplyPollenHabitatSpeciesCurrentDay(), PollenNectarDevelopmentData::supplyPollenHabitatSpeciesGivenDay(), TestCrop::TestCrop(), Weather::Tick(), Landscape::Tick(), Triticale::Triticale(), UKBeans::UKBeans(), UKBeet::UKBeet(), UKMaize::UKMaize(), UKPermanentGrass::UKPermanentGrass(), UKPotatoes::UKPotatoes(), UKSpringBarley::UKSpringBarley(), UKTempGrass::UKTempGrass(), UKWinterBarley::UKWinterBarley(), UKWinterRape::UKWinterRape(), UKWinterWheat::UKWinterWheat(), WinterBarley::WinterBarley(), WinterBarleyStrigling::WinterBarleyStrigling(), WinterRape::WinterRape(), WinterRapeStrigling::WinterRapeStrigling(), WinterRye::WinterRye(), WinterRyeStrigling::WinterRyeStrigling(), WinterWheat::WinterWheat(), WinterWheatStrigling::WinterWheatStrigling(), WinterWheatStriglingCulm::WinterWheatStriglingCulm(), WinterWheatStriglingSingle::WinterWheatStriglingSingle(), and YoungForestCrop::YoungForestCrop().

◆ DayLength() [1/2]

int Calendar::DayLength ( int  a_day_in_year)
99 {
100  if ( a_day_in_year<0 || a_day_in_year>364 ) {
101  g_msg->Warn( WARN_BUG, "Calendar::DayLength(): Day outside a year!",
102  "" );
103  exit(1);
104  }
105  return m_daylength[ a_day_in_year ];
106 }

References g_msg, m_daylength, MapErrorMsg::Warn(), and WARN_BUG.

◆ DayLength() [2/2]

int Calendar::DayLength ( void  )
inline
63 { return m_todayslength; }

References m_todayslength.

Referenced by Landscape::SupplyDaylength().

◆ GetDayInMonth()

◆ GetDaylightProportion()

double Calendar::GetDaylightProportion ( void  )
inline

◆ GetFirstYear()

int Calendar::GetFirstYear ( void  )
inline
69 { return m_firstyear; }

References m_firstyear.

◆ GetHour()

int Calendar::GetHour ( void  )
inline

◆ GetLastYear()

int Calendar::GetLastYear ( void  )
inline
70 { return m_lastyear; }

References m_lastyear.

Referenced by Weather::readWeatherFile(), and Weather::readWeatherFileHourly().

◆ GetMinute()

int Calendar::GetMinute ( void  )
inline
75 { return m_minutes; }

References m_minutes.

Referenced by Landscape::SupplyMinute().

◆ GetMonth()

◆ GetMonthRaw()

int Calendar::GetMonthRaw ( void  )
inline
74 { return m_month; }

References m_month.

Referenced by VegElement::CalculateInsectBiomass().

◆ GetYear()

◆ GetYearNumber()

int Calendar::GetYearNumber ( void  )
inline
72 { return m_simulationyear; }

References m_simulationyear.

Referenced by PermanentSetAside::Do(), UKMaize::Do(), OrchardCrop::Do(), PermanentGrassTussocky::Do(), OSeedGrass1::Do(), DK_GrassTussocky_Perm::Do(), BroadBeans::Do(), OSeedGrass2::Do(), HorticultureCrop::Do(), YoungForestCrop::Do(), PermanentGrassLowYield::Do(), SeedGrass1::Do(), CloverGrassGrazed2::Do(), PermanentGrassGrazed::Do(), FI_OStarchPotato_North::Do(), FI_OStarchPotato_South::Do(), FodderGrass::Do(), FI_OPotato_North::Do(), FI_OPotato_South::Do(), FI_OPotatoIndustry_North::Do(), FI_OPotatoIndustry_South::Do(), CloverGrassGrazed1::Do(), SeedGrass2::Do(), BEOrchardCrop::Do(), FI_SugarBeet::Do(), MaizeSilage::Do(), Maize::Do(), OTriticale::Do(), BEMaizeSpring::Do(), UKBeans::Do(), Oats::Do(), FI_Potato_North::Do(), FieldPeasSilage::Do(), FieldPeas::Do(), BEMaizeCC::Do(), DummyCropPestTesting::Do(), FI_StarchPotato_North::Do(), OFodderBeet::Do(), FI_PotatoIndustry_North::Do(), BEBeetSpring::Do(), Triticale::Do(), BEMaize::Do(), UKBeet::Do(), PLFodderLucerne2::Do(), Carrots::Do(), UKSpringBarley::Do(), UKWinterBarley::Do(), BEBeet::Do(), SetAside::Do(), DK_OEnergyCrop_Perm::Do(), PotatoesIndustry::Do(), SugarBeet::Do(), BEWinterBarley::Do(), BEWinterBarleyCC::Do(), Potatoes::Do(), FodderBeet::Do(), DKOBroadBeans_test::Do(), NorwegianPotatoes::Do(), PTCorkOak::Do(), BEWinterWheatCC::Do(), DK_EnergyCrop_Perm::Do(), BEWinterWheat::Do(), DK_Carrots_Spring::Do(), SpringBarleySilage::Do(), UKWinterWheat::Do(), SpringBarleySpr::Do(), PLCarrots::Do(), UKWinterRape::Do(), TestCrop::Do(), BEGrassGrazed1Spring::Do(), WinterRye::Do(), BEGrassGrazed2::Do(), BEGrassGrazedLast::Do(), BEGrassGrazed1::Do(), PLSpringBarleySpr::Do(), SpringBarley::Do(), PLFodderLucerne1::Do(), UKPotatoes::Do(), UKPermanentGrass::Do(), FR_Grassland_Perm::Do(), FI_GreenFallow_1year::Do(), UKTempGrass::Do(), PTShrubPastures::Do(), SpringRape::Do(), DK_OSeedGrassRye_Spring::Do(), FI_NaturalGrassland_Perm::Do(), DK_OBushFruit_Perm2::Do(), PLBeetSpr::Do(), PLBeans::Do(), FI_GreenFallow_Perm::Do(), FI_BufferZone::Do(), FI_BufferZone_Perm::Do(), ITGrassland::Do(), FI_NaturalGrassland::Do(), FI_OSpringBarley_Malt::Do(), WinterRape::Do(), DK_OSetAside_AnnualFlower::Do(), DK_OSetAside_PerennialFlower::Do(), BEPotatoesSpring::Do(), FI_OCaraway1::Do(), FI_OFabaBean::Do(), FI_OSpringRape::Do(), FI_OSpringWheat::Do(), FI_OTurnipRape::Do(), FI_OSpringOats::Do(), WinterBarley::Do(), FR_SpringOats::Do(), FI_OSpringBarley_Fodder::Do(), PLWinterRye::Do(), FI_FeedingGround::Do(), DK_OOrchCherry::Do(), BEPotatoes::Do(), DK_OBushFruit_Perm1::Do(), FR_Sorghum::Do(), FR_Maize_Silage::Do(), FR_Maize::Do(), PLMaizeSilage::Do(), PLMaize::Do(), PLSpringBarley::Do(), FI_OWinterRye::Do(), SE_SpringBarley::Do(), PLWinterTriticale::Do(), DK_OOrchPear::Do(), FI_OWinterWheat::Do(), DK_OOrchApple::Do(), PLWinterBarley::Do(), DK_OOrchardCrop_Perm::Do(), PLWinterWheat::Do(), PLBeet::Do(), DK_OOrchOther::Do(), FI_SprSpringBarley_Fodder::Do(), PLSpringWheat::Do(), PLWinterWheatLate::Do(), PTPermanentGrassGrazed::Do(), PLPotatoes::Do(), SE_WinterRape_Seed::Do(), DK_BushFruit_Perm1::Do(), SE_WinterWheat::Do(), DK_SeedGrassRye_Spring::Do(), PLWinterRape::Do(), DK_BushFruit_Perm2::Do(), FR_WinterBarley::Do(), IRSpringOats::Do(), FR_Grassland::Do(), IRWinterBarley::Do(), IRWinterOats::Do(), IRSpringBarley::Do(), FR_WinterWheat::Do(), IRSpringWheat::Do(), FR_WinterRape::Do(), IRWinterWheat::Do(), DK_SeedGrassFescue_Spring::Do(), WinterWheat::Do(), DK_OrchCherry::Do(), IRGrassland_no_reseed::Do(), DK_OrchPear::Do(), DK_OrchOther::Do(), DK_OrchApple::Do(), DK_OrchardCrop_Perm::Do(), IRGrassland_reseed::Do(), ITOrchard::Do(), DK_OChristmasTrees_Perm::Do(), ITOOrchard::Do(), DK_ChristmasTrees_Perm::Do(), PesticideTable::PrintFTable(), PesticideTable::PrintHTable(), PesticideTable::PrintITable(), Landscape::SupplyYearNumber(), and Landscape::Tick().

◆ GlobalDate()

long Calendar::GlobalDate ( int  a_day,
int  a_month,
int  a_year 
)
93 {
94  return m_olddays + DayInYear( a_day, a_month) + a_year*365;
95 }

References DayInYear(), and m_olddays.

◆ JanFirst()

◆ MarchFirst()

bool Calendar::MarchFirst ( void  )
inline
80 { return m_marchfirst; }

References m_marchfirst.

Referenced by Landscape::Tick().

◆ OldDays()

long Calendar::OldDays ( void  )
inline
60 { return m_olddays; }

References m_olddays.

Referenced by OFirstYearDanger::Do(), PermanentSetAside::Do(), DK_GrazingPigs::Do(), DK_GrazingPigs_Perm::Do(), OGrazingPigs::Do(), DK_OGrazingPigs::Do(), DK_OGrazingPigs_Perm::Do(), OrchardCrop::Do(), PermanentGrassTussocky::Do(), UKMaize::Do(), DK_OptimalFlowerMix2::Do(), GenericCatchCrop::Do(), NorwegianOats::Do(), NorwegianSpringBarley::Do(), DK_GrassTussocky_Perm::Do(), OSeedGrass1::Do(), WinterRapeStrigling::Do(), OCloverGrassGrazed2::Do(), DK_PlantNursery_Perm::Do(), OSeedGrass2::Do(), BroadBeans::Do(), DK_FarmForest_Perm::Do(), DK_FarmYoungForest_Perm::Do(), DK_OFarmForest_Perm::Do(), DK_OFarmYoungForest_Perm::Do(), HorticultureCrop::Do(), OSBarleySilage::Do(), PermanentGrassLowYield::Do(), YoungForestCrop::Do(), NLCatchCropPea::Do(), OCloverGrassGrazed1::Do(), OCloverGrassSilage1::Do(), OFieldPeas::Do(), OFieldPeasSilage::Do(), OPermanentGrassGrazed::Do(), DK_OGrassLowYield_Perm::Do(), OCarrots::Do(), BECatchPeaCrop::Do(), DE_OPeas::Do(), DK_GrassLowYield_Perm::Do(), SeedGrass1::Do(), DK_OLegume::Do(), DK_CerealLegume::Do(), OBarleyPeaCloverGrass::Do(), OMaizeSilage::Do(), PermanentGrassGrazed::Do(), DK_CerealLegume_Whole::Do(), CloverGrassGrazed2::Do(), DK_OCatchCrop::Do(), DE_OLegume::Do(), OWinterBarleyExt::Do(), DK_SpringBarley_Green::Do(), DK_Legume_Peas::Do(), FI_OPotato_North::Do(), FI_OPotato_South::Do(), FI_OPotatoIndustry_North::Do(), FI_OPotatoIndustry_South::Do(), FI_OStarchPotato_North::Do(), FI_OStarchPotato_South::Do(), DK_OLegume_Peas_CC::Do(), FodderGrass::Do(), BEOrchardCrop::Do(), DK_CatchCrop::Do(), OWinterBarley::Do(), CloverGrassGrazed1::Do(), DK_SpringBarleySilage::Do(), SeedGrass2::Do(), DK_OLegume_Beans::Do(), DK_OLegume_Beans_CC::Do(), DK_OLegume_Peas::Do(), DK_OLentils::Do(), DK_OLupines::Do(), NLOrchardCrop::Do(), DK_OSpringBarleyCloverGrass::Do(), OWinterRye::Do(), DK_FodderBeet::Do(), DK_MaizeSilage::Do(), DK_OptimalFlowerMix3::Do(), OOats::Do(), DK_OWinterRye::Do(), DE_OOats::Do(), DK_SpringOats::Do(), DE_OMaizeSilage::Do(), DK_SpringOats_CC::Do(), DK_SugarBeet::Do(), DK_Legume_Beans::Do(), DE_OSpringRye::Do(), FI_SugarBeet::Do(), Maize::Do(), MaizeSilage::Do(), MaizeStrigling::Do(), DK_OptimalFlowerMix1::Do(), DK_OSpringBarley_CC::Do(), OTriticale::Do(), DK_OWinterRye_CC::Do(), DE_OMaize::Do(), DK_OCerealLegume_Whole::Do(), DE_OWinterWheat::Do(), DK_OLegume_Whole_CC::Do(), DK_OLegume_Whole::Do(), DK_OLegumeCloverGrass_Whole::Do(), NLMaizeSpring::Do(), Oats::Do(), DK_OWinterBarley::Do(), OSpringBarleyExt::Do(), BEMaizeSpring::Do(), DK_SpringWheat::Do(), DK_Maize::Do(), UKBeans::Do(), DK_OSpringBarley::Do(), DK_OSugarBeet::Do(), OSpringBarley::Do(), DK_Legume_Whole::Do(), SpringBarleySeed::Do(), DK_OCerealLegume::Do(), OPotatoes::Do(), BEMaizeCC::Do(), DummyCropPestTesting::Do(), SpringBarleyCloverGrassStrigling::Do(), DK_OFodderBeet::Do(), FI_Potato_North::Do(), FieldPeas::Do(), FieldPeasSilage::Do(), FieldPeasStrigling::Do(), DE_OWinterRape::Do(), OWinterWheat::Do(), OWinterWheatUndersown::Do(), OWinterWheatUndersownExt::Do(), FI_StarchPotato_North::Do(), OFodderBeet::Do(), SpringBarleyCloverGrass::Do(), FI_PotatoIndustry_North::Do(), BEMaize::Do(), DK_OSpringOats::Do(), DK_OSpringWheat::Do(), OWinterRape::Do(), PLFodderLucerne2::Do(), PTOliveGroveTradOrganic::Do(), BEBeetSpring::Do(), Triticale::Do(), UKBeet::Do(), FI_Potato_South::Do(), FI_PotatoIndustry_South::Do(), FI_StarchPotato_South::Do(), NLBeetSpring::Do(), DE_OCabbages::Do(), NLMaize::Do(), Carrots::Do(), DK_OVegSeeds::Do(), DK_SpringBarleyCloverGrass::Do(), DE_OSugarBeet::Do(), DE_OBushFruitPerm::Do(), DK_OSpringOats_CC::Do(), DK_WinterFodderGrass::Do(), UKSpringBarley::Do(), UKWinterBarley::Do(), DK_OMaize::Do(), DK_OMaizeSilage::Do(), BEBeet::Do(), NLCarrotsSpring::Do(), DK_OWinterRape::Do(), DK_SpringBarley::Do(), DK_SpringBarley_CC::Do(), SpringBarleyPeaCloverGrassStrigling::Do(), DE_OPotatoes::Do(), NLBeet::Do(), NLGrassGrazedExtensive2::Do(), DE_OCarrots::Do(), NLPermanentGrassGrazedExtensive::Do(), DK_OSpringBarleySilage::Do(), DK_SpringFodderGrass::Do(), DK_WinterCloverGrassGrazedSown::Do(), DK_OCabbages::Do(), SetAside::Do(), DK_OEnergyCrop_Perm::Do(), NLCarrots::Do(), NLGrassGrazedExtensive1Spring::Do(), NLGrassGrazedExtensiveLast::Do(), DK_OCarrots::Do(), NLCabbageSpring::Do(), NLSpringBarleySpring::Do(), DK_WinterBarley::Do(), SugarBeet::Do(), PotatoesIndustry::Do(), BEWinterBarley::Do(), BEWinterBarleyCC::Do(), NorwegianPotatoes::Do(), DKOBroadBeans_test::Do(), Potatoes::Do(), PTOliveGroveIntensive::Do(), FodderBeet::Do(), BEWinterWheat::Do(), BEWinterWheatCC::Do(), DK_EnergyCrop_Perm::Do(), PTCorkOak::Do(), DK_VegSeeds::Do(), NLCabbage::Do(), NLGrassGrazedExtensive1::Do(), DK_Carrots_Spring::Do(), DK_WinterRye::Do(), DK_WinterRye_CC::Do(), SpringBarleySKManagement::Do(), DK_Carrots::Do(), PLCarrots::Do(), PTSetAside::Do(), SpringBarleySilage::Do(), SpringBarleySpr::Do(), UKWinterWheat::Do(), WinterRyeStrigling::Do(), DK_OGrassGrazed_Perm::Do(), DK_Cabbages::Do(), SpringBarleyPTreatment::Do(), NLSpringBarley::Do(), BEGrassGrazed1Spring::Do(), DK_GrassGrazed_Perm::Do(), DE_OPermanentGrassLowYield::Do(), SpringBarleyStrigling::Do(), SpringBarleyStriglingCulm::Do(), SpringBarleyStriglingSingle::Do(), TestCrop::Do(), WinterRye::Do(), UKWinterRape::Do(), DE_PermanentGrassLowYield::Do(), BEGrassGrazed1::Do(), DK_OMixedVeg::Do(), BEGrassGrazed2::Do(), PLSpringBarleySpr::Do(), PTBeans::Do(), NLWinterWheat::Do(), BEGrassGrazedLast::Do(), PTTurnipGrazed::Do(), PTOliveGroveSuperIntensive::Do(), DK_OPotato::Do(), DK_OPotatoIndustry::Do(), DK_OPotatoSeed::Do(), PTOtherDryBeans::Do(), SpringBarley::Do(), PTCabbage_Hort::Do(), PTCabbage::Do(), DK_WinterWheat::Do(), DK_WinterWheat_CC::Do(), FI_OCaraway2::Do(), DE_PermanentGrassGrazed::Do(), PTHorticulture::Do(), PLFodderLucerne1::Do(), DK_Potato::Do(), UKPermanentGrass::Do(), UKPotatoes::Do(), FR_Grassland_Perm::Do(), UKTempGrass::Do(), PTPotatoes::Do(), DE_GreenFallow_1year::Do(), FI_GreenFallow_1year::Do(), PTOliveGroveTraditional::Do(), DK_OSeedGrassRye_Spring::Do(), DE_OGreenFallow_1year::Do(), PTOats::Do(), DE_OPermanentGrassGrazed::Do(), DK_OBushFruit_Perm2::Do(), SpringRape::Do(), FI_NaturalGrassland_Perm::Do(), FI_Caraway2::Do(), DE_HerbsPerennial_after1year::Do(), PTShrubPastures::Do(), NLGrassGrazed2::Do(), NLPermanentGrassGrazed::Do(), DK_CloverGrassGrazed1::Do(), PLBeetSpr::Do(), DK_MixedVeg::Do(), DE_OHerbsPerennial_after1year::Do(), DE_HerbsPerennial_1year::Do(), NLGrassGrazedLast::Do(), WinterWheatStrigling::Do(), NLGrassGrazed1Spring::Do(), FI_GreenFallow_Perm::Do(), DE_OHerbsPerennial_1year::Do(), WinterWheatStriglingCulm::Do(), PLBeans::Do(), WinterWheatStriglingSingle::Do(), PTWinterWheat::Do(), DE_OGrasslandSilageAnnual::Do(), FI_BufferZone_Perm::Do(), PTMaize::Do(), FI_BufferZone::Do(), PTWinterBarley::Do(), PTWinterRye::Do(), PTMaize_Hort::Do(), ITGrassland::Do(), DK_SetAside::Do(), FI_NaturalGrassland::Do(), PTFodderMix::Do(), PTCloverGrassGrazed2::Do(), DK_WinterRape::Do(), FI_OSpringBarley_Malt::Do(), PTTriticale::Do(), DK_OSetAside_AnnualFlower::Do(), WinterRape::Do(), DK_OSetAside_PerennialFlower::Do(), DK_OSetAside::Do(), PTYellowLupin::Do(), PTGrassGrazed::Do(), WinterBarleyStrigling::Do(), BEPotatoesSpring::Do(), DK_OSetAside_SummerMow::Do(), PTSorghum::Do(), DK_PotatoSeed::Do(), NLGrassGrazed1::Do(), DE_BushFruitPerm::Do(), FI_OFabaBean::Do(), FI_OCaraway1::Do(), DE_Maize::Do(), DE_MaizeSilage::Do(), DE_OAsparagusEstablishedPlantation::Do(), FI_GrasslandPasturePerennial1::Do(), DK_SetAside_SummerMow::Do(), FI_GrasslandSilagePerennial1::Do(), OSpringBarleyPigs::Do(), FR_SpringBarley::Do(), FI_OSpringOats::Do(), DK_PotatoIndustry::Do(), FI_OSpringRape::Do(), FI_OSpringWheat::Do(), FI_OTurnipRape::Do(), FI_GrasslandPasturePerennial2::Do(), FR_SpringOats::Do(), WinterBarley::Do(), PTRyegrass::Do(), FI_OSpringBarley_Fodder::Do(), NLPotatoesSpring::Do(), DE_SpringBarley::Do(), DK_OOrchCherry::Do(), FI_GrasslandSilagePerennial2::Do(), PLWinterRye::Do(), FI_FeedingGround::Do(), DK_OSpringFodderGrass::Do(), FR_Sorghum::Do(), FI_TurnipRape::Do(), BEPotatoes::Do(), DK_OBushFruit_Perm1::Do(), FI_GrasslandSilageAnnual::Do(), FR_Maize::Do(), DK_OWinterWheat_CC::Do(), DK_OCloverGrassGrazed3::Do(), DE_AsparagusEstablishedPlantation::Do(), FR_Maize_Silage::Do(), PLSpringBarley::Do(), DK_OWinterWheat::Do(), PLMaizeSilage::Do(), FI_FabaBean::Do(), DK_OCloverGrassGrazed1::Do(), DK_OCloverGrassGrazed2::Do(), NLPotatoes::Do(), PLMaize::Do(), FR_WinterTriticale::Do(), NLTulips::Do(), FI_SpringRape::Do(), FI_OWinterRye::Do(), SE_SpringBarley::Do(), PLWinterTriticale::Do(), FR_Sunflower::Do(), FI_Caraway1::Do(), PTCloverGrassGrazed1::Do(), FI_SpringBarley_Malt::Do(), DE_Peas::Do(), DE_Legumes::Do(), DK_OOrchPear::Do(), DE_WinterRye::Do(), DE_OWinterRye::Do(), DK_OWinterFodderGrass::Do(), FI_OWinterWheat::Do(), DE_OTriticale::Do(), DK_OOrchApple::Do(), FI_SpringWheat::Do(), FI_SprSpringBarley_Fodder::Do(), DK_OOrchardCrop_Perm::Do(), DE_OWinterBarley::Do(), PLBeet::Do(), DK_CloverGrassGrazed3::Do(), DK_OOrchOther::Do(), PLWinterBarley::Do(), DK_OWinterCloverGrassGrazedSown::Do(), PLWinterWheat::Do(), FI_SpringOats::Do(), DE_Carrots::Do(), PLWinterWheatLate::Do(), DK_CloverGrassGrazed2::Do(), PLSpringWheat::Do(), FI_SpringBarley_Fodder::Do(), PTPermanentGrassGrazed::Do(), DK_BushFruit_Perm1::Do(), SE_WinterRape_Seed::Do(), PLPotatoes::Do(), DE_Cabbage::Do(), SE_WinterWheat::Do(), DE_Oats::Do(), FR_SpringWheat::Do(), DE_WinterBarley::Do(), DK_SeedGrassRye_Spring::Do(), DE_SpringRye::Do(), PLWinterRape::Do(), PTVineyards::Do(), FR_WinterBarley::Do(), DE_GrasslandSilageAnnual::Do(), DK_BushFruit_Perm2::Do(), FI_WinterWheat::Do(), IRWinterOats::Do(), FR_Grassland::Do(), IRSpringOats::Do(), IRSpringBarley::Do(), IRWinterBarley::Do(), FI_WinterRye::Do(), DE_WinterWheatLate::Do(), DE_WinterWheat::Do(), FR_WinterWheat::Do(), IRSpringWheat::Do(), DE_Triticale::Do(), FR_WinterRape::Do(), FR_Potatoes::Do(), IRWinterWheat::Do(), DE_WinterRape::Do(), DE_Orchard::Do(), DK_SeedGrassFescue_Spring::Do(), WinterWheat::Do(), DE_SugarBeet::Do(), DK_OrchCherry::Do(), IRGrassland_no_reseed::Do(), DE_Potatoes::Do(), DK_OrchPear::Do(), DK_OrchApple::Do(), DK_OrchardCrop_Perm::Do(), DK_OrchOther::Do(), DE_PotatoesIndustry::Do(), DE_OOrchard::Do(), IRGrassland_reseed::Do(), ITOrchard::Do(), DK_OChristmasTrees_Perm::Do(), ITOOrchard::Do(), DK_ChristmasTrees_Perm::Do(), Osmia_Population_Manager::DoLast(), Landscape::DumpMapInfoByArea(), WinterRape::HerbiZero(), FarmManager::Print_FarmerAttributes(), SpringRape::RowcolOne(), WinterRape::RowcolOne(), and Crop::StartUpCrop().

◆ Reset()

void Calendar::Reset ( void  )
40 {
41  m_date = 0;
42  m_olddays = 0;
43  m_day_in_month = 0;
44  m_minutes = 0;
45  m_hours = 0;
46  m_day_in_year = -1; // [0..364]
47  m_month = 0; // [0..11]
49  m_simulationyear = 0;
50  m_janfirst = true;
51  m_marchfirst = false;
52 }

References m_date, m_day_in_month, m_day_in_year, m_firstyear, m_hours, m_janfirst, m_marchfirst, m_minutes, m_month, m_olddays, m_simulationyear, and m_year.

Referenced by Calendar(), Landscape::Landscape(), Weather::readWeatherFile(), and Weather::readWeatherFileHourly().

◆ Reset2()

void Calendar::Reset2 ( void  )
55 {
56  m_day_in_month = 0;
57  m_date = -1;
58  m_day_in_year = -1; // [0..364]
59 }

References m_date, m_day_in_month, and m_day_in_year.

Referenced by Landscape::RunHiddenYear().

◆ SetFirstYear()

void Calendar::SetFirstYear ( int  a_year)
inline
81 { m_firstyear = a_year; }

References m_firstyear.

Referenced by Weather::readWeatherFile(), and Weather::readWeatherFileHourly().

◆ SetLastYear()

void Calendar::SetLastYear ( int  a_year)
inline
82 { m_lastyear = a_year; }

References m_lastyear.

Referenced by Weather::readWeatherFile(), and Weather::readWeatherFileHourly().

◆ SunRiseTime() [1/2]

int Calendar::SunRiseTime ( int  a_day_in_year)
109 {
110  if (a_day_in_year < 0 || a_day_in_year>364) {
111  g_msg->Warn(WARN_BUG, "Calendar::DayLength(): Day outside a year!",
112  "");
113  exit(1);
114  }
115  return m_sunrise[a_day_in_year];
116 }

References g_msg, m_sunrise, MapErrorMsg::Warn(), and WARN_BUG.

◆ SunRiseTime() [2/2]

int Calendar::SunRiseTime ( void  )
inline

◆ SunSetTime() [1/2]

int Calendar::SunSetTime ( int  a_day_in_year)
119 {
120  if (a_day_in_year < 0 || a_day_in_year>364) {
121  g_msg->Warn(WARN_BUG, "Calendar::DayLength(): Day outside a year!",
122  "");
123  exit(1);
124  }
125  return m_sunset[a_day_in_year];
126 }

References g_msg, m_sunset, MapErrorMsg::Warn(), and WARN_BUG.

◆ SunSetTime() [2/2]

int Calendar::SunSetTime ( void  )
inline

◆ Tick()

void Calendar::Tick ( void  )
192 {
193  const int m_monthlength[12] = {
194  31, 28, 31, 30, 31, 30, 31, 31, 30, 31, 30, 31 };
195  const int m_maxmonth = 11;
196 
197  m_minutes = 0;
198  m_hours = 0;
199  m_date++;
200  m_day_in_year++;
201  m_day_in_month++;
202  m_janfirst = false;
203  m_marchfirst = false;
204 
205  if ( m_day_in_month > m_monthlength[ m_month ])
206  {
207  m_day_in_month = 1;
208  m_month++;
209  if ( m_month == 2 )
210  // March 1st.
211  m_marchfirst = true;
212  }
213 
214  if ( m_month > m_maxmonth )
215  {
216  m_month = 0;
217  m_year++;
219  m_olddays += 365;
220  m_janfirst = true;
221  m_day_in_year = 0;
222  }
227 }

References m_date, m_day_in_month, m_day_in_year, m_daylength, m_daylightproportion, m_hours, m_janfirst, m_marchfirst, m_minutes, m_month, m_olddays, m_simulationyear, m_sunrise, m_sunset, m_todayslength, m_todayssunrise, m_todayssunset, and m_year.

Referenced by Landscape::Tick().

◆ TickHour()

bool Calendar::TickHour ( void  )
179 {
180  bool dotick = false;
181 
182  if ( ++m_hours > 23 ) {
183  m_minutes = 0;
184  m_hours = 0;
185  dotick = true;
186  }
187  return dotick;
188 }

References m_hours, and m_minutes.

Referenced by RunTheSim().

◆ TickMinute()

bool Calendar::TickMinute ( void  )

The return value for the next three methods indicates wether the global Tick() should be called for the whole landscape model. Order matters here, so this cannot just be done internally within the Calendar class.

157 {
158  bool dotick = false;
159 
160  if (m_minutes++ > 59) {
161  m_minutes = 0;
162  dotick = true;
163  }
164  return dotick;
165 }

References m_minutes.

◆ TickMinute10()

bool Calendar::TickMinute10 ( void  )
168 {
169  bool dotick = false;
170  m_minutes += 10;
171  if (m_minutes > 59) {
172  m_minutes = 0;
173  dotick = true;
174  }
175  return dotick;
176 }

References m_minutes.

Referenced by RunTheSim().

◆ ValidDate()

bool Calendar::ValidDate ( int  a_day,
int  a_month 
)
130 {
131  const int m_monthlength[12] = {
132  31, 28, 31, 30, 31, 30, 31, 31, 30, 31, 30, 31 };
133 
134  if ( a_month < 1 ||
135  a_month > 12 ||
136  a_day < 1 ||
137  a_day > m_monthlength[ a_month - 1 ] ) {
138  return false;
139  } else {
140  return true;
141  }
142 }

Member Data Documentation

◆ m_date

long Calendar::m_date
private

Referenced by Date(), Reset(), Reset2(), and Tick().

◆ m_dawn

int Calendar::m_dawn
private

◆ m_day_in_month

int Calendar::m_day_in_month
private

Referenced by GetDayInMonth(), Reset(), Reset2(), and Tick().

◆ m_day_in_year

int Calendar::m_day_in_year
private

Referenced by DayInYear(), Reset(), Reset2(), and Tick().

◆ m_daylength

int Calendar::m_daylength[365]
private

Referenced by CreateDaylength(), DayLength(), and Tick().

◆ m_daylightproportion

double Calendar::m_daylightproportion
private

Referenced by GetDaylightProportion(), and Tick().

◆ m_dusk

int Calendar::m_dusk
private

◆ m_firstyear

int Calendar::m_firstyear
private

Referenced by GetFirstYear(), Reset(), and SetFirstYear().

◆ m_hours

int Calendar::m_hours
private

Referenced by GetHour(), Reset(), Tick(), and TickHour().

◆ m_janfirst

bool Calendar::m_janfirst
private

Referenced by JanFirst(), Reset(), and Tick().

◆ m_lastyear

int Calendar::m_lastyear
private

Referenced by GetLastYear(), and SetLastYear().

◆ m_marchfirst

bool Calendar::m_marchfirst
private

Referenced by MarchFirst(), Reset(), and Tick().

◆ m_minutes

int Calendar::m_minutes
private

◆ m_month

int Calendar::m_month
private

Referenced by GetMonth(), GetMonthRaw(), Reset(), and Tick().

◆ m_olddays

long Calendar::m_olddays
private

Referenced by GlobalDate(), OldDays(), Reset(), and Tick().

◆ m_simulationyear

int Calendar::m_simulationyear
private

Referenced by GetYearNumber(), Reset(), and Tick().

◆ m_sunrise

int Calendar::m_sunrise[365]
private

Referenced by CreateDaylength(), SunRiseTime(), and Tick().

◆ m_sunset

int Calendar::m_sunset[365]
private

Referenced by CreateDaylength(), SunSetTime(), and Tick().

◆ m_todayslength

int Calendar::m_todayslength
private

Referenced by DayLength(), and Tick().

◆ m_todayssunrise

int Calendar::m_todayssunrise
private

Referenced by SunRiseTime(), and Tick().

◆ m_todayssunset

int Calendar::m_todayssunset
private

Referenced by SunSetTime(), and Tick().

◆ m_year

int Calendar::m_year
private

Referenced by GetYear(), Reset(), and Tick().


The documentation for this class was generated from the following files:
Calendar::m_marchfirst
bool m_marchfirst
Definition: Calendar.h:110
Calendar::m_hours
int m_hours
Definition: Calendar.h:108
Calendar::m_daylightproportion
double m_daylightproportion
Definition: Calendar.h:106
Calendar::m_sunrise
int m_sunrise[365]
Definition: Calendar.h:113
SunSet::calcSunrise
double calcSunrise() const
Definition: sunset.cpp:455
SunSet::setCurrentDate
double setCurrentDate(int, int, int)
Definition: sunset.cpp:508
Calendar::m_firstyear
int m_firstyear
Definition: Calendar.h:94
SunSet::setPosition
void setPosition(double, double, int)
Definition: sunset.cpp:93
Calendar::m_day_in_year
int m_day_in_year
Definition: Calendar.h:97
SunSet::calcSunset
double calcSunset() const
Definition: sunset.cpp:466
Calendar::m_minutes
int m_minutes
Definition: Calendar.h:107
Calendar::Reset
void Reset(void)
Definition: Calendar.cpp:39
Calendar::m_todayslength
int m_todayslength
Definition: Calendar.h:101
Calendar::m_olddays
long m_olddays
Definition: Calendar.h:93
Calendar::m_day_in_month
int m_day_in_month
Definition: Calendar.h:96
MapErrorMsg::Warn
void Warn(MapErrorState a_level, std::string a_msg1, std::string a_msg2)
Definition: MapErrorMsg.cpp:69
SunSet
Definition: sunset.h:66
g_msg
MapErrorMsg * g_msg
Definition: MapErrorMsg.cpp:41
Calendar::m_month
int m_month
Definition: Calendar.h:98
Calendar::m_sunset
int m_sunset[365]
Definition: Calendar.h:114
Calendar::m_simulationyear
int m_simulationyear
Definition: Calendar.h:100
Calendar::m_lastyear
int m_lastyear
Definition: Calendar.h:95
Calendar::DayInYear
int DayInYear(void)
Definition: Calendar.h:58
Calendar::m_todayssunrise
int m_todayssunrise
Definition: Calendar.h:102
Calendar::m_date
long m_date
Definition: Calendar.h:92
Calendar::m_janfirst
bool m_janfirst
Definition: Calendar.h:109
Calendar::m_daylength
int m_daylength[365]
Definition: Calendar.h:112
WARN_BUG
Definition: MapErrorMsg.h:34
Calendar::m_year
int m_year
Definition: Calendar.h:99
Calendar::m_todayssunset
int m_todayssunset
Definition: Calendar.h:103