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

#include <DK_MaizeSilage.h>

Inheritance diagram for DK_MaizeSilage:
Crop

Public Member Functions

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

DK_MaizeSilage::DK_MaizeSilage ( TTypesOfVegetation  a_tov,
TTypesOfCrops  a_toc,
Landscape a_L 
)
inline
61  : Crop(a_tov, a_toc, a_L)
62  {
63  m_first_date = g_date->DayInYear(30, 11);
65  }

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

Member Function Documentation

◆ Do()

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

Reimplemented from Crop.

41 {
42  m_farm = a_farm;
43  m_field = a_field;
44  m_ev = a_ev;
45  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).
46  bool flag = false;
47  int d1 = 0;
48  int noDates = 1;
50 
51  switch (m_ev->m_todo)
52  {
53  case dk_ms_start:
54  {
55  a_field->ClearManagementActionSum();
56 
57  DK_MS_RC_CC = false;
58  DK_MS_FORCESPRING = false;
59  m_last_date = g_date->DayInYear(14, 10); // Should match the last flexdate below
60  //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
61  std::vector<std::vector<int>> flexdates(1 + 1, std::vector<int>(2, 0));
62  // Set up the date management stuff
63  // Start and stop dates for all events after harvest
64  flexdates[0][1] = g_date->DayInYear(14, 10); // last possible day of harvest - this is in effect day before the earliest date that a following crop can use
65  // Now these are done in pairs, start & end for each operation. If its not used then -1
66  flexdates[1][0] = -1; // This date will be moved back as far as necessary and potentially to flexdates 1 (start op 1)
67  flexdates[1][1] = g_date->DayInYear(14, 10); // This date will be moved back as far as necessary and potentially to flexdates 1 (end op 1)
68 
69  // 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
70  int isSpring = 0;
71  if (StartUpCrop(isSpring, flexdates, int(dk_ms_herbicide1))) break;
72 
73  // End single block date checking code. Please see next line comment as well.
74  // Reinit d1 to first possible starting date.
75  d1 = g_date->OldDays() + g_date->DayInYear(1, 10);
76  // OK, let's go.
77  // Here we queue up the first event which changes dependent on whether it is a forced spring sow or not
78  if (m_ev->m_forcespring) {
79  int day_num_shift = 365;
80  if (g_date->DayInYear() < 70) day_num_shift = 0;
81  SimpleEvent(g_date->OldDays() + g_date->DayInYear(1, 2) + day_num_shift, dk_ms_herbicide1, false);
82  DK_MS_FORCESPRING = true;
83  break;
84  }
85  else SimpleEvent(d1, dk_ms_autumn_plough, false);
86  }
87  break;
88 
89  // done if many weeds, or waste plants from earlier catch crops
91  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)
92  {
93  if (m_ev->m_lock || m_farm->DoIt_prob(0.85)) {
94  if (!m_farm->AutumnPlough(m_field, 0.0,
95  g_date->DayInYear(30, 11) - g_date->DayInYear())) {
97  break;
98  }
99  }
100  }
101  SimpleEvent(g_date->OldDays() + g_date->DayInYear(1, 2) + 365, dk_ms_herbicide1, false);
102  break;
103 
104  case dk_ms_herbicide1:
105  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)
106  {
107  if (m_ev->m_lock || m_farm->DoIt_prob(0.40)) {
108  if (!m_farm->HerbicideTreat(m_field, 0.0,
109  g_date->DayInYear(31, 3) - g_date->DayInYear())) {
110  SimpleEvent(g_date->Date() + 1, dk_ms_herbicide1, true);
111  break;
112  }
113  }
115  break;
116  }
117  SimpleEvent(g_date->Date() + 1, dk_ms_spring_plough, false);
118  break;
119 
120  case dk_ms_spring_plough: //+ bedformer in one
121  if (m_ev->m_lock || m_farm->DoIt_prob(0.85)) {
122  if (!m_farm->SpringPlough(m_field, 0.0,
123  g_date->DayInYear(1, 4) - g_date->DayInYear())) {
125  break;
126  }
128  break;
129  }
131  break;
132 
134  if (!m_farm->SpringHarrow(m_field, 0.0,
135  g_date->DayInYear(2, 4) - g_date->DayInYear())) {
137  break;
138  }
140  break;
141 
143  if (!m_farm->SpringHarrow(m_field, 0.0,
144  g_date->DayInYear(3, 4) - g_date->DayInYear())) {
146  break;
147  }
148  SimpleEvent(g_date->Date(), dk_ms_sow, false);
149  break;
150 
151  case dk_ms_sow:
152  if (!m_farm->SpringSow(m_field, 0.0,
153  g_date->DayInYear(1, 5) - g_date->DayInYear())) {
154  SimpleEvent(g_date->Date() + 1, dk_ms_sow, true);
155  break;
156  }
157  if (a_farm->IsStockFarmer()) {
159  break;
160  }
161  else SimpleEvent(g_date->Date(), dk_ms_ferti_p1, false);
162  break;
163 
166  g_date->DayInYear(1, 5) - g_date->DayInYear())) {
168  break;
169  }
170  if (a_farm->IsStockFarmer()) {
172  break;
173  }
174  else SimpleEvent(g_date->Date(), dk_ms_ferti_p1, false);
175  break;
176 
177  case dk_ms_ferti_s1:
178  if (m_ev->m_lock || m_farm->DoIt_prob(0.90)) {
179  if (!m_farm->FA_Slurry(m_field, 0.0,
180  g_date->DayInYear(1, 5) - g_date->DayInYear())) {
181  SimpleEvent(g_date->Date() + 1, dk_ms_ferti_s1, true);
182  break;
183  }
184  }
185  SimpleEvent(g_date->Date() + 7, dk_ms_herbicide2, false);
186  break;
187 
188  case dk_ms_ferti_p1:
189  if (m_ev->m_lock || m_farm->DoIt_prob(0.90)) {
190  if (!m_farm->FP_Slurry(m_field, 0.0,
191  g_date->DayInYear(1, 5) - g_date->DayInYear())) {
192  SimpleEvent(g_date->Date() + 1, dk_ms_ferti_p1, true);
193  break;
194  }
195  }
196  SimpleEvent(g_date->Date() + 7, dk_ms_herbicide2, false);
197  break;
198 
199  case dk_ms_herbicide2:
200  if (!m_farm->HerbicideTreat(m_field, 0.0,
201  g_date->DayInYear(8, 5) - g_date->DayInYear())) {
202  SimpleEvent(g_date->Date() + 1, dk_ms_herbicide2, true);
203  break;
204  }
205  SimpleEvent(g_date->Date() + 7, dk_ms_row_cultivation_cc, false); // main thread
206  SimpleEvent(g_date->Date() + 10, dk_ms_herbicide3, false); // herbi thread
207  break;
208 
209  case dk_ms_row_cultivation_cc: // 80% do catch crops - grasses - and thus cultivation row just before sowing
210  if (m_ev->m_lock || m_farm->DoIt_prob(0.8)) {
211  if (!m_farm->RowCultivation(m_field, 0.0,
212  g_date->DayInYear(1, 6) - g_date->DayInYear())) {
214  break;
215  }
216  DK_MS_RC_CC = true; // we need to remember who did row cultivation due to catch crops
217  SimpleEvent(g_date->OldDays() + g_date->DayInYear(1, 6), dk_ms_sow_cc, false);
218  break;
219  }
220  SimpleEvent(g_date->OldDays() + g_date->DayInYear(1, 6), dk_ms_water, false);
221  break;
222 
223  case dk_ms_herbicide3:
224  if (!m_farm->HerbicideTreat(m_field, 0.0,
225  g_date->DayInYear(22, 5) - g_date->DayInYear())) {
226  SimpleEvent(g_date->Date() + 1, dk_ms_herbicide3, true);
227  break;
228  }
230  break;
231 
233  if (DK_MS_RC_CC == false)
234  {
235  if (!m_farm->RowCultivation(m_field, 0.0,
236  g_date->DayInYear(7, 6) - g_date->DayInYear())) {
238  break;
239  }
240  }
241  break; // end of thread
242 
243  case dk_ms_sow_cc:
244  if (!m_farm->SpringSow(m_field, 0.0,
245  g_date->DayInYear(30, 6) - g_date->DayInYear())) {
246  SimpleEvent(g_date->Date() + 1, dk_ms_sow_cc, true);
247  break;
248  }
249  SimpleEvent(g_date->Date() + 1, dk_ms_water, false);
250  break;
251 
252  case dk_ms_water:
253  if (m_ev->m_lock || m_farm->DoIt_prob(0.35)) {
254  if (!m_farm->Water(m_field, 0.0,
255  g_date->DayInYear(31, 7) - g_date->DayInYear())) {
256  SimpleEvent(g_date->Date() + 1, dk_ms_water, true);
257  break;
258  }
259  }
261  break;
262 
263 
264  case dk_ms_fungicide:
265  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)
266  {
267  if (!m_farm->FungicideTreat(m_field, 0.0,
268  g_date->DayInYear(31, 7) - g_date->DayInYear())) {
269  SimpleEvent(g_date->Date() + 1, dk_ms_fungicide, true);
270  break;
271  }
272  }
273  else if (m_ev->m_lock || m_farm->DoIt_prob(0.20)) {
274  if (!m_farm->FungicideTreat(m_field, 0.0,
275  g_date->DayInYear(31, 7) - g_date->DayInYear())) {
276  SimpleEvent(g_date->Date() + 1, dk_ms_fungicide, true);
277  break;
278  }
279  }
281  break;
282 
283  case dk_ms_harvest:
284  if (!m_farm->Harvest(m_field, 0.0, m_field->GetMDates(1, 0) - g_date->DayInYear())) {
285  SimpleEvent(g_date->Date() + 1, dk_ms_harvest, true);
286  break;
287  }
288  done = true;
289  break;
290 
291  default:
292  g_msg->Warn(WARN_BUG, "DK_MaizeSilage::Do(): "
293  "Unknown event type! ", "");
294  exit(1);
295  }
296  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
297  return done;
298 
299 }

