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

DE_OTriticale class
. More...

#include <DE_OTriticale.h>

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

DE_OTriticale class
.

See DE_OTriticale.h::DE_OTRITICALEToDo for a complete list of all possible events triggered codes by the winter rye 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

◆ DE_OTriticale()

DE_OTriticale::DE_OTriticale ( TTypesOfVegetation  a_tov,
TTypesOfCrops  a_toc,
Landscape a_L 
)
inline
102  : Crop(a_tov, a_toc, a_L)
103  {
104  // When we start it off, the first possible date for a farm operation is 1st October
105  // This information is used by other crops when they decide how much post processing of
106  // the management is allowed after harvest before the next crop starts.
107  m_first_date = g_date->DayInYear(30, 9);
109  }

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

Member Function Documentation

◆ Do()

bool DE_OTriticale::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 a_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 winter Rye.

Reimplemented from Crop.

85 {
86  /******************** This block can be added to the top of all Crop::Do methods ***********************************************/
87  m_farm = a_farm; // These assignments are necessary, not for this method but for related event calls
88  m_field = a_field;
89  m_ev = a_ev;
90  bool done = false; // The boolean value done indicates when we are totally finished with this plan (i.e. it is set to true).
91  bool flag = false;
92  int d1 = 0;
93  int d2 = 0;
94  int noDates = 1;
95  TTypesOfVegetation l_tov = tov_DEOTriticale; // The current type - change to match the crop you have
96 /**********************************************To Here *************************************************************************/
97 
98  // Depending what event has occured jump to the correct bit of code
99  switch (m_ev->m_todo)
100  {
101  case de_owt_start:
102  {
104 
105  m_last_date = g_date->DayInYear(15, 9); // Should match the last flexdate below
106  //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
107  std::vector<std::vector<int>> flexdates(6 + 1, std::vector<int>(2, 0));
108  // Set up the date management stuff
109  // Start and stop dates for all events after harvest
110  flexdates[0][1] = g_date->DayInYear(20, 8); // last possible day of harvest - this is in effect day before the earliest date that a following crop can use
111  // Now these are done in pairs, start & end for each operation. If its not used then -1
112  flexdates[1][0] = -1;
113  flexdates[1][1] = g_date->DayInYear(22, 8); // This date will be moved back as far as necessary and potentially to flexdates 1 (end op 1)
114  flexdates[2][0] = g_date->DayInYear(23, 8); // This date will be moved back as far as necessary and potentially to flexdates 1 (start op 2)
115  flexdates[2][1] = g_date->DayInYear(23, 8); // This date will be moved back as far as necessary and potentially to flexdates 1 (end op 2)
116  flexdates[3][0] = g_date->DayInYear(25, 8); // This date will be moved back as far as necessary and potentially to flexdates 1 (start op 3)
117  flexdates[3][1] = g_date->DayInYear(30, 8); // This date will be moved back as far as necessary and potentially to flexdates 1 (end op 3)
118  flexdates[4][0] = -1;
119  flexdates[4][1] = g_date->DayInYear(1, 9); // This date will be moved back as far as necessary and potentially to flexdates 1 (end op 4)
120  flexdates[5][0] = -1;
121  flexdates[5][1] = g_date->DayInYear(5, 9); // This date will be moved back as far as necessary and potentially to flexdates 1 (end op 5)
122  flexdates[6][0] = -1;
123  flexdates[6][1] = g_date->DayInYear(15, 9); // This date will be moved back as far as necessary and potentially to flexdates 1 (end op 6)
124 
125  // 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
126  int isSpring = 0;
127  if (StartUpCrop(isSpring, flexdates, int(de_owt_spring_roll1))) break;
128 
129  // End single block date checking code. Please see next line comment as well.
130  // Reinit d1 to first possible starting date.
131  d1 = g_date->OldDays() + g_date->DayInYear(15, 8) + isSpring;
132  // OK, let's go.
133  if (m_farm->IsStockFarmer()) // StockFarmer
134  {
136  }
137  else SimpleEvent_(d1, de_owt_ferti_p1, false, m_farm, m_field);
138  break;
139  }
140  break;
141 
142  case de_owt_ferti_p1:
143  if (m_ev->m_lock || m_farm->DoIt(10))
144  {
145  if (!m_farm->FP_Manure(m_field, 0.0, g_date->DayInYear(30, 9) - g_date->DayInYear())) {
147  break;
148  }
149  }
151  break;
152 
153  case de_owt_ferti_s1:
154  if (m_ev->m_lock || m_farm->DoIt(40))
155  {
156  if (!m_farm->FA_Manure(m_field, 0.0, g_date->DayInYear(30, 9) - g_date->DayInYear())) {
158  break;
159  }
160  }
162  break;
163 
165  if (m_ev->m_lock || m_farm->DoIt(80))
166  {
167  if (!m_farm->AutumnPlough(m_field, 0.0, g_date->DayInYear(30, 9) - g_date->DayInYear())) {
169  break;
170  }
172  de_owt_autumn_sow, false, m_farm, m_field);
173  break;
174  }
175  else
177  break;
178 
180  if (!m_farm->AutumnHarrow(m_field, 0.0, g_date->DayInYear(30, 9) - g_date->DayInYear())) {
182  break;
183  }
185  de_owt_autumn_sow, false, m_farm, m_field);
186  break;
187 
188  case de_owt_autumn_sow:
189  if (!m_farm->AutumnSow(m_field, 0.0, g_date->DayInYear(20, 10) - g_date->DayInYear())) {
191  break;
192  }
193  {
194  long newdate1 = g_date->OldDays() + g_date->DayInYear(25, 9);
195  long newdate2 = g_date->Date() + 10;
196  if (newdate2 > newdate1)
197  newdate1 = newdate2;
198  SimpleEvent_(newdate1, de_owt_strigling1, false, m_farm, m_field);
199  }
200  break;
201 
202  case de_owt_strigling1:
203  if (!m_farm->Strigling(m_field, 0.0, g_date->DayInYear(25, 10) - g_date->DayInYear())) {
205  break;
206  }
207  // Next year
209  break;
210 
211  case de_owt_spring_roll1:
212  if (m_ev->m_lock || m_farm->DoIt(5))
213  {
214  if (!m_farm->SpringRoll(m_field, 0.0, g_date->DayInYear(5, 3) - g_date->DayInYear())) {
216  break;
217  }
218  }
220  break;
221  case de_owt_strigling2:
222  if (!m_farm->Strigling(m_field, 0.0, g_date->DayInYear(20, 3) - g_date->DayInYear())) {
224  break;
225  }
227  break;
228 
229  case de_owt_strigling3:
230  if (m_ev->m_lock || m_farm->DoIt(50))
231  {
232  if (!m_farm->Strigling(m_field, 0.0, g_date->DayInYear(15, 4) - g_date->DayInYear())) {
234  break;
235  }
236  }
237  if (m_farm->IsStockFarmer()) // StockFarmer
238  {
240  }
241  else
243  break;
244 
245  case de_owt_ferti_s2:
246  if (m_ev->m_lock || m_farm->DoIt(30))
247  {
248  if (!m_farm->FA_Slurry(m_field, 0.0, g_date->DayInYear(31, 5) - g_date->DayInYear())) {
250  break;
251  }
252  }
254  break;
255 
256  case de_owt_harvest:
257  if (!m_farm->Harvest(m_field, 0.0, m_field->GetMDates(1, 0) - g_date->DayInYear())) { // last date 20/8
259  break;
260  }
262  break;
263 
265  if (m_ev->m_lock || m_farm->DoIt_prob(.60))
266  {
267  if (!m_farm->StrawChopping(m_field, 0.0, m_field->GetMDates(1, 1) - g_date->DayInYear())) // last date 22/8
268  {
270  break;
271  }
273  break;
274  }
275  else if (m_ev->m_lock || m_farm->DoIt_prob(.40 / .40)) {
276  d1 = g_date->Date() + 3;
277  if (d1 < m_field->GetMDates(0, 2)) d1 = m_field->GetMDates(0, 2); // start date 23/8
279  break;
280  }
281  break;
282 
283  case de_owt_hay_turning:
284  if (m_ev->m_lock || m_farm->DoIt_prob(.20/.40))
285  {
286  if (!m_farm->HayTurning(m_field, 0.0, m_field->GetMDates(1, 2) - g_date->DayInYear())) { // end date 23/8
288  break;
289  }
290  }
291  d1 = g_date->OldDays() + g_date->DayInYear(7, 8);
292  d2 = g_date->Date() + 3;
293  if (d2 > d1) d1 = d2;
294  if (d1 > m_field->GetMDates(0, 3)) d1 = m_field->GetMDates(0, 3); // start date 25/8
296  break;
297 
298  case de_owt_hay_bailing:
299  if (!m_farm->HayBailing(m_field, 0.0, m_field->GetMDates(1, 3) - g_date->DayInYear())) { // end date 30/8
301  break;
302  }
304  break;
305 
306  case de_owt_deep_plough:
307  if (m_ev->m_lock || m_farm->DoIt_prob(.60))
308  {
309  if (!m_farm->DeepPlough(m_field, 0.0,
310  m_field->GetMDates(1, 4) - g_date->DayInYear())) // end date 1/9
311  {
313  break;
314  }
315  done = true;
316  break;
317  }
318  else if (m_ev->m_lock || m_farm->DoIt_prob(.20 / .40)) {
320  break;
321  }
322  else done = true;
323  break;
325  if (!m_farm->StubbleHarrowing(m_field, 0.0, m_field->GetMDates(1, 5) - g_date->DayInYear())) { // last date 5/9
327  break;
328  }
329  SimpleEvent_(g_date->Date() + 10, de_owt_stubble_harrow2, false, m_farm, m_field); // main thread
330  break;
331 
333  if (!m_farm->StubbleHarrowing(m_field, 0.0, m_field->GetMDates(1, 6) - g_date->DayInYear())) // end date 15/9
334  {
336  break;
337  }
338  done = true;
339  // END OF MAIN THREAD
340  break;
341 
342  default:
343  g_msg->Warn(WARN_BUG, "DE_OTriticale::Do(): "
344  "Unknown event type! ", "");
345  exit(1);
346  }
347  return done;
348 }

