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

#include <DK_OSugarBeet.h>

Inheritance diagram for DK_OSugarBeet:
Crop

Public Member Functions

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

DK_OSugarBeet::DK_OSugarBeet ( TTypesOfVegetation  a_tov,
TTypesOfCrops  a_toc,
Landscape a_L 
)
inline
65  : Crop(a_tov, a_toc, a_L)
66  {
67  m_first_date=g_date->DayInYear(20,11); //
69  }

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

Member Function Documentation

◆ Do()

bool DK_OSugarBeet::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  int d1;
38 
39  bool done = false;
41 
42  switch (m_ev->m_todo)
43  {
44  case dk_osbe_start:
45  {
46 
47  a_field->ClearManagementActionSum();
48 
49  m_field->SetVegPatchy(true); // Root crop so is open until tall
50  DK_OSBE_FORCESPRING = false;
51  m_last_date = g_date->DayInYear(15, 10); // Should match the last flexdate below
52  //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
53  std::vector<std::vector<int>> flexdates(1 + 1, std::vector<int>(2, 0));
54  // Set up the date management stuff
55  // Start and stop dates for all events after harvest
56  flexdates[0][1] = g_date->DayInYear(15, 10); // last possible day of harvest - this is in effect day before the earliest date that a following crop can use
57  // Now these are done in pairs, start & end for each operation. If its not used then -1
58  flexdates[1][0] = -1; // This date will be moved back as far as necessary and potentially to flexdates 1 (start op 1)
59  flexdates[1][1] = -1; // This date will be moved back as far as necessary and potentially to flexdates 1 (end op 1)
60 
61 
62  // 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
63  int isSpring = 0;
64  if (StartUpCrop(isSpring, flexdates, int(dk_osbe_molluscicide1))) break;
65 
66  // End single block date checking code. Please see next line comment as well.
67  // Reinit d1 to first possible starting date.
68  d1 = g_date->OldDays() + g_date->DayInYear(20, 10);
69  // OK, let's go.
70  // Here we queue up the first event which changes dependent on whether it is a forced spring sow or not
71  if (m_ev->m_forcespring) {
72  int day_num_shift = 365;
73  if (g_date->DayInYear() < 70) day_num_shift = 0;
74  SimpleEvent(g_date->OldDays() + g_date->DayInYear(1, 3) + day_num_shift, dk_osbe_molluscicide1, false);
75  DK_OSBE_FORCESPRING = true;
76  break;
77  }
78  else SimpleEvent(d1, dk_osbe_autumn_plough, false);
79  break;
80  }
81  break;
82  // OK, Let's go
84  if (!m_farm->AutumnPlough(m_field, 0.0, g_date->DayInYear(20, 11) - g_date->DayInYear())) {
86  break;
87  }
88  // LKM: Queue up next event - winter harrow, do it after approx. 7 week after
90  break;
91  // LKM: do it before the 30th of November - if not done, try again +1 day until the the 30th of November when we succeed - 100% of farmers do this
93  if (!m_farm->AutumnHarrow(m_field, 0.0, g_date->DayInYear(27, 11) - g_date->DayInYear())) {
95  break;
96  }
97  // LKM: Queue up next event - Molluscicide1 after 1st of March next year
99  break;
100  // LKM: Do molluscicide1 before 25th of March - if not done, try again +1 day until the the 25th of March when we succeed - done if many slugs/snails (is done before any soil treatments that year) suggests 10% since it is not common
102  if (m_ev->m_lock || m_farm->DoIt_prob(0.10))
103  {
104  if (!m_farm->Molluscicide(m_field, 0.0, g_date->DayInYear(25, 3) - g_date->DayInYear())) {
106  break;
107  }
108  }
109  if (a_farm->IsStockFarmer()) {
110  SimpleEvent(g_date->Date() + 1, dk_osbe_ferti_s, false);
111  break;
112  }
113  else SimpleEvent(g_date->Date() + 1, dk_osbe_ferti_p, false);
114  break;
115  case dk_osbe_ferti_s:
116  if (!m_farm->FA_Manure(m_field, 0.0, g_date->DayInYear(24, 4) - g_date->DayInYear())) {
117  SimpleEvent(g_date->Date() + 1, dk_osbe_ferti_s, true);
118  break;
119  }
120  // LKM: Queue up the next event - spring plough (suggests 10% since it is not common) done after the 5th of March and before the 25th of April - if not done, try again +1 day until the 25th of April when we will succeed
122  break;
123 
124  case dk_osbe_ferti_p:
125  if (!m_farm->FP_Manure(m_field, 0.0, g_date->DayInYear(24, 4) - g_date->DayInYear())) {
126  SimpleEvent(g_date->Date() + 1, dk_osbe_ferti_p, true);
127  break;
128  }
129  // LKM: Queue up the next event - spring plough (suggests 10% since it is not common) done after the 5th of March and before the 25th of April - if not done, try again +1 day until the 25th of April when we will succeed
131  break;
133  if (m_ev->m_lock || m_farm->DoIt_prob(0.10))
134  {
135  if (!m_farm->SpringPlough(m_field, 0.0, g_date->DayInYear(25, 4) - g_date->DayInYear()))
136  {
138  break;
139  }
140  }
141 
142  // LKM: Queue up the next event - shallow harrow1 (making seedbed) done after the 28th of March and before the 28th of April - if not done, try again +1 day until the 28th of April when we will succeed
144  break;
145  case dk_osbe_sharrow1:
146  if (!m_farm->ShallowHarrow(m_field, 0.0, g_date->DayInYear(28, 4) - g_date->DayInYear()))
147  {
148  SimpleEvent(g_date->Date() + 1, dk_osbe_sharrow1, true);
149  break;
150  }
151  // LKM: Queue up the next event - shallow harrow2 (making seedbed) done 7 days after, and before the 3rd of May - if not done, try again +1 day until the 3rd of May when we will succeed
152  SimpleEvent(g_date->Date() + 7, dk_osbe_sharrow2, false);
153  break;
154  case dk_osbe_sharrow2:
155  if (!m_farm->ShallowHarrow(m_field, 0.0, g_date->DayInYear(3, 5) - g_date->DayInYear()))
156  {
157  SimpleEvent(g_date->Date() + 1, dk_osbe_sharrow2, true);
158  break;
159  }
160  // LKM: Queue up the next event - shallow harrow3 (making seedbed) done 7 days after, and before the 10th of May - if not done, try again +1 day until the 10th of May when we will succeed
161  SimpleEvent(g_date->Date() + 7, dk_osbe_sharrow3, false);
162  break;
163  case dk_osbe_sharrow3:
164  if (!m_farm->ShallowHarrow(m_field, 0.0, g_date->DayInYear(10, 5) - g_date->DayInYear()))
165  {
166  SimpleEvent(g_date->Date() + 1, dk_osbe_sharrow3, true);
167  break;
168  }
169  // LKM: Queue up the next event - sow done the day after, and before 11th of May - if not done, try again +1 day until the 11th of May when we will succeed
170  SimpleEvent(g_date->Date() + 1, dk_osbe_sow, false);
171  break;
172  case dk_osbe_sow:
173  if (!m_farm->SpringSow(m_field, 0.0, g_date->DayInYear(11, 5) - g_date->DayInYear()))
174  {
175  SimpleEvent(g_date->Date() + 1, dk_osbe_sow, true);
176  break;
177  }
178  // LKM: Queue up the next event - Molluscicide2 the day after sow
180  break;
182  // LKM: Do molluscicide2 before 12th of May - if not done, try again +1 day until the 12th of May when we succeed- if many slugs/snails suggests 10% since it is not common
183  if (m_ev->m_lock || m_farm->DoIt_prob(0.10))
184  {
185  if (!m_farm->Molluscicide(m_field, 0.0, g_date->DayInYear(12, 5) - g_date->DayInYear())) {
187  break;
188  }
189  }
190  //Here comes a fork of two - soil treatments and watering
191  SimpleEvent(g_date->Date() + 15, dk_osbe_strigling, false); // soil treatment thread
192  SimpleEvent(g_date->OldDays() + g_date->DayInYear(1, 7), dk_osbe_water1, false); // watering thread
193  break;
194  // LKM: Here comes soil treatment thread (main thread) - strigling done 15 days after
195  case dk_osbe_strigling:
196  //LKM: do strigling before 27th of May - if not done, try again +1 day until the 27th of May when we succeed
197  if (!m_farm->Strigling(m_field, 0.0, g_date->DayInYear(27, 5) - g_date->DayInYear())) {
198  SimpleEvent(g_date->Date() + 1, dk_osbe_strigling, true);
199  break;
200  }
201  // LKM: Queue up the next event - harrow done 15 days after
202  SimpleEvent(g_date->Date() + 15, dk_osbe_harrow, false);
203  break;
204  case dk_osbe_harrow:
205  //LKM: do harrow before 11th of June - if not done, try again +1 day until the 11th of June when we succeed
206  if (!m_farm->SpringHarrow(m_field, 0.0, g_date->DayInYear(11, 6) - g_date->DayInYear())) {
207  SimpleEvent(g_date->Date() + 1, dk_osbe_harrow, true);
208  break;
209  }
210  // LKM: Queue up the next event - row cultivation1 done 15 days after
212  break;
214  //LKM: do row cultivaton before 26th of June - if not done, try again +1 day until the 26th of June when we succeed
215  if (!m_farm->RowCultivation(m_field, 0.0, g_date->DayInYear(26, 6) - g_date->DayInYear())) {
217  break;
218  }
219  // LKM: Queue up the next event - row cultivation1 done 15 days after
221  break;
222  // Here comes water thread
223  case dk_osbe_water1:
224  if (m_ev->m_lock || m_farm->DoIt_prob(0.50)) {
225  if (!m_farm->Water(m_field, 0.0, g_date->DayInYear(30, 7) -
226  g_date->DayInYear())) {
227  SimpleEvent(g_date->Date() + 1, dk_osbe_water1, true);
228  break;
229  }
230  }
231  // LKM: Queue up the next event - water2 done after 1st of August
233  break;
234  //LKM: do water2 before 30 of August - if not done, try again +1 day until the the 30 of July when we succeed
235  case dk_osbe_water2:
236  if (m_ev->m_lock || m_farm->DoIt_prob(0.50)) {
237  if (!m_farm->Water(m_field, 0.0, g_date->DayInYear(30, 8) -
238  g_date->DayInYear())) {
239  SimpleEvent(g_date->Date() + 1, dk_osbe_water2, true);
240  break;
241  }
242  }
243  break;
244  //End of thread
246  //LKM: do row cultivaton before 11th of July - if not done, try again +1 day until the 11th of July when we succeed
247  if (!m_farm->RowCultivation(m_field, 0.0, g_date->DayInYear(11, 7) - g_date->DayInYear())) {
249  break;
250  }
251  // LKM: Queue up the next event - row cultivation1 done 15 days after
253  break;
255  //LKM: do row cultivaton before 26th of July - if not done, try again +1 day until the the 26th of July when we succeed
256  if (!m_farm->RowCultivation(m_field, 0.0, g_date->DayInYear(26, 7) - g_date->DayInYear())) {
258  break;
259  }
260  // LKM: Queue up the next event - manual weeding (remove wild beets) done after 15th of July
262  break;
263  //LKM: do manual weeding before 10th of August - if not done, try again +1 day until the 10th of August when we succeed (need af new function!)
265  if (!m_farm->ManualWeeding(m_field, 0.0, g_date->DayInYear(10, 8) -
266  g_date->DayInYear())) {
268  break;
269  }
270  // LKM: Queue up the next event - harvest done after the 15th of September
272  break;
273  // LKM: do harvest before 10th of December - if not done, try again + 1 day until the 10th of December when we succeed
274  case dk_osbe_harvest:
275  if (!m_farm->HarvestLong(m_field, 0.0, m_field->GetMDates(1, 0) - g_date->DayInYear())) {
276  SimpleEvent(g_date->Date() + 1, dk_osbe_harvest, true);
277  break;
278  }
279  m_field->SetVegPatchy(false);
280  done = true;
281  break;
282 
283  default:
284  g_msg->Warn(WARN_BUG, "DK_OSugarbeet::Do(): "
285  "Unknown event type! ", "");
286  exit(1);
287  }
288  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
289  return done;
290 }

