|
ALMaSS
1.2 (after EcoStack, March 2024)
The Animal, Landscape and Man Simulation System
|
Go to the documentation of this file.
28 #ifndef PermanentGrassGrazed_H
29 #define PermanentGrassGrazed_H
32 #define PGG_CUT_DATE m_field->m_user[0]
33 #define PGG_FERTI_DATE m_field->m_user[1]
90 #endif // PermanentGrassGrazed_H
int GetMDates(int a, int b)
Definition: Elements.h:405
void SetMDates(int a, int b, int c)
Definition: Elements.h:406
virtual bool HerbicideTreat(LE *a_field, double a_user, int a_days)
Apply herbicide to a_field.
Definition: FarmFuncs.cpp:2025
bool IsStockFarmer(void)
Definition: Farm.h:961
void SetLastSownVeg(TTypesOfVegetation a_tov)
Records the last vegetation type to be sown.
Definition: Elements.h:357
bool m_lock
Definition: Farm.h:384
Definition: PermanentGrassGrazed.h:41
A struct to hold the information required to trigger a farm event.
Definition: Farm.h:372
int GetMConstants(int a)
Definition: Elements.h:407
Definition: PermanentGrassGrazed.h:37
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 FP_NPK(LE *a_field, double a_user, int a_days)
Apply NPK fertilizer, on a_field owned by an arable farmer.
Definition: FarmFuncs.cpp:645
bool DoIt(double a_probability)
Return chance out of 0 to 100.
Definition: Farm.cpp:856
int GetYearNumber(void)
Definition: Calendar.h:72
CfgFloat cfg_fungi_app_prop1
bool m_first_year
Definition: Farm.h:386
class Calendar * g_date
Definition: Calendar.cpp:37
Definition: PermanentGrassGrazed.h:38
Definition: LandscapeFarmingEnums.h:1006
void SetUpFarmCategoryInformation()
Definition: PermanentGrassGrazed.h:63
double value() const
Definition: Configurator.h:142
TTypesOfFarm GetType(void)
Definition: Farm.h:956
int m_base_elements_no
Definition: Farm.h:505
virtual bool CutToHay(LE *a_field, double a_user, int a_days)
Carry out hay cutting on a_field.
Definition: FarmFuncs.cpp:1607
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
virtual double Prob_multiplier()
Definition: Farm.h:778
The landscape class containing all environmental and topographical data.
Definition: Landscape.h:142
Definition: LandscapeFarmingEnums.h:1004
PermanentGrassGrazed(TTypesOfVegetation a_tov, TTypesOfCrops a_toc, Landscape *a_L)
Definition: PermanentGrassGrazed.h:58
CfgFloat cfg_herbi_app_prop
long Date(void)
Definition: Calendar.h:57
CfgFloat cfg_ins_app_prop1
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
Definition: PermanentGrassGrazed.h:43
Definition: PermanentGrassGrazed.h:54
#define PGG_BASE
Definition: PermanentGrassGrazed.h:31
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: PermanentGrassGrazed.h:47
Definition: PermanentGrassGrazed.h:45
Definition: PermanentGrassGrazed.h:48
Definition: PermanentGrassGrazed.h:40
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
Definition: PermanentGrassGrazed.h:46
TTypesOfCrops
Definition: LandscapeFarmingEnums.h:781
PermanentGrassGrazedToDo
Definition: PermanentGrassGrazed.h:35
Definition: LandscapeFarmingEnums.h:696
Definition: Elements.h:86
Definition: PermanentGrassGrazed.h:49
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
The base class for all farm types.
Definition: Farm.h:755
bool Do(Farm *a_farm, LE *a_field, FarmEvent *a_ev)
Definition: PermanentGrassGrazed.cpp:37
Double configurator entry class.
Definition: Configurator.h:126
int DayInYear(void)
Definition: Calendar.h:58
Definition: PermanentGrassGrazed.h:42
#define PGG_CUT_DATE
Definition: PermanentGrassGrazed.h:32
Definition: PermanentGrassGrazed.h:39
void SetMConstants(int a, int c)
Definition: Elements.h:408
Definition: PermanentGrassGrazed.h:36
void ChooseNextCrop(int a_no_dates)
Chooses the next crop to grow in a field.
Definition: Farm.cpp:756
virtual bool HayTurning(LE *a_field, double a_user, int a_days)
Carry out hay turning on a_field.
Definition: FarmFuncs.cpp:1491
#define PGG_FERTI_DATE
Definition: PermanentGrassGrazed.h:33
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: PermanentGrassGrazed.h:44
Definition: MapErrorMsg.h:34
FarmManagementCategory
Definition: LandscapeFarmingEnums.h:1001
CfgFloat cfg_greg_app_prop
virtual bool CutWeeds(LE *a_field, double a_user, int a_days)
Carry out weed topping on a_field.
Definition: FarmFuncs.cpp:1629