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

#include <CloverGrassGrazed2.h>

Inheritance diagram for CloverGrassGrazed2:
Crop

Public Member Functions

bool Do (Farm *a_farm, LE *a_field, FarmEvent *a_ev)
 
 CloverGrassGrazed2 (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...
 

Constructor & Destructor Documentation

◆ CloverGrassGrazed2()

CloverGrassGrazed2::CloverGrassGrazed2 ( TTypesOfVegetation  a_tov,
TTypesOfCrops  a_toc,
Landscape a_L 
)
inline

Member Function Documentation

◆ Do()

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

Reimplemented from Crop.

40 {
41  m_farm = a_farm;
42  m_field = a_field;
43  m_ev = a_ev;
44  long d1 = 0;
45  int noDates=2;
46  bool done = false;
47 
48  switch ( m_ev->m_todo ) {
49 
50  case cgg2_start:
51 
52  CGG2_CUT_DATE = 0;
53  CGG2_WATER_DATE = 0;
54  CGG2_DO_STUBBLE = 0;
55  CGG2_STOP_CATTLE = 0;
56  a_field->ClearManagementActionSum();
57 
58 
60 
61  // Start and stop dates for all events after harvest
62  m_field->SetMDates(0,0,g_date->DayInYear(25, 6));
63 
64  // Determined by harvest date - used to see if at all possible
65  m_field->SetMDates(1,0,g_date->DayInYear(25, 6));
66  m_field->SetMDates(0,1,g_date->DayInYear(1,9));
67  m_field->SetMDates(1,1,g_date->DayInYear(1,10));
68 
69  // Check the next crop for early start, unless it is a spring crop
70  // Check the next crop for early start, unless it is a spring crop
71  // in which case we ASSUME that no checking is necessary!!!!
72  // So DO NOT implement a crop that runs over the year boundary
73 
74  //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)
76 
77  if (m_ev->m_startday>g_date->DayInYear(1,7))
78  {
79  if (m_field->GetMDates(0,0) >=m_ev->m_startday)
80  {
81  g_msg->Warn( WARN_BUG, "CloverGrassGrazed2::Do(): "
82  "Harvest too late for the next crop to start!!!", "" );
83  exit( 1 );
84  }
85  // Now fix any late finishing problems
86  for (int i=0; i<noDates; i++) {
87  if(m_field->GetMDates(0,i)>=m_ev->m_startday) {
88  m_field->SetMDates(0,i,m_ev->m_startday-1); //move the starting date
89  }
90  if(m_field->GetMDates(1,i)>=m_ev->m_startday){
91  m_field->SetMConstants(i,0);
92  m_field->SetMDates(1,i,m_ev->m_startday-1); //move the finishing date
93  }
94  }
95  }
96  // Now no operations can be timed after the start of the next crop.
97  // Added test for management plan testing. FN, 19/5-2003.
98  if ( ! ( m_ev->m_first_year //|| g_farm_test_crop.value()
99  )) {
100  // Are we before July 1st?
101  d1 = g_date->OldDays() + g_date->DayInYear( 1,7 );
102  if (g_date->Date() < d1) {
103  // Yes, too early. We assumme this is because the last crop was late
104  g_msg->Warn( WARN_BUG, "CloverGrassGrazed2::Do(): "
105  "Crop start attempt between 1st Jan & 1st July", "" );
106  exit( 1 );
107  }
108  else
109  {
110  d1 = g_date->OldDays() + m_first_date+365; // Add 365 for spring crop
111  if (g_date->Date() > d1) {
112  // Yes too late - should not happen - raise an error
113  g_msg->Warn( WARN_BUG, "CloverGrassGrazed2::Do(): "
114  "Crop start attempt after last possible start date",
115  "" );
116  exit( 1 );
117  }
118  }
119  } else {
120  // First (invisible) year or testing. Force the correct starting date.
121  d1 = g_date->OldDays() + g_date->DayInYear( 1, 4 );
122  // If testing and not the first year, then push all events
123  // into next year (start event is called in the autumn after
124  // the current year has finished). FN, 20/5-2003.
125  if (!m_ev->m_first_year) d1 += 365;
126  }
127  }//if
128  m_field->SetLastSownVeg( m_field->GetVegType() ); //Force last sown, needed for goose habitat classification
129  d1 = g_date->OldDays() + m_first_date+365;
130 
131 
132  SimpleEvent( d1, cgg2_ferti_zero, false );
133  SimpleEvent( d1, cgg2_ferti_one, false );
134 
135  // LCT: Test programming of product/pesticide application
136  // SimpleEvent(d1 + 7, cgg2_productapplic_one, false);
137 
138 #ifdef __EcoSol_01
139  // THIS CODE IS ONLY NEEDED IF WE ARE TESTING A HERBICIDE WITH THE PESTICIDE ENGINE
140  /* */
141  if ( a_field->GetLandscape()->SupplyShouldSpray() ) {
143  if (g_date->Date() >= d1) d1 += 365;
144  SimpleEvent( d1, cgg2_productapplic_one, false );
145  }
146  /* */
147 #endif
148  break;
149 
151  if ( m_ev->m_lock || m_farm->DoIt( 100 ))
152  {
154  // We didn't do it today, try again tomorrow.
156  break;
157  }
158  }
159  break;
160 
161  case cgg2_ferti_zero:
162  if ( m_ev->m_lock || m_farm->DoIt( 30 )) {
163  if (!m_farm->FA_Slurry( m_field, 0.0,
164  g_date->DayInYear( 25, 4 ) -
165  g_date->DayInYear())) {
166  // We didn't do it today, try again tomorrow.
167  SimpleEvent( g_date->Date() + 1, cgg2_ferti_zero, true );
168  break;
169  }
170  }
171  break;
172 
173  case cgg2_ferti_one:
174  if ( m_ev->m_lock || m_farm->DoIt( 80 )) {
175  if (!m_farm->FA_NPK( m_field, 0.0,
176  g_date->DayInYear( 25, 4 ) -
177  g_date->DayInYear())) {
178  // We didn't do it today, try again tomorrow.
179  SimpleEvent( g_date->Date() + 1, cgg2_ferti_one, true );
180  break;
181  }
182  }
183 
184  ChooseNextCrop (2);
185 
186 
187  SimpleEvent( g_date->OldDays() + g_date->DayInYear( 1,5 ),
188  cgg2_cattle_out, false );
189 // SimpleEvent( g_date->OldDays() + g_date->DayInYear( 25,5 ),
190 // cgg2_cut_to_silage, false );
191 
192  // Start a watering thread
193  SimpleEvent( g_date->OldDays() + g_date->DayInYear( 15, 5 ),
194  cgg2_water_zero, false );
195  break;
196 
197 
198  case cgg2_cattle_out:
199  if ( m_ev->m_lock || m_farm->DoIt( (int) (100- ((cfg_silage_prop.value()*40) )))) {
200  if (m_field->GetMConstants(1)==0) {
201  if (!m_farm->CattleOut( m_field, 0.0, -1)) { //raise an error
202  g_msg->Warn( WARN_BUG, "CloverGrassGrazed2::Do(): failure in 'CattleOut' execution", "" );
203  exit( 1 );
204  }
205  }
206  else {
207  if (!m_farm->CattleOut( m_field, 0.0, m_field->GetMDates(1,1) - g_date->DayInYear())) {
208  SimpleEvent( g_date->Date() + 1, cgg2_cattle_out, true );
209  break;
210  }
211  }
212  // Success
213  // Keep them out there
215  break;
216  }
217  SimpleEvent( g_date->OldDays() + g_date->DayInYear( 25,5 ), cgg2_cut_to_silage, true ); // Must do this
218  break;
219 
220  case cgg2_cattle_is_out: // Keep the cattle out there
221  //CattleIsOut() returns false if it is not time to stop grazing
222  /*
223  HERE I CANNOT SEE WHY WE NEED THE FORCING OF a_days to be -1
224  if (m_field->GetMConstants(1)==0) {
225  if (!m_farm->CattleIsOut( m_field, 0.0, -1, m_field->GetMDates(1,1))) {
226  //added 27.08 - issue a warning only if we fail on the last day that this can be done, i.e. MDate
227  if(g_date->Date() == m_field->GetMDates(1,1)){
228  g_msg->Warn( WARN_BUG, "CloverGrassGrazed2::Do(): failure in 'CattleIsOut' execution", "" );
229  exit( 1 );
230  }
231  SimpleEvent( g_date->Date()+1, cgg2_cattle_is_out, false );
232  break;
233  }
234  }
235  else {
236  if ( !m_farm->CattleIsOut( m_field, 0.0, m_field->GetMDates(1,1) - g_date->DayInYear(), m_field->GetMDates(1,1))) {
237  SimpleEvent( g_date->Date() + 1, cgg2_cattle_is_out, false );
238  break;
239  }
240  }
241  */
242  if (!m_farm->CattleIsOut(m_field, 0.0, m_field->GetMDates(1, 1) - g_date->DayInYear(), m_field->GetMDates(1, 1))) {
243  //added 27.08 - issue a warning only if we fail on the last day that this can be done, i.e. MDate
244  if (g_date->Date() == m_field->GetMDates(1, 1)){
245  g_msg->Warn(WARN_BUG, "CloverGrassGrazed2::Do(): failure in 'CattleIsOut' execution", "Over-stepped the last possible date");
246  exit(1);
247  }
248  SimpleEvent(g_date->Date() + 1, cgg2_cattle_is_out, false);
249  break;
250  }
251  done = true;
252  break;
253 
254  case cgg2_cut_to_silage:
255  if ( m_ev->m_lock ) {
256  if ( g_date->Date() < CGG2_WATER_DATE + 7 ) {
257  SimpleEvent( g_date->Date() + 1, cgg2_cut_to_silage, true );
258  break;
259  }
260  if (!m_farm->CutToSilage( m_field, 0.0,
261  g_date->DayInYear( 25, 6 ) -
262  g_date->DayInYear())) {
263  // We didn't do it today, try again tomorrow.
264  SimpleEvent( g_date->Date() + 1, cgg2_cut_to_silage, true );
265  break;
266  }
269  // But we need to graze too
270  SimpleEvent( g_date->Date()+14, cgg2_cattle_out, true );
271  }
272  break;
273 
274  case cgg2_stubble_harrow:
275  if ( m_ev->m_lock || m_farm->DoIt( 20 )) {
276  // But first if we are grazing then we must stop this
277  //
278  if (m_field->GetMConstants(1)==0) {
279  if (!m_farm->StubbleHarrowing( m_field, 0.0, -1)) { //raise an error
280  g_msg->Warn( WARN_BUG, "CloverGrassGrazed2::Do(): failure in 'StubbleHarrowing' execution", "" );
281  exit( 1 );
282  }
283  }
284  else {
285  if (!m_farm->StubbleHarrowing( m_field, 0.0, m_field->GetMDates(1,1) - g_date->DayInYear())) {
286  // We didn't do it today, try again tomorrow.
287  SimpleEvent( g_date->Date() + 1, cgg2_stubble_harrow, true );
288  break;
289  }
290  }
291  // If we ran, then we also happen to be the last event,
292  // so terminate the program by stopping grazing
293  m_field->SetMDates(1,1,g_date->DayInYear()-1);
294  }
295  break;
296 
297  case cgg2_water_zero:
298  if ( m_ev->m_lock || m_farm->DoIt( 25 )) {
299  if ( g_date->Date() < CGG2_CUT_DATE + 3 ) {
300  // Try again tomorrow, too close to silage cutting.
301  SimpleEvent( g_date->Date() + 1, cgg2_water_zero, true );
302  break;
303  }
304  if (!m_farm->Water( m_field, 0.0,
305  g_date->DayInYear( 30, 5 ) -
306  g_date->DayInYear())) {
307  // We didn't do it today, try again tomorrow.
308  SimpleEvent( g_date->Date() + 1, cgg2_water_zero, true );
309  break;
310  }
312 
313  long newdate1 = g_date->OldDays() + g_date->DayInYear( 1,6 );
314  long newdate2 = g_date->Date() + 7;
315  if ( newdate2 > newdate1 )
316  newdate1 = newdate2;
317  SimpleEvent( newdate1, cgg2_water_one, false );
318  }
319  break;
320 
321  case cgg2_water_one:
322  if ( m_ev->m_lock || m_farm->DoIt( 25 )) {
323  if ( g_date->Date() < CGG2_CUT_DATE + 3 ) {
324  // Try again tomorrow, too close to silage cutting.
325  SimpleEvent( g_date->Date() + 1, cgg2_water_one, true );
326  break;
327  }
328  if (!m_farm->Water( m_field, 0.0,
329  g_date->DayInYear( 15, 6 ) -
330  g_date->DayInYear())) {
331  // We didn't do it today, try again tomorrow.
332  SimpleEvent( g_date->Date() + 1, cgg2_water_one, true );
333  break;
334  }
336  }
337  break;
338  // End of watering thread.
339 
340  default:
341  g_msg->Warn( WARN_BUG, "CloverGrassGrazed2::Do(): "
342  "Unknown event type! ", "" );
343  exit( 1 );
344  }
345  return done;
346 }

