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

#include <DK_OMaize.h>

Inheritance diagram for DK_OMaize:
Crop

Public Member Functions

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

DK_OMaize::DK_OMaize ( TTypesOfVegetation  a_tov,
TTypesOfCrops  a_toc,
Landscape a_L 
)
inline
73  : Crop(a_tov, a_toc, a_L)
74  {
75  m_first_date = g_date->DayInYear(1,12);
77  }

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

Member Function Documentation

◆ Do()

bool DK_OMaize::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;
38  int d1;
39  int today = g_date->Date();
41 
42  switch ( m_ev->m_todo ) {
43  case dk_om_start:
44  {
45  a_field->ClearManagementActionSum();
46  DK_OM_FORCESPRING = false;
47  DK_OM_AUTUMN_PLOUGH = false;
48 
49  m_last_date = g_date->DayInYear(1, 10); // Should match the last flexdate below
50  //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
51  std::vector<std::vector<int>> flexdates(1 + 1, std::vector<int>(2, 0));
52  // Set up the date management stuff
53  // Start and stop dates for all events after harvest
54  flexdates[0][1] = g_date->DayInYear(30, 9); // last possible day of 1st harvest
55  // Now these are done in pairs, start & end for each operation. If its not used then -1
56  flexdates[1][0] = -1; // This date will be moved back as far as necessary and potentially to flexdates 1 (start op 1)
57  flexdates[1][1] = g_date->DayInYear(1, 10); // This date will be moved back as far as necessary and potentially to flexdates 1 (end op 1)
58 
59  // 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
60  int isSpring = 0;
61  if (StartUpCrop(isSpring, flexdates, int(dk_om_wait))) break;
62 
63  // End single block date checking code. Please see next line comment as well.
64  // Reinit d1 to first possible starting date.
65  d1 = g_date->OldDays() + g_date->DayInYear(1, 9);
66  // OK, let's go.
67  // Here we queue up the first event which changes dependent on whether it is a forced spring sow or not
68  if (m_ev->m_forcespring) {
69  int day_num_shift = 365;
70  if (g_date->DayInYear() < 70) day_num_shift = 0;
71  SimpleEvent(g_date->OldDays() + g_date->DayInYear(1, 2) + day_num_shift, dk_om_wait, false);
72  DK_OM_FORCESPRING = true;
73  break;
74  }
75  else SimpleEvent(d1, dk_om_autumn_plough, false);
76  }
77  break;
78 
80  if (m_field->GetSoilType() != tos_Sand && m_field->GetSoilType() != tos_LoamySand && m_field->GetSoilType() != tos_SandyLoam && m_field->GetSoilType() != tos_SandyClayLoam) // on clay soils (NL KLEI & VEEN)
81  {
82  if (m_ev->m_lock || m_farm->DoIt_prob(0.85)) { // % + date suggestions
83  if (!m_farm->AutumnPlough(m_field, 0.0,
84  g_date->DayInYear(30, 11) - g_date->DayInYear())) {
86  break;
87  }
88  DK_OM_AUTUMN_PLOUGH = true; // we need to remember the farmers that do autumn plough
89  SimpleEvent(g_date->OldDays() + g_date->DayInYear(1, 2) + 365, dk_om_harrow1, false);
90  break;
91  }
92  }
93  if (a_farm->IsStockFarmer()) {
94  SimpleEvent(g_date->OldDays() + g_date->DayInYear(1, 3) + 365, dk_om_slurry_s, false);
95  break;
96  }
97  else SimpleEvent(g_date->OldDays() + g_date->DayInYear(1, 3) + 365, dk_om_slurry_p, false);
98  break;
99 
100  case dk_om_wait:
101  if (m_field->GetSoilType() != tos_Sand && m_field->GetSoilType() != tos_LoamySand && m_field->GetSoilType() != tos_SandyLoam && m_field->GetSoilType() != tos_SandyClayLoam) // on clay soils (NL KLEI & VEEN)
102  {
103  if (m_ev->m_lock || m_farm->DoIt_prob(0.85)) { // %
104  if (!m_farm->SleepAllDay(m_field, 0.0,
105  g_date->DayInYear(2, 2) - g_date->DayInYear())) {
106  SimpleEvent(g_date->Date() + 1, dk_om_wait, true);
107  break;
108  }
109  DK_OM_AUTUMN_PLOUGH = true;
111  break;
112  // we need to remember the farmers that do autumn plough
113  }
114  }
115  if (a_farm->IsStockFarmer()) {
117  break;
118  }
119  else SimpleEvent(g_date->OldDays() + g_date->DayInYear(1, 3), dk_om_slurry_p, false);
120  break;
121 
122  case dk_om_harrow1:
123  if (!m_farm->SpringHarrow(m_field, 0.0,
124  g_date->DayInYear(2, 4) - g_date->DayInYear())) {
125  SimpleEvent(g_date->Date() + 1, dk_om_harrow1, true);
126  break;
127  }
128  SimpleEvent(g_date->Date() + 1, dk_om_harrow2, false);
129  break;
130 
131  case dk_om_harrow2:
132  if (!m_farm->SpringHarrow(m_field, 0.0,
133  g_date->DayInYear(3, 4) - g_date->DayInYear())) {
134  SimpleEvent(g_date->Date() + 1, dk_om_harrow2, true);
135  break;
136  }
137  if (a_farm->IsStockFarmer()) {
139  break;
140  }
141  else SimpleEvent(g_date->OldDays() + g_date->DayInYear(1, 3), dk_om_slurry_p, false);
142  break;
143 
144  case dk_om_slurry_s:
145  if (!m_farm->FA_Slurry(m_field, 0.0,
146  g_date->DayInYear(4, 4) - g_date->DayInYear())) {
147  SimpleEvent(g_date->Date() + 1, dk_om_slurry_s, true);
148  break;
149  }
150  if (DK_OM_AUTUMN_PLOUGH == true) {
152  break;
153  }
154  else
155  SimpleEvent(g_date->Date() + 1, dk_om_spring_plough, false);
156  break;
157 
158  case dk_om_slurry_p:
159  if (!m_farm->FP_Slurry(m_field, 0.0,
160  g_date->DayInYear(4, 4) - g_date->DayInYear())) {
161  SimpleEvent(g_date->Date() + 1, dk_om_slurry_p, true);
162  break;
163  }
164  if (DK_OM_AUTUMN_PLOUGH == true) {
166  break;
167  }
168  else
169  SimpleEvent(g_date->Date() + 1, dk_om_spring_plough, false);
170  break;
171 
172  case dk_om_spring_plough:
173  if (!m_farm->SpringPlough(m_field, 0.0,
174  g_date->DayInYear(5, 4) - g_date->DayInYear())) {
176  break;
177  }
178  SimpleEvent(g_date->OldDays() + g_date->DayInYear(15, 4), dk_om_roll, false);
179  break;
180 
181  case dk_om_roll:
182  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)
183  {
184  if (!m_farm->SpringRoll(m_field, 0.0,
185  g_date->DayInYear(15, 5) - g_date->DayInYear())) {
186  SimpleEvent(g_date->Date() + 1, dk_om_roll, true);
187  break;
188  }
189  }
190  SimpleEvent(g_date->Date() + 5, dk_om_strigling1, false);
191  break;
192 
193  case dk_om_strigling1:
194  if (!m_farm->Strigling(m_field, 0.0,
195  g_date->DayInYear(20, 5) - g_date->DayInYear())) {
196  SimpleEvent(g_date->Date() + 1, dk_om_strigling1, true);
197  break;
198  }
199  SimpleEvent(g_date->Date() + 1, dk_om_strigling2, false);
200  break;
201 
202  case dk_om_strigling2:
203  if (!m_farm->Strigling(m_field, 0.0,
204  g_date->DayInYear(21, 5) - g_date->DayInYear())) {
205  SimpleEvent(g_date->Date() + 1, dk_om_strigling2, true);
206  break;
207  }
208  SimpleEvent(g_date->Date() + 8, dk_om_ferti_sow, false);
209  break;
210 
211  case dk_om_ferti_sow:
212  if (!m_farm->SpringSowWithFerti(m_field, 0.0,
213  g_date->DayInYear(31, 5) - g_date->DayInYear())) {
214  SimpleEvent(g_date->Date() + 1, dk_om_ferti_sow, true);
215  break;
216  }
217  SimpleEvent(g_date->Date() + 1, dk_om_water, false);
218  break;
219 
220  case dk_om_water:
221  if (m_ev->m_lock || m_farm->DoIt_prob(0.50)) {
222  if (!m_farm->Water(m_field, 0.0,
223  g_date->DayInYear(1, 6) - g_date->DayInYear())) {
224  SimpleEvent(g_date->Date() + 1, dk_om_water, true);
225  break;
226  }
227  }
228  SimpleEvent(g_date->Date() + 1, dk_om_strigling3, false);
229  break;
230 
231  case dk_om_strigling3:
232  if (!m_farm->Strigling(m_field, 0.0,
233  g_date->DayInYear(2, 6) - g_date->DayInYear())) {
234  SimpleEvent(g_date->Date() + 1, dk_om_strigling3, true);
235  break;
236  }
237  SimpleEvent(g_date->Date() + 7, dk_om_harrow3, false);
238  break;
239 
240  case dk_om_harrow3:
241  if (!m_farm->SpringHarrow(m_field, 0.0,
242  g_date->DayInYear(10, 6) - g_date->DayInYear())) {
243  SimpleEvent(g_date->Date() + 1, dk_om_harrow3, true);
244  break;
245  }
246  SimpleEvent(g_date->Date() + 7, dk_om_harrow4, false);
247  break;
248 
249  case dk_om_harrow4:
250  if (!m_farm->SpringHarrow(m_field, 0.0,
251  g_date->DayInYear(18, 6) - g_date->DayInYear())) {
252  SimpleEvent(g_date->Date() + 1, dk_om_harrow4, true);
253  break;
254  }
256  break;
257 
259  if (!m_farm->RowCultivation(m_field, 0.0,
260  g_date->DayInYear(4, 7) - g_date->DayInYear())) {
262  break;
263  }
265  break;
266 
268  if (!m_farm->RowCultivation(m_field, 0.0,
269  g_date->DayInYear(20, 7) - g_date->DayInYear())) {
271  break;
272  }
273  SimpleEvent(g_date->OldDays() + g_date->DayInYear(10, 8), dk_om_harvest, false);
274  break;
275 
276  case dk_om_harvest:
277  // continuous harvesting till 30/9, every 1-2 weeks (included as 10 days here)
278  m_farm->FruitHarvest(m_field, 0.0, 0);
279  if (today < g_date->OldDays() + g_date->DayInYear(20, 9)) {
281  break;
282  }
284  break;
285 
287  if (!m_farm->StrawChopping(m_field, 0.0,
288  m_field->GetMDates(1, 1) - g_date->DayInYear())) {
290  break;
291  }
292 
293  done = true;
294  break;
295 
296  default:
297  g_msg->Warn( WARN_BUG, "DK_OMaize::Do(): "
298  "Unknown event type! ", "" );
299  exit( 1 );
300  }
301  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
302  return done;
303 }

