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

FR_Sorghum class
. More...

#include <FR_Sorghum.h>

Inheritance diagram for FR_Sorghum:
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...
 
 FR_Sorghum (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

FR_Sorghum class
.

See FR_Sorghum.h::FR_SorghumToDo for a complete list of all possible events triggered codes by the 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

◆ FR_Sorghum()

FR_Sorghum::FR_Sorghum ( TTypesOfVegetation  a_tov,
TTypesOfCrops  a_toc,
Landscape a_L 
)
inline
97  : Crop(a_tov, a_toc, a_L)
98  {
99  // When we start it off, the first possible date for a farm operation is 1st October
100  // This information is used by other crops when they decide how much post processing of
101  // the management is allowed after harvest before the next crop starts.
102  m_first_date=g_date->DayInYear( 1,12 );
104  }

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

Member Function Documentation

◆ Do()

bool FR_Sorghum::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 winter wheat.

Reimplemented from Crop.

99 {
100  m_field = a_field; // this is needed because of possible calls to other methods and currently we do not pass parameters.
101  m_farm = a_farm; // this is needed because of possible calls to other methods and currently we do not pass parameters.
102  bool done = false; // The boolean value done indicates when we are totally finished with this plan (i.e. it is set to true).
103  int d1 = 0;
104  // Depending what event has occured jump to the correct bit of code e.g. for ww_start jump to line 67 below
105  switch (a_ev->m_todo)
106  {
107  case fr_s_start:
108  {
109  // This is just to hold a local variable in scope and prevent compiler errors
110  // ww_start just sets up all the starting conditions and reference dates that are needed to start a ww
111  // crop off
112  FR_S_EVERY_4_YEAR = 0;
113 
114  a_field->ClearManagementActionSum();
115 
116  // Record whether skylark scrapes are present and adjust flag accordingly
118  a_field->m_skylarkscrapes = true;
119  }
120  else {
121  a_field->m_skylarkscrapes = false;
122  }
123  // Set up the date management stuff
124  // The next bit of code just allows for altering dates after harvest if it is necessary
125  // to allow for a crop which starts its management early.
126 
127  // 3 start and stop dates for all events after harvest for this crop
128  int noDates = 1;
129  a_field->SetMDates(0, 0, g_date->DayInYear(15, 10)); // last possible day of harvest
130  // Can be up to 10 of these. If the shortening code is triggered
131  // then these will be reduced in value to 0
132 
133  a_field->SetMConstants(0, 1);
134 
135  // Check the next crop for early start, unless it is a spring crop
136  // in which case we ASSUME that no checking is necessary!!!!
137  // So DO NOT implement a crop that runs over the year boundary (i.e. from spring to spring!), at least not without fixing this.
138 
139  //new if: do the check only for non-optimising farms and if year>0. (030713 - m_rotation used only in the hidden year, so I modified the condition from >7 to >0)
140  int d1;
141  if (!(a_farm->GetType() == tof_OptimisingFarm && g_date->GetYearNumber() > 0)) {
142 
143  if (a_ev->m_startday > g_date->DayInYear(1, 7)) {
144  if (a_field->GetMDates(0, 0) >= a_ev->m_startday)
145  {
146  g_msg->Warn(WARN_BUG, "FR_Sorghum::Do(): ", "Harvest too late for the next crop to start!!!");
147  int almassnum = a_field->GetLandscape()->BackTranslateVegTypes(a_ev->m_next_tov);
148  g_msg->Warn("Next Crop ", (double)almassnum); // this causes exit
149  }
150  // Now fix any late finishing problems
151  for (int i = 0; i < noDates; i++) {
152  if (a_field->GetMDates(0, i) >= a_ev->m_startday) {
153  a_field->SetMDates(0, i, a_ev->m_startday - 1); //move the starting date
154  }
155  if (a_field->GetMDates(1, i) >= a_ev->m_startday) {
156  a_field->SetMConstants(i, 0); //change the default value of the MConst (=1) to 0 (necessary to correctly execute farm events in case the finishing date (MDate) was moved)
157  a_field->SetMDates(1, i, a_ev->m_startday - 1); //move the finishing date
158  }
159  }
160  }
161  // Now no operations can be timed after the start of the next crop.
162 
163  if (!a_ev->m_first_year) {
164  // Are we before July 1st?
165  d1 = g_date->OldDays() + g_date->DayInYear(1, 7);
166  if (g_date->Date() < d1) {
167  // Yes, too early. We assumme this is because the last crop was late
168  printf("Poly: %d\n", a_field->GetPoly());
169  g_msg->Warn(WARN_BUG, "FR_Sorghum::Do(): ", "Crop start attempt between 1st Jan & 1st July");
170  int prev = a_field->GetLandscape()->BackTranslateVegTypes(a_field->GetOwner()->GetPreviousTov(a_field->GetRotIndex()));
171  g_msg->Warn(WARN_BUG, "Previous Crop ", prev);
172  int almassnum = a_field->GetLandscape()->BackTranslateVegTypes(a_ev->m_next_tov);
173  g_msg->Warn("Next Crop ", (double)almassnum); // this causes exit
174  }
175  else {
176  d1 = g_date->OldDays() + m_first_date; // Add 365 for spring crop
177  if (g_date->Date() > d1) {
178  // Yes too late - should not happen - raise an error
179  g_msg->Warn(WARN_BUG, "FR_Sorghum::Do(): ", "Crop start attempt after last possible start date");
180  g_msg->Warn(WARN_BUG, "Previous Crop ", "");
181  a_field->GetOwner()->GetPreviousTov(a_field->GetRotIndex());
182  int almassnum = a_field->GetLandscape()->BackTranslateVegTypes(a_ev->m_next_tov);
183  g_msg->Warn("Next Crop ", (double)almassnum); // this causes exit
184  }
185  }
186  }
187  else {
188  // Is the first year
189  // Some special code to cope with that first start-up year in ALMaSS - ignore for all practical purposes (start woth the first event on the after winter time) - Date here is a suggestion (not stated in crop scheme!)
191  break;
192  }
193  }//if
194 
195  // End single block date checking code. Please see next line comment as well.
196  // Reinit d1 to first possible starting date.
197  d1 = g_date->OldDays() + g_date->DayInYear(15, 9);
198  SimpleEvent(d1, fr_s_stubble_harrow, false);
199  break;
200  }
201  break;
202  // This is the first real farm operation
203  case fr_s_stubble_harrow:
204  if (a_ev->m_lock || a_farm->DoIt_prob(.20)) {
205  if (!a_farm->StubbleHarrowing(a_field, 0.0, g_date->DayInYear(31, 10) - g_date->DayInYear())) {
207  break;
208  }
209  SimpleEvent(g_date->OldDays() + g_date->DayInYear(16, 3) + 365, fr_s_false_seedbed1, false);
210  break;
211  }
212  else
214  break;
215  case fr_s_stubble_plough:
216  if (!a_farm->StubblePlough(a_field, 0.0, g_date->DayInYear(31, 10) - g_date->DayInYear())) {
218  break;
219  }
220  SimpleEvent(g_date->Date() + 7, fr_s_harrow1, false);
221  break;
222 
223  case fr_s_harrow1:
224  if (!a_farm->AutumnHarrow(a_field, 0.0, g_date->DayInYear(7, 11) - g_date->DayInYear())) {
225  SimpleEvent(g_date->Date() + 1, fr_s_harrow1, true);
226  break;
227  }
228  SimpleEvent(g_date->OldDays() + g_date->DayInYear(16, 3) + 365, fr_s_false_seedbed1, false);
229  break;
230  case fr_s_false_seedbed1:
231  if (a_ev->m_lock || a_farm->DoIt(20)) {
232  if (!a_farm->Strigling(a_field, 0.0,
233  g_date->DayInYear(16, 4) - g_date->DayInYear())) {
235  break;
236  }
238  SimpleEvent(g_date->OldDays() + g_date->DayInYear(1, 4), fr_s_fertilizer1, false); // main thread
239  break;
240  }
242  break;
243  case fr_s_false_seedbed2:
244  if (!a_farm->Strigling(a_field, 0.0,
245  g_date->DayInYear(23, 4) - g_date->DayInYear())) {
247  break;
248  }
249  SimpleEvent(g_date->Date() + 7, fr_s_false_seedbed3, false);
250  break;
251 
252  case fr_s_false_seedbed3:
253  if (!a_farm->Strigling(a_field, 0.0,
254  g_date->DayInYear(1, 5) - g_date->DayInYear())) {
256  break;
257  }
258  break;
259 
260  case fr_s_fertilizer1:
261  if (a_ev->m_lock || a_farm->DoIt(70)) {
262  if (!a_farm->FP_NPK(a_field, 0.0, g_date->DayInYear(1, 5) - g_date->DayInYear())) {
263  SimpleEvent(g_date->Date() + 1, fr_s_fertilizer1, true);
264  break;
265  }
266  }
268  break;
269 
270  case fr_s_spring_harrow:
271  if (a_ev->m_lock || a_farm->DoIt(70)) {
272  if (!a_farm->SpringHarrow(a_field, 0.0,
273  g_date->DayInYear(1, 5) - g_date->DayInYear())) {
274  SimpleEvent(g_date->Date() + 1, fr_s_spring_harrow, true);
275  break;
276  }
277  }
279  break;
280 
281  case fr_s_preseeding_sow:
282  if (!a_farm->PreseedingCultivatorSow(m_field, 0.0, g_date->DayInYear(15, 5) - g_date->DayInYear())) {
284  break;
285  }
286  SimpleEvent(g_date->Date() + 7, fr_s_harrow2, false);
288  SimpleEvent(g_date->Date() + 14, fr_s_herbicide1, false); //main thread
289  SimpleEvent(g_date->Date() + 30, fr_s_n, false);
290  break;
291 
292  case fr_s_harrow2:
293  if (a_ev->m_lock || a_farm->DoIt(20)) {
294  if (!a_farm->SpringHarrow(a_field, 0.0,
295  g_date->DayInYear(23, 5) - g_date->DayInYear())) {
296  SimpleEvent(g_date->Date() + 1, fr_s_harrow2, true);
297  break;
298  }
299  }
300  break;
301 
303  if (a_ev->m_lock || a_farm->DoIt(12)) {
304  if (!a_farm->RowCultivation(a_field, 0.0,
305  g_date->DayInYear(30, 6) - g_date->DayInYear())) {
307  break;
308  }
309  }
310  break;
311 
312  case fr_s_n:
313  if (a_ev->m_lock || a_farm->DoIt(90)) {
314  if (!a_farm->FP_NPK(a_field, 0.0,
315  g_date->DayInYear(1, 7) - g_date->DayInYear())) {
316  SimpleEvent(g_date->Date() + 1, fr_s_n, true);
317  break;
318  }
319  }
320  break;
321 
322  case fr_s_herbicide1:
323  if (a_ev->m_lock || a_farm->DoIt(80)) {
324  if (!a_farm->HerbicideTreat(a_field, 0.0,
325  g_date->DayInYear(7, 6) - g_date->DayInYear())) {
326  SimpleEvent(g_date->Date() + 1, fr_s_herbicide1, true);
327  break;
328  }
329  SimpleEvent(g_date->Date() + 30, fr_s_herbicide2, false);
330  break;
331  }
332  SimpleEvent(g_date->OldDays() + g_date->DayInYear(1, 9), fr_s_harvest, false);
333  break;
334 
335  case fr_s_herbicide2:
336  if (a_ev->m_lock || a_farm->DoIt(30)) {
337  if (!a_farm->HerbicideTreat(a_field, 0.0,
338  g_date->DayInYear(7, 7) - g_date->DayInYear())) {
339  SimpleEvent(g_date->Date() + 1, fr_s_herbicide2, true);
340  break;
341  }
342  }
343  SimpleEvent(g_date->OldDays() + g_date->DayInYear(1, 9), fr_s_harvest, false);
344  break;
345 
346  case fr_s_harvest:
347  // We don't move harvest days
348  if (!a_farm->Harvest(a_field, 0.0, a_field->GetMDates(0, 0) - g_date->DayInYear())) {
349  SimpleEvent(g_date->Date() + 1, fr_s_harvest, true);
350  break;
351  }
352  done = true;
353  // So we are done, and somewhere else the farmer will queue up the start event of the next crop
354  // END OF MAIN THREAD
355  break;
356  default:
357  g_msg->Warn(WARN_BUG, "FR_Sorghum::Do(): "
358  "Unknown event type! ", "");
359  exit(1);
360  }
361  return done;
362 }

