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
All Classes Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Pages
NLGrassGrazedExtensive1Spring Class Reference

NLGrassGrazedExtensive1Spring class
. More...

#include <NLGrassGrazedExtensive1Spring.h>

Inheritance diagram for NLGrassGrazedExtensive1Spring:
Crop

Public Member Functions

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. More...
 
 NLGrassGrazedExtensive1Spring (TTypesOfVegetation a_tov, TTypesOfCrops a_toc, Landscape *a_L)
 
void SetUpFarmCategoryInformation ()
 
- Public Member Functions inherited from Crop
virtual ~Crop ()
 
 Crop (TTypesOfVegetation a_tov, TTypesOfCrops a_toc, Landscape *a_L)
 
int GetFirstDate (void)
 
void ChooseNextCrop (int a_no_dates)
 Chooses the next crop to grow in a field. More...
 
int GetCropClassification ()
 
void SetCropClassification (int a_classification)
 
void GetCropType (TTypesOfCrops a_toc)
 
TTypesOfCrops GetCropType ()
 
FarmManagementCategory LookUpManagementCategory (int a_todo)
 
bool GetForceSpringOK ()
 

Additional Inherited Members

- Public Attributes inherited from Crop
TTypesOfVegetation m_tov
 
- Protected Member Functions inherited from Crop
void SimpleEvent (long a_date, int a_todo, bool a_lock)
 Adds an event to this crop management. More...
 
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. More...
 
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 associated with it More...
 
bool AphidDamage (LE *a_field)
 Compares aphid numbers per m2 with a threshold to return true if threshold is exceeded. More...
 
- Protected Attributes inherited from Crop
Farmm_farm
 
LEm_field
 
FarmEventm_ev
 
int m_first_date
 
int m_count
 
int m_last_date
 
int m_ddegstoharvest
 
int m_base_elements_no
 
Landscapem_OurLandscape
 
bool m_forcespringpossible = false
 Used to signal that the crop can be forced to start in spring. More...
 
TTypesOfCrops m_toc
 The Crop type in terms of the TTypesOfCrops list (smaller list than tov, no country designation) More...
 
int m_CropClassification
 Contains information on whether this is a winter crop, spring crop, or catch crop that straddles the year boundary (0,1,2) More...
 
vector< FarmManagementCategorym_ManagementCategories
 Holds the translation between the farm operation enum for each crop and the farm management category associated with it. More...
 
- Static Protected Attributes inherited from Crop
static int m_date_modifier = 0
 Holds a value that shifts test pesticide use by this many days in crops modified to use it. More...
 

Detailed Description

NLGrassGrazedExtensive1Spring class
.

See NLGrassGrazedExtensive1Spring.h::NLGrassGrazedExtensive1SpringToDo for a complete list of all possible events triggered codes by the TemporalGrassGrazedExtensive1Spring management plan. When triggered these events are handled by Farm and are available as information for other objects such as animal and bird models.

Constructor & Destructor Documentation

◆ NLGrassGrazedExtensive1Spring()

NLGrassGrazedExtensive1Spring::NLGrassGrazedExtensive1Spring ( TTypesOfVegetation  a_tov,
TTypesOfCrops  a_toc,
Landscape a_L 
)
inline
75  : Crop(a_tov, a_toc, a_L)
76  {
77  // When we start it off, the first possible date for a farm operation is 5th November
78  // This information is used by other crops when they decide how much post processing of
79  // the management is allowed after harvest before the next crop starts.
80  m_first_date=g_date->DayInYear( 20,3 );
82  }

References Calendar::DayInYear(), g_date, Crop::m_first_date, and SetUpFarmCategoryInformation().

Member Function Documentation

◆ Do()

bool NLGrassGrazedExtensive1Spring::Do ( Farm a_farm,
LE a_field,
FarmEvent a_ev 
)
virtual

The one and only method for a crop management plan. All farm actions go through here.

Called every time something is done to the crop by the farmer in the first instance it is always called with m_ev->todo set to start, but susequently will be called whenever the farmer wants to carry out a new operation.
This method details all the management and relationships between operations necessary to grow and ALMaSS crop - in this case conventional TemporalGrassGrazedExtensive1Spring.

