Loading [MathJax]/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
PLFodderLucerne2 Class Reference

PLFodderLucerne2 class
. More...

#include <PLFodderLucerne2.h>

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

PLFodderLucerne2 class
.

See PLFodderLucerne2.h::PLFodderLucerne2ToDo for a complete list of all possible events triggered codes by the fodder lucerne1 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

◆ PLFodderLucerne2()

PLFodderLucerne2::PLFodderLucerne2 ( TTypesOfVegetation  a_tov,
TTypesOfCrops  a_toc,
Landscape a_L 
)
inline
70  : Crop(a_tov, a_toc, a_L)
71  {
72  // When we start it off, the first possible date for a farm operation is 31th March
73  // This information is used by other crops when they decide how much post processing of
74  // the management is allowed after harvest before the next crop starts.
75  m_first_date = g_date->DayInYear(31, 3);
77  }

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

Member Function Documentation

◆ Do()

bool PLFodderLucerne2::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 fodder lucerne in the second/third year.

Reimplemented from Crop.

57 {
58  /******************** This block can be added to the top of all Crop::Do methods ***********************************************/
59  m_farm = a_farm; // These assignments are necessary, not for this method but for related event calls
60  m_field = a_field;
61  m_ev = a_ev;
62  bool done = false; // The boolean value done indicates when we are totally finished with this plan (i.e. it is set to true).
63  int d1 = 0;
64  int noDates = 1;
65  TTypesOfVegetation l_tov = tov_PLFodderLucerne2; // The current type - change to match the crop you have
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 pl_fl2_start:
72  {
73  // Set up the date management stuff
74 
75  // Check the next crop for early start, unless it is a spring crop
76  // in which case we ASSUME that no checking is necessary!!!!
77  // So DO NOT implement a crop that runs over the year boundary (i.e. from spring to spring!), at least not without fixing this.
79 
80  //new if: do the check only for non-optimising farms and if year>0. (030713 - m_rotation used only in the hidden year, so I modified the condition from >7 to >0)
81  //optimising farms not used for now so most of related code is removed (but not in 'start' case)
82  if (!(m_farm->GetType() == tof_OptimisingFarm && g_date->GetYearNumber() > 0)) {
83 
84  if (m_ev->m_startday > g_date->DayInYear(1, 7)) {
85  if (g_date->DayInYear(5, 10) >= m_ev->m_startday)
86  {
87  g_msg->Warn(WARN_BUG, "PLFodderLucerne2::Do(): ", "Harvest too late for the next crop to start!!!");
88  int almassnum = m_field->GetLandscape()->BackTranslateVegTypes(m_ev->m_next_tov);
89  g_msg->Warn("Next Crop ", (double)almassnum); // this causes exit
90  }
91  }
92  // Now no operations can be timed after the start of the next crop.
93 
94  if (!m_ev->m_first_year) {
95  // Are we before July 1st?
96  d1 = g_date->OldDays() + g_date->DayInYear(1, 7);
97  if (g_date->Date() < d1) {
98  // Yes, too early. We assumme this is because the last crop was late
99  printf("Poly: %d\n", m_field->GetPoly());
100  g_msg->Warn(WARN_BUG, "PLFodderLucerne2::Do(): ", "Crop start attempt between 1st Jan & 1st July");
101  int prev = m_field->GetLandscape()->BackTranslateVegTypes(m_field->GetOwner()->GetPreviousTov(m_field->GetRotIndex()));
102  g_msg->Warn(WARN_BUG, "Previous Crop ", prev);
103  int almassnum = m_field->GetLandscape()->BackTranslateVegTypes(m_ev->m_next_tov);
104  g_msg->Warn("Next Crop ", (double)almassnum); // this causes exit
105  }
106  else {
107  d1 = g_date->OldDays() + 365 + m_first_date; // Add 365 for spring crop
108  if (g_date->Date() > d1) {
109  // Yes too late - should not happen - raise an error
110  g_msg->Warn(WARN_BUG, "PLFodderLucerne2::Do(): ", "Crop start attempt after last possible start date");
111  g_msg->Warn(WARN_BUG, "Previous Crop ", "");
113  int almassnum = m_field->GetLandscape()->BackTranslateVegTypes(m_ev->m_next_tov);
114  g_msg->Warn("Next Crop ", (double)almassnum); // this causes exit
115  }
116  }
117  }
118  else {
120  break;
121  }
122  }//if
123 
124  // End single block date checking code. Please see next line comment as well.
125  // Reinit d1 to first possible starting date.
126 
127 
128  d1 = g_date->OldDays() + g_date->DayInYear(1, 3);
129  if (g_date->Date() >= d1) d1 += 365;
131  break;
132  }
133  break;
134 
135  // This is the first real farm operation
137  if ((m_ev->m_lock) || m_farm->DoIt(50))
138  {
139  if (!m_farm->ShallowHarrow(m_field, 0.0, g_date->DayInYear(31, 3) - g_date->DayInYear())) {
141  break;
142  }
143  }
144  d1 = g_date->Date() + 1;
145  if (d1 < g_date->OldDays() + g_date->DayInYear(5, 3)) {
146  d1 = g_date->OldDays() + g_date->DayInYear(5, 3);
147  }
148  if (m_farm->IsStockFarmer()) //Stock Farmer
149  {
151  }
152  else SimpleEvent_(d1, pl_fl2_ferti_p0, false, m_farm, m_field);
153  break;
154  case pl_fl2_ferti_p0:
155  if (m_ev->m_lock || m_farm->DoIt(66))
156  {
157  if (!m_farm->FP_PK(m_field, 0.0, g_date->DayInYear(20, 4) - g_date->DayInYear())) {
159  break;
160  }
161  }
163  break;
164  case pl_fl2_ferti_s0:
165  if (m_ev->m_lock || m_farm->DoIt(66))
166  {
167  if (!m_farm->FA_PK(m_field, 0.0, g_date->DayInYear(20, 4) - g_date->DayInYear())) {
169  break;
170  }
171  }
173  break;
174  case pl_fl2_herbicide1:
175  if (m_ev->m_lock || m_farm->DoIt(31))
176  {
177  if (!m_farm->HerbicideTreat(m_field, 0.0, g_date->DayInYear(10, 5) - g_date->DayInYear())) {
179  break;
180  }
181  }
182  // 70% of farmers will do cutting 4 times, the rest only 3 times
183  if (m_farm->DoIt(70))
184  {
186  }
187  else
188  {
190  }
191  break;
193  // Here comes cutting with 3 cutting events
194  if (!m_farm->CutToSilage(m_field, 0.0, g_date->DayInYear(15, 6) - g_date->DayInYear())) {
196  break;
197  }
199  break;
200  case pl_fl2_harrow1A:
201  if (m_ev->m_lock || m_farm->DoIt(33))
202  {
203  if (!m_farm->ShallowHarrow(m_field, 0.0, g_date->DayInYear(15, 6) - g_date->DayInYear())) {
205  break;
206  }
207  }
208  if (m_farm->IsStockFarmer()) //Stock Farmer
209  {
211  }
212  else SimpleEvent_(g_date->Date() + 1, pl_fl2_ferti_p1A, false, m_farm, m_field);
213  break;
214  case pl_fl2_ferti_p1A:
215  if (m_ev->m_lock || m_farm->DoIt(60))
216  {
217  if (!m_farm->FP_PK(m_field, 0.0, g_date->Date() + 10 - g_date->DayInYear())) {
219  break;
220  }
221  }
223  break;
224  case pl_fl2_ferti_s1A:
225  if (m_ev->m_lock || m_farm->DoIt(60))
226  {
227  if (!m_farm->FA_PK(m_field, 0.0, g_date->Date() + 10 - g_date->DayInYear())) {
229  break;
230  }
231  }
233  break;
235  if (!m_farm->CutToSilage(m_field, 0.0, g_date->DayInYear(5, 8) - g_date->DayInYear())) {
237  break;
238  }
240  break;
241  case pl_fl2_harrow2A:
242  if (m_ev->m_lock || m_farm->DoIt(25))
243  {
244  if (!m_farm->ShallowHarrow(m_field, 0.0, g_date->DayInYear(5, 8) - g_date->DayInYear())) {
246  break;
247  }
248  }
250  break;
252  if (!m_farm->CutToSilage(m_field, 0.0, g_date->DayInYear(25, 9) - g_date->DayInYear())) {
254  break;
255  }
256  done = true;
257  // So we are done, and somwhere else the farmer will queue up the start event of the next crop
258  // END of MAIN THREAD
259  break;
261  // Here comes cutting with 4 cutting events
262  if (!m_farm->CutToSilage(m_field, 0.0, g_date->DayInYear(5, 6) - g_date->DayInYear())) {
264  break;
265  }
267  break;
268  case pl_fl2_harrow1B:
269  if (m_ev->m_lock || m_farm->DoIt(33))
270  {
271  if (!m_farm->ShallowHarrow(m_field, 0.0, g_date->DayInYear(5, 6) - g_date->DayInYear())) {
273  break;
274  }
275  }
276  if (m_farm->IsStockFarmer()) //Stock Farmer
277  {
279  }
280  else SimpleEvent_(g_date->Date() + 1, pl_fl2_ferti_p1B, false, m_farm, m_field);
281  break;
282  case pl_fl2_ferti_p1B:
283  if (m_ev->m_lock || m_farm->DoIt(60))
284  {
285  if (!m_farm->FP_PK(m_field, 0.0, g_date->Date() + 10 - g_date->DayInYear())) {
287  break;
288  }
289  }
291  break;
292  case pl_fl2_ferti_s1B:
293  if (m_ev->m_lock || m_farm->DoIt(60))
294  {
295  if (!m_farm->FA_PK(m_field, 0.0, g_date->Date() + 10 - g_date->DayInYear())) {
297  break;
298  }
299  }
301  break;
303  if (!m_farm->CutToSilage(m_field, 0.0, g_date->DayInYear(15, 7) - g_date->DayInYear())) {
305  break;
306  }
308  break;
309  case pl_fl2_harrow2B:
310  if (m_ev->m_lock || m_farm->DoIt(25))
311  {
312  if (!m_farm->ShallowHarrow(m_field, 0.0, g_date->DayInYear(15, 7) - g_date->DayInYear())) {
314  break;
315  }
316  }
318  break;
320  if (!m_farm->CutToSilage(m_field, 0.0, g_date->DayInYear(25, 8) - g_date->DayInYear())) {
322  break;
323  }
325  break;
326 
327 
328  case pl_fl2_harrow3B:
329  if (m_ev->m_lock || m_farm->DoIt(25))
330  {
331  if (!m_farm->ShallowHarrow(m_field, 0.0, g_date->DayInYear(25, 8) - g_date->DayInYear())) {
333  break;
334  }
335  }
337  break;
339  if (!m_farm->CutToSilage(m_field, 0.0, g_date->DayInYear(5, 10) - g_date->DayInYear())) {
341  break;
342  }
343  done = true;
344  // So we are done, and somwhere else the farmer will queue up the start event of the next crop
345  // END of MAIN THREAD
346  break;
347  default:
348  g_msg->Warn(WARN_BUG, "PLFodderLucerne2::Do(): "
349  "Unknown event type! ", "");
350  exit(1);
351  }
352  return done;
353 }