References Farm::AutumnHarrow(), Farm::AutumnPlough(), Farm::AutumnSow(), LE::ClearManagementActionSum(), Calendar::Date(), Calendar::DayInYear(), de_owt_autumn_harrow, de_owt_autumn_plough, de_owt_autumn_sow, de_owt_deep_plough, de_owt_ferti_p1, de_owt_ferti_s1, de_owt_ferti_s2, de_owt_harvest, de_owt_hay_bailing, de_owt_hay_turning, de_owt_spring_roll1, de_owt_start, de_owt_straw_chopping, de_owt_strigling1, de_owt_strigling2, de_owt_strigling3, de_owt_stubble_harrow1, de_owt_stubble_harrow2, Farm::DeepPlough(), Farm::DoIt(), Farm::DoIt_prob(), Farm::FA_Manure(), Farm::FA_Slurry(), Farm::FP_Manure(), g_date, g_msg, LE::GetMDates(), Farm::Harvest(), Farm::HayBailing(), Farm::HayTurning(), Farm::IsStockFarmer(), Crop::m_ev, Crop::m_farm, Crop::m_field, Crop::m_last_date, FarmEvent::m_lock, FarmEvent::m_todo, Calendar::OldDays(), Crop::SimpleEvent_(), Farm::SpringRoll(), Crop::StartUpCrop(), Farm::StrawChopping(), Farm::Strigling(), Farm::StubbleHarrowing(), tov_DEOTriticale, MapErrorMsg::Warn(), and WARN_BUG.