Reimplemented from Crop.

55 {
56  /******************** This block can be added to the top of all Crop::Do methods ***********************************************/
57  m_farm = a_farm;
58  m_field = a_field;
59  m_ev = a_ev;
60  bool done = false; // The boolean value done indicates when we are totally finished with this plan (i.e. it is set to true, m_farm, m_field).
61  bool flag = false;
62  int d1 = 0;
63  int noDates = 1;
65  int l_nextcropstartdate;
66  /**********************************************To Here *************************************************************************/
67 
68  // Depending what event has occured jump to the correct bit of code
69  switch (m_ev->m_todo)
70  {
71  case nl_gge1s_start:
72  {
76 
77  m_last_date = g_date->DayInYear(31, 10); // Should match the last flexdate below
78  //Create a 2d array of 1 plus the number of operations you use. Change only 4+1 to what you need in the line below
79  std::vector<std::vector<int>> flexdates(1 + 1, std::vector<int>(2, 0));
80  // Set up the date management stuff
81  // Start and stop dates for all events after harvest
82  flexdates[0][1] = g_date->DayInYear(10, 10); // first possible day of finishing harvest - this is in effect day before the earliest date that a following crop can use
83 
84  flexdates[1][0] = -1; // This date will be moved back as far as necessary and potentially to flexdates 1 (start op 1)
85  flexdates[1][1] = g_date->DayInYear(31, 10); // This date will be moved back as far as necessary and potentially to flexdates 1 (end op 1) - straw chopping
86 
87  // Below if this is a spring crop use 365, otherwise set this to 0, second parameter is fixed, and the third is the start up operation in the first year
88  int isSpring = 365;
89  if (StartUpCrop(isSpring, flexdates, int(nl_gge1s_spring_sow))) break;
90 
91  // End single block date checking code. Please see next line comment as well.
92  // Reinit d1 to first possible starting date.
93  d1 = g_date->OldDays() + g_date->DayInYear(28, 2) + isSpring;
94  // OK, let's go.
96  break;
97  }
98  break;
99 
100  // This is the first real farm operation
102  if (!m_farm->PreseedingCultivator(m_field, 0.0, g_date->DayInYear(20, 3) - g_date->DayInYear())) {
104  break;
105  }
107  break;
108  case nl_gge1s_spring_sow:
109  if (!m_farm->SpringSow(m_field, 0.0, g_date->DayInYear(20, 3) - g_date->DayInYear())) {
111  break;
112  }
113  d1 = g_date->Date() + 7;
114  if (d1 < g_date->OldDays() + g_date->DayInYear(1, 3)) {
115  d1 = g_date->OldDays() + g_date->DayInYear(1, 3);
116  }
117  if (m_farm->IsStockFarmer()) //Stock Farmer
118  {
120  }
121  else SimpleEvent_(d1, nl_gge1s_ferti_p2, false, m_farm, m_field);
122  break;
123  case nl_gge1s_ferti_p2:
124  if (m_farm->DoIt_prob(0.90)) {
125  if (!m_farm->FP_NPK(m_field, 0.0, g_date->DayInYear(30, 3) - g_date->DayInYear())) {
127  break;
128  }
129  }
130  if (m_farm->DoIt_prob(0.50)) {
132  }
134  break;
135  case nl_gge1s_ferti_s2:
136  if (m_farm->DoIt_prob(0.90)) {
137  if (!m_farm->FA_NPK(m_field, 0.0, g_date->DayInYear(30, 3) - g_date->DayInYear())) {
139  break;
140  }
141  }
142  if (m_farm->DoIt_prob(0.50)) {
144  }
146  break;
148  // At least 7 days from last watering and 21 from last application of fertilizer.
149  if (g_date->Date() < NL_GGE1S_WATER_DATE + 7) {
151  break;
152  }
153  else
154  {
155  if (!m_farm->CutToSilage(m_field, 0.0, g_date->DayInYear(15, 5) - g_date->DayInYear())) {
157  break;
158  }
160  if (m_farm->IsStockFarmer()) //Stock Farmer
161  {
163  }
164  else SimpleEvent_(g_date->Date() + 1, nl_gge1s_ferti_p3, false, m_farm, m_field);
165  // Start water thread
167  break;
168  }
169  break;
170 
171  case nl_gge1s_ferti_s3:
172  if (!m_farm->FA_Slurry(m_field, 0.0, (NL_GGE1S_CUT_DATE + 4) - g_date->DayInYear())) {
174  break;
175  }
177  break;
178  case nl_gge1s_ferti_p3:
179  if (!m_farm->FP_Slurry(m_field, 0.0, (NL_GGE1S_CUT_DATE + 4) - g_date->DayInYear())) {
181  break;
182  }
184  break;
185  case nl_gge1s_ferti_s4:
186  if (m_ev->m_lock || m_farm->DoIt_prob(0.90))
187  {
188  if (!m_farm->FA_NPK(m_field, 0.0, g_date->DayInYear(25, 5) - g_date->DayInYear())) {
190  break;
191  }
192  }
194  break;
195  case nl_gge1s_ferti_p4:
196  if (m_ev->m_lock || m_farm->DoIt_prob(0.90))
197  {
198  if (!m_farm->FP_NPK(m_field, 0.0, g_date->DayInYear(25, 5) - g_date->DayInYear())) {
200  break;
201  }
202  }
204  break;
206  // At least 7 days from last watering and 21 from last application of fertilizer.
207  if (g_date->Date() < NL_GGE1S_WATER_DATE + 7) {
209  break;
210  }
211  else
212  {
213  if (!m_farm->CutToSilage(m_field, 0.0, g_date->DayInYear(30, 7) - g_date->DayInYear())) {
215  break;
216  }
218  if (m_farm->IsStockFarmer()) //Stock Farmer
219  {
221  }
222  else SimpleEvent_(g_date->Date() + 1, nl_gge1s_ferti_p5, false, m_farm, m_field);
223  break;
224  }
225  break;
226  case nl_gge1s_ferti_s5:
227  if (!m_farm->FA_Slurry(m_field, 0.0, (NL_GGE1S_CUT_DATE + 4) - g_date->DayInYear())) {
229  break;
230  }
232  break;
233  case nl_gge1s_ferti_p5:
234  if (!m_farm->FP_Slurry(m_field, 0.0, (NL_GGE1S_CUT_DATE + 4) - g_date->DayInYear())) {
236  break;
237  }
239  break;
240  case nl_gge1s_ferti_s6:
241  if (m_ev->m_lock || m_farm->DoIt_prob(0.90))
242  {
243  if (!m_farm->FA_NPK(m_field, 0.0, g_date->DayInYear(10, 8) - g_date->DayInYear())) {
245  break;
246  }
247  }
248  done = true;
249  break;
250  case nl_gge1s_ferti_p6:
251  if (m_ev->m_lock || m_farm->DoIt_prob(0.90))
252  {
253  if (!m_farm->FP_NPK(m_field, 0.0, g_date->DayInYear(10, 8) - g_date->DayInYear())) {
255  break;
256  }
257  }
258  done = true;
259  break;
260  case nl_gge1s_cattle_out:
261  if (!m_farm->CattleOut(m_field, 0.0, g_date->DayInYear(30, 5) - g_date->DayInYear())) {
263  break;
264  }
265  // Keep them out there
267  break;
268 
269  case nl_gge1s_cattle_is_out: // Keep the cattle out there
270  // CattleIsOut() returns false if it is not time to stop grazing
271  if (!m_farm->CattleIsOut(m_field, 0.0, g_date->DayInYear(31, 8) - g_date->DayInYear(), g_date->DayInYear(31, 8))) {
273  break;
274  }
275  if (m_farm->IsStockFarmer()) //Stock Farmer
276  {
278  }
279  else SimpleEvent_(g_date->Date() + 1, nl_gge1s_ferti_p7, false, m_farm, m_field);
280  break;
281 
282  case nl_gge1s_ferti_s7:
283  if (!m_farm->FA_Slurry(m_field, 0.0, g_date->DayInYear(5, 9) - g_date->DayInYear())) {
285  break;
286  }
287  done = true;
288  break;
289  case nl_gge1s_ferti_p7:
290  if (!m_farm->FP_Slurry(m_field, 0.0, g_date->DayInYear(5, 9) - g_date->DayInYear())) {
292  break;
293  }
294  done = true;
295  break;
296  case nl_gge1s_watering:
297  if (m_ev->m_lock || m_farm->DoIt_prob(0.40))
298  {
299  if (g_date->Date() < NL_GGE1S_CUT_DATE + 3) {
300  // Too close to silage cutting, so try again tomorrow.
302  }
303  else
304  {
305  if (!m_farm->Water(m_field, 0.0, g_date->DayInYear(31, 8) - g_date->DayInYear())) {
307  break;
308  }
310  }
311  }
312  // End of thread
313  break;
314  default:
315  g_msg->Warn(WARN_BUG, "NLGrassGrazedExtensive1Spring::Do(): "
316  "Unknown event type! ", "");
317  exit(1);
318  }
319  return done;
320 }

