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.
28 #ifndef OWINTERWHEAT_H
29 #define OWINTERWHEAT_H
31 #define OWINTERWHEAT_BASE 4900
32 #define OWW_PLOUGH_RUNS m_field->m_user[0]
33 #define OWW_HARROW_RUNS m_field->m_user[1]
115 #endif // OWINTERWHEATUndersown_H
int GetMDates(int a, int b)
Definition: Elements.h:405
Definition: OWinterWheat.h:53
Definition: OWinterWheat.h:50
Definition: OWinterWheat.h:36
virtual bool SpringRoll(LE *a_field, double a_user, int a_days)
Carry out a roll event in the spring on a_field.
Definition: FarmFuncs.cpp:487
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
void SetMDates(int a, int b, int c)
Definition: Elements.h:406
Definition: OWinterWheat.h:38
bool IsStockFarmer(void)
Definition: Farm.h:961
#define OWW_PLOUGH_RUNS
Definition: OWinterWheat.h:32
virtual bool Strigling(LE *a_field, double a_user, int a_days)
Carry out a mechanical weeding on a_field.
Definition: FarmFuncs.cpp:1206
Definition: OWinterWheat.h:55
virtual bool Harvest(LE *a_field, double a_user, int a_days)
Carry out a harvest on a_field.
Definition: FarmFuncs.cpp:1364
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
Definition: OWinterWheat.h:52
bool m_first_year
Definition: Farm.h:386
Definition: OWinterWheat.h:43
class Calendar * g_date
Definition: Calendar.cpp:37
#define OWW_HARROW_RUNS
Definition: OWinterWheat.h:33
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: OWinterWheat.h:56
double value() const
Definition: Configurator.h:142
int m_base_elements_no
Definition: Farm.h:505
int m_first_date
Definition: Farm.h:501
int m_startday
Definition: Farm.h:385
Definition: OWinterWheat.h:46
Definition: OWinterWheat.h:37
OWinterWheat(TTypesOfVegetation a_tov, TTypesOfCrops a_toc, Landscape *a_L)
Definition: OWinterWheat.h:68
Definition: OWinterWheat.h:64
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
virtual bool FP_Manure(LE *a_field, double a_user, int a_days)
Spread manure on a_field owned by an arable farmer.
Definition: FarmFuncs.cpp:896
Definition: OWinterWheat.h:44
void SetUpFarmCategoryInformation()
Definition: OWinterWheat.h:73
The landscape class containing all environmental and topographical data.
Definition: Landscape.h:142
Definition: OWinterWheat.h:57
Definition: LandscapeFarmingEnums.h:1004
virtual bool Do(Farm *a_farm, LE *a_field, FarmEvent *a_ev)
Definition: OWinterWheat.cpp:33
Definition: OWinterWheat.h:60
long Date(void)
Definition: Calendar.h:57
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
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: OWinterWheat.h:45
long OldDays(void)
Definition: Calendar.h:60
Definition: OWinterWheat.h:54
void Warn(MapErrorState a_level, std::string a_msg1, std::string a_msg2)
Definition: MapErrorMsg.cpp:69
Definition: OWinterWheat.h:49
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
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: OWinterWheat.h:51
TTypesOfCrops
Definition: LandscapeFarmingEnums.h:781
Definition: Elements.h:86
#define OWINTERWHEAT_BASE
Definition: OWinterWheat.h:31
int m_last_date
Definition: Farm.h:503
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
OWinterWheatToDo
Definition: OWinterWheat.h:35
TTypesOfVegetation
Values that represent the types of vegetation that are represented in ALMaSS.
Definition: LandscapeFarmingEnums.h:192
Definition: OWinterWheat.h:41
The base class for all farm types.
Definition: Farm.h:755
Definition: OWinterWheat.h:42
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
Definition: OWinterWheat.h:39
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: OWinterWheat.h:59
Definition: LandscapeFarmingEnums.h:1012
int DayInYear(void)
Definition: Calendar.h:58
Definition: OWinterWheat.h:48
CfgFloat cfg_strigling_prop
Definition: OWinterWheat.h:40
virtual bool HayTurning(LE *a_field, double a_user, int a_days)
Carry out hay turning on a_field.
Definition: FarmFuncs.cpp:1491
FarmEvent * m_ev
Definition: Farm.h:500
virtual bool StriglingSow(LE *a_field, double a_user, int a_days, double a_seed_coating_amount=-1, PlantProtectionProducts a_ppp=ppp_foobar)
Carry out a mechanical weeding followed by sowing on a_field.
Definition: FarmFuncs.cpp:1226
Definition: MapErrorMsg.h:34
Definition: OWinterWheat.h:47
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
Definition: OWinterWheat.h:58