References LE::ClearManagementActionSum(), Farm::CutToSilage(), Calendar::Date(), Calendar::DayInYear(), Farm::DoIt(), Farm::FA_PK(), Farm::FP_PK(), g_date, g_msg, LE::GetOwner(), LE::GetPoly(), Farm::GetPreviousTov(), LE::GetRotIndex(), Farm::GetType(), Calendar::GetYearNumber(), Farm::HerbicideTreat(), Farm::IsStockFarmer(), Crop::m_ev, Crop::m_farm, Crop::m_field, Crop::m_first_date, FarmEvent::m_first_year, FarmEvent::m_lock, FarmEvent::m_next_tov, FarmEvent::m_startday, FarmEvent::m_todo, Calendar::OldDays(), pl_fl2_cut_to_silage1A, pl_fl2_cut_to_silage1B, pl_fl2_cut_to_silage2A, pl_fl2_cut_to_silage2B, pl_fl2_cut_to_silage3A, pl_fl2_cut_to_silage3B, pl_fl2_cut_to_silage4B, pl_fl2_ferti_p0, pl_fl2_ferti_p1A, pl_fl2_ferti_p1B, pl_fl2_ferti_s0, pl_fl2_ferti_s1A, pl_fl2_ferti_s1B, pl_fl2_harrow1A, pl_fl2_harrow1B, pl_fl2_harrow2A, pl_fl2_harrow2B, pl_fl2_harrow3B, pl_fl2_herbicide1, pl_fl2_spring_harrow, pl_fl2_start, Farm::ShallowHarrow(), Crop::SimpleEvent_(), tof_OptimisingFarm, tov_PLFodderLucerne2, MapErrorMsg::Warn(), and WARN_BUG.

