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
NLGrassGrazedExtensive1 Class Reference

NLGrassGrazedExtensive1 class
. More...

#include <NLGrassGrazedExtensive1.h>

Inheritance diagram for NLGrassGrazedExtensive1:
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...
 
 NLGrassGrazedExtensive1 (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

NLGrassGrazedExtensive1 class
.

See NLGrassGrazedExtensive1.h::NLGrassGrazedExtensive1ToDo for a complete list of all possible events triggered codes by the TemporalGrassGrazedExtensive1 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

◆ NLGrassGrazedExtensive1()

NLGrassGrazedExtensive1::NLGrassGrazedExtensive1 ( TTypesOfVegetation  a_tov,
TTypesOfCrops  a_toc,
Landscape a_L 
)
inline
79  : Crop(a_tov, a_toc, a_L)
80  {
81  // When we start it off, the first possible date for a farm operation is 5th November
82  // This information is used by other crops when they decide how much post processing of
83  // the management is allowed after harvest before the next crop starts.
84  m_first_date=g_date->DayInYear( 30,11 );
85  m_forcespringpossible = true;
87  }

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

Member Function Documentation

◆ Do()

bool NLGrassGrazedExtensive1::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 TemporalGrassGrazedExtensive1.

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_gge1_start:
72  {
73  NL_GGE1_CUT_DATE = 0;
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 = 0;
89  if (StartUpCrop(isSpring, flexdates, int(nl_gge1_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(1, 10) + isSpring;
94  // OK, let's go.
95  if (m_ev->m_forcespring) {
96  int day_num_shift = 365;
97  if (g_date->DayInYear() < 70) day_num_shift = 0;
98  if (m_farm->IsStockFarmer()) //Stock Farmer
99  {
100  SimpleEvent_(g_date->OldDays() + g_date->DayInYear(20, 2) + day_num_shift, nl_gge1_ferti_s1, false, m_farm, m_field);
101  }
102  else SimpleEvent_(g_date->OldDays() + g_date->DayInYear(20, 2) + day_num_shift, nl_gge1_ferti_p1, false, m_farm, m_field);
103  }
104  else {
105  // Here we queue up the first event - this differs depending on whether we have field on snady or clay soils
107  }
108  break;
109  }
110  break;
111 
112  // This is the first real farm operation
114  if (!m_farm->WinterPlough(m_field, 0.0, g_date->DayInYear(1, 12) - g_date->DayInYear())) {
116  break;
117  }
119  break;
120  case nl_gge1_herbicide:
121  if (!m_farm->HerbicideTreat(m_field, 0.0, g_date->DayInYear(25, 12) - g_date->DayInYear())) {
123  break;
124  }
125  if (m_farm->IsStockFarmer()) //Stock Farmer
126  {
128  }
129  else SimpleEvent_(g_date->OldDays() + g_date->DayInYear(20, 2) + 365, nl_gge1_ferti_p1, false, m_farm, m_field);
130  break;
131  case nl_gge1_ferti_p1:
132  if (!m_farm->FP_Slurry(m_field, 0.0, g_date->DayInYear(20, 3) - g_date->DayInYear())) {
134  break;
135  }
137  break;
138  case nl_gge1_ferti_s1:
139  if (!m_farm->FA_Slurry(m_field, 0.0, g_date->DayInYear(20, 3) - g_date->DayInYear())) {
141  break;
142  }
144  break;
146  if (!m_farm->PreseedingCultivator(m_field, 0.0, g_date->DayInYear(20, 3) - g_date->DayInYear())) {
148  break;
149  }
151  break;
152  case nl_gge1_spring_sow:
153  if (!m_farm->SpringSow(m_field, 0.0, g_date->DayInYear(20, 3) - g_date->DayInYear())) {
155  break;
156  }
157  d1 = g_date->Date() + 7;
158  if (d1 < g_date->OldDays() + g_date->DayInYear(1, 3)) {
159  d1 = g_date->OldDays() + g_date->DayInYear(1, 3);
160  }
161  if (m_farm->IsStockFarmer()) //Stock Farmer
162  {
164  }
165  else SimpleEvent_(d1, nl_gge1_ferti_p2, false, m_farm, m_field);
166  break;
167  case nl_gge1_ferti_p2:
168  if (m_farm->DoIt_prob(0.90)) {
169  if (!m_farm->FP_NPK(m_field, 0.0, g_date->DayInYear(30, 3) - g_date->DayInYear())) {
171  break;
172  }
173  }
174  if (m_farm->DoIt_prob(0.50)) {
176  }
178  break;
179  case nl_gge1_ferti_s2:
180  if (m_farm->DoIt_prob(0.90)) {
181  if (!m_farm->FA_NPK(m_field, 0.0, g_date->DayInYear(30, 3) - g_date->DayInYear())) {
183  break;
184  }
185  }
186  if (m_farm->DoIt_prob(0.50)) {
188  }
190  break;
192  // At least 7 days from last watering and 21 from last application of fertilizer.
193  if (g_date->Date() < NL_GGE1_WATER_DATE + 7) {
195  break;
196  }
197  else
198  {
199  if (!m_farm->CutToSilage(m_field, 0.0, g_date->DayInYear(15, 5) - g_date->DayInYear())) {
201  break;
202  }
204  if (m_farm->IsStockFarmer()) //Stock Farmer
205  {
207  }
208  else SimpleEvent_(g_date->Date() + 1, nl_gge1_ferti_p3, false, m_farm, m_field);
209  // Start water thread
211  break;
212  }
213  break;
214 
215  case nl_gge1_ferti_s3:
216  if (!m_farm->FA_Slurry(m_field, 0.0, (NL_GGE1_CUT_DATE + 4) - g_date->DayInYear())) {
218  break;
219  }
221  break;
222  case nl_gge1_ferti_p3:
223  if (!m_farm->FP_Slurry(m_field, 0.0, (NL_GGE1_CUT_DATE + 4) - g_date->DayInYear())) {
225  break;
226  }
228  break;
229  case nl_gge1_ferti_s4:
230  if (m_ev->m_lock || m_farm->DoIt_prob(0.90))
231  {
232  if (!m_farm->FA_NPK(m_field, 0.0, g_date->DayInYear(25, 5) - g_date->DayInYear())) {
234  break;
235  }
236  }
238  break;
239  case nl_gge1_ferti_p4:
240  if (m_ev->m_lock || m_farm->DoIt_prob(0.90))
241  {
242  if (!m_farm->FP_NPK(m_field, 0.0, g_date->DayInYear(25, 5) - g_date->DayInYear())) {
244  break;
245  }
246  }
248  break;
250  // At least 7 days from last watering and 21 from last application of fertilizer.
251  if (g_date->Date() < NL_GGE1_WATER_DATE + 7) {
253  break;
254  }
255  else
256  {
257  if (!m_farm->CutToSilage(m_field, 0.0, g_date->DayInYear(30, 7) - g_date->DayInYear())) {
259  break;
260  }
262  if (m_farm->IsStockFarmer()) //Stock Farmer
263  {
265  }
266  else SimpleEvent_(g_date->Date() + 1, nl_gge1_ferti_p5, false, m_farm, m_field);
267  break;
268  }
269  break;
270  case nl_gge1_ferti_s5:
271  if (!m_farm->FA_Slurry(m_field, 0.0, (NL_GGE1_CUT_DATE + 4) - g_date->DayInYear())) {
273  break;
274  }
276  break;
277  case nl_gge1_ferti_p5:
278  if (!m_farm->FP_Slurry(m_field, 0.0, (NL_GGE1_CUT_DATE + 4) - g_date->DayInYear())) {
280  break;
281  }
283  break;
284  case nl_gge1_ferti_s6:
285  if (m_ev->m_lock || m_farm->DoIt_prob(0.90))
286  {
287  if (!m_farm->FA_NPK(m_field, 0.0, g_date->DayInYear(10, 8) - g_date->DayInYear())) {
289  break;
290  }
291  }
292  done = true;
293  break;
294  case nl_gge1_ferti_p6:
295  if (m_ev->m_lock || m_farm->DoIt_prob(0.90))
296  {
297  if (!m_farm->FP_NPK(m_field, 0.0, g_date->DayInYear(10, 8) - g_date->DayInYear())) {
299  break;
300  }
301  }
302  done = true;
303  break;
304  case nl_gge1_cattle_out:
305  if (!m_farm->CattleOut(m_field, 0.0, g_date->DayInYear(30, 5) - g_date->DayInYear())) {
307  break;
308  }
309  // Keep them out there
311  break;
312 
313  case nl_gge1_cattle_is_out: // Keep the cattle out there
314  // CattleIsOut() returns false if it is not time to stop grazing
315  if (!m_farm->CattleIsOut(m_field, 0.0, g_date->DayInYear(31, 8) - g_date->DayInYear(), g_date->DayInYear(31, 8))) {
317  break;
318  }
319  if (m_farm->IsStockFarmer()) //Stock Farmer
320  {
322  }
323  else SimpleEvent_(g_date->Date() + 1, nl_gge1_ferti_p7, false, m_farm, m_field);
324  break;
325 
326  case nl_gge1_ferti_s7:
327  if (!m_farm->FA_Slurry(m_field, 0.0, g_date->DayInYear(5, 9) - g_date->DayInYear())) {
329  break;
330  }
331  done = true;
332  break;
333  case nl_gge1_ferti_p7:
334  if (!m_farm->FP_Slurry(m_field, 0.0, g_date->DayInYear(5, 9) - g_date->DayInYear())) {
336  break;
337  }
338  done = true;
339  break;
340  case nl_gge1_watering:
341  if (m_ev->m_lock || m_farm->DoIt_prob(0.40))
342  {
343  if (g_date->Date() < NL_GGE1_CUT_DATE + 3) {
344  // Too close to silage cutting, so try again tomorrow.
346  }
347  else
348  {
349  if (!m_farm->Water(m_field, 0.0, g_date->DayInYear(31, 8) - g_date->DayInYear())) {
351  break;
352  }
354  }
355  }
356  // End of thread
357  break;
358  default:
359  g_msg->Warn(WARN_BUG, "NLGrassGrazedExtensive1::Do(): "
360  "Unknown event type! ", "");
361  exit(1);
362  }
363  return done;
364 }

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::HerbicideTreat(), Farm::IsStockFarmer(), Crop::m_ev, Crop::m_farm, Crop::m_field, FarmEvent::m_forcespring, Crop::m_last_date, FarmEvent::m_lock, FarmEvent::m_todo, nl_gge1_cattle_is_out, nl_gge1_cattle_out, NL_GGE1_CUT_DATE, nl_gge1_cut_to_silage1, nl_gge1_cut_to_silage2, nl_gge1_ferti_p1, nl_gge1_ferti_p2, nl_gge1_ferti_p3, nl_gge1_ferti_p4, nl_gge1_ferti_p5, nl_gge1_ferti_p6, nl_gge1_ferti_p7, nl_gge1_ferti_s1, nl_gge1_ferti_s2, nl_gge1_ferti_s3, nl_gge1_ferti_s4, nl_gge1_ferti_s5, nl_gge1_ferti_s6, nl_gge1_ferti_s7, nl_gge1_herbicide, nl_gge1_preseeding_cultivator, nl_gge1_spring_sow, nl_gge1_start, NL_GGE1_WATER_DATE, nl_gge1_watering, nl_gge1_winter_plough, Calendar::OldDays(), Farm::PreseedingCultivator(), Crop::SimpleEvent_(), Farm::SpringSow(), Crop::StartUpCrop(), tov_NLGrassGrazedExtensive1, MapErrorMsg::Warn(), WARN_BUG, Farm::Water(), and Farm::WinterPlough().

◆ SetUpFarmCategoryInformation()

void NLGrassGrazedExtensive1::SetUpFarmCategoryInformation ( )
inline
88  {
89  const int elements = 2 + (nl_gge1_foobar - NLGRASSGRAZEDEXTENSIVE1_BASE);
91 
92  FarmManagementCategory catlist[elements] =
93  {
94  fmc_Others, // zero element unused but must be here
95  fmc_Others,//nl_gge1_start = 1, // Compulsory, must always be 1 (one).
96  fmc_Others,//nl_gge1_sleep_all_day = NLGRASSGRAZEDEXTENSIVE1_BASE,
97  fmc_Cultivation,//nl_gge1_winter_plough,
98  fmc_Herbicide,//nl_gge1_herbicide,
99  fmc_Fertilizer,//nl_gge1_ferti_p1,
100  fmc_Fertilizer,//nl_gge1_ferti_s1,
101  fmc_Cultivation,//nl_gge1_preseeding_cultivator,
102  fmc_Others,//nl_gge1_spring_sow,
103  fmc_Fertilizer,//nl_gge1_ferti_p2,
104  fmc_Fertilizer,//nl_gge1_ferti_s2,
105  fmc_Cutting,//nl_gge1_cut_to_silage1,
106  fmc_Cutting,//nl_gge1_cut_to_silage2,
107  fmc_Fertilizer,//nl_gge1_ferti_p3,
108  fmc_Fertilizer,//nl_gge1_ferti_s3,
109  fmc_Fertilizer,//nl_gge1_ferti_p4,
110  fmc_Fertilizer,//nl_gge1_ferti_s4,
111  fmc_Fertilizer,//nl_gge1_ferti_p5,
112  fmc_Fertilizer,//nl_gge1_ferti_s5,
113  fmc_Fertilizer,//nl_gge1_ferti_p6,
114  fmc_Fertilizer,//nl_gge1_ferti_s6,
115  fmc_Fertilizer,//nl_gge1_ferti_p7,
116  fmc_Fertilizer,//nl_gge1_ferti_s7,
117  fmc_Watering,//nl_gge1_watering,
118  fmc_Grazing,//nl_gge1_cattle_out,
119  fmc_Grazing//nl_gge1_cattle_is_out,
120 
121  // no foobar entry
122 
123  };
124  // Iterate over the catlist elements and copy them to vector
125  copy(begin(catlist), end(catlist), back_inserter(m_ManagementCategories));
126 
127  }

References fmc_Cultivation, fmc_Cutting, fmc_Fertilizer, fmc_Grazing, fmc_Herbicide, fmc_Others, fmc_Watering, Crop::m_base_elements_no, Crop::m_ManagementCategories, nl_gge1_foobar, and NLGRASSGRAZEDEXTENSIVE1_BASE.

Referenced by NLGrassGrazedExtensive1().


The documentation for this class was generated from the following files:
nl_gge1_start
Definition: NLGrassGrazedExtensive1.h:38
FarmEvent::m_forcespring
bool m_forcespring
Definition: Farm.h:392
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
NL_GGE1_CUT_DATE
#define NL_GGE1_CUT_DATE
A flag used to indicate autumn ploughing status.
Definition: NLGrassGrazedExtensive1.h:28
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
Farm::HerbicideTreat
virtual bool HerbicideTreat(LE *a_field, double a_user, int a_days)
Apply herbicide to a_field.
Definition: FarmFuncs.cpp:2025
Farm::IsStockFarmer
bool IsStockFarmer(void)
Definition: Farm.h:961
FarmEvent::m_lock
bool m_lock
Definition: Farm.h:384
nl_gge1_watering
Definition: NLGrassGrazedExtensive1.h:60
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
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
nl_gge1_herbicide
Definition: NLGrassGrazedExtensive1.h:41
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
fmc_Herbicide
Definition: LandscapeFarmingEnums.h:1006
nl_gge1_foobar
Definition: NLGrassGrazedExtensive1.h:63
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_gge1_ferti_p1
Definition: NLGrassGrazedExtensive1.h:42
Crop::m_base_elements_no
int m_base_elements_no
Definition: Farm.h:505
nl_gge1_ferti_p3
Definition: NLGrassGrazedExtensive1.h:50
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_gge1_ferti_s4
Definition: NLGrassGrazedExtensive1.h:53
nl_gge1_cattle_out
Definition: NLGrassGrazedExtensive1.h:61
fmc_Cutting
Definition: LandscapeFarmingEnums.h:1009
nl_gge1_cut_to_silage1
Definition: NLGrassGrazedExtensive1.h:48
nl_gge1_ferti_s7
Definition: NLGrassGrazedExtensive1.h:59
nl_gge1_ferti_p6
Definition: NLGrassGrazedExtensive1.h:56
fmc_Fertilizer
Definition: LandscapeFarmingEnums.h:1004
Calendar::Date
long Date(void)
Definition: Calendar.h:57
fmc_Cultivation
Definition: LandscapeFarmingEnums.h:1008
nl_gge1_ferti_p2
Definition: NLGrassGrazedExtensive1.h:46
nl_gge1_ferti_s1
Definition: NLGrassGrazedExtensive1.h:43
fmc_Others
Definition: LandscapeFarmingEnums.h:1003
tov_NLGrassGrazedExtensive1
Definition: LandscapeFarmingEnums.h:273
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
nl_gge1_ferti_s6
Definition: NLGrassGrazedExtensive1.h:57
nl_gge1_ferti_p4
Definition: NLGrassGrazedExtensive1.h:52
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_gge1_spring_sow
Definition: NLGrassGrazedExtensive1.h:45
nl_gge1_cut_to_silage2
Definition: NLGrassGrazedExtensive1.h:49
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
nl_gge1_preseeding_cultivator
Definition: NLGrassGrazedExtensive1.h:44
FarmEvent::m_todo
int m_todo
Definition: Farm.h:388
nl_gge1_ferti_s3
Definition: NLGrassGrazedExtensive1.h:51
NL_GGE1_WATER_DATE
#define NL_GGE1_WATER_DATE
Definition: NLGrassGrazedExtensive1.h:29
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
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
g_msg
MapErrorMsg * g_msg
Definition: MapErrorMsg.cpp:41
nl_gge1_cattle_is_out
Definition: NLGrassGrazedExtensive1.h:62
NLGRASSGRAZEDEXTENSIVE1_BASE
#define NLGRASSGRAZEDEXTENSIVE1_BASE
Definition: NLGrassGrazedExtensive1.h:24
nl_gge1_ferti_s2
Definition: NLGrassGrazedExtensive1.h:47
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_gge1_ferti_s5
Definition: NLGrassGrazedExtensive1.h:55
Farm::WinterPlough
virtual bool WinterPlough(LE *a_field, double a_user, int a_days)
Carry out a ploughing event in the winter on a_field.
Definition: FarmFuncs.cpp:395
nl_gge1_ferti_p5
Definition: NLGrassGrazedExtensive1.h:54
Calendar::DayInYear
int DayInYear(void)
Definition: Calendar.h:58
nl_gge1_ferti_p7
Definition: NLGrassGrazedExtensive1.h:58
Crop::Crop
Crop(TTypesOfVegetation a_tov, TTypesOfCrops a_toc, Landscape *a_L)
Definition: Farm.cpp:733
Crop::m_forcespringpossible
bool m_forcespringpossible
Used to signal that the crop can be forced to start in spring.
Definition: Farm.h:508
Crop::m_ev
FarmEvent * m_ev
Definition: Farm.h:500
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
nl_gge1_winter_plough
Definition: NLGrassGrazedExtensive1.h:40
NLGrassGrazedExtensive1::SetUpFarmCategoryInformation
void SetUpFarmCategoryInformation()
Definition: NLGrassGrazedExtensive1.h:88
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