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

#include <DK_OMaizeSilage.h>

Inheritance diagram for DK_OMaizeSilage:
Crop

Public Member Functions

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

DK_OMaizeSilage::DK_OMaizeSilage ( 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_OMaizeSilage::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;
40 
41  switch ( m_ev->m_todo ) {
42  case dk_oms_start:
43  {
44  a_field->ClearManagementActionSum();
45  DK_OMS_FORCESPRING = false;
46  DK_OMS_AUTUMN_PLOUGH = false;
47 
48  m_last_date = g_date->DayInYear(1, 10); // Should match the last flexdate below
49  //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
50  std::vector<std::vector<int>> flexdates(1 + 1, std::vector<int>(2, 0));
51  // Set up the date management stuff
52  // Start and stop dates for all events after harvest
53  flexdates[0][1] = g_date->DayInYear(16, 10); // last possible day of 1st harvest
54  // Now these are done in pairs, start & end for each operation. If its not used then -1
55  flexdates[1][0] = -1; // This date will be moved back as far as necessary and potentially to flexdates 1 (start op 1)
56  flexdates[1][1] = g_date->DayInYear(15, 10); // This date will be moved back as far as necessary and potentially to flexdates 1 (end op 1)
57 
58  // 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
59  int isSpring = 0;
60  if (StartUpCrop(isSpring, flexdates, int(dk_oms_wait))) break;
61 
62  // End single block date checking code. Please see next line comment as well.
63  // Reinit d1 to first possible starting date.
64  d1 = g_date->OldDays() + g_date->DayInYear(1, 9);
65  // OK, let's go.
66  // Here we queue up the first event which changes dependent on whether it is a forced spring sow or not
67  if (m_ev->m_forcespring) {
68  int day_num_shift = 365;
69  if (g_date->DayInYear() < 70) day_num_shift = 0;
70  SimpleEvent(g_date->OldDays() + g_date->DayInYear(1, 2) + day_num_shift, dk_oms_wait, false);
71  DK_OMS_FORCESPRING = true;
72  break;
73  }
74  else SimpleEvent(d1, dk_oms_autumn_plough, false);
75  }
76  break;
77 
79  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)
80  {
81  if (m_ev->m_lock || m_farm->DoIt_prob(0.85)) { // % + date suggestions
82  if (!m_farm->AutumnPlough(m_field, 0.0,
83  g_date->DayInYear(30, 11) - g_date->DayInYear())) {
85  break;
86  }
87  DK_OMS_AUTUMN_PLOUGH = true; // we need to remember the farmers that do autumn plough
88  SimpleEvent(g_date->OldDays() + g_date->DayInYear(1, 2) + 365, dk_oms_harrow1, false);
89  break;
90  }
91  }
92  if (a_farm->IsStockFarmer()) {
93  SimpleEvent(g_date->OldDays() + g_date->DayInYear(1, 3) + 365, dk_oms_slurry_s, false);
94  break;
95  }
96  else SimpleEvent(g_date->OldDays() + g_date->DayInYear(1, 3) + 365, dk_oms_slurry_p, false);
97  break;
98 
99  case dk_oms_wait:
100  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)
101  {
102  if (m_ev->m_lock || m_farm->DoIt_prob(0.85)) { // % + date suggestions
103  if (!m_farm->SleepAllDay(m_field, 0.0,
104  g_date->DayInYear(2, 2) - g_date->DayInYear())) {
105  SimpleEvent(g_date->Date() + 1, dk_oms_wait, true);
106  break;
107  }
108  DK_OMS_AUTUMN_PLOUGH = true;
110  break;
111  // we need to remember the farmers that do autumn plough
112  }
113  }
114  if (a_farm->IsStockFarmer()) {
116  break;
117  }
118  else SimpleEvent(g_date->OldDays() + g_date->DayInYear(1, 3), dk_oms_slurry_p, false);
119  break;
120 
121  case dk_oms_harrow1:
122  if (!m_farm->SpringHarrow(m_field, 0.0,
123  g_date->DayInYear(2, 4) - g_date->DayInYear())) {
124  SimpleEvent(g_date->Date() + 1, dk_oms_harrow1, true);
125  break;
126  }
127  SimpleEvent(g_date->Date() + 1, dk_oms_harrow2, false);
128  break;
129 
130  case dk_oms_harrow2:
131  if (!m_farm->SpringHarrow(m_field, 0.0,
132  g_date->DayInYear(3, 4) - g_date->DayInYear())) {
133  SimpleEvent(g_date->Date() + 1, dk_oms_harrow2, true);
134  break;
135  }
136  if (a_farm->IsStockFarmer()) {
138  break;
139  }
140  else SimpleEvent(g_date->OldDays() + g_date->DayInYear(1, 3), dk_oms_slurry_p, false);
141  break;
142 
143  case dk_oms_slurry_s:
144  if (!m_farm->FA_Slurry(m_field, 0.0,
145  g_date->DayInYear(4, 4) - g_date->DayInYear())) {
146  SimpleEvent(g_date->Date() + 1, dk_oms_slurry_s, true);
147  break;
148  }
149  if (DK_OMS_AUTUMN_PLOUGH == true) {
151  break;
152  }
153  else
155  break;
156 
157  case dk_oms_slurry_p:
158  if (!m_farm->FP_Slurry(m_field, 0.0,
159  g_date->DayInYear(4, 4) - g_date->DayInYear())) {
160  SimpleEvent(g_date->Date() + 1, dk_oms_slurry_p, true);
161  break;
162  }
163  if (DK_OMS_AUTUMN_PLOUGH == true) {
165  break;
166  }
167  else
169  break;
170 
172  if (!m_farm->SpringPlough(m_field, 0.0,
173  g_date->DayInYear(5, 4) - g_date->DayInYear())) {
175  break;
176  }
177  SimpleEvent(g_date->OldDays() + g_date->DayInYear(15, 4), dk_oms_roll, false);
178  break;
179 
180  case dk_oms_roll:
181  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)
182  {
183  if (!m_farm->SpringRoll(m_field, 0.0,
184  g_date->DayInYear(15, 5) - g_date->DayInYear())) {
185  SimpleEvent(g_date->Date() + 1, dk_oms_roll, true);
186  break;
187  }
188  }
189  SimpleEvent(g_date->Date() + 5, dk_oms_strigling1, false);
190  break;
191 
192  case dk_oms_strigling1:
193  if (!m_farm->Strigling(m_field, 0.0,
194  g_date->DayInYear(20, 5) - g_date->DayInYear())) {
195  SimpleEvent(g_date->Date() + 1, dk_oms_strigling1, true);
196  break;
197  }
198  SimpleEvent(g_date->Date() + 1, dk_oms_strigling2, false);
199  break;
200 
201  case dk_oms_strigling2:
202  if (!m_farm->Strigling(m_field, 0.0,
203  g_date->DayInYear(21, 5) - g_date->DayInYear())) {
204  SimpleEvent(g_date->Date() + 1, dk_oms_strigling2, true);
205  break;
206  }
207  SimpleEvent(g_date->Date() + 8, dk_oms_ferti_sow, false);
208  break;
209 
210  case dk_oms_ferti_sow:
211  if (!m_farm->SpringSowWithFerti(m_field, 0.0,
212  g_date->DayInYear(31, 5) - g_date->DayInYear())) {
213  SimpleEvent(g_date->Date() + 1, dk_oms_ferti_sow, true);
214  break;
215  }
216  SimpleEvent(g_date->Date() + 1, dk_oms_water, false);
217  break;
218 
219  case dk_oms_water:
220  if (m_ev->m_lock || m_farm->DoIt_prob(0.50)) {
221  if (!m_farm->Water(m_field, 0.0,
222  g_date->DayInYear(1, 6) - g_date->DayInYear())) {
223  SimpleEvent(g_date->Date() + 1, dk_oms_water, true);
224  break;
225  }
226  }
227  SimpleEvent(g_date->Date() + 1, dk_oms_strigling3, false);
228  break;
229 
230  case dk_oms_strigling3:
231  if (!m_farm->Strigling(m_field, 0.0,
232  g_date->DayInYear(2, 6) - g_date->DayInYear())) {
233  SimpleEvent(g_date->Date() + 1, dk_oms_strigling3, true);
234  break;
235  }
236  SimpleEvent(g_date->Date() + 7, dk_oms_harrow3, false);
237  break;
238 
239  case dk_oms_harrow3:
240  if (!m_farm->SpringHarrow(m_field, 0.0,
241  g_date->DayInYear(10, 6) - g_date->DayInYear())) {
242  SimpleEvent(g_date->Date() + 1, dk_oms_harrow3, true);
243  break;
244  }
245  SimpleEvent(g_date->Date() + 7, dk_oms_harrow4, false);
246  break;
247 
248  case dk_oms_harrow4:
249  if (!m_farm->SpringHarrow(m_field, 0.0,
250  g_date->DayInYear(18, 6) - g_date->DayInYear())) {
251  SimpleEvent(g_date->Date() + 1, dk_oms_harrow4, true);
252  break;
253  }
255  break;
256 
258  if (!m_farm->RowCultivation(m_field, 0.0,
259  g_date->DayInYear(4, 7) - g_date->DayInYear())) {
261  break;
262  }
264  break;
265 
267  if (!m_farm->RowCultivation(m_field, 0.0,
268  g_date->DayInYear(20, 7) - g_date->DayInYear())) {
270  break;
271  }
273  break;
274 
275  case dk_oms_harvest:
276  if (!m_farm->Harvest(m_field, 0.0, m_field->GetMDates(1, 0) - g_date->DayInYear())) {
277  SimpleEvent(g_date->Date() + 1, dk_oms_harvest, true);
278  break;
279  }
281  break;
282 
284  if (!m_farm->StrawChopping(m_field, 0.0, m_field->GetMDates(1, 1) - g_date->DayInYear())) {
286  break;
287  }
288 
289  done = true;
290  break;
291 
292  default:
293  g_msg->Warn( WARN_BUG, "DK_OMaizeSilage::Do(): "
294  "Unknown event type! ", "" );
295  exit( 1 );
296  }
297  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
298  return done;
299 }