◆ SetUpFarmCategoryInformation()

void DE_OTriticale::SetUpFarmCategoryInformation ( )
inline
110  {
111  const int elements = 2 + (de_owt_foobar - DE_OTRITICALE_BASE);
113 
114  FarmManagementCategory catlist[elements] =
115  {
116  fmc_Others, // zero element unused but must be here
117  fmc_Others, // de_owt_start = 1, // Compulsory, must always be 1 (one).
118  fmc_Others, // de_owt_sleep_all_day = DE_OWT_BASE,
119  fmc_Fertilizer, // de_owt_ferti_s1,
120  fmc_Fertilizer, // de_owt_ferti_s2,
121  fmc_Fertilizer, // de_owt_ferti_s3,
122  fmc_Fertilizer, // de_owt_ferti_p1,
123  fmc_Fertilizer, // de_owt_ferti_p2,
124  fmc_Cultivation, // de_owt_autumn_plough,
125  fmc_Cultivation, // de_owt_autumn_harrow,
126  fmc_Others, // de_owt_autumn_sow,
127  fmc_Cultivation, // de_owt_strigling1,
128  fmc_Cultivation, // de_owt_strigling2,
129  fmc_Cultivation, // de_owt_strigling3,
130  fmc_Cultivation, // de_owt_spring_roll1,
131  fmc_Harvest, // de_owt_harvest,
132  fmc_Others, // de_owt_hay_turning,
133  fmc_Cutting, // de_owt_straw_chopping,
134  fmc_Others, // de_owt_hay_bailing,
135  fmc_Cultivation, // de_owt_stubble_harrow1,
136  fmc_Cultivation, // de_owt_stubble_harrow2,
137  fmc_Cultivation, // de_owt_deep_plough,
138  // no foobar entry
139 
140  };
141  // Iterate over the catlist elements and copy them to vector
142  copy(begin(catlist), end(catlist), back_inserter(m_ManagementCategories));
143 
144  }

