Loading [MathJax]/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_GREENFALLOW_PERM_H
51 #define FI_GREENFALLOW_PERM_H
53 #define FI_GFP_YEARS_AFTER_SOW a_field->m_user[1]
55 #define FI_GFP_BASE 74100
123 #endif // FI_GREENFALLOW_PERM_H
CfgArray_Double cfg_pest_product_amounts
Amount of pesticide applied in grams of active substance per hectare for each of the 10 pesticides.
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
#define FI_GFP_BASE
Definition: FI_GreenFallow_Perm.h:55
CfgFloat cfg_fungi_app_prop2
bool IsStockFarmer(void)
Definition: Farm.h:961
bool m_lock
Definition: Farm.h:384
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
Definition: FI_GreenFallow_Perm.h:74
void ClearManagementActionSum()
clears the management action counters
Definition: Elements.h:247
CfgFloat cfg_herbi_app_prop
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
int GetYearNumber(void)
Definition: Calendar.h:72
bool m_first_year
Definition: Farm.h:386
Definition: FI_GreenFallow_Perm.h:66
FI_GreenFallow_Perm(TTypesOfVegetation a_tov, TTypesOfCrops a_toc, Landscape *a_L)
Definition: FI_GreenFallow_Perm.h:89
int GetPoly(void)
Returns the polyref number for this polygon.
Definition: Elements.h:238
CfgFloat cfg_greg_app_prop
class Calendar * g_date
Definition: Calendar.cpp:37
CfgBool cfg_pest_FI_GreenFallow_Perm_on
TTypesOfVegetation GetPreviousTov(int a_index)
Definition: Farm.h:966
#define FI_GFP_YEARS_AFTER_SOW
Definition: FI_GreenFallow_Perm.h:53
Definition: FI_GreenFallow_Perm.h:69
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
TTypesOfFarm GetType(void)
Definition: Farm.h:956
int m_base_elements_no
Definition: Farm.h:505
int m_first_date
Definition: Farm.h:501
int m_startday
Definition: Farm.h:385
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
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_GreenFallow_Perm.h:72
The landscape class containing all environmental and topographical data.
Definition: Landscape.h:142
Definition: LandscapeFarmingEnums.h:1004
Definition: FI_GreenFallow_Perm.h:67
FI_GreenFallow_Perm class .
Definition: FI_GreenFallow_Perm.h:85
FI_GreenFallow_PermToDo
A flag used to indicate autumn ploughing status.
Definition: FI_GreenFallow_Perm.h:65
long Date(void)
Definition: Calendar.h:57
Bool configurator entry class.
Definition: Configurator.h:155
CfgInt cfg_GFP_InsecticideDay
Definition: FI_GreenFallow_Perm.h:70
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_GreenFallow_Perm.cpp:98
Definition: LandscapeFarmingEnums.h:1003
long OldDays(void)
Definition: Calendar.h:60
void Warn(MapErrorState a_level, std::string a_msg1, std::string a_msg2)
Definition: MapErrorMsg.cpp:69
CfgInt cfg_GFP_InsecticideMonth
Definition: Configurator.h:208
int GetRotIndex(void)
Definition: Elements.h:373
CfgFloat cfg_ins_app_prop1
CfgBool cfg_FI_GreenFallow_Perm_SkScrapes("DK_CROP_GFP_SK_SCRAPES", CFG_CUSTOM, false)
TTypesOfVegetation m_next_tov
Definition: Farm.h:390
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
void SetUpFarmCategoryInformation()
Definition: FI_GreenFallow_Perm.h:97
int m_todo
Definition: Farm.h:388
CfgFloat cfg_ins_app_prop2
TTypesOfCrops
Definition: LandscapeFarmingEnums.h:781
CfgFloat cfg_fungi_app_prop1
Definition: LandscapeFarmingEnums.h:696
Definition: Elements.h:86
MapErrorMsg * g_msg
Definition: MapErrorMsg.cpp:41
Definition: FI_GreenFallow_Perm.h:68
CfgFloat cfg_ins_app_prop3
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
The base class for all farm types.
Definition: Farm.h:755
Double configurator entry class.
Definition: Configurator.h:126
Definition: Configurator.h:70
Farm * GetOwner(void)
Definition: Elements.h:256
int DayInYear(void)
Definition: Calendar.h:58
CfgFloat l_pest_insecticide_amount
Definition: FI_GreenFallow_Perm.h:73
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
Definition: FI_GreenFallow_Perm.h:71
FarmManagementCategory
Definition: LandscapeFarmingEnums.h:1001