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

DK_OWinterFodderGrass class
. More...

#include <DK_OWinterFodderGrass.h>

Inheritance diagram for DK_OWinterFodderGrass:
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_OWinterFodderGrass (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_OWinterFodderGrass class
.

See OWinterFodderGrass.h::OWinterFodderGrassToDo for a complete list of all possible events triggered codes by the OWinterFodderGrass 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_OWinterFodderGrass()

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

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

Member Function Documentation

◆ Do()

bool DK_OWinterFodderGrass::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.

89 {
90  m_field = a_field; // this is needed because of possible calls to other methods and currently we do not pass parameters.
91  m_farm = a_farm; // this is needed because of possible calls to other methods and currently we do not pass parameters.
92  m_ev = a_ev;
93  bool done = false; // The boolean value done indicates when we are totally finished with this plan (i.e. it is set to true).
94  int d1 = 0;
95  TTypesOfVegetation l_tov = tov_DKOWinterFodderGrass; // The current type - change to match the crop you have
96  // Depending what event has occured jump to the correct bit of code e.g. for ww_start jump to line 67 below
97  switch (a_ev->m_todo)
98  {
99  case dk_owfg_start:
100  {
101  a_field->ClearManagementActionSum();
102 
103  m_last_date = g_date->DayInYear(10, 10); // Should match the last flexdate below
104  //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
105  std::vector<std::vector<int>> flexdates(4 + 1, std::vector<int>(2, 0));
106  // Set up the date management stuff
107  // Start and stop dates for all events after harvest
108  flexdates[0][1] = g_date->DayInYear(10, 7); // last possible day of ferti
109  // Now these are done in pairs, start & end for each operation. If its not used then -1
110  flexdates[1][0] = -1;
111  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
112  flexdates[2][0] = -1;
113  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
114  flexdates[3][0] = -1;
115  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
116  flexdates[4][0] = -1; // This date will be moved back as far as necessary and potentially to flexdates 4 (start op 4)
117  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
118  //flexdates[5][0] = -1;
119  //flexdates[5][1] = g_date->DayInYear(1, 11); - we need to update grazing / cutting managements (grazing model)
120  if (StartUpCrop(0, flexdates, int(dk_owfg_manure1_s))) break;
121 
122  // OK, let's go.
123  // Here we queue up the first event
124  d1 = g_date->OldDays() + g_date->DayInYear(12, 8);
125  // This is the first real farm operation
126  d1 = g_date->OldDays() + g_date->DayInYear(12, 8);
127  // OK, let's go.
128  SimpleEvent(d1, dk_owfg_harrow, false);
129  }
130  break;
131 
132  case dk_owfg_harrow:
133  if (a_ev->m_lock || a_farm->DoIt(100)) {
134  if (!a_farm->AutumnHarrow(a_field, 0.0, g_date->DayInYear(17, 8) - g_date->DayInYear())) {
135  SimpleEvent(g_date->Date() + 1, dk_owfg_harrow, true);
136  break;
137  }
138  }
139  //here comes next events:
141  break;
143  if (a_ev->m_lock || a_farm->DoIt(50)) {
144  if (!a_farm->AutumnPlough(a_field, 0.0,
145  g_date->DayInYear(22, 8) - g_date->DayInYear())) {
147  break;
148  }
149  }
150  SimpleEvent(g_date->Date(), dk_owfg_sow, false);
151  break;
152  case dk_owfg_sow: //
153  if (!a_farm->AutumnSow(a_field, 0.0,
154  g_date->DayInYear(25, 8) - g_date->DayInYear())) {
155  SimpleEvent(g_date->Date() + 1, dk_owfg_sow, true);
156  break;
157  }
158  SimpleEvent(g_date->Date() + 1, dk_owfg_water1, false);
159  break;
160  case dk_owfg_water1: //
161  if (m_ev->m_lock || m_farm->DoIt_prob(0.50)) {
162  if (!a_farm->Water(a_field, 0.0,
163  g_date->DayInYear(15, 9) - g_date->DayInYear())) {
164  SimpleEvent(g_date->Date() + 1, dk_owfg_water1, true);
165  break;
166  }
167  }
168  if (a_farm->IsStockFarmer()) {
169  SimpleEvent(g_date->OldDays() + g_date->DayInYear(1, 3) + 365, dk_owfg_manure1_s, false);
170  break;
171  }
172  else SimpleEvent(g_date->OldDays() + g_date->DayInYear(1, 3) + 365, dk_owfg_manure1_p, false);
173  break;
174  case dk_owfg_manure1_s: //
175  if (!a_farm->FA_Manure(a_field, 0.0,
176  g_date->DayInYear(30, 4) - g_date->DayInYear())) {
177  SimpleEvent(g_date->Date() + 1, dk_owfg_manure1_s, true);
178  break;
179  }
181  break;
182  case dk_owfg_manure1_p: //
183  if (!a_farm->FP_Manure(a_field, 0.0,
184  g_date->DayInYear(30, 4) - g_date->DayInYear())) {
185  SimpleEvent(g_date->Date() + 1, dk_owfg_manure1_p, true);
186  break;
187  }
189  break;
190  case dk_owfg_ferti_sk_s: //
191  if (!a_farm->FA_SK(a_field, 0.0,
192  g_date->DayInYear(30, 4) - g_date->DayInYear())) {
193  SimpleEvent(g_date->Date() + 1, dk_owfg_ferti_sk_s, true);
194  break;
195  }
197  break;
198  case dk_owfg_ferti_sk_p: //
199  if (!a_farm->FP_SK(a_field, 0.0,
200  g_date->DayInYear(30, 4) - g_date->DayInYear())) {
201  SimpleEvent(g_date->Date() + 1, dk_owfg_ferti_sk_p, true);
202  break;
203  }
205  break;
206  case dk_owfg_water2: //
207  if (m_ev->m_lock || m_farm->DoIt_prob(0.50)) {
208  if (!a_farm->Water(a_field, 0.0,
209  g_date->DayInYear(30, 6) - g_date->DayInYear())) {
210  SimpleEvent(g_date->Date() + 1, dk_owfg_water2, true);
211  break;
212  }
213  }
215  break;
216  case dk_owfg_cutting1: // no % so suggests 50% do cutting, 50% do grazing
217  if (a_ev->m_lock || a_farm->DoIt_prob(0.50)) {
218  if (!a_farm->CutToSilage(a_field, 0.0,
219  g_date->DayInYear(30, 6) - g_date->DayInYear())) {
220  SimpleEvent(g_date->Date() + 1, dk_owfg_cutting1, true);
221  break;
222  }
223  if (a_farm->IsStockFarmer()) {
225  break;
226  }
227  else SimpleEvent(g_date->OldDays() + g_date->DayInYear(1, 7), dk_owfg_manure2_p, false);
228  break;
229  }
230  else SimpleEvent(g_date->OldDays() + g_date->DayInYear(15, 6), dk_owfg_grazing, false);
231  break;
232  case dk_owfg_grazing:
236  SimpleEvent(g_date->Date() + 1, dk_owfg_grazing, true);
237  break;
238  }
240  break;
241  case dk_owfg_cattle_is_out: // Keep the cattle out there
242  // CattleIsOut() returns false if it is not time to stop grazing
247  break;
248  }
249  // End of management w grazing
250  done = true;
251  break;
252 
253  case dk_owfg_manure2_s: //
254  if (!a_farm->FA_Manure(a_field, 0.0, m_field->GetMDates(1, 0) - g_date->DayInYear())) {
255  SimpleEvent(g_date->Date() + 1, dk_owfg_manure2_s, true);
256  break;
257  }
259  break;
260  case dk_owfg_manure2_p: //
261  if (!a_farm->FP_Manure(a_field, 0.0, m_field->GetMDates(1, 0) - g_date->DayInYear())) {
262  SimpleEvent(g_date->Date() + 1, dk_owfg_manure2_p, true);
263  break;
264  }
265  SimpleEvent(g_date->Date() + 7, dk_owfg_cutting2, false);
266  break;
267  case dk_owfg_cutting2:
268  if (!a_farm->CutToSilage(a_field, 0.0, m_field->GetMDates(1, 1) - g_date->DayInYear())) {
269  SimpleEvent(g_date->Date() + 1, dk_owfg_cutting2, true);
270  break;
271  }
272  SimpleEvent(g_date->Date() + 20, dk_owfg_cutting3, false);
273  break;
274  case dk_owfg_cutting3:
275  if (!a_farm->CutToSilage(a_field, 0.0, m_field->GetMDates(1, 2) - g_date->DayInYear())) {
276  SimpleEvent(g_date->Date() + 1, dk_owfg_cutting3, true);
277  break;
278  }
279  SimpleEvent(g_date->Date() + 20, dk_owfg_cutting4, false);
280  break;
281  case dk_owfg_cutting4:
282  if (!a_farm->CutToSilage(a_field, 0.0, m_field->GetMDates(1, 3) - g_date->DayInYear())) {
283  SimpleEvent(g_date->Date() + 1, dk_owfg_cutting4, true);
284  break;
285  }
286  //SimpleEvent(g_date->Date() + 20, dk_owfg_cutting5, false);
287  //break;
288  //case dk_owfg_cutting5:
289  //if (a_ev->m_lock || a_farm->DoIt(50)) {
290  //if (!a_farm->CutToSilage(a_field, 0.0, m_field->GetMDates(1, 5) - g_date->DayInYear())) {
291  //SimpleEvent(g_date->Date() + 1, dk_owfg_cutting5, true);
292  //break;
293  //}
294  //}
295  done = true;
296  break;
297  // So we are done, and somewhere else the farmer will queue up the start event of the next crop
298  // END OF MAIN THREAD
299  default:
300  g_msg->Warn(WARN_BUG, "DK_OWinterFodderGrass::Do(): "
301  "Unknown event type! ", "");
302  exit(1);
303  }
304  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
305  return done;
306 }

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_owfg_autumn_plough, dk_owfg_cattle_is_out, dk_owfg_cutting1, dk_owfg_cutting2, dk_owfg_cutting3, dk_owfg_cutting4, dk_owfg_ferti_sk_p, dk_owfg_ferti_sk_s, DK_OWFG_GRASS_READY, dk_owfg_grazing, dk_owfg_harrow, dk_owfg_manure1_p, dk_owfg_manure1_s, dk_owfg_manure2_p, dk_owfg_manure2_s, dk_owfg_sow, dk_owfg_start, dk_owfg_water1, dk_owfg_water2, Farm::DoIt(), Farm::DoIt_prob(), Farm::FA_Manure(), Farm::FA_SK(), 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_DKOWinterFodderGrass, CfgInt::value(), MapErrorMsg::Warn(), WARN_BUG, and Farm::Water().