References Farm::AutumnPlough(), LE::ClearManagementActionSum(), Calendar::Date(), Calendar::DayInYear(), DK_OM_AUTUMN_PLOUGH, dk_om_autumn_plough, dk_om_ferti_sow, DK_OM_FORCESPRING, dk_om_harrow1, dk_om_harrow2, dk_om_harrow3, dk_om_harrow4, dk_om_harvest, dk_om_roll, dk_om_row_cultivation1, dk_om_row_cultivation2, dk_om_slurry_p, dk_om_slurry_s, dk_om_spring_plough, dk_om_start, dk_om_straw_chopping, dk_om_strigling1, dk_om_strigling2, dk_om_strigling3, dk_om_wait, dk_om_water, Farm::DoIt_prob(), Farm::FA_Slurry(), Farm::FP_Slurry(), Farm::FruitHarvest(), g_date, g_msg, LE::GetMDates(), LE::GetSoilType(), Farm::IsStockFarmer(), Crop::m_ev, Crop::m_farm, Crop::m_field, FarmEvent::m_forcespring, Crop::m_last_date, FarmEvent::m_lock, FarmEvent::m_todo, Calendar::OldDays(), Farm::RowCultivation(), Crop::SimpleEvent(), Crop::SimpleEvent_(), Farm::SleepAllDay(), Farm::SpringHarrow(), Farm::SpringPlough(), Farm::SpringRoll(), Farm::SpringSowWithFerti(), Crop::StartUpCrop(), Farm::StrawChopping(), Farm::Strigling(), tos_LoamySand, tos_Sand, tos_SandyClayLoam, tos_SandyLoam, tov_DKOMaize, MapErrorMsg::Warn(), WARN_BUG, and Farm::Water().

