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

#include <DK_OVegSeeds.h>

Inheritance diagram for DK_OVegSeeds:
Crop

Public Member Functions

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

DK_OVegSeeds::DK_OVegSeeds ( TTypesOfVegetation  a_tov,
TTypesOfCrops  a_toc,
Landscape a_L 
)
inline
71  : Crop(a_tov, a_toc, a_L)
72  {
73  m_first_date = g_date->DayInYear(30, 11);
75  }

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

Member Function Documentation

◆ Do()

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

Reimplemented from Crop.

33 {
34  m_farm = a_farm;
35  m_field = a_field;
36  m_ev = a_ev;
37  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).
38  bool flag = false;
39  int d1 = 0;
40  int noDates = 1;
41  TTypesOfVegetation l_tov = tov_DKOVegSeeds; // made from guideline for spinach seeds
42 
43  switch (m_ev->m_todo) {
44  case dk_ovs_start:
45  {
46  a_field->ClearManagementActionSum();
47 
48  DK_OVS_FORCESPRING = false;
49 
50  m_last_date = g_date->DayInYear(31, 8); // Should match the last flexdate below
51  //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
52  std::vector<std::vector<int>> flexdates(1 + 1, std::vector<int>(2, 0));
53  // Set up the date management stuff
54  // Start and stop dates for all events after harvest
55  flexdates[0][1] = g_date->DayInYear(14, 8); // last possible day
56  // Now these are done in pairs, start & end for each operation. If its not used then -1
57  flexdates[1][0] = -1; // This date will be moved back as far as necessary and potentially to flexdates 1 (start op 1)
58  flexdates[1][1] = g_date->DayInYear(31, 8); // This date will be moved back as far as necessary and potentially to flexdates 1 (end op 1)
59 
60  // 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
61  int isSpring = 0;
62  if (StartUpCrop(isSpring, flexdates, int(dk_ovs_molluscicide))) break;
63 
64  // End single block date checking code. Please see next line comment as well.
65  // Reinit d1 to first possible starting date.
66  d1 = g_date->OldDays() + g_date->DayInYear(1, 10);
67  // OK, let's go.
68  // Here we queue up the first event which changes dependent on whether it is a forced spring sow or not
69  if (m_ev->m_forcespring) {
70  int day_num_shift = 365;
71  if (g_date->DayInYear() < 70) day_num_shift = 0;
72  SimpleEvent(g_date->OldDays() + g_date->DayInYear(1, 2) + day_num_shift, dk_ovs_molluscicide, false);
73  DK_OVS_FORCESPRING = true;
74  break;
75  }
76  else SimpleEvent(d1, dk_ovs_autumn_plough, false);
77  break;
78  }
79  break;
80 
82  if (m_ev->m_lock || m_farm->DoIt_prob(1.00)) {
83  if (!m_farm->AutumnPlough(m_field, 0.0, g_date->DayInYear(30, 11) - g_date->DayInYear())) {
85  break;
86  }
87  }
88  SimpleEvent(g_date->OldDays() + g_date->DayInYear(1, 2) + 365, dk_ovs_molluscicide, false);
89  break;
90 
92  if (m_ev->m_lock || m_farm->DoIt_prob(0.10)) {
93  if (!m_farm->Molluscicide(m_field, 0.0, g_date->DayInYear(28, 3) - g_date->DayInYear())) {
95  break;
96  }
97  }
98  SimpleEvent(g_date->Date() + 1, dk_ovs_harrow1, false);
99  break;
100 
101  case dk_ovs_harrow1:
102  if (m_ev->m_lock || m_farm->DoIt_prob(1.0)) {
103  if (!m_farm->SpringHarrow(m_field, 0.0, g_date->DayInYear(29, 3) - g_date->DayInYear())) {
104  SimpleEvent(g_date->Date() + 1, dk_ovs_harrow1, true);
105  break;
106  }
107  }
108  SimpleEvent(g_date->Date() + 1, dk_ovs_harrow2, false);
109  break;
110 
111  case dk_ovs_harrow2:
112  if (m_ev->m_lock || m_farm->DoIt_prob(1.0)) {
113  if (!m_farm->SpringHarrow(m_field, 0.0, g_date->DayInYear(31, 3) - g_date->DayInYear())) {
114  SimpleEvent(g_date->Date() + 1, dk_ovs_harrow2, true);
115  break;
116  }
117  }
119  break;
120 
121  case dk_ovs_ferti_s: // if stock farmer
122  if (a_farm->IsStockFarmer()) {
123  if (m_ev->m_lock || m_farm->DoIt_prob(1.0)) {
124  if (!m_farm->FA_NPKS(m_field, 0.0, g_date->DayInYear(25, 4) - g_date->DayInYear())) {
125  SimpleEvent(g_date->Date() + 1, dk_ovs_ferti_s, true);
126  break;
127  }
128  }
130  break;
131  }
133  break;
134 
135  case dk_ovs_ferti_p: // if arable farmer
136  if (m_ev->m_lock || m_farm->DoIt_prob(1.0)) {
137  if (!m_farm->FP_NPKS(m_field, 0.0, g_date->DayInYear(25, 4) - g_date->DayInYear())) {
138  SimpleEvent(g_date->Date() + 1, dk_ovs_ferti_p, true);
139  break;
140  }
141  }
143  break;
144 
146  if (m_ev->m_lock || m_farm->DoIt_prob(1.0)) {
147  if (!m_farm->SpringPlough(m_field, 0.0, g_date->DayInYear(29, 4) - g_date->DayInYear())) {
149  break;
150  }
151  }
153  break;
154 
156  if (m_ev->m_lock || m_farm->DoIt_prob(1.0)) {
159  break;
160  }
161  }
162  SimpleEvent(g_date->Date() + 2, dk_ovs_strigling1, false); // herbi thread
163  SimpleEvent(g_date->Date() + 14, dk_ovs_row_cultivation1, false); // row cultivation thread
164  SimpleEvent(g_date->Date() + 30, dk_ovs_manganese, false); // Manganese thread
165  SimpleEvent(g_date->OldDays() + g_date->DayInYear(1, 6), dk_ovs_water, false); // main thread
166  break;
167 
168  case dk_ovs_strigling1:
169  if (m_ev->m_lock || m_farm->DoIt_prob(1.0)) {
170  if (!m_farm->Strigling(m_field, 0.0, g_date->DayInYear(7, 5) - g_date->DayInYear())) {
171  SimpleEvent(g_date->Date() + 1, dk_ovs_strigling1, true);
172  break;
173  }
174  }
175  SimpleEvent(g_date->Date() + 5, dk_ovs_strigling2, false);
176  break;
177 
178  case dk_ovs_strigling2:
179  if (m_ev->m_lock || m_farm->DoIt_prob(1.0)) {
180  if (!m_farm->Strigling(m_field, 0.0, g_date->DayInYear(13, 5) - g_date->DayInYear())) {
181  SimpleEvent(g_date->Date() + 1, dk_ovs_strigling2, true);
182  break;
183  }
184  }
185  break; // end of thread
186 
188  if (m_ev->m_lock || m_farm->DoIt_prob(1.0)) {
189  if (!m_farm->RowCultivation(m_field, 0.0, g_date->DayInYear(15, 5) - g_date->DayInYear())) {
191  break;
192  }
193  }
195  break;
196 
198  if (m_ev->m_lock || m_farm->DoIt_prob(1.0)) {
199  if (!m_farm->RowCultivation(m_field, 0.0, g_date->DayInYear(30, 5) - g_date->DayInYear())) {
201  break;
202  }
203  }
205  break;
206 
208  if (m_ev->m_lock || m_farm->DoIt_prob(1.0)) {
209  if (!m_farm->RowCultivation(m_field, 0.0, g_date->DayInYear(15, 6) - g_date->DayInYear())) {
211  break;
212  }
213  }
214  break; // end of thread
215 
216  case dk_ovs_manganese:
217  if (m_ev->m_lock || m_farm->DoIt_prob(1.0)) {
218  if (!m_farm->FP_ManganeseSulphate(m_field, 0.0, g_date->DayInYear(15, 6) - g_date->DayInYear())) {
219  SimpleEvent(g_date->Date() + 1, dk_ovs_manganese, true);
220  break;
221  }
222  }
223  break; // end of thread
224 
225  case dk_ovs_water:
226  if (m_field->GetSoilType() == tos_Sand || m_field->GetSoilType() == tos_LoamySand || m_field->GetSoilType() == tos_SandyLoam || m_field->GetSoilType() == tos_SandyClayLoam) // on sandy soils (NL ZAND & LOSS)
227  {
228  if (m_ev->m_lock || m_farm->DoIt_prob(0.5)) {
229  if (!m_farm->Water(m_field, 0.0, g_date->DayInYear(1, 7) - g_date->DayInYear())) {
230  SimpleEvent(g_date->Date() + 1, dk_ovs_water, true);
231  break;
232  }
233  }
234  }
236  break;
237 
238  case dk_ovs_swathing:
239  if (m_ev->m_lock || m_farm->DoIt_prob(0.90)) {
240  if (!m_farm->Swathing(m_field, 0.0, m_field->GetMDates(1, 0) - g_date->DayInYear())) {
241  SimpleEvent(g_date->Date() + 1, dk_ovs_swathing, true);
242  break;
243  }
244  }
245  SimpleEvent(g_date->Date() + 14, dk_ovs_harvest, false); // main thread
246  break;
247 
248  case dk_ovs_harvest:
249  if (m_ev->m_lock || m_farm->DoIt_prob(1.0)) {
250  if (!m_farm->Harvest(m_field, 0.0, m_field->GetMDates(1, 1) - g_date->DayInYear())) {
251  SimpleEvent(g_date->Date() + 1, dk_ovs_harvest, true);
252  break;
253  }
254  }
255  done = true;
256  break;
257 
258  default:
259  g_msg->Warn(WARN_BUG, "DK_OVegSeeds::Do(): "
260  "Unknown event type! ", "");
261  exit(1);
262  }
263 
264  return done;
265 }

