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

FI_OSpringWheat class
. More...

#include <FI_OSpringWheat.h>

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

FI_OSpringWheat class
.

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

◆ FI_OSpringWheat()

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

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

Member Function Documentation

◆ Do()

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

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  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  // Depending what event has occured jump to the correct bit of code e.g. for ww_start jump to line 67 below
95  switch (a_ev->m_todo)
96  {
97  case fi_osw_start:
98  {
99  // This is just to hold a local variable in scope and prevent compiler errors
100  // ww_start just sets up all the starting conditions and reference dates that are needed to start a ww
101  // crop off
102  FI_OSW_AUTUMN_PLOUGH = false;
105 
106  a_field->ClearManagementActionSum();
107 
108  // Record whether skylark scrapes are present and adjust flag accordingly
110  a_field->m_skylarkscrapes = true;
111  }
112  else {
113  a_field->m_skylarkscrapes = false;
114  }
115  // Set up the date management stuff
116  // The next bit of code just allows for altering dates after harvest if it is necessary
117  // to allow for a crop which starts its management early.
118 
119  // 3 start and stop dates for all events after harvest for this crop
120  int noDates = 4;
121  a_field->SetMDates(0, 0, g_date->DayInYear(30, 9)); // last possible day of harvest
122  a_field->SetMDates(1, 0, g_date->DayInYear(30, 9)); // last possible day of herbicide after harvest
123  a_field->SetMDates(0, 1, 0); // start day of straw chopping (not used as it depend on previous treatment)
124  a_field->SetMDates(1, 1, g_date->DayInYear(30, 9)); // end day of straw chopping
125  a_field->SetMDates(0, 2, 0); // start day of hay bailing
126  a_field->SetMDates(1, 2, g_date->DayInYear(30, 9)); // end day of hay bailing
127  a_field->SetMDates(0, 3, 0); // start day of stubble cultivator
128  a_field->SetMDates(1, 3, g_date->DayInYear(15, 10)); // end day of stubble cultivator
129  // Can be up to 10 of these. If the shortening code is triggered
130  // then these will be reduced in value to 0
131 
132  a_field->SetMConstants(0, 1);
133 
134  // Check the next crop for early start, unless it is a spring crop
135  // in which case we ASSUME that no checking is necessary!!!!
136  // So DO NOT implement a crop that runs over the year boundary (i.e. from spring to spring!), at least not without fixing this.
137 
138  //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)
139  int d1;
140  if (!(a_farm->GetType() == tof_OptimisingFarm && g_date->GetYearNumber() > 0)) {
141 
142  if (a_ev->m_startday > g_date->DayInYear(1, 7)) {
143  if (a_field->GetMDates(0, 0) >= a_ev->m_startday)
144  {
145  g_msg->Warn(WARN_BUG, "FI_OSpringWheat::Do(): ", "Harvest too late for the next crop to start!!!");
146  int almassnum = a_field->GetLandscape()->BackTranslateVegTypes(a_ev->m_next_tov);
147  g_msg->Warn("Next Crop ", (double)almassnum); // this causes exit
148  }
149  // Now fix any late finishing problems
150  for (int i = 0; i < noDates; i++) {
151  if (a_field->GetMDates(0, i) >= a_ev->m_startday) {
152  a_field->SetMDates(0, i, a_ev->m_startday - 1); //move the starting date
153  }
154  if (a_field->GetMDates(1, i) >= a_ev->m_startday) {
155  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)
156  a_field->SetMDates(1, i, a_ev->m_startday - 1); //move the finishing date
157  }
158  }
159  }
160  // Now no operations can be timed after the start of the next crop.
161 
162  if (!a_ev->m_first_year) {
163  // Are we before July 1st?
164  d1 = g_date->OldDays() + g_date->DayInYear(1, 7);
165  if (g_date->Date() < d1) {
166  // Yes, too early. We assumme this is because the last crop was late
167  printf("Poly: %d\n", a_field->GetPoly());
168  g_msg->Warn(WARN_BUG, "FI_OSpringWheat::Do(): ", "Crop start attempt between 1st Jan & 1st July");
169  int prev = a_field->GetLandscape()->BackTranslateVegTypes(a_field->GetOwner()->GetPreviousTov(a_field->GetRotIndex()));
170  g_msg->Warn(WARN_BUG, "Previous Crop ", prev);
171  int almassnum = a_field->GetLandscape()->BackTranslateVegTypes(a_ev->m_next_tov);
172  g_msg->Warn("Next Crop ", (double)almassnum); // this causes exit
173  }
174  else {
175  d1 = g_date->OldDays() + m_first_date; // Add 365 for spring crop
176  if (g_date->Date() > d1) {
177  // Yes too late - should not happen - raise an error
178  g_msg->Warn(WARN_BUG, "FI_OSpringWheat::Do(): ", "Crop start attempt after last possible start date");
179  g_msg->Warn(WARN_BUG, "Previous Crop ", "");
180  a_field->GetOwner()->GetPreviousTov(a_field->GetRotIndex());
181  int almassnum = a_field->GetLandscape()->BackTranslateVegTypes(a_ev->m_next_tov);
182  g_msg->Warn("Next Crop ", (double)almassnum); // this causes exit
183  }
184  }
185  }
186  else {
187  // Is the first year
188  // 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!)
190  break;
191  }
192  }//if
193 
194  // End single block date checking code. Please see next line comment as well.
195  // Reinit d1 to first possible starting date.
196  d1 = g_date->OldDays() + g_date->DayInYear(1, 9);
197  // OK, let's go.
198  // LKM: Here we queue up the first event -
199  //
201  }
202  break;
203  // This is the first real farm operation - LKM: done if there is time between 1st September-10th of October - 50% do this
205  if (a_ev->m_lock || a_farm->DoIt(50)) {
206  if (!a_farm->StubbleCultivatorHeavy(a_field, 0.0, g_date->DayInYear(10, 10) - g_date->DayInYear())) {
207  // If we don't succeed on the first try, then try and try again (until 10/10 when we will succeed)
209  break;
210  }
211  // Queue up the next event - in this case spring plough (the next year) - date is a suggestion - 5% do this
212  SimpleEvent(g_date->OldDays() + g_date->DayInYear(20, 4) + 365, fi_osw_spring_plough, false);
213  break;
214  }
215  else SimpleEvent(g_date->OldDays() + g_date->DayInYear(15, 9), fi_osw_autumn_plough, false);
216  break;
218  if (!a_farm->AutumnPlough(a_field, 0.0, g_date->DayInYear(15, 10) - g_date->DayInYear())) {
220  break;
221  }
222  // Queue up the next event - in this case spring plough (the next year) - date is a suggestion - 5% do this
224  break;
226  if (a_ev->m_lock || a_farm->DoIt(5)) {
227  if (!a_farm->SpringPlough(a_field, 0.0, g_date->DayInYear(5, 5) - g_date->DayInYear())) {
229  break;
230  }
231  }
232  // Queue up the next event - in this case preseeding cultivation - 70% do this
234  break;
236  if (a_ev->m_lock || a_farm->DoIt(70)) {
237  if (!a_farm->PreseedingCultivator(a_field, 0.0,
238  g_date->DayInYear(20, 5) - g_date->DayInYear())) {
240  break;
241  }
242  SimpleEvent(g_date->Date(), fi_osw_sow, false);
243  break;
244  } // the rest (30%) do preseeding cultivator with sow
245  else SimpleEvent(g_date->OldDays() + g_date->DayInYear(30, 4), fi_osw_preseeding_sow, false);
246  break;
247 
248  case fi_osw_sow: // sowing with fertilizer
249  if (!a_farm->SpringSowWithFerti(m_field, 0.0, g_date->DayInYear(20, 5) - g_date->DayInYear())) {
250  SimpleEvent(g_date->Date() + 1, fi_osw_sow, true);
251  break;
252  } // Queue up the next event - in this case harrow before emergence (suggest 7 days)
253  SimpleEvent(g_date->Date () +7, fi_osw_harrow, false);
254  break;
256  if (!a_farm->PreseedingCultivatorSow(m_field, 0.0, g_date->DayInYear(20, 5) - g_date->DayInYear())) {
258  break;
259  } // fertilizer when preseeding cultivator with sowing
261  break;
262  case fi_osw_fertilizer:
263  if (!a_farm->FP_NPKS(a_field, 0.0,
264  g_date->DayInYear(20, 5) - g_date->DayInYear())) {
265  SimpleEvent(g_date->Date() + 1, fi_osw_fertilizer, true);
266  break;
267  } // Queue up the next event - in this case harrow before emergence (suggest 7 days)
268  SimpleEvent(g_date->Date() + 7, fi_osw_harrow, false);
269  break;
270  case fi_osw_harrow: // 100% do this (suggestion, not actually stated)
271  if (a_ev->m_lock || a_farm->DoIt(100)) {
272  if (!a_farm->SpringHarrow(a_field, 0.0,
273  g_date->DayInYear(27, 5) - g_date->DayInYear())) {
274  SimpleEvent(g_date->Date() + 1, fi_osw_harrow, true);
275  break;
276  }
277  }
278  SimpleEvent(g_date->OldDays() + g_date->DayInYear(15, 8), fi_osw_harvest, false);
279  break;
280  case fi_osw_harvest:
281  // We don't move harvest days
282  if (!a_farm->Harvest(a_field, 0.0,
283  g_date->DayInYear(30, 9) - g_date->DayInYear())) {
284  SimpleEvent(g_date->Date() + 1, fi_osw_harvest, true);
285  break;
286  }
287  // 95% of farmers will do straw chopping
289  break;
291  if (a_ev->m_lock || a_farm->DoIt(95)) {
292  if (!a_farm->StrawChopping(a_field, 0.0,
293  g_date->DayInYear(30, 9) - g_date->DayInYear())) {
295  break;
296  } // next event - stubble cultivator2
298  break;
299  } // the 5% left will do hay bailing
300  else if (a_ev->m_lock || a_farm->DoIt(5/5)) {
302  break;
303  }
304  case fi_osw_hay_bailing:
305  if (!a_farm->HayBailing(a_field, 0.0,
306  g_date->DayInYear(30, 9) - g_date->DayInYear())) {
307  SimpleEvent(g_date->Date() + 1, fi_osw_hay_bailing, true);
308  break;
309  }// next event - stubble cultivator2
311  break;
312  case fi_osw_stubble_cultivator2: // 50% do this
313  if (a_ev->m_lock || a_farm->DoIt(50)) {
314  if (!a_farm->StubbleCultivatorHeavy(a_field, 0.0,
315  g_date->DayInYear(15, 10) - g_date->DayInYear())) {
317  break;
318  }
319  }
320  done = true;
321  // So we are done, and somewhere else the farmer will queue up the start event of the next crop
322  // END OF MAIN THREAD
323  break;
324  default:
325  g_msg->Warn(WARN_BUG, "FI_OSpringWheat::Do(): "
326  "Unknown event type! ", "");
327  exit(1);
328  }
329  return done;
330 }

