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

NLBeet class
. More...

#include <NLBeet.h>

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

NLBeet class
.

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

◆ NLBeet()

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

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

Member Function Documentation

◆ Do()

bool NLBeet::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 beet.

Reimplemented from Crop.

65 {
66  /******************** This block can be added to the top of all Crop::Do methods ***********************************************/
67  m_farm = a_farm;
68  m_field = a_field;
69  m_ev = a_ev;
70  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).
71  bool flag = false;
72  int d1 = 0;
73  int noDates = 1;
75  int l_nextcropstartdate;
76  /**********************************************To Here *************************************************************************/
77 
78  // Depending what event has occured jump to the correct bit of code
79  switch (m_ev->m_todo)
80  {
81  case nl_be_start:
82  {
83  NL_BE_FUNGI1 = false;
84  NL_BE_HERBI1 = false;
86 
87  m_last_date = g_date->DayInYear(15, 12); // Should match the last flexdate below
88  //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
89  std::vector<std::vector<int>> flexdates(1 + 1, std::vector<int>(2, 0));
90  // Set up the date management stuff
91  // Start and stop dates for all events after harvest
92  flexdates[0][1] = g_date->DayInYear(15, 12); // last possible day of harvest - this is in effect day before the earliest date that a following crop can use
93 
94  flexdates[1][0] = -1; // This date will be moved back as far as necessary and potentially to flexdates 1 (start op 1)
95  flexdates[1][1] = g_date->DayInYear(15, 12); // This date will be moved back as far as necessary and potentially to flexdates 1 (end op 1) - straw chopping
96 
97  // 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
98  int isSpring = 0;
99  if (StartUpCrop(isSpring, flexdates, int(nl_be_spring_sow))) break;
100 
101  // End single block date checking code. Please see next line comment as well.
102  // Reinit d1 to first possible starting date.
103  d1 = g_date->OldDays() + g_date->DayInYear(1, 9) + isSpring;
104  // OK, let's go.
105  if (m_ev->m_forcespring) {
106  int day_num_shift = 365;
107  if (g_date->DayInYear() < 70) day_num_shift = 0;
108  if (m_field->GetSoilType() == 2 || m_field->GetSoilType() == 6) { // on sandy soils (NL ZAND & LOSS)
109  SimpleEvent_(g_date->OldDays() + g_date->DayInYear(1, 3) + day_num_shift, nl_be_spring_plough_sandy, false, m_farm, m_field);
110  }
111  else {
112  if (m_farm->IsStockFarmer()) //Stock Farmer
113  {
114  SimpleEvent_(g_date->OldDays() + g_date->DayInYear(1, 3) + day_num_shift, nl_be_ferti_s1, false, m_farm, m_field);
115  }
116  else SimpleEvent_(g_date->OldDays() + g_date->DayInYear(1, 3) + day_num_shift, nl_be_ferti_p1, false, m_farm, m_field);
117  break;
118  }
119  break;
120  }
121  else {
122  // Here we queue up the first event - this differs depending on whether we have field on snady or clay soils
123  if (m_field->GetSoilType() == 2 || m_field->GetSoilType() == 6) { // on sandy soils (NL ZAND & LOSS)
125  }
127  break;
128  }
129  }
130  break;
131 
132  // This is the first real farm operation
134  if (!m_farm->StubbleHarrowing(m_field, 0.0, g_date->DayInYear(31, 10) - g_date->DayInYear())) {
136  break;
137  }
139  break;
141  if (!m_farm->SpringPlough(m_field, 0.0, g_date->DayInYear(30, 3) - g_date->DayInYear())) {
143  break;
144  }
145  if (m_farm->IsStockFarmer()) //Stock Farmer
146  {
148  }
149  else SimpleEvent_(g_date->Date() + 7, nl_be_ferti_p1, false, m_farm, m_field);
150  break;
152  if (m_ev->m_lock || m_farm->DoIt_prob(0.15))
153  {
154  if (!m_farm->StubbleHarrowing(m_field, 0.0, g_date->DayInYear(31, 12) - g_date->DayInYear())) {
156  break;
157  }
158  }
159  d1 = g_date->Date() + 21;
160  if (d1 < g_date->OldDays() + g_date->DayInYear(15, 10)) {
161  d1 = g_date->OldDays() + g_date->DayInYear(15, 10);
162  }
164  break;
166  if (!m_farm->WinterPlough(m_field, 0.0, g_date->DayInYear(15, 12) - g_date->DayInYear())) {
168  break;
169  }
170  if (m_farm->IsStockFarmer()) //Stock Farmer
171  {
173  }
174  else SimpleEvent_(g_date->OldDays() + g_date->DayInYear(1, 3) + 365, nl_be_ferti_p1, false, m_farm, m_field);
175  break;
176  case nl_be_ferti_p1:
177  if (m_ev->m_lock || m_farm->DoIt_prob(0.60))
178  {
179  if (!m_farm->FP_NPK(m_field, 0.0, g_date->DayInYear(10, 4) - g_date->DayInYear())) {
181  break;
182  }
183  }
185  break;
186  case nl_be_ferti_s1:
187  if (m_ev->m_lock || m_farm->DoIt_prob(0.60))
188  {
189  if (!m_farm->FA_NPK(m_field, 0.0, g_date->DayInYear(10, 4) - g_date->DayInYear())) {
191  break;
192  }
193  }
195  break;
197  if (!m_farm->PreseedingCultivator(m_field, 0.0, g_date->DayInYear(14, 4) - g_date->DayInYear())) {
199  break;
200  }
202  break;
203  case nl_be_spring_sow:
204  if (!m_farm->SpringSow(m_field, 0.0, g_date->DayInYear(15, 4) - g_date->DayInYear())) {
206  break;
207  }
208  // Here is a fork leading to four parallel events
209  SimpleEvent_(g_date->Date() + 5, nl_be_herbicide1, false, m_farm, m_field); // Herbicide thread
210  SimpleEvent_(g_date->OldDays() + g_date->DayInYear(1, 7), nl_be_fungicide1, false, m_farm, m_field); // Fungicide thread = MAIN THREAD
211  if (m_farm->IsStockFarmer()) //Stock Farmer
212  {
213  SimpleEvent_(g_date->OldDays() + g_date->DayInYear(15, 4), nl_be_ferti_s2, false, m_farm, m_field); // Fertilizers thread
214  }
216  break;
217  case nl_be_ferti_p2:
218  // Here comes fertilizers thread
219  if (m_field->GetGreenBiomass() <= 0) {
221  }
222  else
223  {
224  if (!m_farm->FP_AmmoniumSulphate(m_field, 0.0, g_date->DayInYear(15, 5) - g_date->DayInYear())) {
226  break;
227  }
228  }
229  // End of thread
230  break;
231  case nl_be_ferti_s2:
232  if (m_field->GetGreenBiomass() <= 0) {
234  break;
235  }
236  else
237  {
238  if (!m_farm->FA_AmmoniumSulphate(m_field, 0.0, g_date->DayInYear(15, 5) - g_date->DayInYear())) {
240  break;
241  }
242  }
243  // End of thread
244  break;
245  case nl_be_herbicide1: // The first of the pesticide managements.
246  // Here comes the herbicide thread
247  // We assume that farmers do max 3 herbicide treatments
248  if (m_field->GetGreenBiomass() <= 0)
249  {
250  if (m_ev->m_lock || m_farm->DoIt_prob(0.75))
251  {
252  if (!m_farm->HerbicideTreat(m_field, 0.0, g_date->DayInYear(20, 4) - g_date->DayInYear())) {
254  break;
255  }
256  NL_BE_HERBI1 = true;
257  }
259  break;
260  }
262  break;
263  case nl_be_herbicide2:
264  if (m_field->GetGreenBiomass() <= 0) {
266  }
267  else
268  {
269  if (!m_farm->HerbicideTreat(m_field, 0.0, g_date->DayInYear(30, 4) - g_date->DayInYear())) {
271  break;
272  }
274  break;
275  }
276  break;
277  case nl_be_herbicide3:
278  if (!m_farm->HerbicideTreat(m_field, 0.0, g_date->DayInYear(15, 5) - g_date->DayInYear())) {
280  break;
281  }
283  break;
284  case nl_be_herbicide4:
285  if (m_ev->m_lock || (m_farm->DoIt_prob(0.20) && (NL_BE_HERBI1 == false)))
286  {
287  if (!m_farm->HerbicideTreat(m_field, 0.0, g_date->DayInYear(30, 5) - g_date->DayInYear())) {
289  break;
290  }
291  }
292  // End of thread
293  break;
294  case nl_be_fungicide1:
295  // Here comes the fungicide thread
296  if (!m_farm->FungicideTreat(m_field, 0.0, g_date->DayInYear(5, 8) - g_date->DayInYear())) {
298  break;
299  }
301  break;
302  case nl_be_fungicide2:
303  if (m_ev->m_lock || m_farm->DoIt_prob(0.75))
304  {
305  if (!m_farm->FungicideTreat(m_field, 0.0, g_date->DayInYear(25, 8) - g_date->DayInYear())) {
307  break;
308  }
309  NL_BE_FUNGI1 = true;
310  }
312  break;
313  case nl_be_fungicide3:
314  if (m_ev->m_lock || (m_farm->DoIt_prob(0.667) && NL_BE_FUNGI1 == 1)) // 50% of all farmers
315  {
316  if (!m_farm->FungicideTreat(m_field, 0.0, g_date->DayInYear(15, 9) - g_date->DayInYear())) {
318  break;
319  }
320  }
322  break;
323  case nl_be_harvest:
324  // Here the MAIN thread continues
325  // We don't move harvest days
326  if (!m_farm->Harvest(m_field, 0.0, m_field->GetMDates(1, 0) - g_date->DayInYear())) {
328  break;
329  }
330  done = true;
331  // So we are done, and somwhere else the farmer will queue up the start event of the next crop
332  // END of MAIN THREAD
333  break;
334  default:
335  g_msg->Warn(WARN_BUG, "NLBeet::Do(): "
336  "Unknown event type! ", "");
337  exit(1);
338  }
339  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
340  return done;
341 }

