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_GRASSLANDPASTUREPERENNIAL2_H
51 #define FI_GRASSLANDPASTUREPERENNIAL2_H
53 #define FI_GPP2_BASE 73200
135 #endif // FI_GRASSLANDPASTUREPERENNIAL2_H
int GetMDates(int a, int b)
Definition: Elements.h:405
Definition: FI_GrasslandPasturePerennial2.h:78
bool m_forcespring
Definition: Farm.h:392
Definition: FI_GrasslandPasturePerennial2.h:70
FI_GrasslandPasturePerennial2(TTypesOfVegetation a_tov, TTypesOfCrops a_toc, Landscape *a_L)
Definition: FI_GrasslandPasturePerennial2.h:94
CfgBool cfg_pest_FI_GrasslandPasturePerennial2_on
bool m_lock
Definition: Farm.h:384
A struct to hold the information required to trigger a farm event.
Definition: Farm.h:372
FI_GrasslandPasturePerennial2ToDo
A flag used to indicate autumn ploughing status.
Definition: FI_GrasslandPasturePerennial2.h:63
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
CfgArray_Double cfg_pest_product_amounts
Amount of pesticide applied in grams of active substance per hectare for each of the 10 pesticides.
Definition: FI_GrasslandPasturePerennial2.h:68
bool DoIt(double a_probability)
Return chance out of 0 to 100.
Definition: Farm.cpp:856
CfgFloat cfg_greg_app_prop
CfgFloat cfg_ins_app_prop2
Definition: LandscapeFarmingEnums.h:557
class Calendar * g_date
Definition: Calendar.cpp:37
FI_GrasslandPasturePerennial2 class .
Definition: FI_GrasslandPasturePerennial2.h:90
CfgFloat l_pest_insecticide_amount
CfgInt cfg_GPP2_InsecticideMonth
CfgFloat cfg_ins_app_prop1
int m_base_elements_no
Definition: Farm.h:505
Definition: FI_GrasslandPasturePerennial2.h:72
int m_first_date
Definition: Farm.h:501
virtual bool FA_NPK(LE *a_field, double a_user, int a_days)
Apply NPK fertilizer to a_field owned by an stock farmer.
Definition: FarmFuncs.cpp:982
CfgFloat cfg_herbi_app_prop
Definition: FI_GrasslandPasturePerennial2.h:73
The base class for all crops.
Definition: Farm.h:495
Definition: FI_GrasslandPasturePerennial2.h:65
void SimpleEvent(long a_date, int a_todo, bool a_lock)
Adds an event to this crop management.
Definition: Farm.cpp:747
The landscape class containing all environmental and topographical data.
Definition: Landscape.h:142
Definition: FI_GrasslandPasturePerennial2.h:64
Definition: LandscapeFarmingEnums.h:1004
Definition: FI_GrasslandPasturePerennial2.h:66
long Date(void)
Definition: Calendar.h:57
Bool configurator entry class.
Definition: Configurator.h:155
Definition: LandscapeFarmingEnums.h:1003
Definition: FI_GrasslandPasturePerennial2.h:67
long OldDays(void)
Definition: Calendar.h:60
void Warn(MapErrorState a_level, std::string a_msg1, std::string a_msg2)
Definition: MapErrorMsg.cpp:69
CfgBool cfg_FI_GrasslandPasturePerennial2_SkScrapes("DK_CROP_GPP2_SK_SCRAPES", CFG_CUSTOM, false)
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
#define FI_GPP2_BASE
Definition: FI_GrasslandPasturePerennial2.h:53
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_GrasslandPasturePerennial2.cpp:98
Definition: FI_GrasslandPasturePerennial2.h:69
Definition: FI_GrasslandPasturePerennial2.h:77
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_GrasslandPasturePerennial2.h:74
int m_todo
Definition: Farm.h:388
TTypesOfCrops
Definition: LandscapeFarmingEnums.h:781
Definition: FI_GrasslandPasturePerennial2.h:76
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
CfgInt cfg_GPP2_InsecticideDay
The base class for all farm types.
Definition: Farm.h:755
void SetUpFarmCategoryInformation()
Definition: FI_GrasslandPasturePerennial2.h:103
Double configurator entry class.
Definition: Configurator.h:126
CfgFloat cfg_ins_app_prop3
Definition: Configurator.h:70
int DayInYear(void)
Definition: Calendar.h:58
Definition: FI_GrasslandPasturePerennial2.h:75
CfgFloat cfg_fungi_app_prop1
CfgFloat cfg_fungi_app_prop2
bool m_forcespringpossible
Used to signal that the crop can be forced to start in spring.
Definition: Farm.h:508
Definition: FI_GrasslandPasturePerennial2.h:71
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
Definition: MapErrorMsg.h:34
FarmManagementCategory
Definition: LandscapeFarmingEnums.h:1001