References Farm::AutumnPlough(), LE::ClearManagementActionSum(), Calendar::Date(), Calendar::DayInYear(), dk_ovs_autumn_plough, dk_ovs_ferti_p, dk_ovs_ferti_s, DK_OVS_FORCESPRING, dk_ovs_harrow1, dk_ovs_harrow2, dk_ovs_harvest, dk_ovs_manganese, dk_ovs_molluscicide, dk_ovs_row_cultivation1, dk_ovs_row_cultivation2, dk_ovs_row_cultivation3, dk_ovs_sow_cultivation, dk_ovs_spring_plough, dk_ovs_start, dk_ovs_strigling1, dk_ovs_strigling2, dk_ovs_swathing, dk_ovs_water, Farm::DoIt_prob(), Farm::FA_NPKS(), Farm::FP_ManganeseSulphate(), Farm::FP_NPKS(), g_date, g_msg, LE::GetMDates(), LE::GetSoilType(), Farm::Harvest(), Farm::IsStockFarmer(), Crop::m_ev, Crop::m_farm, Crop::m_field, FarmEvent::m_forcespring, Crop::m_last_date, FarmEvent::m_lock, FarmEvent::m_todo, Farm::Molluscicide(), Calendar::OldDays(), Farm::PreseedingCultivatorSow(), Farm::RowCultivation(), Crop::SimpleEvent(), Farm::SpringHarrow(), Farm::SpringPlough(), Crop::StartUpCrop(), Farm::Strigling(), Farm::Swathing(), tos_LoamySand, tos_Sand, tos_SandyClayLoam, tos_SandyLoam, tov_DKOVegSeeds, MapErrorMsg::Warn(), WARN_BUG, and Farm::Water().