References LE::ClearManagementActionSum(), Calendar::Date(), Calendar::DayInYear(), Farm::DoIt_prob(), Farm::FA_AmmoniumSulphate(), Farm::FA_NPK(), Farm::FP_AmmoniumSulphate(), Farm::FP_NPK(), Farm::FungicideTreat(), g_date, g_msg, LE::GetGreenBiomass(), LE::GetMDates(), LE::GetSoilType(), Farm::Harvest(), 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_be_ferti_p1, nl_be_ferti_p2, nl_be_ferti_s1, nl_be_ferti_s2, NL_BE_FUNGI1, nl_be_fungicide1, nl_be_fungicide2, nl_be_fungicide3, nl_be_harvest, NL_BE_HERBI1, nl_be_herbicide1, nl_be_herbicide2, nl_be_herbicide3, nl_be_herbicide4, nl_be_preseeding_cultivator, nl_be_spring_plough_sandy, nl_be_spring_sow, nl_be_start, nl_be_stubble_harrow_clay, nl_be_stubble_harrow_sandy, nl_be_winter_plough_clay, Calendar::OldDays(), Farm::PreseedingCultivator(), Crop::SimpleEvent_(), Farm::SpringPlough(), Farm::SpringSow(), Crop::StartUpCrop(), Farm::StubbleHarrowing(), tov_NLBeet, MapErrorMsg::Warn(), WARN_BUG, and Farm::WinterPlough().