References Farm::CattleIsOut(), Farm::CattleOut(), LE::ClearManagementActionSum(), Farm::CutToSilage(), Calendar::Date(), Calendar::DayInYear(), Farm::DoIt_prob(), Farm::FA_NPK(), Farm::FA_Slurry(), Farm::FP_NPK(), Farm::FP_Slurry(), g_date, g_msg, Farm::IsStockFarmer(), Crop::m_ev, Crop::m_farm, Crop::m_field, Crop::m_last_date, FarmEvent::m_lock, FarmEvent::m_todo, nl_gge1s_cattle_is_out, nl_gge1s_cattle_out, NL_GGE1S_CUT_DATE, nl_gge1s_cut_to_silage1, nl_gge1s_cut_to_silage2, nl_gge1s_ferti_p2, nl_gge1s_ferti_p3, nl_gge1s_ferti_p4, nl_gge1s_ferti_p5, nl_gge1s_ferti_p6, nl_gge1s_ferti_p7, nl_gge1s_ferti_s2, nl_gge1s_ferti_s3, nl_gge1s_ferti_s4, nl_gge1s_ferti_s5, nl_gge1s_ferti_s6, nl_gge1s_ferti_s7, nl_gge1s_preseeding_cultivator, nl_gge1s_spring_sow, nl_gge1s_start, NL_GGE1S_WATER_DATE, nl_gge1s_watering, Calendar::OldDays(), Farm::PreseedingCultivator(), Crop::SimpleEvent_(), Farm::SpringSow(), Crop::StartUpCrop(), tov_NLGrassGrazedExtensive1Spring, MapErrorMsg::Warn(), WARN_BUG, and Farm::Water().