◆ SetUpFarmCategoryInformation()

void DK_OVegSeeds::SetUpFarmCategoryInformation ( )
inline
76  {
77  const int elements = 2 + (dk_ovs_foobar - DK_OVS_BASE);
79 
80  FarmManagementCategory catlist[elements] =
81  {
82  fmc_Others, // zero element unused but must be here
83  fmc_Others, // dk_ovs_start = 1, // Compulsory, start event must always be 1 (one).
84  fmc_Cultivation, // dk_ovs_autumn_plough = DK_OVS_BASE,
85  fmc_Others, // dk_ovs_molluscicide,
86  fmc_Cultivation, // dk_ovs_harrow1,
87  fmc_Cultivation, // dk_ovs_harrow2,
88  fmc_Fertilizer, // dk_ovs_ferti_s,
89  fmc_Fertilizer, // dk_ovs_ferti_p,
90  fmc_Cultivation, // dk_ovs_spring_plough,
91  fmc_Cultivation, // dk_ovs_sow_cultivation,
92  fmc_Cultivation, // dk_ovs_strigling1,
93  fmc_Cultivation, // dk_ovs_strigling2,
94  fmc_Fertilizer, // dk_ovs_manganese,
95  fmc_Cultivation, // dk_ovs_row_cultivation1,
96  fmc_Cultivation, // dk_ovs_row_cultivation2,
97  fmc_Cultivation, // dk_ovs_row_cultivation3,
98  fmc_Watering, // dk_ovs_water,
99  fmc_Cutting, // dk_ovs_swathing,
100  fmc_Harvest, // dk_ovs_harvest,
101  };
102  // Iterate over the catlist elements and copy them to vector
103  copy(begin(catlist), end(catlist), back_inserter(m_ManagementCategories));
104  }