References Farm::AutumnPlough(), cfg_FI_OSpringWheat_SkScrapes, LE::ClearManagementActionSum(), Calendar::Date(), Calendar::DayInYear(), Farm::DoIt(), FI_OSW_AUTUMN_PLOUGH, fi_osw_autumn_plough, FI_OSW_DECIDE_TO_FI, FI_OSW_DECIDE_TO_HERB, fi_osw_fertilizer, fi_osw_harrow, fi_osw_harvest, fi_osw_hay_bailing, fi_osw_preseeding_cultivation, fi_osw_preseeding_sow, fi_osw_sow, fi_osw_spring_plough, fi_osw_start, fi_osw_straw_chopping, fi_osw_stubble_cultivator1, fi_osw_stubble_cultivator2, Farm::FP_NPKS(), g_date, g_msg, LE::GetMDates(), LE::GetOwner(), LE::GetPoly(), Farm::GetPreviousTov(), LE::GetRotIndex(), Farm::GetType(), Calendar::GetYearNumber(), Farm::Harvest(), Farm::HayBailing(), 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::PreseedingCultivator(), Farm::PreseedingCultivatorSow(), LE::SetMConstants(), LE::SetMDates(), Crop::SimpleEvent(), Farm::SpringHarrow(), Farm::SpringPlough(), Farm::SpringSowWithFerti(), Farm::StrawChopping(), Farm::StubbleCultivatorHeavy(), tof_OptimisingFarm, CfgBool::value(), MapErrorMsg::Warn(), and WARN_BUG.