◆ SetUpFarmCategoryInformation()

void DK_OMaize::SetUpFarmCategoryInformation ( )
inline
78  {
79  const int elements = 2 + (dk_om_foobar - DK_OM_BASE);
81 
82  FarmManagementCategory catlist[elements] =
83  {
84  fmc_Others, // zero element unused but must be here
85  fmc_Others, // dk_om_start = 1, // Compulsory, start event must always be 1 (one).
86  fmc_Cultivation, //dk_om_autumn_plough = DK_OM_BASE,
87  fmc_Cultivation, //dk_om_harrow1,
88  fmc_Cultivation, //dk_om_harrow2,
89  fmc_Fertilizer, // dk_om_slurry_s,
90  fmc_Fertilizer, // dk_om_slurry_p,
91  fmc_Cultivation, // dk_om_spring_plough,
92  fmc_Others, // dk_om_roll,
93  fmc_Cultivation, // dk_om_strigling1,
94  fmc_Cultivation, // dk_om_strigling2,
95  fmc_Cultivation, // dk_om_ferti_sow,
96  fmc_Watering, //dk_om_water,
97  fmc_Cultivation, // dk_om_strigling3,
98  fmc_Cultivation, // dk_om_harrow3,
99  fmc_Cultivation, // dk_om_harrow4,
100  fmc_Cultivation, // dk_om_row_cultivation1,
101  fmc_Cultivation, // dk_om_row_cultivation2,
102  fmc_Harvest, // dk_om_harvest1,
103  fmc_Cutting, // dk_om_straw_chopping,
104  fmc_Others, // dk_om_wait,
105  };
106  // Iterate over the catlist elements and copy them to vector
107  copy(begin(catlist), end(catlist), back_inserter(m_ManagementCategories));
108  }