References DK_OVS_BASE, dk_ovs_foobar, fmc_Cultivation, fmc_Cutting, fmc_Fertilizer, fmc_Harvest, fmc_Others, fmc_Watering, Crop::m_base_elements_no, and Crop::m_ManagementCategories.

Referenced by DK_OVegSeeds().


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_ovs_sow_cultivation
Definition: DK_OVegSeeds.h:52
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
dk_ovs_water
Definition: DK_OVegSeeds.h:59
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
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
LE::ClearManagementActionSum
void ClearManagementActionSum()
clears the management action counters
Definition: Elements.h:247
Farm::Molluscicide
virtual bool Molluscicide(LE *a_field, double a_user, int a_days)
Apply molluscicide to a_field.
Definition: FarmFuncs.cpp:2310
tos_SandyClayLoam
Definition: LandscapeFarmingEnums.h:722
DK_OVS_FORCESPRING
#define DK_OVS_FORCESPRING
Definition: DK_OVegSeeds.h:39
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
dk_ovs_row_cultivation1
Definition: DK_OVegSeeds.h:56
dk_ovs_start
Definition: DK_OVegSeeds.h:44
tos_SandyLoam
Definition: LandscapeFarmingEnums.h:721
Farm::FA_NPKS
virtual bool FA_NPKS(LE *a_field, double a_user, int a_days)
Apply NPKS fertilizer, on a_field owned by a stock farmer.
Definition: FarmFuncs.cpp:968
Crop::m_base_elements_no
int m_base_elements_no
Definition: Farm.h:505
Crop::m_first_date
int m_first_date
Definition: Farm.h:501
dk_ovs_harrow2
Definition: DK_OVegSeeds.h:48
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_OVegSeeds::SetUpFarmCategoryInformation
void SetUpFarmCategoryInformation()
Definition: DK_OVegSeeds.h:76
DK_OVS_BASE
#define DK_OVS_BASE
Definition: DK_OVegSeeds.h:41
fmc_Cutting
Definition: LandscapeFarmingEnums.h:1009
fmc_Fertilizer
Definition: LandscapeFarmingEnums.h:1004
Calendar::Date
long Date(void)
Definition: Calendar.h:57
fmc_Cultivation
Definition: LandscapeFarmingEnums.h:1008
LE::GetSoilType
int GetSoilType()
Definition: Elements.h:302
fmc_Others
Definition: LandscapeFarmingEnums.h:1003
fmc_Watering
Definition: LandscapeFarmingEnums.h:1011
Calendar::OldDays
long OldDays(void)
Definition: Calendar.h:60
dk_ovs_spring_plough
Definition: DK_OVegSeeds.h:51
MapErrorMsg::Warn
void Warn(MapErrorState a_level, std::string a_msg1, std::string a_msg2)
Definition: MapErrorMsg.cpp:69
dk_ovs_ferti_p
Definition: DK_OVegSeeds.h:50
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_ovs_row_cultivation2
Definition: DK_OVegSeeds.h:57
dk_ovs_molluscicide
Definition: DK_OVegSeeds.h:46
Crop::m_farm
Farm * m_farm
Definition: Farm.h:498
Crop::m_field
LE * m_field
Definition: Farm.h:499
tov_DKOVegSeeds
Definition: LandscapeFarmingEnums.h:400
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
Farm::PreseedingCultivatorSow
virtual bool PreseedingCultivatorSow(LE *a_field, double a_user, int a_days, double a_seed_coating_amount=-1, PlantProtectionProducts a_ppp=ppp_foobar)
Carry out preseeding cultivation together with sow on a_field (tilling and sowing set including culti...
Definition: FarmFuncs.cpp:325
FarmEvent::m_todo
int m_todo
Definition: Farm.h:388
tos_Sand
Definition: LandscapeFarmingEnums.h:719
dk_ovs_row_cultivation3
Definition: DK_OVegSeeds.h:58
dk_ovs_strigling2
Definition: DK_OVegSeeds.h:54
Farm::RowCultivation
virtual bool RowCultivation(LE *a_field, double a_user, int a_days)
Carry out a harrowing between crop rows on a_field.
Definition: FarmFuncs.cpp:1183
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
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
dk_ovs_strigling1
Definition: DK_OVegSeeds.h:53
TTypesOfVegetation
TTypesOfVegetation
Values that represent the types of vegetation that are represented in ALMaSS.
Definition: LandscapeFarmingEnums.h:192
dk_ovs_autumn_plough
Definition: DK_OVegSeeds.h:45
fmc_Harvest
Definition: LandscapeFarmingEnums.h:1012
dk_ovs_harvest
Definition: DK_OVegSeeds.h:61
dk_ovs_foobar
Definition: DK_OVegSeeds.h:62
Calendar::DayInYear
int DayInYear(void)
Definition: Calendar.h:58
dk_ovs_harrow1
Definition: DK_OVegSeeds.h:47
Crop::Crop
Crop(TTypesOfVegetation a_tov, TTypesOfCrops a_toc, Landscape *a_L)
Definition: Farm.cpp:733
Farm::Swathing
virtual bool Swathing(LE *a_field, double a_user, int a_days)
Cut the crop on a_field and leave it lying (probably rape)
Definition: FarmFuncs.cpp:1350
Crop::m_ev
FarmEvent * m_ev
Definition: Farm.h:500
tos_LoamySand
Definition: LandscapeFarmingEnums.h:720
dk_ovs_ferti_s
Definition: DK_OVegSeeds.h:49
WARN_BUG
Definition: MapErrorMsg.h:34
dk_ovs_manganese
Definition: DK_OVegSeeds.h:55
dk_ovs_swathing
Definition: DK_OVegSeeds.h:60
FarmManagementCategory
FarmManagementCategory
Definition: LandscapeFarmingEnums.h:1001
Farm::SpringHarrow
virtual bool SpringHarrow(LE *a_field, double a_user, int a_days)
Carry out a harrow event in the spring on a_field.
Definition: FarmFuncs.cpp:459
Farm::FP_NPKS
virtual bool FP_NPKS(LE *a_field, double a_user, int a_days)
Apply NPKS fertilizer, on a_field owned by an arable farmer.
Definition: FarmFuncs.cpp:630