References cfg_pest_product_amounts, cfg_pest_productapplic_period, cfg_pest_productapplic_startdate, cfg_silage_prop, cgg2_cattle_is_out, cgg2_cattle_out, CGG2_CUT_DATE, cgg2_cut_to_silage, CGG2_DO_STUBBLE, cgg2_ferti_one, cgg2_ferti_zero, cgg2_productapplic_one, cgg2_start, CGG2_STOP_CATTLE, cgg2_stubble_harrow, CGG2_WATER_DATE, cgg2_water_one, cgg2_water_zero, LE::ClearManagementActionSum(), Calendar::Date(), Calendar::DayInYear(), g_date, g_msg, Calendar::GetYearNumber(), Calendar::OldDays(), ppp_1, tof_OptimisingFarm, CfgInt::value(), CfgFloat::value(), CfgArray_Double::value(), MapErrorMsg::Warn(), and WARN_BUG.

◆ SetUpFarmCategoryInformation()

void CloverGrassGrazed2::SetUpFarmCategoryInformation ( )
inline
63  {
64  const int elements = 2 + (cgg2_foobar - CGG2_BASE);
66 
67  FarmManagementCategory catlist[elements] =
68  {
69  fmc_Others, // zero element unused but must be here
70  fmc_Others, // cgg2_start = 1, // Compulsory, start event must always be 1 (one).
71  fmc_Fertilizer, // cgg2_ferti_zero=CGG2_BASE,
72  fmc_Fertilizer, // cgg2_ferti_one,
73  fmc_Fertilizer, // cgg2_ferti_two,
74  fmc_Cutting, // cgg2_cut_to_silage,
75  fmc_Watering, // cgg2_water_zero,
76  fmc_Watering, // cgg2_water_one,
77  fmc_Grazing, // cgg2_cattle_out,
78  fmc_Grazing, // cgg2_cattle_is_out,
79  fmc_Cultivation, // cgg2_stubble_harrow,
80  fmc_Herbicide // cgg2_productapplic_one,
81 
82 
83  // no foobar entry
84 
85  };
86  // Iterate over the catlist elements and copy them to vector
87  copy(begin(catlist), end(catlist), back_inserter(m_ManagementCategories));
88 
89  }