◆ SetUpFarmCategoryInformation()

void FI_OSpringWheat::SetUpFarmCategoryInformation ( )
inline
102  {
103  const int elements = 2 + (fi_osw_foobar - FI_OSW_BASE);
105 
106  FarmManagementCategory catlist[elements] =
107  {
108  fmc_Others, // zero element unused but must be here
109  fmc_Others, // fi_osw_start = 1, // Compulsory, must always be 1 (one).
110  fmc_Harvest, // fi_osw_sleep_all_day = FI_OSW_BASE,
111  fmc_Cultivation, // fi_osw_stubble_cultivator1,
112  fmc_Cultivation, // fi_osw_autumn_plough,
113  fmc_Cultivation, // fi_osw_spring_plough,
114  fmc_Cultivation, // fi_osw_preseeding_cultivation,
115  fmc_Cultivation, // fi_osw_preseeding_sow,
116  fmc_Others, // fi_osw_sow,
117  fmc_Fertilizer, // fi_osw_fertilizer,
118  fmc_Cultivation, // fi_osw_harrow,
119  fmc_Harvest, // fi_osw_harvest,
120  fmc_Others, // fi_osw_straw_chopping,
121  fmc_Others, // fi_osw_hay_bailing,
122  fmc_Cultivation // fi_osw_stubble_cultivator2,
123 
124 
125  // no foobar entry
126 
127  };
128  // Iterate over the catlist elements and copy them to vector
129  copy(begin(catlist), end(catlist), back_inserter(m_ManagementCategories));
130 
131  }

