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

#include <OWinterWheatUndersown.h>

Inheritance diagram for OWinterWheatUndersown:
Crop

Public Member Functions

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

◆ OWinterWheatUndersown()

OWinterWheatUndersown::OWinterWheatUndersown ( TTypesOfVegetation  a_tov,
TTypesOfCrops  a_toc,
Landscape a_L 
)
inline
68  : Crop(a_tov, a_toc, a_L)
69  {
72  }

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

Member Function Documentation

◆ Do()

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

Reimplemented from Crop.

34 {
35  m_farm = a_farm;
36  m_field = a_field;
37  m_ev = a_ev;
38 
39  bool done = false;
40 
41  switch ( m_ev->m_todo )
42  {
43  case owwu_start:
44  {
45  OWWU_PLOUGH_RUNS = false;
46  OWWU_HARROW_RUNS = false;
47  a_field->ClearManagementActionSum();
48 
49  // Set up the date management stuff
51  // Start and stop dates for all events after harvest
52  int noDates= 7;
53  m_field->SetMDates(0,0,g_date->DayInYear(1,8));
54  // Determined by harvest date - used to see if at all possible
55  m_field->SetMDates(1,0,g_date->DayInYear(20,8));
56  m_field->SetMDates(0,1,g_date->DayInYear(5,8));
57  m_field->SetMDates(1,1,g_date->DayInYear(5,9));
58  m_field->SetMDates(0,2,g_date->DayInYear(25,8));
59  m_field->SetMDates(1,2,g_date->DayInYear(25,8));
60  m_field->SetMDates(0,3,g_date->DayInYear(25,8));
61  m_field->SetMDates(1,3,g_date->DayInYear(30,8));
62  m_field->SetMDates(0,4,g_date->DayInYear(5,8));
63  m_field->SetMDates(1,4,g_date->DayInYear(5,8)); // not needed
64  m_field->SetMDates(0,5,g_date->DayInYear(15,9));
65  m_field->SetMDates(1,5,g_date->DayInYear(15,9));
66  m_field->SetMDates(0,6,g_date->DayInYear(1,8));
67  m_field->SetMDates(1,6,g_date->DayInYear(30,8));
68  // Check the next crop for early start, unless it is a spring crop
69  // in which case we ASSUME that no checking is necessary!!!!
70  // So DO NOT implement a crop that runs over the year boundary
71  if (m_ev->m_startday>g_date->DayInYear(1,7))
72  {
73  if (m_field->GetMDates(0,0) >=m_ev->m_startday)
74  {
75  g_msg->Warn( WARN_BUG, "OWinterWheatUndersown::Do(): "
76  "Harvest too late for the next crop to start!!!", "" );
77  exit( 1 );
78  }
79  // Now fix any late finishing problems
80  for (int i=0; i<noDates; i++)
81  {
82  if (m_field->GetMDates(0,i)>=m_ev->m_startday)
84  if (m_field->GetMDates(1,i)>=m_ev->m_startday)
86  }
87  }
88  // Now no operations can be timed after the start of the next crop.
89 
90  int d1;
91  if ( ! m_ev->m_first_year )
92  {
93  int today=g_date->Date();
94  // Are we before July 1st?
95  d1 = g_date->OldDays() + g_date->DayInYear( 1,7 );
96  if (today < d1)
97  {
98  // Yes, too early. We assumme this is because the last crop was late
99  g_msg->Warn( WARN_BUG, "OWinterWheatUndersown::Do(): "
100  "Crop start attempt between 1st Jan & 1st July", "" );
101  exit( 1 );
102  }
103  else
104  {
105  d1 = g_date->OldDays() + m_first_date; // Add 365 for spring crop
106  if (today > d1)
107  {
108  // Yes too late - should not happen - raise an error
109  g_msg->Warn( WARN_BUG, "OWinterWheatUndersown::Do(): "
110  "Crop start attempt after last possible start date", "" );
111  exit( 1 );
112  }
113  }
114  }
115  else
116  {
118  owwu_harvest, false );
119  break;
120  }
121  // End single block date checking code. Please see next line
122  // comment as well.
123  // Reinit d1 to first possible starting date.
124  d1 = g_date->OldDays() + m_first_date; // Add 365 for spring crop
125  if ( g_date->Date() > d1 ) {
126  d1 = g_date->Date();
127  }
128  m_field->SetLastSownVeg( m_field->GetVegType() ); //Force last sown, needed for goose habitat classification
129 
130  // OK, let's go.
131  if (m_farm->IsStockFarmer()) // StockFarmer
132  {
133  SimpleEvent( d1, owwu_ferti_s1, false );
134  }
135  else SimpleEvent( d1, owwu_ferti_p1, false );
136  }
137  break;
138 
139  case owwu_ferti_p1:
140  if ( m_ev->m_lock || m_farm->DoIt( 10 ))
141  {
142  if (!m_farm->FP_Manure( m_field, 0.0,
143  g_date->DayInYear( 30,9 ) - g_date->DayInYear())) {
144  SimpleEvent( g_date->Date() + 1, owwu_ferti_p1, true );
145  break;
146  }
147  }
149  break;
150 
151  case owwu_ferti_s1:
152  if ( m_ev->m_lock || m_farm->DoIt( 40 ))
153  {
154  if (!m_farm->FA_Manure( m_field, 0.0,
155  g_date->DayInYear( 30,9 ) - g_date->DayInYear())) {
156  SimpleEvent( g_date->Date() + 1, owwu_ferti_s1, true );
157  break;
158  }
159  }
161  break;
162 
163  case owwu_autumn_plough:
164  if (!m_farm->AutumnPlough( m_field, 0.0,
165  g_date->DayInYear( 30,9 ) - g_date->DayInYear())) {
166  SimpleEvent( g_date->Date() + 1, owwu_autumn_plough, true );
167  break;
168  }
169  SimpleEvent( g_date->Date()+1,owwu_autumn_harrow, false );
170  break;
171 
172  case owwu_autumn_harrow:
173  if (!m_farm->AutumnHarrow( m_field, 0.0,
174  g_date->DayInYear( 10,10 ) - g_date->DayInYear())) {
175  SimpleEvent( g_date->Date() + 1, owwu_autumn_harrow, true );
176  break;
177  }
178  SimpleEvent( g_date->OldDays() + g_date->DayInYear( 20,9 ),
179  owwu_autumn_sow, false );
180  break;
181 
182  case owwu_autumn_sow:
183  if (!m_farm->AutumnSow( m_field, 0.0,
184  g_date->DayInYear( 10,10 ) - g_date->DayInYear())) {
185  SimpleEvent( g_date->Date() + 1, owwu_autumn_sow, true );
186  break;
187  }
188  {
189  long newdate1 = g_date->OldDays() + g_date->DayInYear( 10,9 );
190  long newdate2 = g_date->Date() + 10;
191  if ( newdate2 > newdate1 )
192  newdate1 = newdate2;
193  SimpleEvent( newdate1, owwu_strigling1, false );
194  }
195  break;
196 
197  case owwu_strigling1:
198  if (!m_farm->Strigling( m_field, 0.0,
199  g_date->DayInYear( 10,10 ) - g_date->DayInYear())) {
200  SimpleEvent( g_date->Date() + 1, owwu_strigling1, true );
201  break;
202  }
203  SimpleEvent( g_date->OldDays() + g_date->DayInYear( 24,9 ),
204  owwu_strigling2, false );
205  break;
206 
207  case owwu_strigling2:
208  // --FN--
209  if ( m_ev->m_lock || (cfg_strigling_prop.value() * m_farm->DoIt( 70 )))
210  // **CJT** Soil Type 2-4 later implementation
211  {
212  if (!m_farm->Strigling( m_field, 0.0,
213  g_date->DayInYear( 24,10 ) - g_date->DayInYear())) {
214  SimpleEvent( g_date->Date() + 1, owwu_strigling2, true );
215  break;
216  }
217  }
218  // Next year
219  SimpleEvent( g_date->OldDays() + g_date->DayInYear( 25,3 )+365,
220  owwu_strigling_sow, false );
221  break;
222 
223  case owwu_strigling_sow:
224  if (!m_farm->StriglingSow( m_field, 0.0,
225  g_date->DayInYear( 15,4 ) - g_date->DayInYear())) {
226  SimpleEvent( g_date->Date() + 1, owwu_strigling_sow, true );
227  break;
228  }
229  SimpleEvent( g_date->OldDays() + g_date->DayInYear( 1,4 ),
230  owwu_spring_roll1, false );
231  break;
232 
233  case owwu_spring_roll1:
234  if ( m_ev->m_lock || m_farm->DoIt( 5 ))
235  {
236  if (!m_farm->SpringRoll( m_field, 0.0,
237  g_date->DayInYear( 30,4 ) - g_date->DayInYear())) {
238  SimpleEvent( g_date->Date() + 1, owwu_spring_roll1, true );
239  break;
240  }
241  }
242  if (m_farm->IsStockFarmer()) // StockFarmer
243  {
244  SimpleEvent( g_date->Date() + 1, owwu_ferti_s2, false );
245  }
246  else
247  SimpleEvent( g_date->Date() + 1, owwu_ferti_p2, false );
248  break;
249 
250  case owwu_ferti_p2:
251  if (!m_farm->FP_Slurry( m_field, 0.0,
252  g_date->DayInYear( 30,4 ) - g_date->DayInYear())) {
253  SimpleEvent( g_date->Date() + 1, owwu_ferti_p2, true );
254  break;
255  }
256  SimpleEvent( g_date->Date()+1,owwu_spring_roll2, false );
257  break;
258 
259  case owwu_ferti_s2:
260  if (!m_farm->FA_Slurry( m_field, 0.0,
261  g_date->DayInYear( 30,4 ) - g_date->DayInYear())) {
262  SimpleEvent( g_date->Date() + 1, owwu_ferti_s2, true );
263  break;
264  }
265  SimpleEvent( g_date->Date()+1,owwu_spring_roll2, false );
266  break;
267 
268  case owwu_spring_roll2:
269  if ( m_ev->m_lock || m_farm->DoIt( 5 ))
270  {
271  if (!m_farm->SpringRoll( m_field, 0.0,
272  g_date->DayInYear( 30,4 ) - g_date->DayInYear())) {
273  SimpleEvent( g_date->Date() + 1, owwu_spring_roll2, true );
274  break;
275  }
276  }
277  if (m_farm->IsStockFarmer()) // StockFarmer
278  {
279  SimpleEvent( g_date->OldDays() + g_date->DayInYear( 1,5 ),
280  owwu_ferti_s3, false );
281  }
282  else
283  SimpleEvent( g_date->OldDays() + g_date->DayInYear( 1,8 ),
284  owwu_harvest, false );
285  break;
286 
287  case owwu_ferti_s3:
288  if ( m_ev->m_lock || m_farm->DoIt( 50 ))
289  {
290  if (!m_farm->FA_Slurry( m_field, 0.0,
291  g_date->DayInYear( 30,5 ) - g_date->DayInYear())) {
292  SimpleEvent( g_date->Date() + 1, owwu_ferti_s3, true );
293  break;
294  }
295  }
296  SimpleEvent( g_date->OldDays() + g_date->DayInYear( 1,8 ),
297  owwu_harvest, false );
298  break;
299 
300  case owwu_harvest:
301  if (!m_farm->Harvest( m_field, 0.0,
302  m_field->GetMDates(1,0) - g_date->DayInYear())) {
303  SimpleEvent( g_date->Date() + 1, owwu_harvest, true );
304  break;
305  }
307  break;
308 
309  case owwu_straw_chopping:
310  {
311  if ( m_ev->m_lock || m_farm->DoIt( 60 ))
312  {
313  if (!m_farm->StrawChopping( m_field, 0.0,
314  m_field->GetMDates(1,0) - g_date->DayInYear()))
315  {
316  SimpleEvent( g_date->Date() + 1, owwu_straw_chopping, true );
317  break;
318  }
319  else
320  {
321  // Did Chopping so test for stubble harrow/deep_plough
322  SimpleEvent( g_date->OldDays() + g_date->DayInYear( 1,8 ),
323  owwu_deep_plough, false );
325  owwu_stubble_harrow1, false );
326  break;
327  }
328  }
329  int d1=g_date->Date() + 3;
330  if (d1>m_field->GetMDates(0,2)) d1=m_field->GetMDates(0,2);
331  SimpleEvent( d1, owwu_hay_turning, false );
332  }
333  break;
334 
335  case owwu_hay_turning:
336  if ( m_ev->m_lock || m_farm->DoIt( 20 ))
337  {
338  if (!m_farm->HayTurning( m_field, 0.0,
339  m_field->GetMDates(1,2) - g_date->DayInYear())) {
340  SimpleEvent( g_date->Date() + 1, owwu_hay_turning, true );
341  break;
342  }
343  }
344  {
345  long d1 = g_date->OldDays() + g_date->DayInYear( 7,8 );
346  long d2 = g_date->Date() + 3;
347  if ( d2 > d1 ) d1 = d2;
348  if (d1>m_field->GetMDates(0,3)) d1=m_field->GetMDates(0,3);
349  SimpleEvent( d1, owwu_hay_baling, false );
350  }
351  break;
352 
353  case owwu_hay_baling:
354  if (!m_farm->HayBailing( m_field, 0.0,
355  m_field->GetMDates(1,3) - g_date->DayInYear())) {
356  SimpleEvent( g_date->Date() + 1, owwu_hay_baling, true );
357  break;
358  }
359  // These events will almost certainly predate
360  // 'today' due to the ending date used above.
362  owwu_deep_plough, false );
364  owwu_stubble_harrow1, false );
365  break;
366 
368  OWWU_HARROW_RUNS = true;
369  if ( m_ev->m_lock || m_farm->DoIt( 20 ))
370  {
371  if (!m_farm->StubbleHarrowing( m_field, 0.0,
372  m_field->GetMDates(1,1) - g_date->DayInYear())) {
373  SimpleEvent( g_date->Date() + 1, owwu_stubble_harrow1, true );
374  break;
375  }
376  int d1=g_date->Date()+10;
377  if (d1>m_field->GetMDates(0,5)) d1=m_field->GetMDates(0,5);
378  SimpleEvent( d1,owwu_stubble_harrow2, false );
379  break;
380  }
381  OWWU_HARROW_RUNS = false;
382  SimpleEvent( g_date->Date(), owwu_catch_all, false );
383  break;
384 
386  if (!m_farm->StubbleHarrowing( m_field, 0.0,
387  m_field->GetMDates(1,5) - g_date->DayInYear()))
388  {
389  SimpleEvent( g_date->Date() + 1, owwu_stubble_harrow2, true );
390  break;
391  }
392  OWWU_HARROW_RUNS = false;
393  SimpleEvent( g_date->Date(), owwu_catch_all, false );
394  break;
395 
396  case owwu_deep_plough:
397  OWWU_PLOUGH_RUNS = true;
398  if ( m_ev->m_lock || m_farm->DoIt( 5 ))
399  {
400  if (!m_farm->DeepPlough( m_field, 0.0,
401  m_field->GetMDates(1,6) - g_date->DayInYear()))
402  {
403  SimpleEvent( g_date->Date() + 1, owwu_deep_plough, true );
404  break;
405  }
406  // if we deep plough then finish plan here
407  done=true;
408  // END OF MAIN THREAD
409  break; //
410  }
411  OWWU_PLOUGH_RUNS = false;
412  SimpleEvent( g_date->Date(), owwu_catch_all, false );
413  break;
414 
415  case owwu_catch_all:
417  done = true;
418  break;
419 
420  default:
421  g_msg->Warn( WARN_BUG, "OWinterWheatUndersown::Do(): "
422  "Unknown event type! ", "" );
423  exit( 1 );
424  }
425  return done;
426 }