◆ SetUpFarmCategoryInformation()

void NLBeet::SetUpFarmCategoryInformation ( )
inline
83  {
84  const int elements = 2 + (nl_be_foobar - NLBEET_BASE);
86 
87  FarmManagementCategory catlist[elements] =
88  {
89  fmc_Others, // zero element unused but must be here
90  fmc_Others,//nl_be_start = 1, // Compulsory, must always be 1 (one).
91  fmc_Others,//nl_be_sleep_all_day = NLBEET_BASE,
92  fmc_Cultivation,//nl_be_stubble_harrow_sandy,
93  fmc_Cultivation,//nl_be_spring_plough_sandy,
94  fmc_Cultivation,//nl_be_stubble_harrow_clay,
95  fmc_Cultivation,//nl_be_winter_plough_clay,
96  fmc_Fertilizer,//nl_be_ferti_p1,
97  fmc_Fertilizer,//nl_be_ferti_s1,
98  fmc_Cultivation,//nl_be_preseeding_cultivator,
99  fmc_Others,//nl_be_spring_sow,
100  fmc_Fertilizer,//nl_be_ferti_p2,
101  fmc_Fertilizer,//nl_be_ferti_s2,
102  fmc_Herbicide,//nl_be_herbicide1,
103  fmc_Herbicide,//nl_be_herbicide2,
104  fmc_Herbicide,//nl_be_herbicide3,
105  fmc_Herbicide,//nl_be_herbicide4,
106  fmc_Fungicide,//nl_be_fungicide1,
107  fmc_Fungicide,//nl_be_fungicide2,
108  fmc_Fungicide,//nl_be_fungicide3,
109  fmc_Harvest //nl_be_harvest
110  };
111  // Iterate over the catlist elements and copy them to vector
112  copy(begin(catlist), end(catlist), back_inserter(m_ManagementCategories));
113 
114  }

References fmc_Cultivation, fmc_Fertilizer, fmc_Fungicide, fmc_Harvest, fmc_Herbicide, fmc_Others, Crop::m_base_elements_no, Crop::m_ManagementCategories, nl_be_foobar, and NLBEET_BASE.