◆ SetUpFarmCategoryInformation()

void NLGrassGrazedExtensive1Spring::SetUpFarmCategoryInformation ( )
inline
83  {
84  const int elements = 2 + (nl_gge1s_foobar - NLGRASSGRAZEDEXTENSIVE1SPRING_BASE);
86 
87  FarmManagementCategory catlist[elements] =
88  {
89  fmc_Others, // zero element unused but must be here
90  fmc_Others,//nl_gge1s_start = 1, // Compulsory, must always be 1 (one).
91  fmc_Others,//nl_gge1s_sleep_all_day = NLGRASSGRAZEDEXTENSIVE1SPRING_BASE,
92  fmc_Cultivation,//nl_gge1s_preseeding_cultivator,
93  fmc_Others,//nl_gge1s_spring_sow,
94  fmc_Fertilizer,//nl_gge1s_ferti_p2,
95  fmc_Fertilizer,//nl_gge1s_ferti_s2,
96  fmc_Cutting,//nl_gge1s_cut_to_silage1,
97  fmc_Cutting,//nl_gge1s_cut_to_silage2,
98  fmc_Fertilizer,//nl_gge1s_ferti_p3,
99  fmc_Fertilizer,//nl_gge1s_ferti_s3,
100  fmc_Fertilizer,//nl_gge1s_ferti_p4,
101  fmc_Fertilizer,//nl_gge1s_ferti_s4,
102  fmc_Fertilizer,//nl_gge1s_ferti_p5,
103  fmc_Fertilizer,//nl_gge1s_ferti_s5,
104  fmc_Fertilizer,//nl_gge1s_ferti_p6,
105  fmc_Fertilizer,//nl_gge1s_ferti_s6,
106  fmc_Fertilizer,//nl_gge1s_ferti_p7,
107  fmc_Fertilizer,//nl_gge1s_ferti_s7,
108  fmc_Watering,//nl_gge1s_watering,
109  fmc_Grazing,//nl_gge1s_cattle_out,
110  fmc_Grazing//nl_gge1s_cattle_is_out,
111 
112  // no foobar entry
113 
114  };
115  // Iterate over the catlist elements and copy them to vector
116  copy(begin(catlist), end(catlist), back_inserter(m_ManagementCategories));
117 
118  }