References Farm::AutumnPlough(), LE::ClearManagementActionSum(), Calendar::Date(), Calendar::DayInYear(), dk_ms_autumn_plough, dk_ms_cultivator_sow, dk_ms_ferti_p1, dk_ms_ferti_s1, DK_MS_FORCESPRING, dk_ms_fungicide, dk_ms_harvest, dk_ms_herbicide1, dk_ms_herbicide2, dk_ms_herbicide3, DK_MS_RC_CC, dk_ms_row_cultivation_cc, dk_ms_row_cultivation_weeds, dk_ms_sow, dk_ms_sow_cc, dk_ms_spring_harrow1, dk_ms_spring_harrow2, dk_ms_spring_plough, dk_ms_start, dk_ms_water, Farm::DoIt_prob(), Farm::FA_Slurry(), Farm::FP_Slurry(), Farm::FungicideTreat(), g_date, g_msg, 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, Calendar::OldDays(), Farm::PreseedingCultivatorSow(), Farm::RowCultivation(), Crop::SimpleEvent(), Farm::SpringHarrow(), Farm::SpringPlough(), Farm::SpringSow(), Crop::StartUpCrop(), tos_LoamySand, tos_Sand, tos_SandyClayLoam, tos_SandyLoam, tov_DKMaizeSilage, MapErrorMsg::Warn(), WARN_BUG, and Farm::Water().

