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

#include <DK_PotatoSeed.h>

Inheritance diagram for DK_PotatoSeed:
Crop

Public Member Functions

bool Do (Farm *a_farm, LE *a_field, FarmEvent *a_ev)
 
 DK_PotatoSeed (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...
 

Constructor & Destructor Documentation

◆ DK_PotatoSeed()

DK_PotatoSeed::DK_PotatoSeed ( TTypesOfVegetation  a_tov,
TTypesOfCrops  a_toc,
Landscape a_L 
)
inline
92  : Crop(a_tov, a_toc, a_L)
93  {
94  m_first_date = g_date->DayInYear(1, 12); //
96  }

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

Member Function Documentation

◆ Do()

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

Reimplemented from Crop.

40 {
41  m_farm = a_farm;
42  m_field = a_field;
43  m_ev = a_ev;
44  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).
45  bool flag = false;
46  int d1 = 0;
47  int noDates = 1;
49 
50  switch (m_ev->m_todo)
51  {
52  case dk_ps_start:
53  {
54  a_field->ClearManagementActionSum();
55  m_field->SetVegPatchy(true); // Root crop so is open until tall
56  DK_PS_FORCESPRING = false;
57  m_last_date = g_date->DayInYear(3, 11); // Should match the last flexdate below
58  //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
59  std::vector<std::vector<int>> flexdates(2 + 1, std::vector<int>(2, 0));
60  // Set up the date management stuff
61  // Start and stop dates for all events after harvest
62  flexdates[0][1] = g_date->DayInYear(31, 10); // last possible day of harvest - this is in effect day before the earliest date that a following crop can use
63  // Now these are done in pairs, start & end for each operation. If its not used then -1
64  flexdates[1][0] = -1; // This date will be moved back as far as necessary and potentially to flexdates 1 (start op 1)
65  flexdates[1][1] = g_date->DayInYear(1, 11); // This date will be moved back as far as necessary and potentially to flexdates 1 (end op 1)
66  flexdates[2][0] = -1; // This date will be moved back as far as necessary and potentially to flexdates 2 (start op 2)
67  flexdates[2][1] = g_date->DayInYear(2, 11); // This date will be moved back as far as necessary and potentially to flexdates 2 (end op 2)
68 
69  // Below if this is a spring crop use 365, otherwise first parameter is always 0, second parameter is fixed, and the third is the start up operation in the first year
70  int isSpring = 0;
71  if (StartUpCrop(isSpring, flexdates, int(dk_ps_deep_harrow))) break;
72 
73  // End single block date checking code. Please see next line comment as well.
74  // Reinit d1 to first possible starting date.
75  d1 = g_date->OldDays() + g_date->DayInYear(1, 8);
76  // OK, let's go.
77  // Here we queue up the first event which changes dependent on whether it is a forced spring sow or not
78  if (m_ev->m_forcespring) {
79  int day_num_shift = 365;
80  if (g_date->DayInYear() < 70) day_num_shift = 0;
81  SimpleEvent(g_date->OldDays() + g_date->DayInYear(1, 3) + day_num_shift, dk_ps_deep_harrow, false);
82  DK_PS_FORCESPRING = true;
83  break;
84  }
85  else SimpleEvent(d1, dk_ps_remove_straw, false);
86  break;
87  }
88  break;
89 
90  case dk_ps_remove_straw:
91  if (m_ev->m_lock || m_farm->DoIt_prob(0.80)) {
92  if (!m_farm->StrawRemoval(m_field, 0.0, g_date->DayInYear(28, 9) - g_date->DayInYear())) {
94  break;
95  }
96  }
97  SimpleEvent(g_date->Date() + 1, dk_ps_stoneburier, false);
98  break;
99 
100  case dk_ps_stoneburier:
101  if (m_ev->m_lock || m_farm->DoIt_prob(0.40)) {
103  SimpleEvent(g_date->Date() + 1, dk_ps_stoneburier, true);
104  break;
105  }
106  }
107  SimpleEvent(g_date->Date() + 1, dk_ps_autumn_plough, false);
108  break;
109 
110  case dk_ps_autumn_plough:
111  if (m_ev->m_lock || m_farm->DoIt_prob(0.40)) {
114  break;
115  }
116  if (a_farm->IsStockFarmer()) {
117  SimpleEvent(g_date->OldDays() + g_date->DayInYear(1, 4) + 365, dk_ps_ferti_s1, false);
118  break;
119  }
120  else SimpleEvent(g_date->OldDays() + g_date->DayInYear(1, 4) + 365, dk_ps_ferti_p1, false);
121  break;
122  }
123  SimpleEvent(g_date->OldDays() + g_date->DayInYear(1, 3) + 365, dk_ps_herbicide, false);
124  break;
125 
126  case dk_ps_herbicide:
127  if (!m_farm->HerbicideTreat(m_field, 0.0, g_date->DayInYear(30, 3) - g_date->DayInYear())) {
128  SimpleEvent(g_date->Date() + 1, dk_ps_herbicide, true);
129  break;
130  }
131  SimpleEvent(g_date->Date() + 1, dk_ps_deep_harrow, false);
132  break;
133 
134  case dk_ps_deep_harrow:
135  if (!m_farm->StubbleHarrowing(m_field, 0.0, g_date->DayInYear(31, 3) - g_date->DayInYear())) {
136  SimpleEvent(g_date->Date() + 1, dk_ps_deep_harrow, true);
137  break;
138  }
139  if (a_farm->IsStockFarmer()) {
141  break;
142  }
143  else SimpleEvent(g_date->OldDays() + g_date->DayInYear(1, 4), dk_ps_ferti_p1, false);
144  break;
145 
146  case dk_ps_ferti_s1:
147  if (!m_farm->FA_NPK(m_field, 0.0, g_date->DayInYear(19, 4) - g_date->DayInYear())) {
148  SimpleEvent(g_date->Date() + 1, dk_ps_ferti_s1, true);
149  break;
150  }
151  SimpleEvent(g_date->Date() + 1, dk_ps_sow, false); // main thread
152  SimpleEvent(g_date->Date() + 15, dk_ps_ferti_s2, false); // ferti thread
153  break;
154 
155  case dk_ps_ferti_p1:
156  if (!m_farm->FP_NPK(m_field, 0.0, g_date->DayInYear(19, 4) - g_date->DayInYear())) {
157  SimpleEvent(g_date->Date() + 1, dk_ps_ferti_p1, true);
158  break;
159  }
160  SimpleEvent(g_date->Date() + 1, dk_ps_sow, false); // main thread
161  SimpleEvent(g_date->Date() + 15, dk_ps_ferti_p2, false); // ferti thread
162  break;
163 
164  case dk_ps_sow:
165  if (!m_farm->SpringSow(m_field, 0.0, g_date->DayInYear(20, 4) - g_date->DayInYear())) {
166  SimpleEvent(g_date->Date() + 1, dk_ps_sow, true);
167  break;
168  }
169  SimpleEvent(g_date->Date() + 1, dk_ps_strigling, false);
170  break;
171 
172  case dk_ps_ferti_s2:
173  if (m_ev->m_lock || m_farm->DoIt_prob(0.10)) {
174  if (!m_farm->FA_NPK(m_field, 0.0, g_date->DayInYear(1, 7) - g_date->DayInYear())) {
175  SimpleEvent(g_date->Date() + 1, dk_ps_ferti_s2, true);
176  break;
177  }
178  }
179  break; // end of thread
180 
181  case dk_ps_ferti_p2:
182  if (m_ev->m_lock || m_farm->DoIt_prob(0.10)) {
183  if (!m_farm->FP_NPK(m_field, 0.0, g_date->DayInYear(1, 7) - g_date->DayInYear())) {
184  SimpleEvent(g_date->Date() + 1, dk_ps_ferti_p2, true);
185  break;
186  }
187  }
188  break; // end of thread
189 
190  case dk_ps_strigling:
191  if (m_ev->m_lock || m_farm->DoIt_prob(0.05)) {
192  if (!m_farm->Strigling(m_field, 0.0, g_date->DayInYear(27, 4) - g_date->DayInYear())) {
193  SimpleEvent(g_date->Date() + 1, dk_ps_strigling, true);
194  break;
195  }
196  SimpleEvent(g_date->Date() + 1, dk_ps_harrow1, false);
197  break;
198  }
199  SimpleEvent(g_date->Date() + 1, dk_ps_herbicide1, false); // herbi thread
200  SimpleEvent(g_date->OldDays() + g_date->DayInYear(15, 5) + m_date_modifier, dk_ps_insecticide1, false); // insecti1 thread
201  SimpleEvent(g_date->OldDays() + g_date->DayInYear(15, 5), dk_ps_water, false); // water thread
202  SimpleEvent(g_date->OldDays() + g_date->DayInYear(15, 5), dk_ps_fungicide1, false); // main thread
203  SimpleEvent(g_date->OldDays() + g_date->DayInYear(1, 6) + m_date_modifier, dk_ps_insecticide3, false); // insecti3 thread
204  break;
205 
206  case dk_ps_harrow1:
207  if (!m_farm->ShallowHarrow(m_field, 0.0, g_date->DayInYear(28, 4) - g_date->DayInYear())) {
208  SimpleEvent(g_date->Date() + 1, dk_ps_harrow1, true);
209  break;
210  }
211  SimpleEvent(g_date->Date() + 1, dk_ps_herbicide_mw, false); //the 5% doing mechanical weeding (mw) - 75% of those will have one herbi treatment before sprouts
212  SimpleEvent(g_date->OldDays() + g_date->DayInYear(1, 5), dk_ps_hill_up1, false); // hill up thread
213  SimpleEvent(g_date->OldDays() + g_date->DayInYear(15, 5) + m_date_modifier, dk_ps_insecticide1, false); // insecti1 thread
214  SimpleEvent(g_date->OldDays() + g_date->DayInYear(15, 5), dk_ps_water, false); // water thread
215  SimpleEvent(g_date->OldDays() + g_date->DayInYear(15, 5), dk_ps_fungicide1, false); // main thread
216  SimpleEvent(g_date->OldDays() + g_date->DayInYear(1, 6) + m_date_modifier, dk_ps_insecticide3, false); // insecti3 thread
217  break;
218 
219  case dk_ps_hill_up1:
220  if (!m_farm->HillingUp(m_field, 0.0, g_date->DayInYear(30, 6) - g_date->DayInYear())) {
221  SimpleEvent(g_date->Date() + 1, dk_ps_hill_up1, true);
222  break;
223  }
224  SimpleEvent(g_date->Date() + 30, dk_ps_hill_up2, false); // hill up thread
225  break;
226 
227  case dk_ps_hill_up2:
228  if (!m_farm->HillingUp(m_field, 0.0, g_date->DayInYear(30, 7) - g_date->DayInYear())) {
229  SimpleEvent(g_date->Date() + 1, dk_ps_hill_up2, true);
230  break;
231  }
232  SimpleEvent(g_date->Date() + 30, dk_ps_hill_up3, false); // hill up thread
233  break;
234 
235  case dk_ps_hill_up3:
236  if (!m_farm->HillingUp(m_field, 0.0, g_date->DayInYear(30, 8) - g_date->DayInYear())) {
237  SimpleEvent(g_date->Date() + 1, dk_ps_hill_up3, true);
238  break;
239  }
240  break; // end of thread
241 
242  case dk_ps_herbicide_mw:
243  if (m_ev->m_lock || m_farm->DoIt_prob(0.75)) {
244  if (!m_farm->HerbicideTreat(m_field, 0.0, g_date->DayInYear(30, 4) - g_date->DayInYear())) {
245  SimpleEvent(g_date->Date() + 1, dk_ps_herbicide_mw, true);
246  break;
247  }
248  }
249  break; // end of thread
250 
251  case dk_ps_herbicide1:
252  if (m_ev->m_lock || m_farm->DoIt_prob(0.85)) {
253  if (!m_farm->HerbicideTreat(m_field, 0.0, g_date->DayInYear(30, 4) - g_date->DayInYear())) {
254  SimpleEvent(g_date->Date() + 1, dk_ps_herbicide1, true);
255  break;
256  }
257  }
259  break;
260 
261  case dk_ps_herbicide2:
262  if (m_ev->m_lock || m_farm->DoIt_prob(0.50)) {
263  if (!m_farm->HerbicideTreat(m_field, 0.0, g_date->DayInYear(30, 4) - g_date->DayInYear())) {
264  SimpleEvent(g_date->Date() + 1, dk_ps_herbicide2, true);
265  break;
266  }
267  }
269  break;
270 
271  case dk_ps_herbicide3:
272  if (m_ev->m_lock || m_farm->DoIt_prob(0.50)) {
273  if (!m_farm->HerbicideTreat(m_field, 0.0, g_date->DayInYear(30, 4) - g_date->DayInYear())) {
274  SimpleEvent(g_date->Date() + 1, dk_ps_herbicide3, true);
275  break;
276  }
277  }
279  break;
280 
281  case dk_ps_herbicide4:
282  if (m_ev->m_lock || m_farm->DoIt_prob(0.30)) {
283  if (!m_farm->HerbicideTreat(m_field, 0.0, g_date->DayInYear(30, 4) - g_date->DayInYear())) {
284  SimpleEvent(g_date->Date() + 1, dk_ps_herbicide4, true);
285  break;
286  }
287  }
288  SimpleEvent(g_date->Date() + 7, dk_ps_herbicide5, false);
289  break;
290 
291  case dk_ps_herbicide5:
292  if (m_ev->m_lock || m_farm->DoIt_prob(0.25)) {
293  if (!m_farm->HerbicideTreat(m_field, 0.0, g_date->DayInYear(15, 5) - g_date->DayInYear())) {
294  SimpleEvent(g_date->Date() + 1, dk_ps_herbicide5, true);
295  break;
296  }
297  }
298  SimpleEvent(g_date->Date() + 7, dk_ps_herbicide6, false);
299  break;
300 
301  case dk_ps_herbicide6:
302  if (m_ev->m_lock || m_farm->DoIt_prob(0.10)) {
303  if (!m_farm->HerbicideTreat(m_field, 0.0, g_date->DayInYear(30, 5) - g_date->DayInYear())) {
304  SimpleEvent(g_date->Date() + 1, dk_ps_herbicide6, true);
305  break;
306  }
307  }
308  break; // end of thread
309 
310  case dk_ps_water:
311  if (m_ev->m_lock || m_farm->DoIt_prob(0.75)) {
312  if (!m_farm->Water(m_field, 0.0, g_date->DayInYear(30, 5) - g_date->DayInYear())) {
313  SimpleEvent(g_date->Date() + 1, dk_ps_water, true);
314  break;
315  }
316  }
317  break; // end of thread
318 
319  case dk_ps_insecticide1:
320 #ifdef ECOSTACK_BIOPESTICIDE
321  if (m_ev->m_lock || m_farm->DoIt_prob(1.00)) {
322 #else
323  if (m_ev->m_lock || m_farm->DoIt_prob(1.00)) {
324 #endif
325  // here we check whether we are using ERA pesticide or not
326  d1 = g_date->DayInYear(15, 6) - g_date->DayInYear();
327  if (!cfg_pest_potatoes_on.value() || !m_field->GetLandscape()->SupplyShouldSpray()) // Not using pesticide spray
328  {
329 #ifdef ECOSTACK_BIOPESTICIDE
330  flag = m_farm->BiocideTreat(m_field, 0.0, d1);
331 #else
332  flag = m_farm->InsecticideTreat(m_field, 0.0, d1);
333 #endif
334  }
335  else {
336  flag = m_farm->ProductApplication(m_field, 0.0, d1, cfg_pest_product_amounts.value(0), ppp_1, false, 3);
337  }
338  if (!flag) {
339  SimpleEvent(g_date->Date() + 1, dk_ps_insecticide1, true);
340  break;
341  }
342 #ifdef ECOSTACK_BIOPESTICIDE
343  SimpleEvent(g_date->Date() + 7, dk_ps_insecticide1b, false);
344  SimpleEvent(g_date->Date() + 30, dk_ps_insecticide2, false);
345  break;
346 #endif
347  }
348  SimpleEvent(g_date->Date() + 30, dk_ps_insecticide2, false);
349  break;
350 
351 #ifdef ECOSTACK_BIOPESTICIDE
352  case dk_ps_insecticide1b:
353  if (m_ev->m_lock || m_farm->DoIt_prob(1.0)) {
354  // here we check whether we are using ERA pesticide or not
355  d1 = g_date->DayInYear(22, 6) - g_date->DayInYear();
356  flag = m_farm->BiocideTreat(m_field, 0.0, d1);
357  if (!flag) {
359  break;
360  }
361  }
362  break; // end of thread
363 #endif
364  case dk_ps_insecticide2:
365 #ifdef ECOSTACK_BIOPESTICIDE
366  if (m_ev->m_lock || m_farm->DoIt_prob(1.00)) {
367 #else
368  if (m_ev->m_lock || m_farm->DoIt_prob(1.00)) {
369 #endif
370  // here we check whether we are using ERA pesticide or not
371  d1 = g_date->DayInYear(16, 7) - g_date->DayInYear();
372  if (!cfg_pest_potatoes_on.value() || !m_field->GetLandscape()->SupplyShouldSpray()) // Not using pesticide spray
373  {
374 #ifdef ECOSTACK_BIOPESTICIDE
375  flag = m_farm->BiocideTreat(m_field, 0.0, d1);
376 #else
377  flag = m_farm->InsecticideTreat(m_field, 0.0, d1);
378 #endif
379  }
380  else {
381  flag = m_farm->ProductApplication(m_field, 0.0, d1, cfg_pest_product_amounts.value(0), ppp_1, false, 3);
382  }
383  if (!flag) {
384  SimpleEvent(g_date->Date() + 1, dk_ps_insecticide2, true);
385  break;
386  }
387 #ifdef ECOSTACK_BIOPESTICIDE
388  SimpleEvent(g_date->Date() + 7, dk_ps_insecticide2b, false);
389  break; // end of thread
390 #endif
391  }
392  break; // end of thread
393 
394 #ifdef ECOSTACK_BIOPESTICIDE
395  case dk_ps_insecticide2b:
396  if (m_ev->m_lock || m_farm->DoIt_prob(1.0)) {
397  // here we check whether we are using ERA pesticide or not
398  d1 = g_date->DayInYear(23, 7) - g_date->DayInYear();
399  flag = m_farm->BiocideTreat(m_field, 0.0, d1);
400  if (!flag) {
402  break;
403  }
404  }
405  break; // end of thread
406 #endif
407  case dk_ps_insecticide3:
408 #ifdef ECOSTACK_BIOPESTICIDE
409  if (m_ev->m_lock || m_farm->DoIt_prob(1.00)) {
410 #else
411  if (m_ev->m_lock || m_farm->DoIt_prob(1.00)) {
412 #endif
413  // here we check whether we are using ERA pesticide or not
414  d1 = g_date->DayInYear(30, 6) - g_date->DayInYear();
415  if (!cfg_pest_potatoes_on.value() || !m_field->GetLandscape()->SupplyShouldSpray()) // Not using pesticide spray
416  {
417 #ifdef ECOSTACK_BIOPESTICIDE
418  flag = m_farm->BiocideTreat(m_field, 0.0, d1);
419 #else
420  flag = m_farm->InsecticideTreat(m_field, 0.0, d1);
421 #endif
422  }
423  else {
424  flag = m_farm->ProductApplication(m_field, 0.0, d1, cfg_pest_product_amounts.value(0), ppp_1, false, 3);
425  }
426  if (!flag) {
427  SimpleEvent(g_date->Date() + 1, dk_ps_insecticide3, true);
428  break;
429  }
430 #ifdef ECOSTACK_BIOPESTICIDE
431  SimpleEvent(g_date->Date() + 7, dk_ps_insecticide3b, false);
432  break; // end of thread
433 #endif
434  }
435  break; // end of thread
436 
437 #ifdef ECOSTACK_BIOPESTICIDE
438  case dk_ps_insecticide3b:
439  if (m_ev->m_lock || m_farm->DoIt_prob(1.0)) {
440  // here we check whether we are using ERA pesticide or not
441  d1 = g_date->DayInYear(7, 7) - g_date->DayInYear();
442  flag = m_farm->BiocideTreat(m_field, 0.0, d1);
443  if (!flag) {
445  break;
446  }
447  }
448  break; // end of thread
449 #endif
450  case dk_ps_fungicide1:
451  if (m_ev->m_lock || m_farm->DoIt_prob(1.0)) {
452  if (!m_farm->FungicideTreat(m_field, 0.0, g_date->DayInYear(29, 5) - g_date->DayInYear())) {
453  SimpleEvent(g_date->Date() + 1, dk_ps_fungicide1, true);
454  break;
455  }
456  }
457  if (a_farm->IsStockFarmer()) {
459  break;
460  }
461  else SimpleEvent(g_date->Date(), dk_ps_ferti_p3, false);
462  break;
463 
464  case dk_ps_ferti_s3:
465  if (m_ev->m_lock || m_farm->DoIt_prob(0.01)) {
466  if (!m_farm->FA_ManganeseSulphate(m_field, 0.0, g_date->DayInYear(29, 5) - g_date->DayInYear())) {
467  SimpleEvent(g_date->Date() + 1, dk_ps_ferti_s3, true);
468  break;
469  }
470  }
471  SimpleEvent(g_date->Date() + 7, dk_ps_fungicide2, false);
472  break;
473 
474  case dk_ps_ferti_p3:
475  if (m_ev->m_lock || m_farm->DoIt_prob(0.01)) {
476  if (!m_farm->FP_ManganeseSulphate(m_field, 0.0, g_date->DayInYear(29, 5) - g_date->DayInYear())) {
477  SimpleEvent(g_date->Date() + 1, dk_ps_ferti_p3, true);
478  break;
479  }
480  }
481  SimpleEvent(g_date->Date() + 7, dk_ps_fungicide2, false);
482  break;
483 
484  case dk_ps_fungicide2:
485  if (m_ev->m_lock || m_farm->DoIt_prob(1.0)) {
486  if (!m_farm->FungicideTreat(m_field, 0.0, g_date->DayInYear(6, 6) - g_date->DayInYear())) {
487  SimpleEvent(g_date->Date() + 1, dk_ps_fungicide2, true);
488  break;
489  }
490  }
491  SimpleEvent(g_date->Date() + 7, dk_ps_fungicide3, false);
492  break;
493 
494  case dk_ps_fungicide3:
495  if (m_ev->m_lock || m_farm->DoIt_prob(1.0)) {
496  if (!m_farm->FungicideTreat(m_field, 0.0, g_date->DayInYear(14, 6) - g_date->DayInYear())) {
497  SimpleEvent(g_date->Date() + 1, dk_ps_fungicide3, true);
498  break;
499  }
500  }
501  SimpleEvent(g_date->Date() + 7, dk_ps_fungicide4, false);
502  break;
503 
504  case dk_ps_fungicide4:
505  if (m_ev->m_lock || m_farm->DoIt_prob(1.0)) {
506  if (!m_farm->FungicideTreat(m_field, 0.0, g_date->DayInYear(22, 6) - g_date->DayInYear())) {
507  SimpleEvent(g_date->Date() + 1, dk_ps_fungicide4, true);
508  break;
509  }
510  }
511  SimpleEvent(g_date->Date() + 7, dk_ps_fungicide5, false);
512  break;
513 
514  case dk_ps_fungicide5:
515  if (m_ev->m_lock || m_farm->DoIt_prob(1.0)) {
516  if (!m_farm->FungicideTreat(m_field, 0.0, g_date->DayInYear(30, 6) - g_date->DayInYear())) {
517  SimpleEvent(g_date->Date() + 1, dk_ps_fungicide5, true);
518  break;
519  }
520  }
521  SimpleEvent(g_date->Date() + 7, dk_ps_fungicide6, false);
522  break;
523 
524  case dk_ps_fungicide6:
525  if (m_ev->m_lock || m_farm->DoIt_prob(1.0)) {
526  if (!m_farm->FungicideTreat(m_field, 0.0, g_date->DayInYear(6, 7) - g_date->DayInYear())) {
527  SimpleEvent(g_date->Date() + 1, dk_ps_fungicide6, true);
528  break;
529  }
530  }
531  SimpleEvent(g_date->Date() + 7, dk_ps_fungicide7, false);
532  break;
533 
534  case dk_ps_fungicide7:
535  if (m_ev->m_lock || m_farm->DoIt_prob(1.0)) {
536  if (!m_farm->FungicideTreat(m_field, 0.0, g_date->DayInYear(14, 7) - g_date->DayInYear())) {
537  SimpleEvent(g_date->Date() + 1, dk_ps_fungicide7, true);
538  break;
539  }
540  }
541  SimpleEvent(g_date->Date() + 7, dk_ps_fungicide8, false);
542  break;
543 
544  case dk_ps_fungicide8:
545  if (m_ev->m_lock || m_farm->DoIt_prob(1.0)) {
546  if (!m_farm->FungicideTreat(m_field, 0.0, g_date->DayInYear(22, 7) - g_date->DayInYear())) {
547  SimpleEvent(g_date->Date() + 1, dk_ps_fungicide8, true);
548  break;
549  }
550  }
552  break;
553 
554  case dk_ps_herbicide7:
555  if (m_ev->m_lock || m_farm->DoIt_prob(0.70)) {
556  if (!m_farm->HerbicideTreat(m_field, 0.0, g_date->DayInYear(22, 7) - g_date->DayInYear())) {
557  SimpleEvent(g_date->Date() + 1, dk_ps_herbicide7, true);
558  break;
559  }
560  SimpleEvent(g_date->Date() + 7, dk_ps_herbicide8, false); // herbi thread
561  SimpleEvent(g_date->Date() + 7, dk_ps_fungicide9, false); // main thread
562  break;
563  }
564  SimpleEvent(g_date->Date() + 7, dk_ps_fungicide9, false);
565  break;
566 
567  case dk_ps_herbicide8:
568  if (!m_farm->HerbicideTreat(m_field, 0.0, g_date->DayInYear(30, 7) - g_date->DayInYear())) {
569  SimpleEvent(g_date->Date() + 1, dk_ps_herbicide8, true);
570  break;
571  }
572  break; // end og thread
573 
574  case dk_ps_fungicide9:
575  if (m_ev->m_lock || m_farm->DoIt_prob(1.0)) {
576  if (!m_farm->FungicideTreat(m_field, 0.0, g_date->DayInYear(30, 7) - g_date->DayInYear())) {
577  SimpleEvent(g_date->Date() + 1, dk_ps_fungicide9, true);
578  break;
579  }
580  }
581  SimpleEvent(g_date->Date() + 7, dk_ps_fungicide10, false);
582  break;
583 
584  case dk_ps_fungicide10:
585  if (m_ev->m_lock || m_farm->DoIt_prob(1.0)) {
586  if (!m_farm->FungicideTreat(m_field, 0.0, g_date->DayInYear(6, 8) - g_date->DayInYear())) {
587  SimpleEvent(g_date->Date() + 1, dk_ps_fungicide10, true);
588  break;
589  }
590  }
591  SimpleEvent(g_date->Date() + 7, dk_ps_harvest, false);
592  break;
593 
594  case dk_ps_harvest:
595  if (!m_farm->HarvestLong(m_field, 0.0, m_field->GetMDates(1, 0) - g_date->DayInYear())) {
596  SimpleEvent(g_date->Date() + 1, dk_ps_harvest, true);
597  break;
598  }
599  SimpleEvent(g_date->Date() + 1, dk_ps_harrow2, false);
600  break;
601  m_field->SetVegPatchy(false);
602  done = true;
603  break;
604 
605  case dk_ps_harrow2:
606  if (m_ev->m_lock || m_farm->DoIt_prob(0.25)) {
607  if (!m_farm->AutumnHarrow(m_field, 0.0, m_field->GetMDates(1, 1) - g_date->DayInYear())) {
608  SimpleEvent(g_date->Date() + 1, dk_ps_harrow2, true);
609  break;
610  }
611  SimpleEvent(g_date->Date() + 1, dk_ps_harrow3, false);
612  break;
613  }
614  done = true;
615  break;
616 
617  case dk_ps_harrow3:
618  if (!m_farm->AutumnHarrow(m_field, 0.0, m_field->GetMDates(1, 2) - g_date->DayInYear())) {
619  SimpleEvent(g_date->Date() + 1, dk_ps_harrow3, true);
620  break;
621  }
622 
623  done = true;
624  break;
625 
626  default:
627  g_msg->Warn(WARN_BUG, "DK_PotatoSeed::Do(): "
628  "Unknown event type! ", "");
629  exit(1);
630  }
631  if (done) m_ev->m_forcespring = true; // Here we need to force the next crop to spring operation, so set the ev->forcespring to true
632  return done;
633 }

References Farm::AutumnHarrow(), Farm::BiocideTreat(), cfg_pest_potatoes_on, cfg_pest_product_amounts, LE::ClearManagementActionSum(), Calendar::Date(), Calendar::DayInYear(), dk_ps_autumn_plough, dk_ps_deep_harrow, dk_ps_ferti_p1, dk_ps_ferti_p2, dk_ps_ferti_p3, dk_ps_ferti_s1, dk_ps_ferti_s2, dk_ps_ferti_s3, DK_PS_FORCESPRING, dk_ps_fungicide1, dk_ps_fungicide10, dk_ps_fungicide2, dk_ps_fungicide3, dk_ps_fungicide4, dk_ps_fungicide5, dk_ps_fungicide6, dk_ps_fungicide7, dk_ps_fungicide8, dk_ps_fungicide9, dk_ps_harrow1, dk_ps_harrow2, dk_ps_harrow3, dk_ps_harvest, dk_ps_herbicide, dk_ps_herbicide1, dk_ps_herbicide2, dk_ps_herbicide3, dk_ps_herbicide4, dk_ps_herbicide5, dk_ps_herbicide6, dk_ps_herbicide7, dk_ps_herbicide8, dk_ps_herbicide_mw, dk_ps_hill_up1, dk_ps_hill_up2, dk_ps_hill_up3, dk_ps_insecticide1, dk_ps_insecticide1b, dk_ps_insecticide2, dk_ps_insecticide2b, dk_ps_insecticide3, dk_ps_insecticide3b, dk_ps_remove_straw, dk_ps_sow, dk_ps_start, dk_ps_stoneburier, dk_ps_strigling, dk_ps_water, Farm::DoIt_prob(), Farm::FA_ManganeseSulphate(), Farm::FA_NPK(), Farm::FP_ManganeseSulphate(), Farm::FP_NPK(), Farm::FungicideTreat(), g_date, g_msg, LE::GetMDates(), Farm::HarvestLong(), Farm::HerbicideTreat(), Farm::HillingUp(), Farm::InsecticideTreat(), Farm::IsStockFarmer(), Crop::m_date_modifier, Crop::m_ev, Crop::m_farm, Crop::m_field, FarmEvent::m_forcespring, Crop::m_last_date, FarmEvent::m_lock, FarmEvent::m_todo, Calendar::OldDays(), ppp_1, Farm::ProductApplication(), LE::SetVegPatchy(), Farm::ShallowHarrow(), Crop::SimpleEvent(), Farm::SpringSow(), Crop::StartUpCrop(), Farm::StrawRemoval(), Farm::Strigling(), Farm::StubbleCultivatorHeavy(), Farm::StubbleHarrowing(), tov_DKPotatoSeed, CfgBool::value(), CfgArray_Double::value(), MapErrorMsg::Warn(), WARN_BUG, and Farm::Water().

◆ SetUpFarmCategoryInformation()

void DK_PotatoSeed::SetUpFarmCategoryInformation ( )
inline
97  {
98  const int elements = 2 + (dk_ps_foobar - DK_PS_BASE);
100 
101  FarmManagementCategory catlist[elements] =
102  {
103  fmc_Others, // zero element unused but must be here
104  fmc_Others, // dk_ps_start = 1, // Compulsory, start event must always be 1 (one).
105  fmc_Harvest, // dk_ps_harvest = DK_PS_BASE,
106  fmc_Others, // dk_ps_remove_straw,
107  fmc_Cultivation, //dk_ps_stoneburier,
108  fmc_Cultivation, //dk_ps_autumn_plough,
109  fmc_Cultivation, // dk_ps_deep_harrow,
110  fmc_Fertilizer, // dk_ps_ferti_s1,
111  fmc_Fertilizer, // dk_ps_ferti_p1,
112  fmc_Fertilizer, // dk_ps_ferti_s2,
113  fmc_Fertilizer, // dk_ps_ferti_p2,
114  fmc_Others, // dk_ps_sow,
115  fmc_Watering, // dk_ps_water,
116  fmc_Cultivation, // dk_ps_strigling,
117  fmc_Cultivation, // dk_ps_harrow1,
118  fmc_Cultivation, // dk_ps_hill_up1,
119  fmc_Cultivation, // dk_ps_hill_up2,
120  fmc_Cultivation, // dk_ps_hill_up3,
121  fmc_Herbicide, // dk_ps_herbicide,
122  fmc_Herbicide, // dk_ps_herbicide_mw,
123  fmc_Herbicide, // dk_ps_herbicide1,
124  fmc_Herbicide, // dk_ps_herbicide2,
125  fmc_Herbicide, // dk_ps_herbicide3,
126  fmc_Herbicide, // dk_ps_herbicide4,
127  fmc_Herbicide, // dk_ps_herbicide5,
128  fmc_Herbicide, // dk_ps_herbicide6,
129  fmc_Fertilizer, // dk_ps_ferti_s3,
130  fmc_Fertilizer, // dk_ps_ferti_p3,
131  fmc_Fungicide, // dk_ps_fungicide1,
132  fmc_Fungicide, // dk_ps_fungicide2,
133  fmc_Fungicide, // dk_ps_fungicide3,
134  fmc_Fungicide, // dk_ps_fungicide4,
135  fmc_Fungicide, // dk_ps_fungicide5,
136  fmc_Fungicide, // dk_ps_fungicide6,
137  fmc_Fungicide, // dk_ps_fungicide7,
138  fmc_Fungicide, // dk_ps_fungicide8,
139  fmc_Fungicide, // dk_ps_fungicide9,
140  fmc_Fungicide, // dk_ps_fungicide10,
141  fmc_Insecticide, // dk_ps_insecticide1,
142  fmc_Insecticide, // dk_ps_insecticide2,
143  fmc_Insecticide, // dk_ps_insecticide3,
144  fmc_Cultivation, // dk_ps_harrow2,
145  fmc_Cultivation, // dk_ps_harrow3,
146  fmc_Herbicide, // dk_ps_herbicide7,
147  fmc_Herbicide, // dk_ps_herbicide8,
148 
149 
150  // no foobar entry
151 
152  };
153  // Iterate over the catlist elements and copy them to vector
154  copy(begin(catlist), end(catlist), back_inserter(m_ManagementCategories));
155 
156  }

References DK_PS_BASE, dk_ps_foobar, fmc_Cultivation, fmc_Fertilizer, fmc_Fungicide, fmc_Harvest, fmc_Herbicide, fmc_Insecticide, fmc_Others, fmc_Watering, Crop::m_base_elements_no, and Crop::m_ManagementCategories.

Referenced by DK_PotatoSeed().


The documentation for this class was generated from the following files:
LE::GetMDates
int GetMDates(int a, int b)
Definition: Elements.h:405
FarmEvent::m_forcespring
bool m_forcespring
Definition: Farm.h:392
dk_ps_harrow2
Definition: DK_PotatoSeed.h:79
fmc_Insecticide
Definition: LandscapeFarmingEnums.h:1005
dk_ps_fungicide5
Definition: DK_PotatoSeed.h:67
dk_ps_harrow1
Definition: DK_PotatoSeed.h:49
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
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
dk_ps_insecticide1b
Definition: DK_PotatoSeed.h:74
dk_ps_insecticide3b
Definition: DK_PotatoSeed.h:78
FarmEvent::m_lock
bool m_lock
Definition: Farm.h:384
Farm::FP_ManganeseSulphate
virtual bool FP_ManganeseSulphate(LE *a_field, double a_user, int a_days)
Apply Manganse Sulphate to a_field owned by an arable farmer.
Definition: FarmFuncs.cpp:840
Farm::ProductApplication
virtual bool ProductApplication(LE *a_field, double a_user, int a_days, double a_applicationrate, PlantProtectionProducts a_ppp, bool a_isgranularpesticide=false, int a_orcharddrifttype=0)
Apply test pesticide to a_field.
Definition: FarmFuncs.cpp:2267
dk_ps_insecticide3
Definition: DK_PotatoSeed.h:77
Farm::StubbleCultivatorHeavy
virtual bool StubbleCultivatorHeavy(LE *a_field, double a_user, int a_days)
Carry out a stubble cultivation event on a_field. This is non-inversion type of cultivation which can...
Definition: FarmFuncs.cpp:245
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
dk_ps_herbicide3
Definition: DK_PotatoSeed.h:57
dk_ps_sow
Definition: DK_PotatoSeed.h:46
Farm::StrawRemoval
virtual bool StrawRemoval(LE *a_field, double a_user, int a_days)
Straw covering applied on a_field.
Definition: FarmFuncs.cpp:1752
dk_ps_ferti_p1
Definition: DK_PotatoSeed.h:43
dk_ps_harrow3
Definition: DK_PotatoSeed.h:80
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
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
Crop::m_base_elements_no
int m_base_elements_no
Definition: Farm.h:505
dk_ps_herbicide2
Definition: DK_PotatoSeed.h:56
dk_ps_ferti_p2
Definition: DK_PotatoSeed.h:45
DK_PS_BASE
#define DK_PS_BASE
Definition: DK_PotatoSeed.h:31
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
Farm::FungicideTreat
virtual bool FungicideTreat(LE *a_field, double a_user, int a_days)
Apply fungicide to a_field.
Definition: FarmFuncs.cpp:2101
Farm::HillingUp
virtual bool HillingUp(LE *a_field, double a_user, int a_days)
Do hilling up on a_field, probably of potatoes.
Definition: FarmFuncs.cpp:1302
dk_ps_remove_straw
Definition: DK_PotatoSeed.h:38
dk_ps_ferti_s2
Definition: DK_PotatoSeed.h:44
cfg_pest_product_amounts
CfgArray_Double cfg_pest_product_amounts
Amount of pesticide applied in grams of active substance per hectare for each of the 10 pesticides.
Crop::SimpleEvent
void SimpleEvent(long a_date, int a_todo, bool a_lock)
Adds an event to this crop management.
Definition: Farm.cpp:747
dk_ps_herbicide1
Definition: DK_PotatoSeed.h:55
dk_ps_fungicide2
Definition: DK_PotatoSeed.h:64
dk_ps_water
Definition: DK_PotatoSeed.h:47
CfgBool::value
bool value() const
Definition: Configurator.h:164
dk_ps_insecticide2b
Definition: DK_PotatoSeed.h:76
tov_DKPotatoSeed
Definition: LandscapeFarmingEnums.h:406
dk_ps_ferti_s1
Definition: DK_PotatoSeed.h:42
dk_ps_fungicide6
Definition: DK_PotatoSeed.h:68
fmc_Fertilizer
Definition: LandscapeFarmingEnums.h:1004
dk_ps_ferti_p3
Definition: DK_PotatoSeed.h:62
dk_ps_ferti_s3
Definition: DK_PotatoSeed.h:61
dk_ps_hill_up3
Definition: DK_PotatoSeed.h:52
dk_ps_hill_up1
Definition: DK_PotatoSeed.h:50
dk_ps_fungicide8
Definition: DK_PotatoSeed.h:70
Calendar::Date
long Date(void)
Definition: Calendar.h:57
dk_ps_harvest
Definition: DK_PotatoSeed.h:37
fmc_Cultivation
Definition: LandscapeFarmingEnums.h:1008
fmc_Others
Definition: LandscapeFarmingEnums.h:1003
LE::SetVegPatchy
void SetVegPatchy(bool p)
Definition: Elements.h:229
dk_ps_herbicide6
Definition: DK_PotatoSeed.h:60
fmc_Watering
Definition: LandscapeFarmingEnums.h:1011
DK_PotatoSeed::SetUpFarmCategoryInformation
void SetUpFarmCategoryInformation()
Definition: DK_PotatoSeed.h:97
Farm::FA_ManganeseSulphate
virtual bool FA_ManganeseSulphate(LE *a_field, double a_user, int a_days)
Apply manganese sulphate to a_field owned by an stock farmer.
Definition: FarmFuncs.cpp:1095
Calendar::OldDays
long OldDays(void)
Definition: Calendar.h:60
dk_ps_foobar
Definition: DK_PotatoSeed.h:83
MapErrorMsg::Warn
void Warn(MapErrorState a_level, std::string a_msg1, std::string a_msg2)
Definition: MapErrorMsg.cpp:69
cfg_pest_potatoes_on
CfgBool cfg_pest_potatoes_on
Turn on pesticides for potatoes.
dk_ps_start
Definition: DK_PotatoSeed.h:36
dk_ps_insecticide2
Definition: DK_PotatoSeed.h:75
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
dk_ps_autumn_plough
Definition: DK_PotatoSeed.h:40
dk_ps_fungicide7
Definition: DK_PotatoSeed.h:69
dk_ps_herbicide5
Definition: DK_PotatoSeed.h:59
dk_ps_strigling
Definition: DK_PotatoSeed.h:48
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
CfgArray_Double::value
std::vector< double > value() const
Definition: Configurator.h:219
dk_ps_fungicide3
Definition: DK_PotatoSeed.h:65
dk_ps_insecticide1
Definition: DK_PotatoSeed.h:73
dk_ps_herbicide_mw
Definition: DK_PotatoSeed.h:54
FarmEvent::m_todo
int m_todo
Definition: Farm.h:388
Farm::InsecticideTreat
virtual bool InsecticideTreat(LE *a_field, double a_user, int a_days)
Apply insecticide to a_field.
Definition: FarmFuncs.cpp:2135
dk_ps_fungicide10
Definition: DK_PotatoSeed.h:72
Farm::ShallowHarrow
virtual bool ShallowHarrow(LE *a_field, double a_user, int a_days)
Carry out a shallow harrow event on a_field, e.g., after grass cutting event.
Definition: FarmFuncs.cpp:473
Farm::HarvestLong
virtual bool HarvestLong(LE *a_field, double a_user, int a_days)
Carry out a harvest on a_field (only differs in the DoIt chance cf harvest)
Definition: FarmFuncs.cpp:1421
Farm::BiocideTreat
virtual bool BiocideTreat(LE *a_field, double a_user, int a_days)
Apply Biocide to a_field.
Definition: FarmFuncs.cpp:2175
dk_ps_hill_up2
Definition: DK_PotatoSeed.h:51
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
dk_ps_herbicide7
Definition: DK_PotatoSeed.h:81
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
TTypesOfVegetation
TTypesOfVegetation
Values that represent the types of vegetation that are represented in ALMaSS.
Definition: LandscapeFarmingEnums.h:192
dk_ps_herbicide
Definition: DK_PotatoSeed.h:53
dk_ps_fungicide1
Definition: DK_PotatoSeed.h:63
Crop::m_date_modifier
static int m_date_modifier
Holds a value that shifts test pesticide use by this many days in crops modified to use it.
Definition: Farm.h:514
fmc_Harvest
Definition: LandscapeFarmingEnums.h:1012
dk_ps_herbicide4
Definition: DK_PotatoSeed.h:58
Calendar::DayInYear
int DayInYear(void)
Definition: Calendar.h:58
dk_ps_deep_harrow
Definition: DK_PotatoSeed.h:41
Crop::Crop
Crop(TTypesOfVegetation a_tov, TTypesOfCrops a_toc, Landscape *a_L)
Definition: Farm.cpp:733
dk_ps_fungicide9
Definition: DK_PotatoSeed.h:71
dk_ps_fungicide4
Definition: DK_PotatoSeed.h:66
DK_PS_FORCESPRING
#define DK_PS_FORCESPRING
Definition: DK_PotatoSeed.h:33
dk_ps_herbicide8
Definition: DK_PotatoSeed.h:82
Crop::m_ev
FarmEvent * m_ev
Definition: Farm.h:500
WARN_BUG
Definition: MapErrorMsg.h:34
ppp_1
Definition: LandscapeFarmingEnums.h:1079
fmc_Fungicide
Definition: LandscapeFarmingEnums.h:1007
dk_ps_stoneburier
Definition: DK_PotatoSeed.h:39
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