References CGG2_BASE, cgg2_foobar, fmc_Cultivation, fmc_Cutting, fmc_Fertilizer, fmc_Grazing, fmc_Herbicide, fmc_Others, fmc_Watering, Crop::m_base_elements_no, and Crop::m_ManagementCategories.

Referenced by CloverGrassGrazed2().


The documentation for this class was generated from the following files:
LE::GetMDates
int GetMDates(int a, int b)
Definition: Elements.h:405
Farm::FA_Slurry
virtual bool FA_Slurry(LE *a_field, double a_user, int a_days)
Spready slurry on a_field owned by an stock farmer.
Definition: FarmFuncs.cpp:1067
CGG2_BASE
#define CGG2_BASE
Definition: CloverGrassGrazed2.h:35
LE::SetMDates
void SetMDates(int a, int b, int c)
Definition: Elements.h:406
cfg_pest_productapplic_startdate
CfgInt cfg_pest_productapplic_startdate
Start date for applying pesticide the first time.
Definition: Elements.cpp:166
LE::SetLastSownVeg
void SetLastSownVeg(TTypesOfVegetation a_tov)
Records the last vegetation type to be sown.
Definition: Elements.h:357
FarmEvent::m_lock
bool m_lock
Definition: Farm.h:384
Farm::ProductApplication
virtual bool ProductApplication(LE *a_field, double a_user, int a_days, double a_applicationrate, PlantProtectionProducts a_ppp, bool a_isgranularpesticide=false, int a_orcharddrifttype=0)
Apply test pesticide to a_field.
Definition: FarmFuncs.cpp:2267
LE::GetMConstants
int GetMConstants(int a)
Definition: Elements.h:407
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
Calendar::GetYearNumber
int GetYearNumber(void)
Definition: Calendar.h:72
FarmEvent::m_first_year
bool m_first_year
Definition: Farm.h:386
g_date
class Calendar * g_date
Definition: Calendar.cpp:37
fmc_Herbicide
Definition: LandscapeFarmingEnums.h:1006
CfgFloat::value
double value() const
Definition: Configurator.h:142
Farm::GetType
TTypesOfFarm GetType(void)
Definition: Farm.h:956
Crop::m_base_elements_no
int m_base_elements_no
Definition: Farm.h:505
Crop::m_first_date
int m_first_date
Definition: Farm.h:501
FarmEvent::m_startday
int m_startday
Definition: Farm.h:385
Farm::FA_NPK
virtual bool FA_NPK(LE *a_field, double a_user, int a_days)
Apply NPK fertilizer to a_field owned by an stock farmer.
Definition: FarmFuncs.cpp:982
cfg_pest_product_amounts
CfgArray_Double cfg_pest_product_amounts
Amount of pesticide applied in grams of active substance per hectare for each of the 10 pesticides.
CGG2_DO_STUBBLE
#define CGG2_DO_STUBBLE
Definition: CloverGrassGrazed2.h:33
Crop::SimpleEvent
void SimpleEvent(long a_date, int a_todo, bool a_lock)
Adds an event to this crop management.
Definition: Farm.cpp:747
fmc_Cutting
Definition: LandscapeFarmingEnums.h:1009
fmc_Fertilizer
Definition: LandscapeFarmingEnums.h:1004
Calendar::Date
long Date(void)
Definition: Calendar.h:57
fmc_Cultivation
Definition: LandscapeFarmingEnums.h:1008
cgg2_cattle_is_out
Definition: CloverGrassGrazed2.h:46
fmc_Others
Definition: LandscapeFarmingEnums.h:1003
fmc_Watering
Definition: LandscapeFarmingEnums.h:1011
cgg2_water_zero
Definition: CloverGrassGrazed2.h:43
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
cgg2_stubble_harrow
Definition: CloverGrassGrazed2.h:47
cgg2_water_one
Definition: CloverGrassGrazed2.h:44
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
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
CfgArray_Double::value
std::vector< double > value() const
Definition: Configurator.h:219
FarmEvent::m_todo
int m_todo
Definition: Farm.h:388
cgg2_cattle_out
Definition: CloverGrassGrazed2.h:45
tof_OptimisingFarm
Definition: LandscapeFarmingEnums.h:696
cgg2_productapplic_one
Definition: CloverGrassGrazed2.h:48
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
g_msg
MapErrorMsg * g_msg
Definition: MapErrorMsg.cpp:41
CloverGrassGrazed2::SetUpFarmCategoryInformation
void SetUpFarmCategoryInformation()
Definition: CloverGrassGrazed2.h:63
fmc_Grazing
Definition: LandscapeFarmingEnums.h:1010
cfg_pest_productapplic_period
CfgInt cfg_pest_productapplic_period
Period for applying pesticide.
Definition: Elements.cpp:169
CGG2_CUT_DATE
#define CGG2_CUT_DATE
Definition: CloverGrassGrazed2.h:31
cgg2_ferti_one
Definition: CloverGrassGrazed2.h:40
cgg2_ferti_zero
Definition: CloverGrassGrazed2.h:39
Calendar::DayInYear
int DayInYear(void)
Definition: Calendar.h:58
CGG2_WATER_DATE
#define CGG2_WATER_DATE
Definition: CloverGrassGrazed2.h:32
Crop::Crop
Crop(TTypesOfVegetation a_tov, TTypesOfCrops a_toc, Landscape *a_L)
Definition: Farm.cpp:733
CGG2_STOP_CATTLE
#define CGG2_STOP_CATTLE
Definition: CloverGrassGrazed2.h:34
LE::SetMConstants
void SetMConstants(int a, int c)
Definition: Elements.h:408
Crop::ChooseNextCrop
void ChooseNextCrop(int a_no_dates)
Chooses the next crop to grow in a field.
Definition: Farm.cpp:756
Crop::m_ev
FarmEvent * m_ev
Definition: Farm.h:500
cgg2_start
Definition: CloverGrassGrazed2.h:38
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
cfg_silage_prop
CfgFloat cfg_silage_prop
cgg2_foobar
Definition: CloverGrassGrazed2.h:49
WARN_BUG
Definition: MapErrorMsg.h:34
ppp_1
Definition: LandscapeFarmingEnums.h:1079
FarmManagementCategory
FarmManagementCategory
Definition: LandscapeFarmingEnums.h:1001
cgg2_cut_to_silage
Definition: CloverGrassGrazed2.h:42
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