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_GREENFALLOW_1Y_H
51 #define FI_GREENFALLOW_1Y_H
53 #define FI_GF1Y_BASE 74000
118 #endif // FI_GREENFALLOW_1Y_H
Definition: FI_GreenFallow_1year.h:67
CfgFloat cfg_ins_app_prop3
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_1year.cpp:98
CfgFloat cfg_greg_app_prop
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
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
int GetYearNumber(void)
Definition: Calendar.h:72
bool m_first_year
Definition: Farm.h:386
int GetPoly(void)
Returns the polyref number for this polygon.
Definition: Elements.h:238
class Calendar * g_date
Definition: Calendar.cpp:37
FI_GreenFallow_1year class .
Definition: FI_GreenFallow_1year.h:82
TTypesOfVegetation GetPreviousTov(int a_index)
Definition: Farm.h:966
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
void SetUpFarmCategoryInformation()
Definition: FI_GreenFallow_1year.h:94
int m_base_elements_no
Definition: Farm.h:505
FI_GreenFallow_1yearToDo
A flag used to indicate autumn ploughing status.
Definition: FI_GreenFallow_1year.h:63
int m_first_date
Definition: Farm.h:501
int m_startday
Definition: Farm.h:385
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
CfgInt cfg_GF1Y_InsecticideMonth
CfgFloat cfg_herbi_app_prop
Definition: LandscapeFarmingEnums.h:1009
#define FI_GF1Y_BASE
Definition: FI_GreenFallow_1year.h:53
The landscape class containing all environmental and topographical data.
Definition: Landscape.h:142
Definition: FI_GreenFallow_1year.h:65
Definition: FI_GreenFallow_1year.h:66
long Date(void)
Definition: Calendar.h:57
CfgFloat cfg_fungi_app_prop2
Definition: FI_GreenFallow_1year.h:64
Bool configurator entry class.
Definition: Configurator.h:155
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
Definition: FI_GreenFallow_1year.h:69
Definition: Configurator.h:208
CfgFloat cfg_ins_app_prop1
int GetRotIndex(void)
Definition: Elements.h:373
FI_GreenFallow_1year(TTypesOfVegetation a_tov, TTypesOfCrops a_toc, Landscape *a_L)
Definition: FI_GreenFallow_1year.h:86
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
int m_todo
Definition: Farm.h:388
TTypesOfCrops
Definition: LandscapeFarmingEnums.h:781
Definition: LandscapeFarmingEnums.h:696
Definition: Elements.h:86
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
The base class for all farm types.
Definition: Farm.h:755
CfgInt cfg_GF1Y_InsecticideDay
Double configurator entry class.
Definition: Configurator.h:126
CfgBool cfg_pest_FI_GreenFallow_1year_on
CfgFloat cfg_ins_app_prop2
CfgBool cfg_FI_GreenFallow_1year_SkScrapes("DK_CROP_GF1Y_SK_SCRAPES", CFG_CUSTOM, false)
Definition: Configurator.h:70
Definition: FI_GreenFallow_1year.h:70
Farm * GetOwner(void)
Definition: Elements.h:256
int DayInYear(void)
Definition: Calendar.h:58
CfgFloat cfg_fungi_app_prop1
CfgFloat l_pest_insecticide_amount
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_1year.h:68
FarmManagementCategory
Definition: LandscapeFarmingEnums.h:1001
CfgArray_Double cfg_pest_product_amounts
Amount of pesticide applied in grams of active substance per hectare for each of the 10 pesticides.