References Farm::AutumnHarrow(), cfg_FR_Sorghum_SkScrapes, LE::ClearManagementActionSum(), Calendar::Date(), Calendar::DayInYear(), Farm::DoIt(), Farm::DoIt_prob(), Farm::FP_NPK(), FR_S_EVERY_4_YEAR, fr_s_false_seedbed1, fr_s_false_seedbed2, fr_s_false_seedbed3, fr_s_fertilizer1, fr_s_harrow1, fr_s_harrow2, fr_s_harvest, fr_s_herbicide1, fr_s_herbicide2, fr_s_n, fr_s_preseeding_sow, fr_s_row_cultivation, fr_s_spring_harrow, fr_s_start, fr_s_stubble_harrow, fr_s_stubble_plough, g_date, g_msg, LE::GetMDates(), LE::GetOwner(), LE::GetPoly(), Farm::GetPreviousTov(), LE::GetRotIndex(), Farm::GetType(), Calendar::GetYearNumber(), Farm::Harvest(), Farm::HerbicideTreat(), Crop::m_farm, Crop::m_field, Crop::m_first_date, FarmEvent::m_first_year, FarmEvent::m_lock, FarmEvent::m_next_tov, LE::m_skylarkscrapes, FarmEvent::m_startday, FarmEvent::m_todo, Calendar::OldDays(), Farm::PreseedingCultivatorSow(), Farm::RowCultivation(), LE::SetMConstants(), LE::SetMDates(), Crop::SimpleEvent(), Farm::SpringHarrow(), Farm::Strigling(), Farm::StubbleHarrowing(), Farm::StubblePlough(), tof_OptimisingFarm, CfgBool::value(), MapErrorMsg::Warn(), and WARN_BUG.

