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

FI_FeedingGround class
. More...

#include <FI_FeedingGround.h>

Inheritance diagram for FI_FeedingGround:
Crop Crop 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_FeedingGround (TTypesOfVegetation a_tov, TTypesOfCrops a_toc, Landscape *a_L)
 
void SetUpFarmCategoryInformation ()
 
virtual bool Do (Farm *a_farm, LE *a_field, FarmEvent *a_ev)
 
 FI_FeedingGround (TTypesOfVegetation a_tov, TTypesOfCrops a_toc, Landscape *a_L)
 
virtual bool Do (Farm *a_farm, LE *a_field, FarmEvent *a_ev)
 
 FI_FeedingGround (TTypesOfVegetation a_tov, TTypesOfCrops a_toc, Landscape *a_L)
 
- 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_FeedingGround class
.

See FI_FeedingGround.h::FI_FeedingGroundToDo for a complete list of all possible events triggered codes by the FeedingGround 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_FeedingGround() [1/3]

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

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

◆ FI_FeedingGround() [2/3]

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

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

◆ FI_FeedingGround() [3/3]

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

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

Member Function Documentation

◆ Do() [1/3]

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

Reimplemented from Crop.

◆ Do() [2/3]

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

Reimplemented from Crop.

◆ Do() [3/3]

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

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  m_ev = a_ev;
103  bool done = false; // The boolean value done indicates when we are totally finished with this plan (i.e. it is set to true).
104  int d1 = 0;
105  // Depending what event has occured jump to the correct bit of code e.g. for ww_start jump to line 67 below
106  switch (a_ev->m_todo)
107  {
108  case fi_fg_start:
109  {
110  FI_FG_YEARS_AFTER_SOW = 0; //Here FI_NG_YEARS_AFTER_SOW flag should get randomly for each field a value
111  //THIS PART SHOULD BE SOMEWHERE ELSE OUTSIDE THE PLAN, SO THE STARTING CONDITIONS FOR FIELDS WITH PERMANENT GRASS (YEAR AFTER SOWING)
112  // IS SET ONLY ONCE AT THE SIMULATION START!!!
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 
124  // Set up the date management stuff
125  // Could save the start day in case it is needed later
126  // m_field->m_startday = m_ev->m_startday;
127  //m_last_date = g_date->DayInYear(20, 8);
128  // Start and stop dates for all events after harvest
129  int noDates = 4;
130  //m_field->SetMDates(0, 0, g_date->DayInYear(15, 8)); // last possible day of harvest
131  // Determined by harvest date - used to see if at all possible
132  //m_field->SetMDates(1, 0, g_date->DayInYear(17, 8)); // end day of straw chopping
133  //m_field->SetMDates(0, 1, g_date->DayInYear(18, 8)); // end day of hay baling
134  //m_field->SetMDates(1, 1, g_date->DayInYear(19, 8)); // end day of stubble harrow
135  //a_field->SetMDates(1, 2, g_date->DayInYear(20, 8)); // end day of plough
136 
137  //a_field->SetMConstants(0, 1);
138  // Check the next crop for early start, unless it is a spring crop
139  // in which case we ASSUME that no checking is necessary!!!!
140  // So DO NOT implement a crop that runs over the year boundary (i.e. from spring to spring!), at least not without fixing this.
141 
142  //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)
143 
144  if (!(a_farm->GetType() == tof_OptimisingFarm && g_date->GetYearNumber() > 0)) {
145  //Checking the future...
146  if (a_ev->m_startday > g_date->DayInYear(1, 7)) {
147  if (g_date->DayInYear(30, 12) >= a_ev->m_startday)
148  {
149  g_msg->Warn(WARN_BUG, "FI_FeedingGround::Do(): ", "Harvest too late for the next crop to start!!!");
150  int almassnum = a_field->GetLandscape()->BackTranslateVegTypes(a_ev->m_next_tov);
151  g_msg->Warn("Next Crop ", (double)almassnum); // this causes exit
152  exit(1);
153  }
154  }
155  // Now no operations can be timed after the start of the next crop.
156 
157  if (!a_ev->m_first_year) {
158  // Are we before July 1st?
159  d1 = g_date->OldDays() + g_date->DayInYear(1, 7);
160  if (g_date->Date() < d1) {
161  // Yes, too early. We assumme this is because the last crop was late
162  printf("Poly: %d\n", a_field->GetPoly());
163  g_msg->Warn(WARN_BUG, "FI_FeedingGround::Do(): ", "Crop start attempt between 1st Jan & 1st July");
164  int prev = a_field->GetLandscape()->BackTranslateVegTypes(a_field->GetOwner()->GetPreviousTov(a_field->GetRotIndex()));
165  g_msg->Warn(WARN_BUG, "Previous Crop ", prev);
166  int almassnum = a_field->GetLandscape()->BackTranslateVegTypes(a_ev->m_next_tov);
167  g_msg->Warn("Next Crop ", (double)almassnum); // this causes exit
168  }
169  else {
170  d1 = g_date->OldDays() + 365 + m_first_date; // Add 365 for spring crop
171  if (g_date->Date() > d1) {
172  // Yes too late - should not happen - raise an error
173  g_msg->Warn(WARN_BUG, "FI_FeedingGround::Do(): ", "Crop start attempt after last possible start date");
174  g_msg->Warn(WARN_BUG, "Previous Crop ", "");
175  a_field->GetOwner()->GetPreviousTov(a_field->GetRotIndex());
176  int almassnum = a_field->GetLandscape()->BackTranslateVegTypes(a_ev->m_next_tov);
177  g_msg->Warn("Next Crop ", (double)almassnum); // this causes exit
178  }
179  }
180  }
181  else {
182  //only for the first year
183  SimpleEvent(g_date->OldDays() + g_date->DayInYear(20, 4), fi_fg_sow, false);
184  break;
185  }
186  }//if
187 
188  // End single block date checking code. Please see next line comment as well.
189  // OK, let's go.
190  // Here we queue up the first event
191  //Each field has assign randomly a FI_FG_YEARS_AFTER_SOW flag value from 1 to 5
192  //if 1, 3 or 5 then first year after sowing and nothing is done (sleep all day) - mowing/grazing only every 2nd year
193  //if 2 or 4 then grazing or cattle is out
194  //if 0 then it is a re-sowing year with fertilizer and cutting
195  if ((FI_FG_YEARS_AFTER_SOW + g_date->GetYearNumber()) % 1 == 1)
196  {
197  d1 = g_date->OldDays() + g_date->DayInYear(1, 1);
198  if (g_date->Date() >= d1) d1 += 365;
199  SimpleEvent(d1, fi_fg_sow, false);
200  }
201  else if ((FI_FG_YEARS_AFTER_SOW + g_date->GetYearNumber()) % 1 == 0)
202  {
203  d1 = g_date->OldDays() + g_date->DayInYear(28,2);
204  if (g_date->Date() >= d1) d1 += 365;
205  SimpleEvent(d1, fi_fg_sleepallday, false);
206  }
207  break;
208  }
209  break; // this thread is only done the first year
210  case fi_fg_sow: // 100% do this
211  if (!a_farm->SpringSow(a_field, 0.0,
212  g_date->DayInYear(15, 6) - g_date->DayInYear())) {
213  SimpleEvent(g_date->Date() + 1, fi_fg_sow, true);
214  break;
215  }
216  //Next event is grazing / cutting:
218  break;
219  case fi_fg_grazing1: // 90% cut or grazed - suggests 45% each
220  if (a_ev->m_lock || a_farm->DoIt(45)) {
221  if (!a_farm->CattleOut(a_field, 0.0,
222  g_date->DayInYear(1, 10) - g_date->DayInYear())) {
223  SimpleEvent(g_date->Date() + 1, fi_fg_grazing1, true);
224  break;
225  }
227  break;
228  }
229  else SimpleEvent(g_date->OldDays() + g_date->DayInYear(1, 9), fi_fg_cutting1, false);
230  break;
231  case fi_fg_cutting1: //
232  if (a_ev->m_lock || a_farm->DoIt(82)) { // 45% of the 55% left that did not do grazing
233  if (!a_farm->CutToHay(a_field, 0.0,
234  g_date->DayInYear(1, 10) - g_date->DayInYear())) {
235  SimpleEvent(g_date->Date() + 1, fi_fg_cutting1, true);
236  break;
237  }
238  done = true;
239  break;
240  }
241  case fi_fg_cattle_is_out1: // Keep the cattle out there
242  // CattleIsOut() returns false if it is not time to stop grazing
243  if (!m_farm->CattleIsOut(m_field, 0.0, g_date->DayInYear(1, 11) - g_date->DayInYear(), g_date->DayInYear(1, 11))) {
245  break;
246  }
247  done = true;
248  break;
249  //other years:
250  case fi_fg_sleepallday: // 100% do this
251  if (!a_farm->SleepAllDay(a_field, 0.0,
252  g_date->DayInYear(1, 3) - g_date->DayInYear())) {
253  SimpleEvent(g_date->Date() + 1, fi_fg_sleepallday, true);
254  break;
255  }
256  //Here comes a fork of parallel events:
258  SimpleEvent(g_date->OldDays() + g_date->DayInYear(20, 4), fi_fg_sow_ny, false);
259  break;
260 
261  case fi_fg_grazing2:
262  if (a_ev->m_lock || a_farm->DoIt(45)) {
263  if (!a_farm->CattleOut(a_field, 0.0,
264  g_date->DayInYear(1, 4) - g_date->DayInYear())) {
265  SimpleEvent(g_date->Date() + 1, fi_fg_grazing2, true);
266  break;
267  }
269  break;
270  }
271  else SimpleEvent(g_date->OldDays() + g_date->DayInYear(1, 3), fi_fg_cutting2, false);
272  break;
273 
274  case fi_fg_sow_ny: // 100% do this
275  if (!a_farm->SpringSow(a_field, 0.0,
276  g_date->DayInYear(15, 6) - g_date->DayInYear())) {
277  SimpleEvent(g_date->Date() + 1, fi_fg_sow_ny, true);
278  break;
279  }
280  break; // end of sowing thread
281 
282  case fi_fg_cattle_is_out2: // Keep the cattle out there
283  // CattleIsOut() returns false if it is not time to stop grazing
284  if (!m_farm->CattleIsOut(m_field, 0.0, g_date->DayInYear(1, 5) - g_date->DayInYear(), g_date->DayInYear(1, 5))) {
286  break;
287  }
289  break;
290  case fi_fg_cutting2: //
291  if (a_ev->m_lock || a_farm->DoIt(82)) { // 45% of the 55% left that did not do grazing
292  if (!a_farm->CutToHay(a_field, 0.0,
293  g_date->DayInYear(1, 5) - g_date->DayInYear())) {
294  SimpleEvent(g_date->Date() + 1, fi_fg_cutting2, true);
295  break;
296  }
297  }
299  break;
300  case fi_fg_cutting3:
301  if (a_ev->m_lock || a_farm->DoIt(5)) {
302  if (!a_farm->CutToHay(a_field, 0.0,
303  g_date->DayInYear(30, 10) - g_date->DayInYear())) {
304  SimpleEvent(g_date->Date() + 1, fi_fg_cutting3, true);
305  break;
306  }
308  break;
309  }
310  done = true;
311  break;
312  case fi_fg_remove_straw:
313  if (!a_farm->StrawRemoval(a_field, 0.0,
314  g_date->DayInYear(30, 10) - g_date->DayInYear())) {
315  SimpleEvent(g_date->Date() + 1, fi_fg_remove_straw, true);
316  break;
317  }
318  done = true;
319  break;
320  // So we are done, and somewhere else the farmer will queue up the start event of the next crop
321  // END OF MAIN THREAD
322  default:
323  g_msg->Warn(WARN_BUG, "FI_FeedingGround::Do(): "
324  "Unknown event type! ", "");
325  exit(1);
326  }
327  return done;
328 }

