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

DK_OWinterCloverGrassGrazedSown class
. More...

#include <DK_OWinterCloverGrassGrazedSown.h>

Inheritance diagram for DK_OWinterCloverGrassGrazedSown:
Crop

Public Member Functions

virtual bool Do (Farm *a_farm, LE *a_field, FarmEvent *a_ev)
 The one and only method for a crop management plan. All farm actions go through here. More...
 
 DK_OWinterCloverGrassGrazedSown (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...
 

Detailed Description

DK_OWinterCloverGrassGrazedSown class
.

See OWinterCloverGrassGrazedSown.h::OWinterCloverGrassGrazedSownToDo for a complete list of all possible events triggered codes by the OWinterCloverGrassGrazedSown management plan. When triggered these events are handled by Farm and are available as information for other objects such as animal and bird models.

Constructor & Destructor Documentation

◆ DK_OWinterCloverGrassGrazedSown()

DK_OWinterCloverGrassGrazedSown::DK_OWinterCloverGrassGrazedSown ( TTypesOfVegetation  a_tov,
TTypesOfCrops  a_toc,
Landscape a_L 
)
inline
103  : Crop(a_tov, a_toc, a_L)
104  {
105  // When we start it off, the first possible date for a farm operation
106  // This information is used by other crops when they decide how much post processing of
107  // the management is allowed after harvest before the next crop starts.
108  m_first_date = g_date->DayInYear(17, 8);
110  }

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

Member Function Documentation

◆ Do()

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

The one and only method for a crop management plan. All farm actions go through here.

Called every time something is done to the crop by the farmer in the first instance it is always called with a_ev->todo set to start, but susequently will be called whenever the farmer wants to carry out a new operation.
This method details all the management and relationships between operations necessary to grow and ALMaSS crop - in this case conventional spring barley Fodder.

Reimplemented from Crop.

88 {
89  m_field = a_field; // this is needed because of possible calls to other methods and currently we do not pass parameters.
90  m_farm = a_farm; // this is needed because of possible calls to other methods and currently we do not pass parameters.
91  m_ev = a_ev;
92  bool done = false; // The boolean value done indicates when we are totally finished with this plan (i.e. it is set to true).
93  int d1 = 0;
94  TTypesOfVegetation l_tov = tov_DKOWinterCloverGrassGrazedSown; // The current type - change to match the crop you have
95  // Depending what event has occured jump to the correct bit of code e.g. for ww_start jump to line 67 below
96  switch (a_ev->m_todo)
97  {
98  case dk_owcs_start:
99  {
100  a_field->ClearManagementActionSum();
101 
102  m_last_date = g_date->DayInYear(10, 10); // Should match the last flexdate below
103  //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
104  std::vector<std::vector<int>> flexdates(4 + 1, std::vector<int>(2, 0));
105  // Set up the date management stuff
106  // Start and stop dates for all events after harvest
107  flexdates[0][1] = g_date->DayInYear(10, 7); // last possible day of ferti
108  // Now these are done in pairs, start & end for each operation. If its not used then -1
109  flexdates[1][0] = -1;
110  flexdates[1][1] = g_date->DayInYear(20, 7); // This date will be moved back as far as necessary and potentially to flexdates 1 (end op 1) - cutting
111  flexdates[2][0] = -1;
112  flexdates[2][1] = g_date->DayInYear(20, 8); // This date will be moved back as far as necessary and potentially to flexdates 2 (end op 2) - cutting
113  flexdates[3][0] = -1;
114  flexdates[3][1] = g_date->DayInYear(20, 9); // This date will be moved back as far as necessary and potentially to flexdates 3 (end op 3) - cutting
115  flexdates[4][0] = -1; // This date will be moved back as far as necessary and potentially to flexdates 4 (start op 4)
116  flexdates[4][1] = g_date->DayInYear(10, 10); // This date will be moved back as far as necessary and potentially to flexdates 4 (end op 4) - cattle is out // changed back from 1/11 to 10/10 to fit rots
117  //flexdates[5][0] = -1;
118  //flexdates[5][1] = g_date->DayInYear(1, 11); - we need to update grazing / cutting managements (grazing model)
119  if (StartUpCrop(0, flexdates, int(dk_owcs_manure1_s))) break;
120 
121  // End single block date checking code. Please see next line comment as well.
122  // Reinit d1 to first possible starting date.
123  d1 = g_date->OldDays() + g_date->DayInYear(12, 8);
124  // OK, let's go.
125  SimpleEvent(d1, dk_owcs_harrow, false);
126  }
127  break;
128 
129  case dk_owcs_harrow:
130  if (a_ev->m_lock || a_farm->DoIt(100)) {
131  if (!a_farm->AutumnHarrow(a_field, 0.0, g_date->DayInYear(17, 8) - g_date->DayInYear())) {
132  SimpleEvent(g_date->Date() + 1, dk_owcs_harrow, true);
133  break;
134  }
135  }
136  //here comes next events:
138  break;
140  if (a_ev->m_lock || a_farm->DoIt(50)) {
141  if (!a_farm->AutumnPlough(a_field, 0.0,
142  g_date->DayInYear(22, 8) - g_date->DayInYear())) {
144  break;
145  }
146  }
147  SimpleEvent(g_date->Date(), dk_owcs_sow, false);
148  break;
149  case dk_owcs_sow: //
150  if (!a_farm->AutumnSow(a_field, 0.0,
151  g_date->DayInYear(25, 8) - g_date->DayInYear())) {
152  SimpleEvent(g_date->Date() + 1, dk_owcs_sow, true);
153  break;
154  }
155  SimpleEvent(g_date->Date()+1, dk_owcs_water1, false);
156  break;
157  case dk_owcs_water1: //
158  if (m_ev->m_lock || m_farm->DoIt_prob(0.50)) {
159  if (!a_farm->Water(a_field, 0.0,
160  g_date->DayInYear(15, 9) - g_date->DayInYear())) {
161  SimpleEvent(g_date->Date() + 1, dk_owcs_water1, true);
162  break;
163  }
164  }
165  if (a_farm->IsStockFarmer()) {
166  SimpleEvent(g_date->OldDays() + g_date->DayInYear(1, 3) + 365, dk_owcs_manure1_s, false);
167  break;
168  }
169  else SimpleEvent(g_date->OldDays() + g_date->DayInYear(1, 3) + 365, dk_owcs_manure1_p, false);
170  break;
171  case dk_owcs_manure1_s: //
172  if (!a_farm->FA_Manure(a_field, 0.0,
173  g_date->DayInYear(30, 4) - g_date->DayInYear())) {
174  SimpleEvent(g_date->Date() + 1, dk_owcs_manure1_s, true);
175  break;
176  }
178  break;
179  case dk_owcs_manure1_p: //
180  if (!a_farm->FP_Manure(a_field, 0.0,
181  g_date->DayInYear(30, 4) - g_date->DayInYear())) {
182  SimpleEvent(g_date->Date() + 1, dk_owcs_manure1_p, true);
183  break;
184  }
186  break;
187  case dk_owcs_ferti_sk_s: //
188  if (!a_farm->FA_SK(a_field, 0.0,
189  g_date->DayInYear(30, 4) - g_date->DayInYear())) {
190  SimpleEvent(g_date->Date() + 1, dk_owcs_ferti_sk_s, true);
191  break;
192  }
194  break;
195  case dk_owcs_ferti_sk_p: //
196  if (!a_farm->FP_SK(a_field, 0.0,
197  g_date->DayInYear(30, 4) - g_date->DayInYear())) {
198  SimpleEvent(g_date->Date() + 1, dk_owcs_ferti_sk_p, true);
199  break;
200  }
202  break;
203  case dk_owcs_water2: //
204  if (m_ev->m_lock || m_farm->DoIt_prob(0.50)) {
205  if (!a_farm->Water(a_field, 0.0,
206  g_date->DayInYear(30, 6) - g_date->DayInYear())) {
207  SimpleEvent(g_date->Date() + 1, dk_owcs_water2, true);
208  break;
209  }
210  }
212  break;
213  case dk_owcs_cutting1: // no % so suggests 50% do cutting, 50% do grazing
214  if (a_ev->m_lock || a_farm->DoIt_prob(0.50)) {
215  if (!a_farm->CutToSilage(a_field, 0.0,
216  g_date->DayInYear(30, 6) - g_date->DayInYear())) {
217  SimpleEvent(g_date->Date() + 1, dk_owcs_cutting1, true);
218  break;
219  }
220  if (a_farm->IsStockFarmer()) {
222  break;
223  }
224  else SimpleEvent(g_date->OldDays() + g_date->DayInYear(1, 7), dk_owcs_manure2_p, false);
225  break;
226  }
227  else SimpleEvent(g_date->OldDays() + g_date->DayInYear(15, 6), dk_owcs_grazing, false);
228  break;
229  case dk_owcs_grazing:
233  SimpleEvent(g_date->Date() + 1, dk_owcs_grazing, true);
234  break;
235  }
237  break;
238  case dk_owcs_cattle_is_out: // Keep the cattle out there
239  // CattleIsOut() returns false if it is not time to stop grazing
244  break;
245  }
247  break;
248 
249  case dk_owcs_manure2_s: //
250  if (!a_farm->FA_Manure(a_field, 0.0, m_field->GetMDates(1, 0) - g_date->DayInYear())) {
251  SimpleEvent(g_date->Date() + 1, dk_owcs_manure2_s, true);
252  break;
253  }
254  SimpleEvent(g_date->Date() + 7, dk_owcs_cutting2, false);
255  break;
256  case dk_owcs_manure2_p: //
257  if (!a_farm->FP_Manure(a_field, 0.0, m_field->GetMDates(1, 0) - g_date->DayInYear())) {
258  SimpleEvent(g_date->Date() + 1, dk_owcs_manure2_p, true);
259  break;
260  }
261  SimpleEvent(g_date->Date() + 7, dk_owcs_cutting2, false);
262  break;
263  case dk_owcs_cutting2:
264  if (!a_farm->CutToSilage(a_field, 0.0, m_field->GetMDates(1, 1) - g_date->DayInYear())) {
265  SimpleEvent(g_date->Date() + 1, dk_owcs_cutting2, true);
266  break;
267  }
268  SimpleEvent(g_date->Date() + 20, dk_owcs_cutting3, false);
269  break;
270  case dk_owcs_cutting3:
271  if (!a_farm->CutToSilage(a_field, 0.0, m_field->GetMDates(1, 2) - g_date->DayInYear())) {
272  SimpleEvent(g_date->Date() + 1, dk_owcs_cutting3, true);
273  break;
274  }
275  SimpleEvent(g_date->Date() + 20, dk_owcs_cutting4, false);
276  break;
277  case dk_owcs_cutting4:
278  if (!a_farm->CutToSilage(a_field, 0.0, m_field->GetMDates(1, 3) - g_date->DayInYear())) {
279  SimpleEvent(g_date->Date() + 1, dk_owcs_cutting4, true);
280  break;
281  }
283  break;
284  case dk_owcs_force_growth: // Need to add this in the end to make sure grass decays in winter
285  if (g_date->DayInYear() < g_date->DayInYear(1, 11)) {
287  break;
288  }
289  else if (g_date->DayInYear() < g_date->DayInYear(31, 12)) {
290  a_field->ForceGrowthTest();
292  break;
293  }
294  done = true;
295  break;
296  // So we are done, and somewhere else the farmer will queue up the start event of the next crop
297  // END OF MAIN THREAD
298  default:
299  g_msg->Warn(WARN_BUG, "DK_OWinterCloverGrassGrazedSown::Do(): "
300  "Unknown event type! ", "");
301  exit(1);
302  }
303  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
304  return done;
305 }