References Farm::AutumnHarrow(), Farm::AutumnPlough(), LE::ClearManagementActionSum(), Calendar::Date(), Calendar::DayInYear(), dk_osbe_autumn_plough, dk_osbe_ferti_p, dk_osbe_ferti_s, DK_OSBE_FORCESPRING, dk_osbe_harrow, dk_osbe_harvest, dk_osbe_manualweeding, dk_osbe_molluscicide1, dk_osbe_molluscicide2, dk_osbe_row_cultivation1, dk_osbe_row_cultivation2, dk_osbe_row_cultivation3, dk_osbe_sharrow1, dk_osbe_sharrow2, dk_osbe_sharrow3, dk_osbe_sow, dk_osbe_spring_plough, dk_osbe_start, dk_osbe_strigling, dk_osbe_water1, dk_osbe_water2, dk_osbe_winter_harrow, Farm::DoIt_prob(), Farm::FA_Manure(), Farm::FP_Manure(), g_date, g_msg, LE::GetMDates(), Farm::HarvestLong(), 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::ManualWeeding(), Farm::Molluscicide(), Calendar::OldDays(), Farm::RowCultivation(), LE::SetVegPatchy(), Farm::ShallowHarrow(), Crop::SimpleEvent(), Farm::SpringHarrow(), Farm::SpringPlough(), Farm::SpringSow(), Crop::StartUpCrop(), Farm::Strigling(), tov_DKOSugarBeets, MapErrorMsg::Warn(), WARN_BUG, and Farm::Water().