References Farm::CattleIsOut(), Farm::CattleOut(), cfg_FI_FeedingGround_SkScrapes, LE::ClearManagementActionSum(), Farm::CutToHay(), Calendar::Date(), Calendar::DayInYear(), Farm::DoIt(), fi_fg_cattle_is_out1, fi_fg_cattle_is_out2, fi_fg_cutting1, fi_fg_cutting2, fi_fg_cutting3, fi_fg_grazing1, fi_fg_grazing2, fi_fg_remove_straw, fi_fg_sleepallday, fi_fg_sow, fi_fg_sow_ny, fi_fg_start, FI_FG_YEARS_AFTER_SOW, g_date, g_msg, LE::GetOwner(), LE::GetPoly(), Farm::GetPreviousTov(), LE::GetRotIndex(), Farm::GetType(), Calendar::GetYearNumber(), Crop::m_ev, 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(), Crop::SimpleEvent(), Farm::SleepAllDay(), Farm::SpringSow(), Farm::StrawRemoval(), tof_OptimisingFarm, CfgBool::value(), MapErrorMsg::Warn(), and WARN_BUG.

◆ SetUpFarmCategoryInformation()

void FI_FeedingGround::SetUpFarmCategoryInformation ( )
inline
104  {
105  const int elements = 2 + (fi_fg_foobar - FI_FG_BASE);
107 
108  FarmManagementCategory catlist[elements] =
109  {
110  fmc_Others, // zero element unused but must be here
111  fmc_Others, // fi_fg_start = 1, // Compulsory, must always be 1 (one).
112  fmc_Others, // fi_fg_sleep_all_day = FI_FG_BASE,
113  fmc_Others, // fi_fg_sow,
114  fmc_Cutting, // fi_fg_cutting1,
115  fmc_Grazing, // fi_fg_grazing1,
116  fmc_Grazing, // fi_fg_cattle_is_out1,
117  fmc_Others, // fi_fg_sleepallday,
118  fmc_Others, // fi_fg_sow_ny,
119  fmc_Cutting, // fi_fg_cutting2,
120  fmc_Grazing, // fi_fg_grazing2,
121  fmc_Grazing, // fi_fg_cattle_is_out2,
122  fmc_Cutting, // fi_fg_cutting3,
123  fmc_Others // fi_fg_remove_straw,
124 
125 
126  // no foobar entry
127 
128  };
129  // Iterate over the catlist elements and copy them to vector
130  copy(begin(catlist), end(catlist), back_inserter(m_ManagementCategories));
131 
132  }