References Farm::AutumnPlough(), LE::ClearManagementActionSum(), Calendar::Date(), Calendar::DayInYear(), DK_OMS_AUTUMN_PLOUGH, dk_oms_autumn_plough, dk_oms_ferti_sow, DK_OMS_FORCESPRING, dk_oms_harrow1, dk_oms_harrow2, dk_oms_harrow3, dk_oms_harrow4, dk_oms_harvest, dk_oms_roll, dk_oms_row_cultivation1, dk_oms_row_cultivation2, dk_oms_slurry_p, dk_oms_slurry_s, dk_oms_spring_plough, dk_oms_start, dk_oms_straw_chopping, dk_oms_strigling1, dk_oms_strigling2, dk_oms_strigling3, dk_oms_wait, dk_oms_water, Farm::DoIt_prob(), Farm::FA_Slurry(), Farm::FP_Slurry(), 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, Calendar::OldDays(), Farm::RowCultivation(), 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_DKOMaizeSilage, MapErrorMsg::Warn(), WARN_BUG, and Farm::Water().

◆ SetUpFarmCategoryInformation()

void DK_OMaizeSilage::SetUpFarmCategoryInformation ( )
inline
78  {
79  const int elements = 2 + (dk_oms_foobar - DK_OMS_BASE);
81 
82  FarmManagementCategory catlist[elements] =
83  {
84  fmc_Others, // zero element unused but must be here
85  fmc_Others, // dk_oms_start = 1, // Compulsory, start event must always be 1 (one).
86  fmc_Cultivation, //dk_oms_autumn_plough = DK_OMS_BASE,
87  fmc_Cultivation, //dk_oms_harrow1,
88  fmc_Cultivation, //dk_oms_harrow2,
89  fmc_Fertilizer, // dk_oms_slurry_s,
90  fmc_Fertilizer, // dk_oms_slurry_p,
91  fmc_Cultivation, // dk_oms_spring_plough,
92  fmc_Others, // dk_oms_roll,
93  fmc_Cultivation, // dk_oms_strigling1,
94  fmc_Cultivation, // dk_oms_strigling2,
95  fmc_Cultivation, // dk_oms_ferti_sow,
96  fmc_Watering, //dk_oms_water,
97  fmc_Cultivation, // dk_oms_strigling3,
98  fmc_Cultivation, // dk_oms_harrow3,
99  fmc_Cultivation, // dk_oms_harrow4,
100  fmc_Cultivation, // dk_oms_row_cultivation1,
101  fmc_Cultivation, // dk_oms_row_cultivation2,
102  fmc_Harvest, // dk_oms_harvest,
103  fmc_Cutting, // dk_oms_straw_chopping,
104  fmc_Others, // dk_oms_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_OMS_BASE, dk_oms_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_OMaizeSilage().


The documentation for this class was generated from the following files:
LE::GetMDates
int GetMDates(int a, int b)
Definition: Elements.h:405
dk_oms_autumn_plough
Definition: DK_OMaizeSilage.h:45
DK_OMS_FORCESPRING
#define DK_OMS_FORCESPRING
Definition: DK_OMaizeSilage.h:40
FarmEvent::m_forcespring
bool m_forcespring
Definition: Farm.h:392
dk_oms_strigling1
Definition: DK_OMaizeSilage.h:52
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
dk_oms_harrow3
Definition: DK_OMaizeSilage.h:57
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
dk_oms_start
Definition: DK_OMaizeSilage.h:44
LE::ClearManagementActionSum
void ClearManagementActionSum()
clears the management action counters
Definition: Elements.h:247
dk_oms_row_cultivation2
Definition: DK_OMaizeSilage.h:60
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_oms_harrow2
Definition: DK_OMaizeSilage.h:47
tos_SandyLoam
Definition: LandscapeFarmingEnums.h:721
tov_DKOMaizeSilage
Definition: LandscapeFarmingEnums.h:387
dk_oms_foobar
Definition: DK_OMaizeSilage.h:64
dk_oms_harrow1
Definition: DK_OMaizeSilage.h:46
Crop::m_base_elements_no
int m_base_elements_no
Definition: Farm.h:505
dk_oms_spring_plough
Definition: DK_OMaizeSilage.h:50
Crop::m_first_date
int m_first_date
Definition: Farm.h:501
dk_oms_roll
Definition: DK_OMaizeSilage.h:51
dk_oms_strigling3
Definition: DK_OMaizeSilage.h:56
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_oms_water
Definition: DK_OMaizeSilage.h:55
fmc_Cutting
Definition: LandscapeFarmingEnums.h:1009
fmc_Fertilizer
Definition: LandscapeFarmingEnums.h:1004
DK_OMS_AUTUMN_PLOUGH
#define DK_OMS_AUTUMN_PLOUGH
Definition: DK_OMaizeSilage.h:41
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
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
DK_OMS_BASE
#define DK_OMS_BASE
Definition: DK_OMaizeSilage.h:39
fmc_Watering
Definition: LandscapeFarmingEnums.h:1011
Calendar::OldDays
long OldDays(void)
Definition: Calendar.h:60
DK_OMaizeSilage::SetUpFarmCategoryInformation
void SetUpFarmCategoryInformation()
Definition: DK_OMaizeSilage.h:78
MapErrorMsg::Warn
void Warn(MapErrorState a_level, std::string a_msg1, std::string a_msg2)
Definition: MapErrorMsg.cpp:69
dk_oms_straw_chopping
Definition: DK_OMaizeSilage.h:62
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_oms_row_cultivation1
Definition: DK_OMaizeSilage.h:59
dk_oms_harvest
Definition: DK_OMaizeSilage.h:61
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
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
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_oms_ferti_sow
Definition: DK_OMaizeSilage.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
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
dk_oms_harrow4
Definition: DK_OMaizeSilage.h:58
TTypesOfVegetation
TTypesOfVegetation
Values that represent the types of vegetation that are represented in ALMaSS.
Definition: LandscapeFarmingEnums.h:192
dk_oms_wait
Definition: DK_OMaizeSilage.h:63
fmc_Harvest
Definition: LandscapeFarmingEnums.h:1012
Calendar::DayInYear
int DayInYear(void)
Definition: Calendar.h:58
dk_oms_slurry_p
Definition: DK_OMaizeSilage.h:49
Crop::Crop
Crop(TTypesOfVegetation a_tov, TTypesOfCrops a_toc, Landscape *a_L)
Definition: Farm.cpp:733
Crop::m_ev
FarmEvent * m_ev
Definition: Farm.h:500
tos_LoamySand
Definition: LandscapeFarmingEnums.h:720
dk_oms_strigling2
Definition: DK_OMaizeSilage.h:53
WARN_BUG
Definition: MapErrorMsg.h:34
dk_oms_slurry_s
Definition: DK_OMaizeSilage.h:48
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