References Farm::AutumnHarrow(), Farm::AutumnPlough(), Farm::AutumnSow(), Farm::CattleIsOut(), Farm::CattleOut(), cfg_farm_cattle_grass_high, cfg_farm_cattle_grass_low, LE::ClearManagementActionSum(), Farm::CutToSilage(), Calendar::Date(), Calendar::DayInYear(), dk_owcs_autumn_plough, dk_owcs_cattle_is_out, dk_owcs_cutting1, dk_owcs_cutting2, dk_owcs_cutting3, dk_owcs_cutting4, dk_owcs_ferti_sk_p, dk_owcs_ferti_sk_s, dk_owcs_force_growth, DK_OWCS_GRASS_READY, dk_owcs_grazing, dk_owcs_harrow, dk_owcs_manure1_p, dk_owcs_manure1_s, dk_owcs_manure2_p, dk_owcs_manure2_s, dk_owcs_sow, dk_owcs_start, dk_owcs_water1, dk_owcs_water2, Farm::DoIt(), Farm::DoIt_prob(), Farm::FA_Manure(), Farm::FA_SK(), LE::ForceGrowthTest(), Farm::FP_Manure(), Farm::FP_SK(), g_date, g_msg, LE::GetMDates(), LE::GetVegHeight(), 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(), Crop::SimpleEvent(), Crop::StartUpCrop(), tov_DKOWinterCloverGrassGrazedSown, CfgInt::value(), MapErrorMsg::Warn(), WARN_BUG, and Farm::Water().