◆ SetUpFarmCategoryInformation()

void PLFodderLucerne2::SetUpFarmCategoryInformation ( )
inline
78  {
79  const int elements = 2 + (pl_fl2_foobar - PLFODDERLUCERNE2_BASE);
81 
82  FarmManagementCategory catlist[elements] =
83  {
84  fmc_Others, // zero element unused but must be here
85  fmc_Others,//pl_fl2_start = 1, // Compulsory, must always be 1 (one).
86  fmc_Others,//pl_fl2_sleep_all_day = PLFODDERLUCERNE2_BASE,
87  fmc_Cultivation,//pl_fl2_spring_harrow,
88  fmc_Fertilizer,//pl_fl2_ferti_p0,
89  fmc_Fertilizer,//pl_fl2_ferti_s0,
90  fmc_Herbicide,//pl_fl2_herbicide1,
91  fmc_Cutting,//pl_fl2_cut_to_silage1A,
92  fmc_Cultivation,//pl_fl2_harrow1A,
93  fmc_Fertilizer,//pl_fl2_ferti_p1A,
94  fmc_Fertilizer,//pl_fl2_ferti_s1A,
95  fmc_Cutting,//pl_fl2_cut_to_silage2A,
96  fmc_Cultivation,//pl_fl2_harrow2A,
97  fmc_Cutting,//pl_fl2_cut_to_silage3A,
98  fmc_Cutting,//pl_fl2_cut_to_silage1B,
99  fmc_Cultivation,//pl_fl2_harrow1B,
100  fmc_Fertilizer,//pl_fl2_ferti_p1B,
101  fmc_Fertilizer,//pl_fl2_ferti_s1B,
102  fmc_Cutting,//pl_fl2_cut_to_silage2B,
103  fmc_Cultivation,//pl_fl2_harrow2B,
104  fmc_Cutting,//pl_fl2_cut_to_silage3B,
105  fmc_Cultivation,//pl_fl2_harrow3B,
106  fmc_Cutting//pl_fl2_cut_to_silage4B,y
107 
108  };
109  // Iterate over the catlist elements and copy them to vector
110  copy(begin(catlist), end(catlist), back_inserter(m_ManagementCategories));
111 
112  }