References DE_OTRITICALE_BASE, de_owt_foobar, fmc_Cultivation, fmc_Cutting, fmc_Fertilizer, fmc_Harvest, fmc_Others, Crop::m_base_elements_no, and Crop::m_ManagementCategories.

Referenced by DE_OTriticale().


The documentation for this class was generated from the following files:
LE::GetMDates
int GetMDates(int a, int b)
Definition: Elements.h:405
de_owt_foobar
Definition: DE_OTriticale.h:86
Farm::SpringRoll
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
de_owt_autumn_plough
Definition: DE_OTriticale.h:72
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
de_owt_deep_plough
Definition: DE_OTriticale.h:85
Farm::IsStockFarmer
bool IsStockFarmer(void)
Definition: Farm.h:961
Farm::Strigling
virtual bool Strigling(LE *a_field, double a_user, int a_days)
Carry out a mechanical weeding on a_field.
Definition: FarmFuncs.cpp:1206
Farm::Harvest
virtual bool Harvest(LE *a_field, double a_user, int a_days)
Carry out a harvest on a_field.
Definition: FarmFuncs.cpp:1364
FarmEvent::m_lock
bool m_lock
Definition: Farm.h:384
LE::ClearManagementActionSum
void ClearManagementActionSum()
clears the management action counters
Definition: Elements.h:247
Farm::DoIt
bool DoIt(double a_probability)
Return chance out of 0 to 100.
Definition: Farm.cpp:856
tov_DEOTriticale
Definition: LandscapeFarmingEnums.h:493
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::FA_Manure
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
de_owt_spring_roll1
Definition: DE_OTriticale.h:78
Crop::m_base_elements_no
int m_base_elements_no
Definition: Farm.h:505
de_owt_strigling2
Definition: DE_OTriticale.h:76
Crop::m_first_date
int m_first_date
Definition: Farm.h:501
de_owt_hay_turning
Definition: DE_OTriticale.h:80
de_owt_autumn_sow
Definition: DE_OTriticale.h:74
DE_OTRITICALE_BASE
#define DE_OTRITICALE_BASE
Definition: DE_OTriticale.h:53
Farm::FP_Manure
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
fmc_Cutting
Definition: LandscapeFarmingEnums.h:1009
de_owt_ferti_s1
Definition: DE_OTriticale.h:67
fmc_Fertilizer
Definition: LandscapeFarmingEnums.h:1004
Calendar::Date
long Date(void)
Definition: Calendar.h:57
fmc_Cultivation
Definition: LandscapeFarmingEnums.h:1008
Farm::HayBailing
virtual bool HayBailing(LE *a_field, double a_user, int a_days)
Carry out hay bailing on a_field.
Definition: FarmFuncs.cpp:1507
fmc_Others
Definition: LandscapeFarmingEnums.h:1003
Farm::StrawChopping
virtual bool StrawChopping(LE *a_field, double a_user, int a_days)
Carry out straw chopping on a_field.
Definition: FarmFuncs.cpp:1475
de_owt_autumn_harrow
Definition: DE_OTriticale.h:73
Calendar::OldDays
long OldDays(void)
Definition: Calendar.h:60
de_owt_stubble_harrow1
Definition: DE_OTriticale.h:83
de_owt_strigling1
Definition: DE_OTriticale.h:75
MapErrorMsg::Warn
void Warn(MapErrorState a_level, std::string a_msg1, std::string a_msg2)
Definition: MapErrorMsg.cpp:69
de_owt_ferti_p1
Definition: DE_OTriticale.h:70
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
de_owt_stubble_harrow2
Definition: DE_OTriticale.h:84
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
de_owt_start
Definition: DE_OTriticale.h:65
FarmEvent::m_todo
int m_todo
Definition: Farm.h:388
Crop::m_last_date
int m_last_date
Definition: Farm.h:503
Farm::AutumnPlough
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
g_msg
MapErrorMsg * g_msg
Definition: MapErrorMsg.cpp:41
Farm::AutumnHarrow
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
de_owt_straw_chopping
Definition: DE_OTriticale.h:81
TTypesOfVegetation
TTypesOfVegetation
Values that represent the types of vegetation that are represented in ALMaSS.
Definition: LandscapeFarmingEnums.h:192
de_owt_hay_bailing
Definition: DE_OTriticale.h:82
de_owt_strigling3
Definition: DE_OTriticale.h:77
Farm::DeepPlough
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
Farm::AutumnSow
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
fmc_Harvest
Definition: LandscapeFarmingEnums.h:1012
de_owt_ferti_s2
Definition: DE_OTriticale.h:68
DE_OTriticale::SetUpFarmCategoryInformation
void SetUpFarmCategoryInformation()
Definition: DE_OTriticale.h:110
Calendar::DayInYear
int DayInYear(void)
Definition: Calendar.h:58
de_owt_harvest
Definition: DE_OTriticale.h:79
Crop::Crop
Crop(TTypesOfVegetation a_tov, TTypesOfCrops a_toc, Landscape *a_L)
Definition: Farm.cpp:733
Farm::HayTurning
virtual bool HayTurning(LE *a_field, double a_user, int a_days)
Carry out hay turning on a_field.
Definition: FarmFuncs.cpp:1491
Crop::m_ev
FarmEvent * m_ev
Definition: Farm.h:500
WARN_BUG
Definition: MapErrorMsg.h:34
FarmManagementCategory
FarmManagementCategory
Definition: LandscapeFarmingEnums.h:1001
Farm::StubbleHarrowing
virtual bool StubbleHarrowing(LE *a_field, double a_user, int a_days)
Carry out stubble harrowing on a_field.
Definition: FarmFuncs.cpp:1523
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