References fmc_Cultivation, fmc_Cutting, fmc_Fertilizer, fmc_Grazing, fmc_Others, fmc_Watering, Crop::m_base_elements_no, Crop::m_ManagementCategories, nl_gge1s_foobar, and NLGRASSGRAZEDEXTENSIVE1SPRING_BASE.

Referenced by NLGrassGrazedExtensive1Spring().


The documentation for this class was generated from the following files:
Farm::FA_Slurry
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
Farm::PreseedingCultivator
virtual bool PreseedingCultivator(LE *a_field, double a_user, int a_days)
Carry out preseeding cultivation on a_field (tilling set including cultivator and string roller to co...
Definition: FarmFuncs.cpp:312
nl_gge1s_ferti_s7
Definition: NLGrassGrazedExtensive1Spring.h:55
Farm::IsStockFarmer
bool IsStockFarmer(void)
Definition: Farm.h:961
NL_GGE1S_CUT_DATE
#define NL_GGE1S_CUT_DATE
A flag used to indicate autumn ploughing status.
Definition: NLGrassGrazedExtensive1Spring.h:28
FarmEvent::m_lock
bool m_lock
Definition: Farm.h:384
nl_gge1s_preseeding_cultivator
Definition: NLGrassGrazedExtensive1Spring.h:40
Farm::CattleIsOut
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
nl_gge1s_ferti_p7
Definition: NLGrassGrazedExtensive1Spring.h:54
LE::ClearManagementActionSum
void ClearManagementActionSum()
clears the management action counters
Definition: Elements.h:247
Farm::FP_NPK
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
Farm::CutToSilage
virtual bool CutToSilage(LE *a_field, double a_user, int a_days)
Cut vegetation for silage on a_field.
Definition: FarmFuncs.cpp:1644
Farm::DoIt_prob
bool DoIt_prob(double a_probability)
Return chance out of 0 to 1.
Definition: Farm.cpp:864
g_date
class Calendar * g_date
Definition: Calendar.cpp:37
Farm::SpringSow
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
nl_gge1s_ferti_s3
Definition: NLGrassGrazedExtensive1Spring.h:47
Crop::m_base_elements_no
int m_base_elements_no
Definition: Farm.h:505
nl_gge1s_ferti_s5
Definition: NLGrassGrazedExtensive1Spring.h:51
nl_gge1s_ferti_p4
Definition: NLGrassGrazedExtensive1Spring.h:48
Crop::m_first_date
int m_first_date
Definition: Farm.h:501
Farm::FA_NPK
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
nl_gge1s_ferti_s4
Definition: NLGrassGrazedExtensive1Spring.h:49
fmc_Cutting
Definition: LandscapeFarmingEnums.h:1009
fmc_Fertilizer
Definition: LandscapeFarmingEnums.h:1004
NLGRASSGRAZEDEXTENSIVE1SPRING_BASE
#define NLGRASSGRAZEDEXTENSIVE1SPRING_BASE
Definition: NLGrassGrazedExtensive1Spring.h:24
nl_gge1s_foobar
Definition: NLGrassGrazedExtensive1Spring.h:59
tov_NLGrassGrazedExtensive1Spring
Definition: LandscapeFarmingEnums.h:275
Calendar::Date
long Date(void)
Definition: Calendar.h:57
nl_gge1s_ferti_p6
Definition: NLGrassGrazedExtensive1Spring.h:52
fmc_Cultivation
Definition: LandscapeFarmingEnums.h:1008
nl_gge1s_cut_to_silage1
Definition: NLGrassGrazedExtensive1Spring.h:44
nl_gge1s_cut_to_silage2
Definition: NLGrassGrazedExtensive1Spring.h:45
fmc_Others
Definition: LandscapeFarmingEnums.h:1003
nl_gge1s_ferti_s2
Definition: NLGrassGrazedExtensive1Spring.h:43
fmc_Watering
Definition: LandscapeFarmingEnums.h:1011
Calendar::OldDays
long OldDays(void)
Definition: Calendar.h:60
MapErrorMsg::Warn
void Warn(MapErrorState a_level, std::string a_msg1, std::string a_msg2)
Definition: MapErrorMsg.cpp:69
Crop::StartUpCrop
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
nl_gge1s_ferti_p5
Definition: NLGrassGrazedExtensive1Spring.h:50
Crop::m_farm
Farm * m_farm
Definition: Farm.h:498
Crop::m_field
LE * m_field
Definition: Farm.h:499
Crop::m_ManagementCategories
vector< FarmManagementCategory > m_ManagementCategories
Holds the translation between the farm operation enum for each crop and the farm management category ...
Definition: Farm.h:530
FarmEvent::m_todo
int m_todo
Definition: Farm.h:388
nl_gge1s_cattle_is_out
Definition: NLGrassGrazedExtensive1Spring.h:58
Farm::FP_Slurry
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
NL_GGE1S_WATER_DATE
#define NL_GGE1S_WATER_DATE
Definition: NLGrassGrazedExtensive1Spring.h:29
Farm::Water
virtual bool Water(LE *a_field, double a_user, int a_days)
Carry out a watering on a_field.
Definition: FarmFuncs.cpp:1330
Crop::m_last_date
int m_last_date
Definition: Farm.h:503
nl_gge1s_spring_sow
Definition: NLGrassGrazedExtensive1Spring.h:41
nl_gge1s_ferti_p2
Definition: NLGrassGrazedExtensive1Spring.h:42
g_msg
MapErrorMsg * g_msg
Definition: MapErrorMsg.cpp:41
nl_gge1s_cattle_out
Definition: NLGrassGrazedExtensive1Spring.h:57
fmc_Grazing
Definition: LandscapeFarmingEnums.h:1010
TTypesOfVegetation
TTypesOfVegetation
Values that represent the types of vegetation that are represented in ALMaSS.
Definition: LandscapeFarmingEnums.h:192
nl_gge1s_watering
Definition: NLGrassGrazedExtensive1Spring.h:56
nl_gge1s_ferti_p3
Definition: NLGrassGrazedExtensive1Spring.h:46
Calendar::DayInYear
int DayInYear(void)
Definition: Calendar.h:58
Crop::Crop
Crop(TTypesOfVegetation a_tov, TTypesOfCrops a_toc, Landscape *a_L)
Definition: Farm.cpp:733
NLGrassGrazedExtensive1Spring::SetUpFarmCategoryInformation
void SetUpFarmCategoryInformation()
Definition: NLGrassGrazedExtensive1Spring.h:83
nl_gge1s_ferti_s6
Definition: NLGrassGrazedExtensive1Spring.h:53
Crop::m_ev
FarmEvent * m_ev
Definition: Farm.h:500
nl_gge1s_start
Definition: NLGrassGrazedExtensive1Spring.h:38
Farm::CattleOut
virtual bool CattleOut(LE *a_field, double a_user, int a_days)
Start a grazing event on a_field today.
Definition: FarmFuncs.cpp:2368
WARN_BUG
Definition: MapErrorMsg.h:34
FarmManagementCategory
FarmManagementCategory
Definition: LandscapeFarmingEnums.h:1001
Crop::SimpleEvent_
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