References DK_OM_BASE, dk_om_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_OMaize().


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
Farm::SpringRoll
virtual bool SpringRoll(LE *a_field, double a_user, int a_days)
Carry out a roll event in the spring on a_field.
Definition: FarmFuncs.cpp:487
Farm::FA_Slurry
virtual bool FA_Slurry(LE *a_field, double a_user, int a_days)
Spready slurry on a_field owned by an stock farmer.
Definition: FarmFuncs.cpp:1067
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::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
FarmEvent::m_lock
bool m_lock
Definition: Farm.h:384
DK_OMaize::SetUpFarmCategoryInformation
void SetUpFarmCategoryInformation()
Definition: DK_OMaize.h:78
DK_OM_AUTUMN_PLOUGH
#define DK_OM_AUTUMN_PLOUGH
Definition: DK_OMaize.h:41
dk_om_roll
Definition: DK_OMaize.h:51
LE::ClearManagementActionSum
void ClearManagementActionSum()
clears the management action counters
Definition: Elements.h:247
dk_om_start
Definition: DK_OMaize.h:44
tos_SandyClayLoam
Definition: LandscapeFarmingEnums.h:722
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_om_autumn_plough
Definition: DK_OMaize.h:45
tos_SandyLoam
Definition: LandscapeFarmingEnums.h:721
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_om_harrow4
Definition: DK_OMaize.h:58
Crop::SimpleEvent
void SimpleEvent(long a_date, int a_todo, bool a_lock)
Adds an event to this crop management.
Definition: Farm.cpp:747
fmc_Cutting
Definition: LandscapeFarmingEnums.h:1009
fmc_Fertilizer
Definition: LandscapeFarmingEnums.h:1004
dk_om_harvest
Definition: DK_OMaize.h:61
Calendar::Date
long Date(void)
Definition: Calendar.h:57
fmc_Cultivation
Definition: LandscapeFarmingEnums.h:1008
LE::GetSoilType
int GetSoilType()
Definition: Elements.h:302
dk_om_spring_plough
Definition: DK_OMaize.h:50
tov_DKOMaize
Definition: LandscapeFarmingEnums.h:386
fmc_Others
Definition: LandscapeFarmingEnums.h:1003
Farm::StrawChopping
virtual bool StrawChopping(LE *a_field, double a_user, int a_days)
Carry out straw chopping on a_field.
Definition: FarmFuncs.cpp:1475
fmc_Watering
Definition: LandscapeFarmingEnums.h:1011
dk_om_harrow1
Definition: DK_OMaize.h:46
Calendar::OldDays
long OldDays(void)
Definition: Calendar.h:60
dk_om_ferti_sow
Definition: DK_OMaize.h:54
MapErrorMsg::Warn
void Warn(MapErrorState a_level, std::string a_msg1, std::string a_msg2)
Definition: MapErrorMsg.cpp:69
dk_om_wait
Definition: DK_OMaize.h:63
dk_om_strigling3
Definition: DK_OMaize.h:56
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
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
tos_Sand
Definition: LandscapeFarmingEnums.h:719
dk_om_foobar
Definition: DK_OMaize.h:64
Farm::FP_Slurry
virtual bool FP_Slurry(LE *a_field, double a_user, int a_days)
Apply slurry to a_field owned by an arable farmer.
Definition: FarmFuncs.cpp:823
dk_om_water
Definition: DK_OMaize.h:55
Farm::SleepAllDay
virtual bool SleepAllDay(LE *a_field, double a_user, int a_days)
Nothing to to today on a_field.
Definition: FarmFuncs.cpp:272
dk_om_harrow2
Definition: DK_OMaize.h:47
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
Farm::SpringSowWithFerti
virtual bool SpringSowWithFerti(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 with start fertilizer in the spring on a_field.
Definition: FarmFuncs.cpp:537
TTypesOfVegetation
TTypesOfVegetation
Values that represent the types of vegetation that are represented in ALMaSS.
Definition: LandscapeFarmingEnums.h:192
dk_om_row_cultivation2
Definition: DK_OMaize.h:60
dk_om_straw_chopping
Definition: DK_OMaize.h:62
DK_OM_BASE
#define DK_OM_BASE
Definition: DK_OMaize.h:39
dk_om_slurry_s
Definition: DK_OMaize.h:48
dk_om_strigling2
Definition: DK_OMaize.h:53
fmc_Harvest
Definition: LandscapeFarmingEnums.h:1012
Farm::FruitHarvest
virtual bool FruitHarvest(LE *a_field, double a_user, int a_days)
FruitHarvest (harvest of the mature fruits, e.g., grapes) applied on a_field.
Definition: FarmFuncs.cpp:1959
dk_om_row_cultivation1
Definition: DK_OMaize.h:59
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
DK_OM_FORCESPRING
#define DK_OM_FORCESPRING
Definition: DK_OMaize.h:40
dk_om_strigling1
Definition: DK_OMaize.h:52
Crop::m_ev
FarmEvent * m_ev
Definition: Farm.h:500
tos_LoamySand
Definition: LandscapeFarmingEnums.h:720
WARN_BUG
Definition: MapErrorMsg.h:34
dk_om_harrow3
Definition: DK_OMaize.h:57
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
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
dk_om_slurry_p
Definition: DK_OMaize.h:49