◆ SetUpFarmCategoryInformation()

void FR_Sorghum::SetUpFarmCategoryInformation ( )
inline
105  {
106  const int elements = 2 + (fr_s_foobar - FR_S_BASE);
108 
109  FarmManagementCategory catlist[elements] =
110  {
111  fmc_Others, // zero element unused but must be here
112  fmc_Others, //fr_s_start = 1, // Compulsory, must always be 1 (one).
113  fmc_Others, //fr_s_sleep_all_day = FR_S_BASE,
114  fmc_Cultivation, //fr_s_autumn_plough,
115  fmc_Fertilizer, //fr_s_fertilizer1,
116  fmc_Cultivation, // fr_s_stubble_harrow,
117  fmc_Cultivation, // fr_s_stubble_plough,
118  fmc_Cultivation, // fr_s_harrow1,
119  fmc_Cultivation, // fr_s_spring_plough,
120  fmc_Cultivation, // fr_s_false_seedbed1,
121  fmc_Cultivation, // fr_s_false_seedbed2,
122  fmc_Cultivation, // fr_s_false_seedbed3,
123  fmc_Cultivation, // fr_s_spring_harrow,
124  fmc_Cultivation, // fr_s_preseeding_sow,
125  fmc_Fertilizer, //fr_s_n,
126  fmc_Cultivation, // fr_s_harrow2,
127  fmc_Herbicide, //fr_s_herbicide1,
128  fmc_Herbicide, //fr_s_herbicide2,
129  fmc_Cultivation, // fr_s_row_cultivation,
130  fmc_Harvest, //fr_s_harvest,
131 
132 
133  // no foobar entry
134 
135  };
136  // Iterate over the catlist elements and copy them to vector
137  copy(begin(catlist), end(catlist), back_inserter(m_ManagementCategories));
138 
139  }