◆ SetUpFarmCategoryInformation()

void DK_MaizeSilage::SetUpFarmCategoryInformation ( )
inline
66  {
67  const int elements = 2 + (dk_ms_foobar - DK_MS_BASE);
69 
70  FarmManagementCategory catlist[elements] =
71  {
72  fmc_Others, // zero element unused but must be here
73  fmc_Others, // dk_ms_start = 1, // Compulsory, start event must always be 1 (one).
74  fmc_Harvest, // dk_ms_harvest = DK_MS_BASE,
75  fmc_Cultivation, // dk_ms_autumn_plough,
76  fmc_Herbicide, // dk_ms_herbicide1,
77  fmc_Cultivation, // dk_ms_spring_plough,
78  fmc_Cultivation, // dk_ms_spring_harrow1,
79  fmc_Cultivation, // dk_ms_spring_harrow2,
80  fmc_Cultivation, // dk_ms_cultivator_sow,
81  fmc_Others, // dk_ms_sow,
82  fmc_Others, // dk_ms_sow_cc,
83  fmc_Fertilizer, // dk_ms_ferti_s1,
84  fmc_Fertilizer, // dk_ms_ferti_p1,
85  fmc_Cultivation, // dk_ms_row_cultivation_weeds,
86  fmc_Cultivation, // dk_ms_row_cultivation_cc,
87  fmc_Watering, // dk_ms_water,
88  fmc_Herbicide, // dk_ms_herbicide2,
89  fmc_Herbicide, // dk_ms_herbicide3,
90  fmc_Fungicide, // dk_ms_fungicide,
91 
92  // no foobar entry
93 
94  };
95  // Iterate over the catlist elements and copy them to vector
96  copy(begin(catlist), end(catlist), back_inserter(m_ManagementCategories));
97  }