◆ SetUpFarmCategoryInformation()

void DK_OWinterCloverGrassGrazedSown::SetUpFarmCategoryInformation ( )
inline
111  {
112  const int elements = 2 + (dk_owcs_foobar - DK_OWCS_BASE);
114 
115  FarmManagementCategory catlist[elements] =
116  {
117  fmc_Others, // zero element unused but must be here
118  fmc_Others, // dk_owcs_start = 1, // Compulsory, must always be 1 (one).
119  fmc_Others, // dk_owcs_sleep_all_day = DK_owcs_BASE,
120  fmc_Cultivation, // dk_owcs_harrow,
121  fmc_Cultivation, // dk_owcs_autumn_plough,
122  fmc_Others, // dk_owcs_sow,
123  fmc_Watering, // dk_owcs_water1,
124  fmc_Watering, // dk_owcs_water2,
125  fmc_Fertilizer, // dk_owcs_manure1_s,
126  fmc_Fertilizer, // dk_owcs_ferti_sk_s,
127  fmc_Fertilizer, // dk_owcs_manure1_p,
128  fmc_Fertilizer, // dk_owcs_ferti_sk_p,
129  fmc_Cutting, // dk_owcs_cutting1,
130  fmc_Grazing, // dk_owcs_grazing,
131  fmc_Grazing, // dk_owcs_cattle_is_out,
132  fmc_Fertilizer, // dk_owcs_manure2_s,
133  fmc_Fertilizer, // dk_owcs_manure2_p,
134  fmc_Cutting, // dk_owcs_cutting2,
135  fmc_Cutting, // dk_owcs_cutting3,
136  fmc_Cutting, // dk_owcs_cutting4,
137  fmc_Cutting, // dk_owcs_cutting4,
138  fmc_Others // dk_owcs_force_growth
139 
140  // no foobar entry
141 
142  };
143  // Iterate over the catlist elements and copy them to vector
144  copy(begin(catlist), end(catlist), back_inserter(m_ManagementCategories));
145 
146  }