◆ SetUpFarmCategoryInformation()

void DK_OWinterFodderGrass::SetUpFarmCategoryInformation ( )
inline
110  {
111  const int elements = 2 + (dk_owfg_foobar - DK_OWFG_BASE);
113 
114  FarmManagementCategory catlist[elements] =
115  {
116  fmc_Others, // zero element unused but must be here
117  fmc_Others, // dk_owfg_start = 1, // Compulsory, must always be 1 (one).
118  fmc_Others, // dk_owfg_sleep_all_day = DK_owfg_BASE,
119  fmc_Cultivation, // dk_owfg_harrow,
120  fmc_Cultivation, // dk_owfg_autumn_plough,
121  fmc_Others, // dk_owfg_sow,
122  fmc_Watering, // dk_owfg_water1,
123  fmc_Watering, // dk_owfg_water2,
124  fmc_Fertilizer, // dk_owfg_manure1_s,
125  fmc_Fertilizer, // dk_owfg_ferti_sk_s,
126  fmc_Fertilizer, // dk_owfg_manure1_p,
127  fmc_Fertilizer, // dk_owfg_ferti_sk_p,
128  fmc_Cutting, // dk_owfg_cutting1,
129  fmc_Grazing, // dk_owfg_grazing,
130  fmc_Grazing, // dk_owfg_cattle_is_out,
131  fmc_Fertilizer, // dk_owfg_manure2_s,
132  fmc_Fertilizer, // dk_owfg_manure2_p,
133  fmc_Cutting, // dk_owfg_cutting2,
134  fmc_Cutting, // dk_owfg_cutting3,
135  fmc_Cutting, // dk_owfg_cutting4,
136  fmc_Cutting // dk_owfg_cutting4,
137 
138 
139  // no foobar entry
140 
141  };
142  // Iterate over the catlist elements and copy them to vector
143  copy(begin(catlist), end(catlist), back_inserter(m_ManagementCategories));
144 
145  }