◆ SetUpFarmCategoryInformation()

void DK_OSugarBeet::SetUpFarmCategoryInformation ( )
inline
70  {
71  const int elements = 2 + (dk_osbe_foobar - DK_OSB_BASE);
73 
74  FarmManagementCategory catlist[elements] =
75  {
76  fmc_Others, // zero element unused but must be here
77  fmc_Others, // dk_osbe_start = 1, // Compulsory, start event must always be 1 (one).
78  fmc_Harvest, // dk_osbe_harvest = DK_OSB_BASE,
79  fmc_Fertilizer, // dk_osbe_ferti_s
80  fmc_Fertilizer, // dk_osbe_ferti_p
81  fmc_Cultivation, // dk_osbe_autumn_plough,
82  fmc_Cultivation, // dk_osbe_winter_harrow,
83  fmc_Others, // dk_osbe_molluscicide1,
84  fmc_Cultivation, // dk_osbe_spring_plough,
85  fmc_Cultivation, // dk_osbe_sharrow1,
86  fmc_Cultivation, // dk_osbe_sharrow2,
87  fmc_Cultivation, // dk_osbe_sharrow3,
88  fmc_Others, // dk_osbe_sow,
89  fmc_Others, // dk_osbe_molluscicide2,
90  fmc_Cultivation, // dk_osbe_strigling,
91  fmc_Cultivation, // dk_osbe_harrow,
92  fmc_Cultivation, // dk_osbe_row_cultivation1,
93  fmc_Watering, // dk_osbe_water1,
94  fmc_Watering, // dk_osbe_water2,
95  fmc_Cultivation, // dk_osbe_row_cultivation2,
96  fmc_Cultivation, // dk_osbe_row_cultivation3,
97  fmc_Cultivation // dk_osbe_manualweeding,
98 
99 
100  // no foobar entry
101 
102  };
103  // Iterate over the catlist elements and copy them to vector
104  copy(begin(catlist), end(catlist), back_inserter(m_ManagementCategories));
105 
106  }

