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.
5 #ifndef WINTERRAPESTRIGLING_H
6 #define WINTERRAPESTRIGLING_H
12 #define WINTERRAPESTRIGLING_BASE 7900
13 #define WR_DID_RC_CLEAN m_field->m_user[0]
14 #define WR_DID_HERBI_ZERO m_field->m_user[1]
15 #define WR_INSECT_DATE m_field->m_user[2]
16 #define WR_FUNGI_DATE m_field->m_user[3]
17 #define WR_SWARTH_DATE m_field->m_user[4]
97 #endif // WINTERRAPE_H
int GetMDates(int a, int b)
Definition: Elements.h:405
Definition: WinterRapeStrigling.h:22
Definition: WinterRapeStrigling.h:34
Definition: LandscapeFarmingEnums.h:1005
void SetUpFarmCategoryInformation()
Definition: WinterRapeStrigling.h:57
void SetMDates(int a, int b, int c)
Definition: Elements.h:406
bool IsStockFarmer(void)
Definition: Farm.h:961
bool Do(Farm *a_farm, LE *a_field, FarmEvent *a_ev)
Definition: WinterRapeStrigling.cpp:35
virtual bool Strigling(LE *a_field, double a_user, int a_days)
Carry out a mechanical weeding on a_field.
Definition: FarmFuncs.cpp:1206
WinterRapeStrigling(TTypesOfVegetation a_tov, TTypesOfCrops a_toc, Landscape *a_L)
Definition: WinterRapeStrigling.h:52
virtual bool Harvest(LE *a_field, double a_user, int a_days)
Carry out a harvest on a_field.
Definition: FarmFuncs.cpp:1364
Definition: WinterRapeStrigling.h:23
bool m_lock
Definition: Farm.h:384
A struct to hold the information required to trigger a farm event.
Definition: Farm.h:372
void ClearManagementActionSum()
clears the management action counters
Definition: Elements.h:247
bool DoIt(double a_probability)
Return chance out of 0 to 100.
Definition: Farm.cpp:856
bool m_first_year
Definition: Farm.h:386
Definition: WinterRapeStrigling.h:42
Definition: WinterRapeStrigling.h:35
class Calendar * g_date
Definition: Calendar.cpp:37
Definition: WinterRapeStrigling.h:39
virtual bool FA_Manure(LE *a_field, double a_user, int a_days)
Spread manure on a_field owned by an stock farmer.
Definition: FarmFuncs.cpp:1110
Definition: WinterRapeStrigling.h:48
double value() const
Definition: Configurator.h:142
int m_base_elements_no
Definition: Farm.h:505
Definition: WinterRapeStrigling.h:36
Definition: WinterRapeStrigling.h:32
int m_first_date
Definition: Farm.h:501
int m_startday
Definition: Farm.h:385
virtual bool FungicideTreat(LE *a_field, double a_user, int a_days)
Apply fungicide to a_field.
Definition: FarmFuncs.cpp:2101
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: WinterRapeStrigling.h:38
Definition: WinterRapeStrigling.h:26
CfgFloat cfg_ins_app_prop1
Definition: LandscapeFarmingEnums.h:1009
Definition: WinterRapeStrigling.h:37
The landscape class containing all environmental and topographical data.
Definition: Landscape.h:142
Definition: LandscapeFarmingEnums.h:1004
Definition: WinterRapeStrigling.h:24
CfgFloat cfg_herbi_app_prop
long Date(void)
Definition: Calendar.h:57
Definition: WinterRapeStrigling.h:25
Definition: LandscapeFarmingEnums.h:1008
virtual bool HayBailing(LE *a_field, double a_user, int a_days)
Carry out hay bailing on a_field.
Definition: FarmFuncs.cpp:1507
#define WR_FUNGI_DATE
Definition: WinterRape.h:48
Definition: LandscapeFarmingEnums.h:1003
virtual bool StrawChopping(LE *a_field, double a_user, int a_days)
Carry out straw chopping on a_field.
Definition: FarmFuncs.cpp:1475
Definition: WinterRapeStrigling.h:30
long OldDays(void)
Definition: Calendar.h:60
#define WR_INSECT_DATE
Definition: WinterRape.h:47
#define WR_SWARTH_DATE
Definition: WinterRape.h:49
Definition: WinterRapeStrigling.h:31
void Warn(MapErrorState a_level, std::string a_msg1, std::string a_msg2)
Definition: MapErrorMsg.cpp:69
#define WR_DID_HERBI_ZERO
Definition: WinterRape.h:46
Farm * m_farm
Definition: Farm.h:498
LE * m_field
Definition: Farm.h:499
Definition: WinterRapeStrigling.h:20
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
virtual bool InsecticideTreat(LE *a_field, double a_user, int a_days)
Apply insecticide to a_field.
Definition: FarmFuncs.cpp:2135
virtual bool FP_Slurry(LE *a_field, double a_user, int a_days)
Apply slurry to a_field owned by an arable farmer.
Definition: FarmFuncs.cpp:823
Definition: WinterRapeStrigling.h:43
TTypesOfCrops
Definition: LandscapeFarmingEnums.h:781
Definition: WinterRapeStrigling.h:29
virtual bool RowCultivation(LE *a_field, double a_user, int a_days)
Carry out a harrowing between crop rows on a_field.
Definition: FarmFuncs.cpp:1183
Definition: WinterRapeStrigling.h:27
Definition: Elements.h:86
int m_last_date
Definition: Farm.h:503
#define WR_DID_RC_CLEAN
Definition: WinterRape.h:45
virtual bool AutumnPlough(LE *a_field, double a_user, int a_days)
Carry out a ploughing event in the autumn on a_field.
Definition: FarmFuncs.cpp:212
MapErrorMsg * g_msg
Definition: MapErrorMsg.cpp:41
virtual bool AutumnHarrow(LE *a_field, double a_user, int a_days)
Carry out a harrow event in the autumn on a_field.
Definition: FarmFuncs.cpp:285
CfgFloat cfg_greg_app_prop
TTypesOfVegetation
Values that represent the types of vegetation that are represented in ALMaSS.
Definition: LandscapeFarmingEnums.h:192
The base class for all farm types.
Definition: Farm.h:755
virtual bool DeepPlough(LE *a_field, double a_user, int a_days)
Carry out a deep ploughing event on a_field.
Definition: FarmFuncs.cpp:408
Double configurator entry class.
Definition: Configurator.h:126
virtual bool AutumnSow(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 autumn on a_field.
Definition: FarmFuncs.cpp:360
Definition: LandscapeFarmingEnums.h:1012
Definition: WinterRapeStrigling.h:28
Definition: WinterRapeStrigling.h:21
Definition: WinterRapeStrigling.h:33
int DayInYear(void)
Definition: Calendar.h:58
WinterRapeStriglingToDo
Definition: WinterRapeStrigling.h:19
Definition: WinterRapeStrigling.h:40
Definition: WinterRapeStrigling.h:41
virtual bool Swathing(LE *a_field, double a_user, int a_days)
Cut the crop on a_field and leave it lying (probably rape)
Definition: FarmFuncs.cpp:1350
FarmEvent * m_ev
Definition: Farm.h:500
Definition: MapErrorMsg.h:34
CfgFloat cfg_fungi_app_prop1
Definition: LandscapeFarmingEnums.h:1007
#define WINTERRAPESTRIGLING_BASE
Definition: WinterRapeStrigling.h:12
FarmManagementCategory
Definition: LandscapeFarmingEnums.h:1001
virtual bool StubbleHarrowing(LE *a_field, double a_user, int a_days)
Carry out stubble harrowing on a_field.
Definition: FarmFuncs.cpp:1523
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