References DK_OWFG_BASE, dk_owfg_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_OWinterFodderGrass().


The documentation for this class was generated from the following files:
LE::GetMDates
int GetMDates(int a, int b)
Definition: Elements.h:405
dk_owfg_water2
Definition: DK_OWinterFodderGrass.h:71
FarmEvent::m_forcespring
bool m_forcespring
Definition: Farm.h:392
DK_OWinterFodderGrass::SetUpFarmCategoryInformation
void SetUpFarmCategoryInformation()
Definition: DK_OWinterFodderGrass.h:110
Farm::IsStockFarmer
bool IsStockFarmer(void)
Definition: Farm.h:961
FarmEvent::m_lock
bool m_lock
Definition: Farm.h:384
tov_DKOWinterFodderGrass
Definition: LandscapeFarmingEnums.h:379
dk_owfg_cutting3
Definition: DK_OWinterFodderGrass.h:82
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_OWFG_BASE
#define DK_OWFG_BASE
Definition: DK_OWinterFodderGrass.h:53
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_owfg_manure2_s
Definition: DK_OWinterFodderGrass.h:79
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_owfg_cutting4
Definition: DK_OWinterFodderGrass.h:83
dk_owfg_cutting1
Definition: DK_OWinterFodderGrass.h:76
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_owfg_manure1_p
Definition: DK_OWinterFodderGrass.h:74
dk_owfg_ferti_sk_p
Definition: DK_OWinterFodderGrass.h:75
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_Cutting
Definition: LandscapeFarmingEnums.h:1009
dk_owfg_water1
Definition: DK_OWinterFodderGrass.h:70
dk_owfg_grazing
Definition: DK_OWinterFodderGrass.h:77
dk_owfg_autumn_plough
Definition: DK_OWinterFodderGrass.h:68
fmc_Fertilizer
Definition: LandscapeFarmingEnums.h:1004
Calendar::Date
long Date(void)
Definition: Calendar.h:57
dk_owfg_ferti_sk_s
Definition: DK_OWinterFodderGrass.h:73
fmc_Cultivation
Definition: LandscapeFarmingEnums.h:1008
cfg_farm_cattle_grass_high
CfgInt cfg_farm_cattle_grass_high
fmc_Others
Definition: LandscapeFarmingEnums.h:1003
LE::GetVegHeight
virtual double GetVegHeight(void)
Definition: Elements.h:148
fmc_Watering
Definition: LandscapeFarmingEnums.h:1011
Calendar::OldDays
long OldDays(void)
Definition: Calendar.h:60
dk_owfg_manure2_p
Definition: DK_OWinterFodderGrass.h:80
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
dk_owfg_sow
Definition: DK_OWinterFodderGrass.h:69
Crop::m_field
LE * m_field
Definition: Farm.h:499
CfgInt::value
int value() const
Definition: Configurator.h:116
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_owfg_start
Definition: DK_OWinterFodderGrass.h:65
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_OWFG_GRASS_READY
#define DK_OWFG_GRASS_READY
Definition: DK_OWinterFodderGrass.h:54
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
fmc_Grazing
Definition: LandscapeFarmingEnums.h:1010
TTypesOfVegetation
TTypesOfVegetation
Values that represent the types of vegetation that are represented in ALMaSS.
Definition: LandscapeFarmingEnums.h:192
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
dk_owfg_cattle_is_out
Definition: DK_OWinterFodderGrass.h:78
Calendar::DayInYear
int DayInYear(void)
Definition: Calendar.h:58
dk_owfg_harrow
Definition: DK_OWinterFodderGrass.h:67
cfg_farm_cattle_grass_low
CfgInt cfg_farm_cattle_grass_low
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
dk_owfg_foobar
Definition: DK_OWinterFodderGrass.h:85
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_owfg_cutting2
Definition: DK_OWinterFodderGrass.h:81
WARN_BUG
Definition: MapErrorMsg.h:34
FarmManagementCategory
FarmManagementCategory
Definition: LandscapeFarmingEnums.h:1001
dk_owfg_manure1_s
Definition: DK_OWinterFodderGrass.h:72