References DK_OWCS_BASE, dk_owcs_foobar, fmc_Cultivation, fmc_Cutting, fmc_Fertilizer, fmc_Grazing, fmc_Others, fmc_Watering, Crop::m_base_elements_no, and Crop::m_ManagementCategories.

Referenced by DK_OWinterCloverGrassGrazedSown().


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::IsStockFarmer
bool IsStockFarmer(void)
Definition: Farm.h:961
dk_owcs_cutting3
Definition: DK_OWinterCloverGrassGrazedSown.h:82
FarmEvent::m_lock
bool m_lock
Definition: Farm.h:384
dk_owcs_foobar
Definition: DK_OWinterCloverGrassGrazedSown.h:86
Farm::CattleIsOut
virtual bool CattleIsOut(LE *a_field, double a_user, int a_days, int a_max)
Generate a 'cattle_out' event for every day the cattle are on a_field.
Definition: FarmFuncs.cpp:2470
LE::ClearManagementActionSum
void ClearManagementActionSum()
clears the management action counters
Definition: Elements.h:247
Farm::CutToSilage
virtual bool CutToSilage(LE *a_field, double a_user, int a_days)
Cut vegetation for silage on a_field.
Definition: FarmFuncs.cpp:1644
Farm::DoIt
bool DoIt(double a_probability)
Return chance out of 0 to 100.
Definition: Farm.cpp:856
DK_OWCS_BASE
#define DK_OWCS_BASE
Definition: DK_OWinterCloverGrassGrazedSown.h:53
dk_owcs_ferti_sk_p
Definition: DK_OWinterCloverGrassGrazedSown.h:75
LE::ForceGrowthTest
virtual void ForceGrowthTest(void)
Definition: Elements.h:188
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
dk_owcs_water1
Definition: DK_OWinterCloverGrassGrazedSown.h:70
Crop::m_base_elements_no
int m_base_elements_no
Definition: Farm.h:505
Farm::FP_SK
virtual bool FP_SK(LE *a_field, double a_user, int a_days)
Apply SK fertilizer, on a_field owned by an arable farmer.
Definition: FarmFuncs.cpp:794
Crop::m_first_date
int m_first_date
Definition: Farm.h:501
dk_owcs_force_growth
Definition: DK_OWinterCloverGrassGrazedSown.h:85
Crop::SimpleEvent
void SimpleEvent(long a_date, int a_todo, bool a_lock)
Adds an event to this crop management.
Definition: Farm.cpp:747
cfg_farm_cattle_grass_low
CfgInt cfg_farm_cattle_grass_low
dk_owcs_cattle_is_out
Definition: DK_OWinterCloverGrassGrazedSown.h:78
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_Cutting
Definition: LandscapeFarmingEnums.h:1009
dk_owcs_water2
Definition: DK_OWinterCloverGrassGrazedSown.h:71
dk_owcs_grazing
Definition: DK_OWinterCloverGrassGrazedSown.h:77
dk_owcs_manure2_s
Definition: DK_OWinterCloverGrassGrazedSown.h:79
fmc_Fertilizer
Definition: LandscapeFarmingEnums.h:1004
dk_owcs_autumn_plough
Definition: DK_OWinterCloverGrassGrazedSown.h:68
dk_owcs_manure1_s
Definition: DK_OWinterCloverGrassGrazedSown.h:72
Calendar::Date
long Date(void)
Definition: Calendar.h:57
fmc_Cultivation
Definition: LandscapeFarmingEnums.h:1008
fmc_Others
Definition: LandscapeFarmingEnums.h:1003
LE::GetVegHeight
virtual double GetVegHeight(void)
Definition: Elements.h:148
fmc_Watering
Definition: LandscapeFarmingEnums.h:1011
dk_owcs_ferti_sk_s
Definition: DK_OWinterCloverGrassGrazedSown.h:73
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
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
CfgInt::value
int value() const
Definition: Configurator.h:116
dk_owcs_harrow
Definition: DK_OWinterCloverGrassGrazedSown.h:67
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::FA_SK
virtual bool FA_SK(LE *a_field, double a_user, int a_days)
Apply SK fertilizer, on a_field owned by an stock farmer.
Definition: FarmFuncs.cpp:1052
FarmEvent::m_todo
int m_todo
Definition: Farm.h:388
dk_owcs_sow
Definition: DK_OWinterCloverGrassGrazedSown.h:69
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
dk_owcs_manure2_p
Definition: DK_OWinterCloverGrassGrazedSown.h:80
dk_owcs_manure1_p
Definition: DK_OWinterCloverGrassGrazedSown.h:74
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_OWinterCloverGrassGrazedSown::SetUpFarmCategoryInformation
void SetUpFarmCategoryInformation()
Definition: DK_OWinterCloverGrassGrazedSown.h:111
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
tov_DKOWinterCloverGrassGrazedSown
Definition: LandscapeFarmingEnums.h:373
dk_owcs_cutting4
Definition: DK_OWinterCloverGrassGrazedSown.h:83
fmc_Grazing
Definition: LandscapeFarmingEnums.h:1010
TTypesOfVegetation
TTypesOfVegetation
Values that represent the types of vegetation that are represented in ALMaSS.
Definition: LandscapeFarmingEnums.h:192
cfg_farm_cattle_grass_high
CfgInt cfg_farm_cattle_grass_high
Farm::AutumnSow
virtual bool AutumnSow(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 autumn on a_field.
Definition: FarmFuncs.cpp:360
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_OWCS_GRASS_READY
#define DK_OWCS_GRASS_READY
Definition: DK_OWinterCloverGrassGrazedSown.h:54
Crop::m_ev
FarmEvent * m_ev
Definition: Farm.h:500
Farm::CattleOut
virtual bool CattleOut(LE *a_field, double a_user, int a_days)
Start a grazing event on a_field today.
Definition: FarmFuncs.cpp:2368
dk_owcs_start
Definition: DK_OWinterCloverGrassGrazedSown.h:65
WARN_BUG
Definition: MapErrorMsg.h:34
FarmManagementCategory
FarmManagementCategory
Definition: LandscapeFarmingEnums.h:1001
dk_owcs_cutting1
Definition: DK_OWinterCloverGrassGrazedSown.h:76
dk_owcs_cutting2
Definition: DK_OWinterCloverGrassGrazedSown.h:81