Referenced by NLBeet().


The documentation for this class was generated from the following files:
LE::GetMDates
int GetMDates(int a, int b)
Definition: Elements.h:405
nl_be_ferti_s2
Definition: NLBeet.h:49
FarmEvent::m_forcespring
bool m_forcespring
Definition: Farm.h:392
nl_be_stubble_harrow_sandy
Definition: NLBeet.h:40
NLBeet::SetUpFarmCategoryInformation
void SetUpFarmCategoryInformation()
Definition: NLBeet.h:83
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::SpringPlough
virtual bool SpringPlough(LE *a_field, double a_user, int a_days)
Carry out a ploughing event in the spring on a_field.
Definition: FarmFuncs.cpp:421
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::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::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::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
nl_be_preseeding_cultivator
Definition: NLBeet.h:46
nl_be_fungicide3
Definition: NLBeet.h:56
Crop::m_base_elements_no
int m_base_elements_no
Definition: Farm.h:505
nl_be_spring_plough_sandy
Definition: NLBeet.h:41
nl_be_ferti_p2
Definition: NLBeet.h:48
nl_be_herbicide2
Definition: NLBeet.h:51
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
nl_be_ferti_s1
Definition: NLBeet.h:45
NL_BE_FUNGI1
#define NL_BE_FUNGI1
Definition: NLBeet.h:29
nl_be_stubble_harrow_clay
Definition: NLBeet.h:42
fmc_Fertilizer
Definition: LandscapeFarmingEnums.h:1004
Calendar::Date
long Date(void)
Definition: Calendar.h:57
Farm::FP_AmmoniumSulphate
virtual bool FP_AmmoniumSulphate(LE *a_field, double a_user, int a_days)
Apply Ammonium Sulphate to a_field owned by an arable farmer.
Definition: FarmFuncs.cpp:882
nl_be_ferti_p1
Definition: NLBeet.h:44
fmc_Cultivation
Definition: LandscapeFarmingEnums.h:1008
LE::GetSoilType
int GetSoilType()
Definition: Elements.h:302
fmc_Others
Definition: LandscapeFarmingEnums.h:1003
Calendar::OldDays
long OldDays(void)
Definition: Calendar.h:60
NL_BE_HERBI1
#define NL_BE_HERBI1
A flag used to indicate autumn ploughing status.
Definition: NLBeet.h:28
tov_NLBeet
Definition: LandscapeFarmingEnums.h:251
MapErrorMsg::Warn
void Warn(MapErrorState a_level, std::string a_msg1, std::string a_msg2)
Definition: MapErrorMsg.cpp:69
nl_be_fungicide1
Definition: NLBeet.h:54
nl_be_fungicide2
Definition: NLBeet.h:55
nl_be_harvest
Definition: NLBeet.h:57
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_be_herbicide4
Definition: NLBeet.h:53
Crop::m_farm
Farm * m_farm
Definition: Farm.h:498
Crop::m_field
LE * m_field
Definition: Farm.h:499
Crop::m_ManagementCategories
vector< FarmManagementCategory > m_ManagementCategories
Holds the translation between the farm operation enum for each crop and the farm management category ...
Definition: Farm.h:530
FarmEvent::m_todo
int m_todo
Definition: Farm.h:388
LE::GetGreenBiomass
virtual double GetGreenBiomass(void)
Definition: Elements.h:160
nl_be_herbicide3
Definition: NLBeet.h:52
Crop::m_last_date
int m_last_date
Definition: Farm.h:503
g_msg
MapErrorMsg * g_msg
Definition: MapErrorMsg.cpp:41
Farm::FA_AmmoniumSulphate
virtual bool FA_AmmoniumSulphate(LE *a_field, double a_user, int a_days)
Apply ammonium sulphate to a_field owned by an stock farmer.
Definition: FarmFuncs.cpp:1081
nl_be_winter_plough_clay
Definition: NLBeet.h:43
TTypesOfVegetation
TTypesOfVegetation
Values that represent the types of vegetation that are represented in ALMaSS.
Definition: LandscapeFarmingEnums.h:192
nl_be_spring_sow
Definition: NLBeet.h:47
nl_be_start
Definition: NLBeet.h:38
nl_be_herbicide1
Definition: NLBeet.h:50
fmc_Harvest
Definition: LandscapeFarmingEnums.h:1012
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_be_foobar
Definition: NLBeet.h:58
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
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
WARN_BUG
Definition: MapErrorMsg.h:34
fmc_Fungicide
Definition: LandscapeFarmingEnums.h:1007
NLBEET_BASE
#define NLBEET_BASE
Definition: NLBeet.h:24
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