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.
21 #ifndef NLPERMANENTGRASSLANDGRAZEDEXTENSIVE_H
22 #define NLPERMANENTGRASSLANDGRAZEDEXTENSIVE_H
24 #define NLPERMANENTGRASSLANDGRAZEDEXTENSIVE_BASE 21900
28 #define NL_PGGE_FERTI_DATE a_field->m_user[1]
29 #define NL_PGGE_CUT_DATE a_field->m_user[2]
30 #define NL_PGGE_WATER_DATE a_field->m_user[3]
118 #endif // NLPERMANENTGRASSLANDGRAZEDEXTENSIVE_H
Definition: NLPermanentGrassGrazedExtensive.h:47
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
Definition: LandscapeFarmingEnums.h:272
bool IsStockFarmer(void)
Definition: Farm.h:961
bool m_lock
Definition: Farm.h:384
Definition: NLPermanentGrassGrazedExtensive.h:40
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 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
virtual bool CutToSilage(LE *a_field, double a_user, int a_days)
Cut vegetation for silage on a_field.
Definition: FarmFuncs.cpp:1644
#define NL_PGGE_CUT_DATE
Definition: NLPermanentGrassGrazedExtensive.h:29
bool DoIt_prob(double a_probability)
Return chance out of 0 to 1.
Definition: Farm.cpp:864
class Calendar * g_date
Definition: Calendar.cpp:37
void SetUpFarmCategoryInformation()
Definition: NLPermanentGrassGrazedExtensive.h:82
int m_base_elements_no
Definition: Farm.h:505
Definition: NLPermanentGrassGrazedExtensive.h:48
int m_first_date
Definition: Farm.h:501
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
Definition: NLPermanentGrassGrazedExtensive.h:52
The base class for all crops.
Definition: Farm.h:495
Definition: LandscapeFarmingEnums.h:1009
Definition: NLPermanentGrassGrazedExtensive.h:49
The landscape class containing all environmental and topographical data.
Definition: Landscape.h:142
Definition: LandscapeFarmingEnums.h:1004
Definition: NLPermanentGrassGrazedExtensive.h:56
Definition: NLPermanentGrassGrazedExtensive.h:46
long Date(void)
Definition: Calendar.h:57
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: NLPermanentGrassGrazedExtensive.cpp:54
Definition: NLPermanentGrassGrazedExtensive.h:58
Definition: LandscapeFarmingEnums.h:1003
Definition: LandscapeFarmingEnums.h:1011
long OldDays(void)
Definition: Calendar.h:60
Definition: NLPermanentGrassGrazedExtensive.h:51
Definition: NLPermanentGrassGrazedExtensive.h:41
void Warn(MapErrorState a_level, std::string a_msg1, std::string a_msg2)
Definition: MapErrorMsg.cpp:69
NLPermanentGrassGrazedExtensive class .
Definition: NLPermanentGrassGrazedExtensive.h:70
bool StartUpCrop(int a_spring, std::vector< std::vector< int >> a_flexdates, int a_todo)
Holds the translation between the farm operation enum for each cropand the farm management category a...
Definition: Farm.cpp:652
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: NLPermanentGrassGrazedExtensive.h:57
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
TTypesOfCrops
Definition: LandscapeFarmingEnums.h:781
Definition: NLPermanentGrassGrazedExtensive.h:39
NLPermanentGrassGrazedExtensiveToDo
Definition: NLPermanentGrassGrazedExtensive.h:38
Definition: Elements.h:86
virtual bool Water(LE *a_field, double a_user, int a_days)
Carry out a watering on a_field.
Definition: FarmFuncs.cpp:1330
int m_last_date
Definition: Farm.h:503
MapErrorMsg * g_msg
Definition: MapErrorMsg.cpp:41
#define NLPERMANENTGRASSLANDGRAZEDEXTENSIVE_BASE
Definition: NLPermanentGrassGrazedExtensive.h:24
Definition: LandscapeFarmingEnums.h:1010
TTypesOfVegetation
Values that represent the types of vegetation that are represented in ALMaSS.
Definition: LandscapeFarmingEnums.h:192
Definition: NLPermanentGrassGrazedExtensive.h:54
Definition: NLPermanentGrassGrazedExtensive.h:50
The base class for all farm types.
Definition: Farm.h:755
#define NL_PGGE_FERTI_DATE
A flag used to indicate autumn ploughing status.
Definition: NLPermanentGrassGrazedExtensive.h:28
Definition: NLPermanentGrassGrazedExtensive.h:45
Definition: NLPermanentGrassGrazedExtensive.h:42
int DayInYear(void)
Definition: Calendar.h:58
Definition: NLPermanentGrassGrazedExtensive.h:43
Definition: NLPermanentGrassGrazedExtensive.h:53
Definition: NLPermanentGrassGrazedExtensive.h:55
Definition: NLPermanentGrassGrazedExtensive.h:44
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
NLPermanentGrassGrazedExtensive(TTypesOfVegetation a_tov, TTypesOfCrops a_toc, Landscape *a_L)
Definition: NLPermanentGrassGrazedExtensive.h:74
Definition: MapErrorMsg.h:34
#define NL_PGGE_WATER_DATE
Definition: NLPermanentGrassGrazedExtensive.h:30
FarmManagementCategory
Definition: LandscapeFarmingEnums.h:1001
void SimpleEvent_(long a_date, int a_todo, bool a_lock, Farm *a_farm, LE *a_field)
Adds an event to this crop management without relying on member variables.
Definition: Farm.cpp:751