References Farm::AutumnHarrow(), Farm::AutumnPlough(), Farm::AutumnSow(), cfg_strigling_prop, LE::ClearManagementActionSum(), Calendar::Date(), Calendar::DayInYear(), Farm::DeepPlough(), Farm::DoIt(), Farm::FA_Manure(), Farm::FA_Slurry(), Farm::FP_Manure(), Farm::FP_Slurry(), g_date, g_msg, LE::GetMDates(), Farm::Harvest(), Farm::HayBailing(), Farm::HayTurning(), Farm::IsStockFarmer(), Crop::m_ev, Crop::m_farm, Crop::m_field, Crop::m_first_date, FarmEvent::m_first_year, Crop::m_last_date, FarmEvent::m_lock, FarmEvent::m_startday, FarmEvent::m_todo, Calendar::OldDays(), owwu_autumn_harrow, owwu_autumn_plough, owwu_autumn_sow, owwu_catch_all, owwu_deep_plough, owwu_ferti_p1, owwu_ferti_p2, owwu_ferti_s1, owwu_ferti_s2, owwu_ferti_s3, OWWU_HARROW_RUNS, owwu_harvest, owwu_hay_baling, owwu_hay_turning, OWWU_PLOUGH_RUNS, owwu_spring_roll1, owwu_spring_roll2, owwu_start, owwu_straw_chopping, owwu_strigling1, owwu_strigling2, owwu_strigling_sow, owwu_stubble_harrow1, owwu_stubble_harrow2, LE::SetLastSownVeg(), LE::SetMDates(), Crop::SimpleEvent(), Farm::SpringRoll(), Farm::StrawChopping(), Farm::Strigling(), Farm::StriglingSow(), Farm::StubbleHarrowing(), CfgFloat::value(), MapErrorMsg::Warn(), and WARN_BUG.