References fmc_Cultivation, fmc_Fertilizer, fmc_Harvest, fmc_Herbicide, fmc_Others, FR_S_BASE, fr_s_foobar, Crop::m_base_elements_no, and Crop::m_ManagementCategories.

Referenced by FR_Sorghum().


The documentation for this class was generated from the following files:
LE::GetMDates
int GetMDates(int a, int b)
Definition: Elements.h:405
fr_s_harrow2
Definition: FR_Sorghum.h:76
LE::SetMDates
void SetMDates(int a, int b, int c)
Definition: Elements.h:406
Farm::HerbicideTreat
virtual bool HerbicideTreat(LE *a_field, double a_user, int a_days)
Apply herbicide to a_field.
Definition: FarmFuncs.cpp:2025
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
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
Farm::FP_NPK
virtual bool FP_NPK(LE *a_field, double a_user, int a_days)
Apply NPK fertilizer, on a_field owned by an arable farmer.
Definition: FarmFuncs.cpp:645
Farm::DoIt
bool DoIt(double a_probability)
Return chance out of 0 to 100.
Definition: Farm.cpp:856
Calendar::GetYearNumber
int GetYearNumber(void)
Definition: Calendar.h:72
FarmEvent::m_first_year
bool m_first_year
Definition: Farm.h:386
Farm::StubblePlough
virtual bool StubblePlough(LE *a_field, double a_user, int a_days)
Carry out a stubble ploughing event on a_field. This is similar to normal plough but shallow (normall...
Definition: FarmFuncs.cpp:232
LE::GetPoly
int GetPoly(void)
Returns the polyref number for this polygon.
Definition: Elements.h:238
fr_s_row_cultivation
Definition: FR_Sorghum.h:79
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
cfg_FR_Sorghum_SkScrapes
CfgBool cfg_FR_Sorghum_SkScrapes("FR_CROP_S_SK_SCRAPES", CFG_CUSTOM, false)
fmc_Herbicide
Definition: LandscapeFarmingEnums.h:1006
fr_s_false_seedbed2
Definition: FR_Sorghum.h:71
fr_s_herbicide1
Definition: FR_Sorghum.h:77
Farm::GetPreviousTov
TTypesOfVegetation GetPreviousTov(int a_index)
Definition: Farm.h:966
Farm::GetType
TTypesOfFarm GetType(void)
Definition: Farm.h:956
Crop::m_base_elements_no
int m_base_elements_no
Definition: Farm.h:505
fr_s_preseeding_sow
Definition: FR_Sorghum.h:74
Crop::m_first_date
int m_first_date
Definition: Farm.h:501
FarmEvent::m_startday
int m_startday
Definition: Farm.h:385
fr_s_harrow1
Definition: FR_Sorghum.h:68
Crop::SimpleEvent
void SimpleEvent(long a_date, int a_todo, bool a_lock)
Adds an event to this crop management.
Definition: Farm.cpp:747
CfgBool::value
bool value() const
Definition: Configurator.h:164
fmc_Fertilizer
Definition: LandscapeFarmingEnums.h:1004
fr_s_n
Definition: FR_Sorghum.h:75
fr_s_fertilizer1
Definition: FR_Sorghum.h:65
fr_s_stubble_plough
Definition: FR_Sorghum.h:67
LE::m_skylarkscrapes
bool m_skylarkscrapes
For management testing of skylark scrapes.
Definition: Elements.h:95
Calendar::Date
long Date(void)
Definition: Calendar.h:57
fmc_Cultivation
Definition: LandscapeFarmingEnums.h:1008
fmc_Others
Definition: LandscapeFarmingEnums.h:1003
FR_S_EVERY_4_YEAR
#define FR_S_EVERY_4_YEAR
Definition: FR_Sorghum.h:49
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
LE::GetRotIndex
int GetRotIndex(void)
Definition: Elements.h:373
fr_s_false_seedbed1
Definition: FR_Sorghum.h:70
fr_s_start
Definition: FR_Sorghum.h:62
fr_s_stubble_harrow
Definition: FR_Sorghum.h:66
FarmEvent::m_next_tov
TTypesOfVegetation m_next_tov
Definition: Farm.h:390
FR_S_BASE
#define FR_S_BASE
Definition: FR_Sorghum.h:51
Crop::m_farm
Farm * m_farm
Definition: Farm.h:498
Crop::m_field
LE * m_field
Definition: Farm.h:499
fr_s_herbicide2
Definition: FR_Sorghum.h:78
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::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
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
tof_OptimisingFarm
Definition: LandscapeFarmingEnums.h:696
fr_s_foobar
Definition: FR_Sorghum.h:81
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
fr_s_harvest
Definition: FR_Sorghum.h:80
fmc_Harvest
Definition: LandscapeFarmingEnums.h:1012
fr_s_spring_harrow
Definition: FR_Sorghum.h:73
LE::GetOwner
Farm * GetOwner(void)
Definition: Elements.h:256
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
FR_Sorghum::SetUpFarmCategoryInformation
void SetUpFarmCategoryInformation()
Definition: FR_Sorghum.h:105
LE::SetMConstants
void SetMConstants(int a, int c)
Definition: Elements.h:408
fr_s_false_seedbed3
Definition: FR_Sorghum.h:72
WARN_BUG
Definition: MapErrorMsg.h:34
FarmManagementCategory
FarmManagementCategory
Definition: LandscapeFarmingEnums.h:1001
Farm::StubbleHarrowing
virtual bool StubbleHarrowing(LE *a_field, double a_user, int a_days)
Carry out stubble harrowing on a_field.
Definition: FarmFuncs.cpp:1523
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