File failed to load: https://cdnjs.cloudflare.com/ajax/libs/mathjax/2.7.5/extensions/ams.js
 |
ALMaSS
1.2 (after EcoStack, March 2024)
The Animal, Landscape and Man Simulation System
|
Go to the documentation of this file.
50 #ifndef FI_GRASSLANDPASTUREPERENNIAL_H
51 #define FI_GRASSLANDPASTUREPERENNIAL_H
53 #define FI_GPP1_BASE 73100
134 #endif // FI_GRASSLANDPASTUREPERENNIAL_H
int GetMDates(int a, int b)
Definition: Elements.h:405
bool m_forcespring
Definition: Farm.h:392
#define FI_GPP1_BASE
Definition: FI_GrasslandPasturePerennial1.h:53
virtual bool FA_Slurry(LE *a_field, double a_user, int a_days)
Spready slurry on a_field owned by an stock farmer.
Definition: FarmFuncs.cpp:1067
Definition: FI_GrasslandPasturePerennial1.h:71
virtual bool PreseedingCultivator(LE *a_field, double a_user, int a_days)
Carry out preseeding cultivation on a_field (tilling set including cultivator and string roller to co...
Definition: FarmFuncs.cpp:312
CfgFloat cfg_ins_app_prop1
virtual bool HerbicideTreat(LE *a_field, double a_user, int a_days)
Apply herbicide to a_field.
Definition: FarmFuncs.cpp:2025
virtual bool Harvest(LE *a_field, double a_user, int a_days)
Carry out a harvest on a_field.
Definition: FarmFuncs.cpp:1364
Definition: FI_GrasslandPasturePerennial1.h:76
bool m_lock
Definition: Farm.h:384
CfgFloat cfg_ins_app_prop2
A struct to hold the information required to trigger a farm event.
Definition: Farm.h:372
virtual bool CattleIsOut(LE *a_field, double a_user, int a_days, int a_max)
Generate a 'cattle_out' event for every day the cattle are on a_field.
Definition: FarmFuncs.cpp:2470
void ClearManagementActionSum()
clears the management action counters
Definition: Elements.h:247
virtual bool CutToSilage(LE *a_field, double a_user, int a_days)
Cut vegetation for silage on a_field.
Definition: FarmFuncs.cpp:1644
bool DoIt(double a_probability)
Return chance out of 0 to 100.
Definition: Farm.cpp:856
Definition: FI_GrasslandPasturePerennial1.h:66
CfgFloat cfg_greg_app_prop
CfgFloat l_pest_insecticide_amount
class Calendar * g_date
Definition: Calendar.cpp:37
Definition: FI_GrasslandPasturePerennial1.h:72
CfgFloat cfg_herbi_app_prop
Definition: LandscapeFarmingEnums.h:1006
Definition: FI_GrasslandPasturePerennial1.h:78
virtual bool SpringSow(LE *a_field, double a_user, int a_days, double a_seed_coating_amount=-1, PlantProtectionProducts a_ppp=ppp_foobar)
Carry out a sowing event in the spring on a_field.
Definition: FarmFuncs.cpp:501
Definition: FI_GrasslandPasturePerennial1.h:65
int m_base_elements_no
Definition: Farm.h:505
int m_first_date
Definition: Farm.h:501
virtual bool Do(Farm *a_farm, LE *a_field, FarmEvent *a_ev)
The one and only method for a crop management plan. All farm actions go through here.
Definition: FI_GrasslandPasturePerennial1.cpp:98
Definition: FI_GrasslandPasturePerennial1.h:67
The base class for all crops.
Definition: Farm.h:495
void SimpleEvent(long a_date, int a_todo, bool a_lock)
Adds an event to this crop management.
Definition: Farm.cpp:747
Definition: LandscapeFarmingEnums.h:1009
Definition: FI_GrasslandPasturePerennial1.h:73
The landscape class containing all environmental and topographical data.
Definition: Landscape.h:142
Definition: LandscapeFarmingEnums.h:1004
FI_GrasslandPasturePerennial1 class .
Definition: FI_GrasslandPasturePerennial1.h:90
Definition: FI_GrasslandPasturePerennial1.h:74
long Date(void)
Definition: Calendar.h:57
Definition: LandscapeFarmingEnums.h:1008
Bool configurator entry class.
Definition: Configurator.h:155
Definition: FI_GrasslandPasturePerennial1.h:69
CfgBool cfg_FI_GrasslandPasturePerennial1_SkScrapes("DK_CROP_GPP1_SK_SCRAPES", CFG_CUSTOM, false)
Definition: FI_GrasslandPasturePerennial1.h:68
Definition: LandscapeFarmingEnums.h:1003
Definition: FI_GrasslandPasturePerennial1.h:64
long OldDays(void)
Definition: Calendar.h:60
void Warn(MapErrorState a_level, std::string a_msg1, std::string a_msg2)
Definition: MapErrorMsg.cpp:69
Definition: Configurator.h:208
bool StartUpCrop(int a_spring, std::vector< std::vector< int >> a_flexdates, int a_todo)
Holds the translation between the farm operation enum for each cropand the farm management category a...
Definition: Farm.cpp:652
Farm * m_farm
Definition: Farm.h:498
LE * m_field
Definition: Farm.h:499
vector< FarmManagementCategory > m_ManagementCategories
Holds the translation between the farm operation enum for each crop and the farm management category ...
Definition: Farm.h:530
Definition: FI_GrasslandPasturePerennial1.h:75
int m_todo
Definition: Farm.h:388
TTypesOfCrops
Definition: LandscapeFarmingEnums.h:781
Definition: Elements.h:86
int m_last_date
Definition: Farm.h:503
MapErrorMsg * g_msg
Definition: MapErrorMsg.cpp:41
Definition: LandscapeFarmingEnums.h:1010
TTypesOfVegetation
Values that represent the types of vegetation that are represented in ALMaSS.
Definition: LandscapeFarmingEnums.h:192
Integer configurator entry class.
Definition: Configurator.h:102
Definition: FI_GrasslandPasturePerennial1.h:77
Definition: LandscapeFarmingEnums.h:556
The base class for all farm types.
Definition: Farm.h:755
Double configurator entry class.
Definition: Configurator.h:126
Definition: LandscapeFarmingEnums.h:1012
virtual bool WinterPlough(LE *a_field, double a_user, int a_days)
Carry out a ploughing event in the winter on a_field.
Definition: FarmFuncs.cpp:395
FI_GrasslandPasturePerennial1(TTypesOfVegetation a_tov, TTypesOfCrops a_toc, Landscape *a_L)
Definition: FI_GrasslandPasturePerennial1.h:94
Definition: Configurator.h:70
int DayInYear(void)
Definition: Calendar.h:58
Definition: FI_GrasslandPasturePerennial1.h:70
FI_GrasslandPasturePerennial1ToDo
A flag used to indicate autumn ploughing status.
Definition: FI_GrasslandPasturePerennial1.h:63
CfgInt cfg_GPP1_InsecticideMonth
CfgFloat cfg_ins_app_prop3
bool m_forcespringpossible
Used to signal that the crop can be forced to start in spring.
Definition: Farm.h:508
CfgBool cfg_pest_FI_GrasslandPasturePerennial1_on
FarmEvent * m_ev
Definition: Farm.h:500
virtual bool CattleOut(LE *a_field, double a_user, int a_days)
Start a grazing event on a_field today.
Definition: FarmFuncs.cpp:2368
CfgFloat cfg_fungi_app_prop2
Definition: MapErrorMsg.h:34
FarmManagementCategory
Definition: LandscapeFarmingEnums.h:1001
CfgInt cfg_GPP1_InsecticideDay
virtual bool FP_NPKS(LE *a_field, double a_user, int a_days)
Apply NPKS fertilizer, on a_field owned by an arable farmer.
Definition: FarmFuncs.cpp:630
CfgArray_Double cfg_pest_product_amounts
Amount of pesticide applied in grams of active substance per hectare for each of the 10 pesticides.
CfgFloat cfg_fungi_app_prop1