References fmc_Cultivation, fmc_Cutting, fmc_Fertilizer, fmc_Herbicide, fmc_Others, Crop::m_base_elements_no, Crop::m_ManagementCategories, pl_fl2_foobar, and PLFODDERLUCERNE2_BASE.

Referenced by PLFodderLucerne2().


The documentation for this class was generated from the following files:
pl_fl2_cut_to_silage3A
Definition: PLFodderLucerne2.h:44
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
PLFodderLucerne2::SetUpFarmCategoryInformation
void SetUpFarmCategoryInformation()
Definition: PLFodderLucerne2.h:78
pl_fl2_harrow1B
Definition: PLFodderLucerne2.h:46
pl_fl2_harrow2B
Definition: PLFodderLucerne2.h:50
FarmEvent::m_lock
bool m_lock
Definition: Farm.h:384
pl_fl2_ferti_p1B
Definition: PLFodderLucerne2.h:47
LE::ClearManagementActionSum
void ClearManagementActionSum()
clears the management action counters
Definition: Elements.h:247
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
bool DoIt(double a_probability)
Return chance out of 0 to 100.
Definition: Farm.cpp:856
Calendar::GetYearNumber
int GetYearNumber(void)
Definition: Calendar.h:72
FarmEvent::m_first_year
bool m_first_year
Definition: Farm.h:386
LE::GetPoly
int GetPoly(void)
Returns the polyref number for this polygon.
Definition: Elements.h:238
g_date
class Calendar * g_date
Definition: Calendar.cpp:37
fmc_Herbicide
Definition: LandscapeFarmingEnums.h:1006
Farm::GetPreviousTov
TTypesOfVegetation GetPreviousTov(int a_index)
Definition: Farm.h:966
pl_fl2_spring_harrow
Definition: PLFodderLucerne2.h:34
Farm::GetType
TTypesOfFarm GetType(void)
Definition: Farm.h:956
Crop::m_base_elements_no
int m_base_elements_no
Definition: Farm.h:505
pl_fl2_cut_to_silage2A
Definition: PLFodderLucerne2.h:42
pl_fl2_start
Definition: PLFodderLucerne2.h:32
Crop::m_first_date
int m_first_date
Definition: Farm.h:501
FarmEvent::m_startday
int m_startday
Definition: Farm.h:385
Farm::FP_PK
virtual bool FP_PK(LE *a_field, double a_user, int a_days)
Apply PK fertilizer, on a_field owned by an arable farmer.
Definition: FarmFuncs.cpp:673
pl_fl2_cut_to_silage4B
Definition: PLFodderLucerne2.h:53
fmc_Cutting
Definition: LandscapeFarmingEnums.h:1009
pl_fl2_ferti_p1A
Definition: PLFodderLucerne2.h:40
fmc_Fertilizer
Definition: LandscapeFarmingEnums.h:1004
Calendar::Date
long Date(void)
Definition: Calendar.h:57
pl_fl2_foobar
Definition: PLFodderLucerne2.h:54
pl_fl2_cut_to_silage1B
Definition: PLFodderLucerne2.h:45
fmc_Cultivation
Definition: LandscapeFarmingEnums.h:1008
pl_fl2_harrow2A
Definition: PLFodderLucerne2.h:43
fmc_Others
Definition: LandscapeFarmingEnums.h:1003
Calendar::OldDays
long OldDays(void)
Definition: Calendar.h:60
pl_fl2_ferti_p0
Definition: PLFodderLucerne2.h:35
MapErrorMsg::Warn
void Warn(MapErrorState a_level, std::string a_msg1, std::string a_msg2)
Definition: MapErrorMsg.cpp:69
LE::GetRotIndex
int GetRotIndex(void)
Definition: Elements.h:373
pl_fl2_ferti_s1B
Definition: PLFodderLucerne2.h:48
pl_fl2_harrow3B
Definition: PLFodderLucerne2.h:52
PLFODDERLUCERNE2_BASE
#define PLFODDERLUCERNE2_BASE
Definition: PLFodderLucerne2.h:24
FarmEvent::m_next_tov
TTypesOfVegetation m_next_tov
Definition: Farm.h:390
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
pl_fl2_ferti_s0
Definition: PLFodderLucerne2.h:36
FarmEvent::m_todo
int m_todo
Definition: Farm.h:388
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
tof_OptimisingFarm
Definition: LandscapeFarmingEnums.h:696
g_msg
MapErrorMsg * g_msg
Definition: MapErrorMsg.cpp:41
pl_fl2_cut_to_silage2B
Definition: PLFodderLucerne2.h:49
TTypesOfVegetation
TTypesOfVegetation
Values that represent the types of vegetation that are represented in ALMaSS.
Definition: LandscapeFarmingEnums.h:192
pl_fl2_ferti_s1A
Definition: PLFodderLucerne2.h:41
pl_fl2_harrow1A
Definition: PLFodderLucerne2.h:39
pl_fl2_cut_to_silage1A
Definition: PLFodderLucerne2.h:38
LE::GetOwner
Farm * GetOwner(void)
Definition: Elements.h:256
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
Farm::FA_PK
virtual bool FA_PK(LE *a_field, double a_user, int a_days)
Apply PK fertilizer to a_field owned by an stock farmer.
Definition: FarmFuncs.cpp:1010
pl_fl2_herbicide1
Definition: PLFodderLucerne2.h:37
tov_PLFodderLucerne2
Definition: LandscapeFarmingEnums.h:244
Crop::m_ev
FarmEvent * m_ev
Definition: Farm.h:500
pl_fl2_cut_to_silage3B
Definition: PLFodderLucerne2.h:51
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