References FI_FG_BASE, fi_fg_foobar, fmc_Cutting, fmc_Grazing, fmc_Others, Crop::m_base_elements_no, and Crop::m_ManagementCategories.

Referenced by FI_FeedingGround().


The documentation for this class was generated from the following files:
FarmEvent::m_lock
bool m_lock
Definition: Farm.h:384
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::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::StrawRemoval
virtual bool StrawRemoval(LE *a_field, double a_user, int a_days)
Straw covering applied on a_field.
Definition: FarmFuncs.cpp:1752
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
Farm::GetPreviousTov
TTypesOfVegetation GetPreviousTov(int a_index)
Definition: Farm.h:966
fi_fg_cutting2
Definition: FI_FeedingGround.h:75
fi_fg_sow_ny
Definition: FI_FeedingGround.h:74
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
fi_fg_grazing1
Definition: FI_FeedingGround.h:71
cfg_FI_FeedingGround_SkScrapes
CfgBool cfg_FI_FeedingGround_SkScrapes("DK_CROP_FG_SK_SCRAPES", CFG_CUSTOM, false)
Farm::GetType
TTypesOfFarm GetType(void)
Definition: Farm.h:956
Crop::m_base_elements_no
int m_base_elements_no
Definition: Farm.h:505
Farm::CutToHay
virtual bool CutToHay(LE *a_field, double a_user, int a_days)
Carry out hay cutting on a_field.
Definition: FarmFuncs.cpp:1607
Crop::m_first_date
int m_first_date
Definition: Farm.h:501
FarmEvent::m_startday
int m_startday
Definition: Farm.h:385
fi_fg_start
Definition: FI_FeedingGround.h:67
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
fi_fg_sleepallday
Definition: FI_FeedingGround.h:73
fmc_Cutting
Definition: LandscapeFarmingEnums.h:1009
fi_fg_remove_straw
Definition: FI_FeedingGround.h:79
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
FI_FeedingGround::SetUpFarmCategoryInformation
void SetUpFarmCategoryInformation()
Definition: FI_FeedingGround.h:104
fmc_Others
Definition: LandscapeFarmingEnums.h:1003
Calendar::OldDays
long OldDays(void)
Definition: Calendar.h:60
fi_fg_grazing2
Definition: FI_FeedingGround.h:76
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_fg_foobar
Definition: FI_FeedingGround.h:80
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
FarmEvent::m_todo
int m_todo
Definition: Farm.h:388
Farm::SleepAllDay
virtual bool SleepAllDay(LE *a_field, double a_user, int a_days)
Nothing to to today on a_field.
Definition: FarmFuncs.cpp:272
tof_OptimisingFarm
Definition: LandscapeFarmingEnums.h:696
fi_fg_sow
Definition: FI_FeedingGround.h:69
g_msg
MapErrorMsg * g_msg
Definition: MapErrorMsg.cpp:41
FI_FG_YEARS_AFTER_SOW
#define FI_FG_YEARS_AFTER_SOW
Definition: FI_FeedingGround.h:53
fmc_Grazing
Definition: LandscapeFarmingEnums.h:1010
fi_fg_cattle_is_out2
Definition: FI_FeedingGround.h:77
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
fi_fg_cutting3
Definition: FI_FeedingGround.h:78
FI_FG_BASE
#define FI_FG_BASE
Definition: FI_FeedingGround.h:56
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
WARN_BUG
Definition: MapErrorMsg.h:34
fi_fg_cutting1
Definition: FI_FeedingGround.h:70
fi_fg_cattle_is_out1
Definition: FI_FeedingGround.h:72
FarmManagementCategory
FarmManagementCategory
Definition: LandscapeFarmingEnums.h:1001