◆ SetUpFarmCategoryInformation()

void OWinterWheatUndersown::SetUpFarmCategoryInformation ( )
inline
73  {
74  const int elements = 2 + (owwu_foobar - OWINTERWHEATUndersown_BASE);
76 
77  FarmManagementCategory catlist[elements] =
78  {
79  fmc_Others, // zero element unused but must be here
80  fmc_Others, // owwu_start = 1, // Compulsory, must always be 1 (one).
81  fmc_Others, // owwu_sleep_all_day = OWINTERWHEATUndersown_BASE,
82  fmc_Fertilizer, // owwu_ferti_s1,
83  fmc_Fertilizer, // owwu_ferti_s2,
84  fmc_Fertilizer, // owwu_ferti_s3,
85  fmc_Fertilizer, // owwu_ferti_p1,
86  fmc_Fertilizer, // owwu_ferti_p2,
87  fmc_Cultivation, // owwu_autumn_plough,
88  fmc_Cultivation, // owwu_autumn_harrow,
89  fmc_Others, // owwu_autumn_sow,
90  fmc_Cultivation, // owwu_strigling1,
91  fmc_Cultivation, // owwu_strigling2,
92  fmc_Cultivation, // owwu_strigling_sow,
93  fmc_Others, // owwu_spring_sow,
94  fmc_Cultivation, // owwu_spring_roll1,
95  fmc_Cultivation, // owwu_spring_roll2,
96  fmc_Harvest, // owwu_harvest,
97  fmc_Others, // owwu_hay_turning,
98  fmc_Others, // owwu_straw_chopping,
99  fmc_Others, // owwu_hay_baling,
100  fmc_Harvest, // owwu_stubble_harrow1,
101  fmc_Cultivation, // owwu_stubble_harrow2,
102  fmc_Cultivation, // owwu_deep_plough,
103  fmc_Others // owwu_catch_all,
104 
105 
106  // no foobar entry
107 
108  };
109  // Iterate over the catlist elements and copy them to vector
110  copy(begin(catlist), end(catlist), back_inserter(m_ManagementCategories));
111 
112  }