References DK_OSB_BASE, dk_osbe_foobar, fmc_Cultivation, fmc_Fertilizer, fmc_Harvest, fmc_Others, fmc_Watering, Crop::m_base_elements_no, and Crop::m_ManagementCategories.

Referenced by DK_OSugarBeet().


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_osbe_strigling
Definition: DK_OSugarBeet.h:48
dk_osbe_water1
Definition: DK_OSugarBeet.h:51
dk_osbe_row_cultivation1
Definition: DK_OSugarBeet.h:50
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_osbe_row_cultivation3
Definition: DK_OSugarBeet.h:54
dk_osbe_foobar
Definition: DK_OSugarBeet.h:56
dk_osbe_molluscicide1
Definition: DK_OSugarBeet.h:41
tov_DKOSugarBeets
Definition: LandscapeFarmingEnums.h:350
dk_osbe_spring_plough
Definition: DK_OSugarBeet.h:42
FarmEvent::m_lock
bool m_lock
Definition: Farm.h:384
DK_OSBE_FORCESPRING
#define DK_OSBE_FORCESPRING
Definition: DK_OSugarBeet.h:32
LE::ClearManagementActionSum
void ClearManagementActionSum()
clears the management action counters
Definition: Elements.h:247
dk_osbe_harvest
Definition: DK_OSugarBeet.h:36
Farm::Molluscicide
virtual bool Molluscicide(LE *a_field, double a_user, int a_days)
Apply molluscicide to a_field.
Definition: FarmFuncs.cpp:2310
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
Farm::FA_Manure
virtual bool FA_Manure(LE *a_field, double a_user, int a_days)
Spread manure on a_field owned by an stock farmer.
Definition: FarmFuncs.cpp:1110
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_osbe_manualweeding
Definition: DK_OSugarBeet.h:55
Crop::m_base_elements_no
int m_base_elements_no
Definition: Farm.h:505
dk_osbe_water2
Definition: DK_OSugarBeet.h:52
Crop::m_first_date
int m_first_date
Definition: Farm.h:501
Crop::SimpleEvent
void SimpleEvent(long a_date, int a_todo, bool a_lock)
Adds an event to this crop management.
Definition: Farm.cpp:747
Farm::FP_Manure
virtual bool FP_Manure(LE *a_field, double a_user, int a_days)
Spread manure on a_field owned by an arable farmer.
Definition: FarmFuncs.cpp:896
fmc_Fertilizer
Definition: LandscapeFarmingEnums.h:1004
Calendar::Date
long Date(void)
Definition: Calendar.h:57
dk_osbe_sharrow1
Definition: DK_OSugarBeet.h:43
fmc_Cultivation
Definition: LandscapeFarmingEnums.h:1008
fmc_Others
Definition: LandscapeFarmingEnums.h:1003
LE::SetVegPatchy
void SetVegPatchy(bool p)
Definition: Elements.h:229
fmc_Watering
Definition: LandscapeFarmingEnums.h:1011
dk_osbe_row_cultivation2
Definition: DK_OSugarBeet.h:53
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_osbe_sow
Definition: DK_OSugarBeet.h:46
dk_osbe_sharrow3
Definition: DK_OSugarBeet.h:45
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_osbe_ferti_s
Definition: DK_OSugarBeet.h:37
Farm::ManualWeeding
virtual bool ManualWeeding(LE *a_field, double a_user, int a_days)
Manual weeding on a_field - no tramlines since weeding by hand, the bush stays on field with same veg...
Definition: FarmFuncs.cpp:2002
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
dk_osbe_winter_harrow
Definition: DK_OSugarBeet.h:40
dk_osbe_start
Definition: DK_OSugarBeet.h:35
Farm::ShallowHarrow
virtual bool ShallowHarrow(LE *a_field, double a_user, int a_days)
Carry out a shallow harrow event on a_field, e.g., after grass cutting event.
Definition: FarmFuncs.cpp:473
Farm::HarvestLong
virtual bool HarvestLong(LE *a_field, double a_user, int a_days)
Carry out a harvest on a_field (only differs in the DoIt chance cf harvest)
Definition: FarmFuncs.cpp:1421
dk_osbe_harrow
Definition: DK_OSugarBeet.h:49
dk_osbe_autumn_plough
Definition: DK_OSugarBeet.h:39
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::AutumnHarrow
virtual bool AutumnHarrow(LE *a_field, double a_user, int a_days)
Carry out a harrow event in the autumn on a_field.
Definition: FarmFuncs.cpp:285
TTypesOfVegetation
TTypesOfVegetation
Values that represent the types of vegetation that are represented in ALMaSS.
Definition: LandscapeFarmingEnums.h:192
dk_osbe_ferti_p
Definition: DK_OSugarBeet.h:38
fmc_Harvest
Definition: LandscapeFarmingEnums.h:1012
Calendar::DayInYear
int DayInYear(void)
Definition: Calendar.h:58
dk_osbe_sharrow2
Definition: DK_OSugarBeet.h:44
DK_OSB_BASE
#define DK_OSB_BASE
Definition: DK_OSugarBeet.h:31
Crop::Crop
Crop(TTypesOfVegetation a_tov, TTypesOfCrops a_toc, Landscape *a_L)
Definition: Farm.cpp:733
dk_osbe_molluscicide2
Definition: DK_OSugarBeet.h:47
Crop::m_ev
FarmEvent * m_ev
Definition: Farm.h:500
DK_OSugarBeet::SetUpFarmCategoryInformation
void SetUpFarmCategoryInformation()
Definition: DK_OSugarBeet.h:70
WARN_BUG
Definition: MapErrorMsg.h:34
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