References FI_OSW_BASE, fi_osw_foobar, fmc_Cultivation, fmc_Fertilizer, fmc_Harvest, fmc_Others, Crop::m_base_elements_no, and Crop::m_ManagementCategories.

Referenced by FI_OSpringWheat().


The documentation for this class was generated from the following files:
LE::GetMDates
int GetMDates(int a, int b)
Definition: Elements.h:405
Farm::PreseedingCultivator
virtual bool PreseedingCultivator(LE *a_field, double a_user, int a_days)
Carry out preseeding cultivation on a_field (tilling set including cultivator and string roller to co...
Definition: FarmFuncs.cpp:312
LE::SetMDates
void SetMDates(int a, int b, int c)
Definition: Elements.h:406
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
cfg_FI_OSpringWheat_SkScrapes
CfgBool cfg_FI_OSpringWheat_SkScrapes("DK_CROP_OSW_SK_SCRAPES", CFG_CUSTOM, false)
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
Farm::StubbleCultivatorHeavy
virtual bool StubbleCultivatorHeavy(LE *a_field, double a_user, int a_days)
Carry out a stubble cultivation event on a_field. This is non-inversion type of cultivation which can...
Definition: FarmFuncs.cpp:245
fi_osw_start
Definition: FI_OSpringWheat.h:64
LE::ClearManagementActionSum
void ClearManagementActionSum()
clears the management action counters
Definition: Elements.h:247
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
LE::GetPoly
int GetPoly(void)
Returns the polyref number for this polygon.
Definition: Elements.h:238
g_date
class Calendar * g_date
Definition: Calendar.cpp:37
fi_osw_fertilizer
Definition: FI_OSpringWheat.h:72
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
FI_OSW_AUTUMN_PLOUGH
#define FI_OSW_AUTUMN_PLOUGH
A flag used to indicate autumn ploughing status.
Definition: FI_OSpringWheat.h:53
Crop::m_first_date
int m_first_date
Definition: Farm.h:501
FarmEvent::m_startday
int m_startday
Definition: Farm.h:385
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
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
Farm::HayBailing
virtual bool HayBailing(LE *a_field, double a_user, int a_days)
Carry out hay bailing on a_field.
Definition: FarmFuncs.cpp:1507
fi_osw_hay_bailing
Definition: FI_OSpringWheat.h:76
fmc_Others
Definition: LandscapeFarmingEnums.h:1003
Farm::StrawChopping
virtual bool StrawChopping(LE *a_field, double a_user, int a_days)
Carry out straw chopping on a_field.
Definition: FarmFuncs.cpp:1475
fi_osw_straw_chopping
Definition: FI_OSpringWheat.h:75
FI_OSW_DECIDE_TO_HERB
#define FI_OSW_DECIDE_TO_HERB
Definition: FI_OSpringWheat.h:54
fi_osw_autumn_plough
Definition: FI_OSpringWheat.h:67
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
fi_osw_stubble_cultivator2
Definition: FI_OSpringWheat.h:77
fi_osw_foobar
Definition: FI_OSpringWheat.h:78
fi_osw_preseeding_cultivation
Definition: FI_OSpringWheat.h:69
FarmEvent::m_next_tov
TTypesOfVegetation m_next_tov
Definition: Farm.h:390
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
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
fi_osw_stubble_cultivator1
Definition: FI_OSpringWheat.h:66
tof_OptimisingFarm
Definition: LandscapeFarmingEnums.h:696
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::SpringSowWithFerti
virtual bool SpringSowWithFerti(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 with start fertilizer in the spring on a_field.
Definition: FarmFuncs.cpp:537
fi_osw_harrow
Definition: FI_OSpringWheat.h:73
fmc_Harvest
Definition: LandscapeFarmingEnums.h:1012
FI_OSW_BASE
#define FI_OSW_BASE
Definition: FI_OSpringWheat.h:49
fi_osw_sow
Definition: FI_OSpringWheat.h:71
fi_osw_spring_plough
Definition: FI_OSpringWheat.h:68
LE::GetOwner
Farm * GetOwner(void)
Definition: Elements.h:256
Calendar::DayInYear
int DayInYear(void)
Definition: Calendar.h:58
FI_OSW_DECIDE_TO_FI
#define FI_OSW_DECIDE_TO_FI
Definition: FI_OSpringWheat.h:55
Crop::Crop
Crop(TTypesOfVegetation a_tov, TTypesOfCrops a_toc, Landscape *a_L)
Definition: Farm.cpp:733
fi_osw_harvest
Definition: FI_OSpringWheat.h:74
fi_osw_preseeding_sow
Definition: FI_OSpringWheat.h:70
LE::SetMConstants
void SetMConstants(int a, int c)
Definition: Elements.h:408
FI_OSpringWheat::SetUpFarmCategoryInformation
void SetUpFarmCategoryInformation()
Definition: FI_OSpringWheat.h:102
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
Farm::FP_NPKS
virtual bool FP_NPKS(LE *a_field, double a_user, int a_days)
Apply NPKS fertilizer, on a_field owned by an arable farmer.
Definition: FarmFuncs.cpp:630