References fmc_Cultivation, fmc_Fertilizer, fmc_Harvest, fmc_Others, Crop::m_base_elements_no, Crop::m_ManagementCategories, OWINTERWHEATUndersown_BASE, and owwu_foobar.

Referenced by OWinterWheatUndersown().


The documentation for this class was generated from the following files:
LE::GetMDates
int GetMDates(int a, int b)
Definition: Elements.h:405
owwu_spring_roll1
Definition: OWinterWheatUndersown.h:50
Farm::SpringRoll
virtual bool SpringRoll(LE *a_field, double a_user, int a_days)
Carry out a roll event in the spring on a_field.
Definition: FarmFuncs.cpp:487
OWinterWheatUndersown::SetUpFarmCategoryInformation
void SetUpFarmCategoryInformation()
Definition: OWinterWheatUndersown.h:73
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
owwu_ferti_s2
Definition: OWinterWheatUndersown.h:39
LE::SetMDates
void SetMDates(int a, int b, int c)
Definition: Elements.h:406
owwu_autumn_sow
Definition: OWinterWheatUndersown.h:45
Farm::IsStockFarmer
bool IsStockFarmer(void)
Definition: Farm.h:961
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
LE::SetLastSownVeg
void SetLastSownVeg(TTypesOfVegetation a_tov)
Records the last vegetation type to be sown.
Definition: Elements.h:357
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::DoIt
bool DoIt(double a_probability)
Return chance out of 0 to 100.
Definition: Farm.cpp:856
FarmEvent::m_first_year
bool m_first_year
Definition: Farm.h:386
owwu_stubble_harrow1
Definition: OWinterWheatUndersown.h:56
g_date
class Calendar * g_date
Definition: Calendar.cpp:37
owwu_straw_chopping
Definition: OWinterWheatUndersown.h:54
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
CfgFloat::value
double value() const
Definition: Configurator.h:142
owwu_start
Definition: OWinterWheatUndersown.h:36
Crop::m_base_elements_no
int m_base_elements_no
Definition: Farm.h:505
owwu_deep_plough
Definition: OWinterWheatUndersown.h:58
Crop::m_first_date
int m_first_date
Definition: Farm.h:501
FarmEvent::m_startday
int m_startday
Definition: Farm.h:385
owwu_ferti_p1
Definition: OWinterWheatUndersown.h:41
Crop::SimpleEvent
void SimpleEvent(long a_date, int a_todo, bool a_lock)
Adds an event to this crop management.
Definition: Farm.cpp:747
owwu_catch_all
Definition: OWinterWheatUndersown.h:59
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
cfg_strigling_prop
CfgFloat cfg_strigling_prop
fmc_Fertilizer
Definition: LandscapeFarmingEnums.h:1004
Calendar::Date
long Date(void)
Definition: Calendar.h:57
fmc_Cultivation
Definition: LandscapeFarmingEnums.h:1008
owwu_strigling1
Definition: OWinterWheatUndersown.h:46
owwu_foobar
Definition: OWinterWheatUndersown.h:60
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
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
owwu_hay_baling
Definition: OWinterWheatUndersown.h:55
owwu_autumn_plough
Definition: OWinterWheatUndersown.h:43
OWWU_HARROW_RUNS
#define OWWU_HARROW_RUNS
Definition: OWinterWheatUndersown.h:33
owwu_strigling2
Definition: OWinterWheatUndersown.h:47
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
OWWU_PLOUGH_RUNS
#define OWWU_PLOUGH_RUNS
Definition: OWinterWheatUndersown.h:32
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
owwu_spring_roll2
Definition: OWinterWheatUndersown.h:51
FarmEvent::m_todo
int m_todo
Definition: Farm.h:388
Farm::FP_Slurry
virtual bool FP_Slurry(LE *a_field, double a_user, int a_days)
Apply slurry to a_field owned by an arable farmer.
Definition: FarmFuncs.cpp:823
owwu_hay_turning
Definition: OWinterWheatUndersown.h:53
Crop::m_last_date
int m_last_date
Definition: Farm.h:503
owwu_ferti_p2
Definition: OWinterWheatUndersown.h:42
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
owwu_ferti_s1
Definition: OWinterWheatUndersown.h:38
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
owwu_ferti_s3
Definition: OWinterWheatUndersown.h:40
Farm::DeepPlough
virtual bool DeepPlough(LE *a_field, double a_user, int a_days)
Carry out a deep ploughing event on a_field.
Definition: FarmFuncs.cpp:408
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
fmc_Harvest
Definition: LandscapeFarmingEnums.h:1012
owwu_autumn_harrow
Definition: OWinterWheatUndersown.h:44
OWINTERWHEATUndersown_BASE
#define OWINTERWHEATUndersown_BASE
Definition: OWinterWheatUndersown.h:31
Calendar::DayInYear
int DayInYear(void)
Definition: Calendar.h:58
owwu_stubble_harrow2
Definition: OWinterWheatUndersown.h:57
Crop::Crop
Crop(TTypesOfVegetation a_tov, TTypesOfCrops a_toc, Landscape *a_L)
Definition: Farm.cpp:733
Farm::HayTurning
virtual bool HayTurning(LE *a_field, double a_user, int a_days)
Carry out hay turning on a_field.
Definition: FarmFuncs.cpp:1491
Crop::m_ev
FarmEvent * m_ev
Definition: Farm.h:500
owwu_strigling_sow
Definition: OWinterWheatUndersown.h:48
owwu_harvest
Definition: OWinterWheatUndersown.h:52
Farm::StriglingSow
virtual bool StriglingSow(LE *a_field, double a_user, int a_days, double a_seed_coating_amount=-1, PlantProtectionProducts a_ppp=ppp_foobar)
Carry out a mechanical weeding followed by sowing on a_field.
Definition: FarmFuncs.cpp:1226
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