References DK_MS_BASE, dk_ms_foobar, fmc_Cultivation, fmc_Fertilizer, fmc_Fungicide, fmc_Harvest, fmc_Herbicide, fmc_Others, fmc_Watering, Crop::m_base_elements_no, and Crop::m_ManagementCategories.

Referenced by DK_MaizeSilage().


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::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::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
dk_ms_sow_cc
Definition: DK_MaizeSilage.h:43
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
dk_ms_autumn_plough
Definition: DK_MaizeSilage.h:36
dk_ms_spring_harrow1
Definition: DK_MaizeSilage.h:39
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
fmc_Herbicide
Definition: LandscapeFarmingEnums.h:1006
tos_SandyLoam
Definition: LandscapeFarmingEnums.h:721
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
dk_ms_herbicide1
Definition: DK_MaizeSilage.h:37
Crop::m_base_elements_no
int m_base_elements_no
Definition: Farm.h:505
DK_MS_BASE
#define DK_MS_BASE
Definition: DK_MaizeSilage.h:28
dk_ms_herbicide2
Definition: DK_MaizeSilage.h:49
Crop::m_first_date
int m_first_date
Definition: Farm.h:501
dk_ms_harvest
Definition: DK_MaizeSilage.h:35
Farm::FungicideTreat
virtual bool FungicideTreat(LE *a_field, double a_user, int a_days)
Apply fungicide to a_field.
Definition: FarmFuncs.cpp:2101
dk_ms_row_cultivation_weeds
Definition: DK_MaizeSilage.h:46
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_ms_spring_harrow2
Definition: DK_MaizeSilage.h:40
DK_MS_FORCESPRING
#define DK_MS_FORCESPRING
Definition: DK_MaizeSilage.h:31
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
tov_DKMaizeSilage
Definition: LandscapeFarmingEnums.h:383
fmc_Others
Definition: LandscapeFarmingEnums.h:1003
fmc_Watering
Definition: LandscapeFarmingEnums.h:1011
dk_ms_ferti_s1
Definition: DK_MaizeSilage.h:44
Calendar::OldDays
long OldDays(void)
Definition: Calendar.h:60
MapErrorMsg::Warn
void Warn(MapErrorState a_level, std::string a_msg1, std::string a_msg2)
Definition: MapErrorMsg.cpp:69
DK_MaizeSilage::SetUpFarmCategoryInformation
void SetUpFarmCategoryInformation()
Definition: DK_MaizeSilage.h:66
dk_ms_foobar
Definition: DK_MaizeSilage.h:52
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_ms_spring_plough
Definition: DK_MaizeSilage.h:38
Crop::m_farm
Farm * m_farm
Definition: Farm.h:498
Crop::m_field
LE * m_field
Definition: Farm.h:499
dk_ms_start
Definition: DK_MaizeSilage.h:34
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
dk_ms_ferti_p1
Definition: DK_MaizeSilage.h:45
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
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::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
dk_ms_herbicide3
Definition: DK_MaizeSilage.h:50
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_ms_cultivator_sow
Definition: DK_MaizeSilage.h:41
TTypesOfVegetation
TTypesOfVegetation
Values that represent the types of vegetation that are represented in ALMaSS.
Definition: LandscapeFarmingEnums.h:192
fmc_Harvest
Definition: LandscapeFarmingEnums.h:1012
Calendar::DayInYear
int DayInYear(void)
Definition: Calendar.h:58
DK_MS_RC_CC
#define DK_MS_RC_CC
Definition: DK_MaizeSilage.h:30
dk_ms_water
Definition: DK_MaizeSilage.h:48
dk_ms_row_cultivation_cc
Definition: DK_MaizeSilage.h:47
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
WARN_BUG
Definition: MapErrorMsg.h:34
fmc_Fungicide
Definition: LandscapeFarmingEnums.h:1007
dk_ms_sow
Definition: DK_MaizeSilage.h:42
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
dk_ms_fungicide
Definition: DK_MaizeSilage.h:51