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

#include <OTriticale.h>

Inheritance diagram for OTriticale:
Crop

Public Member Functions

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

◆ OTriticale()

OTriticale::OTriticale ( TTypesOfVegetation  a_tov,
TTypesOfCrops  a_toc,
Landscape a_L 
)
inline
63  : Crop(a_tov, a_toc, a_L)
64  {
67  }

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

Member Function Documentation

◆ Do()

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

Reimplemented from Crop.

39 {
40  m_farm = a_farm;
41  m_field = a_field;
42  m_ev = a_ev;
43  int d1=0;
44  int noDates=2;
45  bool done = false;
46 
47  switch ( m_ev->m_todo )
48  {
49  case otri_start:
50  a_field->ClearManagementActionSum();
51 
52  // Set up the date management stuff
54  // Start and stop dates for all events after harvest
55  m_field->SetMDates(0,0,g_date->DayInYear(5,8));
56  // Determined by harvest date - used to see if at all possible
57  m_field->SetMDates(1,0,g_date->DayInYear(20,8));
58  m_field->SetMDates(0,1,g_date->DayInYear(20,8));
59  m_field->SetMDates(1,1,g_date->DayInYear(15,9));
60  // Check the next crop for early start, unless it is a spring crop
61  // in which case we ASSUME that no checking is necessary!!!!
62  // So DO NOT implement a crop that runs over the year boundary
63 
64  //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)
66  if (m_ev->m_startday>g_date->DayInYear(1,7))
67  {
68  if (m_field->GetMDates(0,0) >=m_ev->m_startday)
69  {
70  g_msg->Warn( WARN_BUG, "OTriticale::Do(): " "Harvest too late for the next crop to start!!!", "" );
71  exit( 1 );
72  }
73  // Now fix any late finishing problems
74  for (int i=0; i<noDates; i++) {
75  if(m_field->GetMDates(0,i)>=m_ev->m_startday) {
76  m_field->SetMDates(0,i,m_ev->m_startday-1); //move the starting date
77  }
78  if(m_field->GetMDates(1,i)>=m_ev->m_startday){
79  m_field->SetMConstants(i,0);
80  m_field->SetMDates(1,i,m_ev->m_startday-1); //move the finishing date
81  }
82  }
83  }
84  // Now no operations can be timed after the start of the next crop.
85  // Start single block date checking code to be cut-'n-pasted...
86  if ( ! m_ev->m_first_year )
87  {
88  // Are we before July 1st?
89  d1 = g_date->OldDays() + g_date->DayInYear( 1,7 );
90  if (g_date->Date() < d1)
91  {
92  // Yes, too early. We assumme this is because the last crop was late
93  g_msg->Warn( WARN_BUG, "OTriticale::Do(): " "Crop start attempt between 1st Jan & 1st July", "" );
94  exit( 1 );
95  }
96  else
97  {
98  d1 = g_date->OldDays() + m_first_date; // Add 365 for spring crop
99  if (g_date->Date() > d1)
100  {
101  // Yes too late - should not happen - raise an error
102  g_msg->Warn( WARN_BUG, "OTriticale::Do(): " "Crop start attempt after last possible start date", "" );
103  exit( 1 );
104  }
105  }
106  }
107  else
108  {
109  // Is the first year so must start in spring like nothing was unusual
111  ,otri_harvest, false );
112  break;
113  }
114  }//if
115 
116  // End single block date checking code. Please see next line
117  // comment as well.
118  // Reinit d1 to first possible starting date.
119  d1 = g_date->OldDays() + g_date->DayInYear( 20,8 );
120  if ( g_date->Date() > d1 ) {
121  d1 = g_date->Date();
122  }
123 
124  // OK, let's go.
125  OTRI_WATER_DATE = 0;
126 
127  SimpleEvent( g_date->OldDays() + g_date->DayInYear( 20,8 ),
128  otri_fa_manure, false );
129  break;
130 
131  case otri_fa_manure:
132  if ( m_ev->m_lock || m_farm->DoIt( 40 )) {
133  if (!m_farm->FA_Manure( m_field, 0.0,
134  g_date->DayInYear( 5,10 ) -
135  g_date->DayInYear())) {
136  SimpleEvent( g_date->Date() + 1, otri_fa_manure, true );
137  break;
138  }
139  }
140  {
141  d1 = g_date->Date();
142  if ( d1 < g_date->OldDays() + g_date->DayInYear( 1,9 ))
143  d1 = g_date->OldDays() + g_date->DayInYear( 1,9 );
144  SimpleEvent( d1, otri_autumn_plough, false );
145  }
146  break;
147 
148  case otri_autumn_plough:
149  if (!m_farm->AutumnPlough( m_field, 0.0,
150  g_date->DayInYear( 15,10 ) -
151  g_date->DayInYear())) {
152  SimpleEvent( g_date->Date() + 1, otri_autumn_plough, true );
153  break;
154  }
155  SimpleEvent( g_date->Date() + 1, otri_autumn_harrow, false );
156  break;
157 
158  case otri_autumn_harrow:
159  if (!m_farm->AutumnHarrow( m_field, 0.0,
160  g_date->DayInYear( 15,10 ) -
161  g_date->DayInYear())) {
162  SimpleEvent( g_date->Date() + 1, otri_autumn_harrow, true );
163  break;
164  }
165  SimpleEvent( g_date->Date(), otri_autumn_sow, false );
166  break;
167 
168  case otri_autumn_sow:
169  if (!m_farm->AutumnSow( m_field, 0.0,
170  g_date->DayInYear( 15,10 ) -
171  g_date->DayInYear())) {
172  SimpleEvent( g_date->Date() + 1, otri_autumn_sow, true );
173  break;
174  }
175  SimpleEvent( g_date->Date(), otri_autumn_roll, false );
176  break;
177 
178  case otri_autumn_roll:
179  if ( m_ev->m_lock || m_farm->DoIt( 5 ))
180  {
181  if (!m_farm->AutumnRoll( m_field, 0.0, g_date->DayInYear( 10,10 ) - g_date->DayInYear()))
182  {
183  SimpleEvent( g_date->Date() + 1, otri_autumn_roll, true );
184  break;
185  }
186  }
187  SimpleEvent( g_date->OldDays() + g_date->DayInYear( 25,3) + 365, otri_spring_roll, false );
188  SimpleEvent( g_date->OldDays() + g_date->DayInYear( 1,4 ) + 365, otri_fa_npk, false );
189  if (m_farm->IsStockFarmer()) SimpleEvent( g_date->OldDays() + g_date->DayInYear( 5,4 ) + 365, otri_fa_slurry, false ); // StockFarmer
190  SimpleEvent( g_date->OldDays() + g_date->DayInYear( 1,4 ) + 365, otri_strigling, false );
191  break;
192 
193  case otri_spring_roll:
194  if ( m_ev->m_lock || m_farm->DoIt( 15 ))
195  {
196  if (!m_farm->SpringRoll( m_field, 0.0,
197  g_date->DayInYear( 10,4 ) -
198  g_date->DayInYear())) {
199  SimpleEvent( g_date->Date() + 1, otri_spring_roll, true );
200  break;
201  }
202  }
203  break;
204 
205  case otri_fa_npk:
206  if (!m_farm->FA_NPK( m_field, 0.0, g_date->DayInYear( 30, 4 ) - g_date->DayInYear()))
207  {
208  SimpleEvent( g_date->Date() + 1, otri_fa_npk, true );
209  break;
210  }
211  break;
212 
213  case otri_fa_slurry:
214  if (!m_farm->FA_Slurry( m_field, 0.0, g_date->DayInYear( 250,4 ) - g_date->DayInYear()))
215  {
216  SimpleEvent( g_date->Date() + 1, otri_fa_slurry, true );
217  break;
218  }
219  break;
220 
221  case otri_strigling:
222  if (!m_farm->Strigling( m_field, 0.0, g_date->DayInYear( 30,4 ) - g_date->DayInYear()))
223  {
224  SimpleEvent( g_date->Date() + 1, otri_strigling, true );
225  break;
226  }
227  ChooseNextCrop (2);
228  SimpleEvent( g_date->OldDays() + g_date->DayInYear( 5,8 ), otri_harvest, false );
229  break;
230 
231  case otri_water:
232 
233  if ( m_ev->m_lock || m_farm->DoIt( 15 ))
234  {
235  if (!m_farm->Water( m_field, 0.0,
236  g_date->DayInYear( 30,6 ) -
237  g_date->DayInYear())) {
238  SimpleEvent( g_date->Date() + 1, otri_water, true );
239  break;
240  }
242  }
243  break;
244 
245  case otri_harvest:
246  if (m_field->GetMConstants(0)==0) {
247  if (!m_farm->Harvest( m_field, 0.0, -1)) { //raise an error
248  g_msg->Warn( WARN_BUG, "OTriticale::Do(): failure in 'Harvest' execution", "" );
249  exit( 1 );
250  }
251  }
252  else {
253  if (!m_farm->Harvest( m_field, 0.0, m_field->GetMDates(1,0) - g_date->DayInYear())) {
254  SimpleEvent( g_date->Date() + 1, otri_harvest, true );
255  break;
256  }
257  }
258  if ( m_farm->DoIt( 75 ))
259  SimpleEvent( g_date->Date(), otri_chopping, true );
260  else
262  break;
263 
264  case otri_chopping:
265  if (m_field->GetMConstants(0)==0) {
266  if (!m_farm->StrawChopping( m_field, 0.0, -1)) { //raise an error
267  g_msg->Warn( WARN_BUG, "OTriticale::Do(): failure in 'StrawChopping' execution", "" );
268  exit( 1 );
269  }
270  }
271  else {
272  if (!m_farm->StrawChopping( m_field, 0.0, m_field->GetMDates(1,0) - g_date->DayInYear())) {
273  SimpleEvent( g_date->Date() + 1, otri_chopping, true );
274  break;
275  }
276  }
278  break;
279 
280  case otri_hay_turning:
281  if ( m_ev->m_lock || m_farm->DoIt( 20 )) {
282  if (m_field->GetMConstants(0)==0) {
283  if (!m_farm->HayTurning( m_field, 0.0, -1)) { //raise an error
284  g_msg->Warn( WARN_BUG, "OTriticale::Do(): failure in 'HayTurning' execution", "" );
285  exit( 1 );
286  }
287  }
288  else {
289  if (!m_farm->HayTurning( m_field, 0.0, m_field->GetMDates(1,0) - g_date->DayInYear())) {
290  SimpleEvent( g_date->Date() + 1, otri_hay_turning, true );
291  break;
292  }
293  }
294  }
295  SimpleEvent( g_date->Date(), otri_hay_bailing, false );
296  break;
297 
298  case otri_hay_bailing:
299  if (m_field->GetMConstants(0)==0) {
300  if (!m_farm->HayBailing( m_field, 0.0, -1)) { //raise an error
301  g_msg->Warn( WARN_BUG, "OTriticale::Do(): failure in 'HayBailing' execution", "" );
302  exit( 1 );
303  }
304  }
305  else {
306  if (!m_farm->HayBailing( m_field, 0.0, m_field->GetMDates(1,0) - g_date->DayInYear())) {
307  SimpleEvent( g_date->Date() + 1, otri_hay_bailing, true );
308  break;
309  }
310  }
312  break;
313 
314  case otri_stubble_harrow:
315  if (m_field->GetMConstants(1)==0) {
316  if (!m_farm->StubbleHarrowing( m_field, 0.0, -1)) { //raise an error
317  g_msg->Warn( WARN_BUG, "OTriticale::Do(): failure in 'StubbleHarrowing' execution", "" );
318  exit( 1 );
319  }
320  }
321  else {
322  if (!m_farm->StubbleHarrowing( m_field, 0.0, m_field->GetMDates(1,1) - g_date->DayInYear())) {
323  SimpleEvent( g_date->Date() + 1, otri_stubble_harrow, true );
324  break;
325  }
326  }
327  done = true;
328  break;
329 
330  default:
331  g_msg->Warn( WARN_BUG, "OTriticale::Do(): " "Unknown event type! ", "" );
332  exit( 1 );
333  }
334  return done;
335 }

References Farm::AutumnHarrow(), Farm::AutumnPlough(), Farm::AutumnRoll(), Farm::AutumnSow(), Crop::ChooseNextCrop(), LE::ClearManagementActionSum(), Calendar::Date(), Calendar::DayInYear(), Farm::DoIt(), Farm::FA_Manure(), Farm::FA_NPK(), Farm::FA_Slurry(), g_date, g_msg, LE::GetMConstants(), LE::GetMDates(), Farm::GetType(), Calendar::GetYearNumber(), 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(), otri_autumn_harrow, otri_autumn_plough, otri_autumn_roll, otri_autumn_sow, otri_chopping, otri_fa_manure, otri_fa_npk, otri_fa_slurry, otri_harvest, otri_hay_bailing, otri_hay_turning, otri_spring_roll, otri_start, otri_strigling, otri_stubble_harrow, otri_water, OTRI_WATER_DATE, LE::SetMConstants(), LE::SetMDates(), Crop::SimpleEvent(), Farm::SpringRoll(), Farm::StrawChopping(), Farm::Strigling(), Farm::StubbleHarrowing(), tof_OptimisingFarm, MapErrorMsg::Warn(), WARN_BUG, and Farm::Water().

◆ SetUpFarmCategoryInformation()

void OTriticale::SetUpFarmCategoryInformation ( )
inline
68  {
69  const int elements = 2 + (otri_foobar - OTRITICALE_BASE);
71 
72  FarmManagementCategory catlist[elements] =
73  {
74  fmc_Others, // zero element unused but must be here
75  fmc_Others, // otri_start = 1, // Compulsory, start event must always be 1 (one).
76  fmc_Fertilizer, // otri_fa_manure = OTRITICALE_BASE,
77  fmc_Cultivation, // otri_autumn_plough,
78  fmc_Cultivation, // otri_autumn_harrow,
79  fmc_Others, // otri_autumn_sow,
80  fmc_Cultivation, // otri_autumn_roll,
81  fmc_Cultivation, // otri_spring_roll,
82  fmc_Fertilizer, // otri_fa_npk,
83  fmc_Fertilizer, // otri_fa_slurry,
84  fmc_Cultivation, // otri_strigling,
85  fmc_Watering, // otri_water,
86  fmc_Harvest, // otri_harvest,
87  fmc_Others, // otri_chopping,
88  fmc_Others, // otri_hay_turning,
89  fmc_Others, // otri_hay_bailing,
90  fmc_Cultivation // otri_stubble_harrow,
91 
92 
93  // no foobar entry
94 
95  };
96  // Iterate over the catlist elements and copy them to vector
97  copy(begin(catlist), end(catlist), back_inserter(m_ManagementCategories));
98 
99  }

References fmc_Cultivation, fmc_Fertilizer, fmc_Harvest, fmc_Others, fmc_Watering, Crop::m_base_elements_no, Crop::m_ManagementCategories, otri_foobar, and OTRITICALE_BASE.

Referenced by OTriticale().


The documentation for this class was generated from the following files:
LE::GetMDates
int GetMDates(int a, int b)
Definition: Elements.h:405
otri_hay_bailing
Definition: OTriticale.h:52
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
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
otri_harvest
Definition: OTriticale.h:49
LE::SetMDates
void SetMDates(int a, int b, int c)
Definition: Elements.h:406
Farm::IsStockFarmer
bool IsStockFarmer(void)
Definition: Farm.h:961
otri_fa_slurry
Definition: OTriticale.h:46
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::GetMConstants
int GetMConstants(int a)
Definition: Elements.h:407
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
otri_stubble_harrow
Definition: OTriticale.h:53
g_date
class Calendar * g_date
Definition: Calendar.cpp:37
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
Farm::GetType
TTypesOfFarm GetType(void)
Definition: Farm.h:956
otri_spring_roll
Definition: OTriticale.h:44
OTRI_WATER_DATE
#define OTRI_WATER_DATE
Definition: OTriticale.h:34
Crop::m_base_elements_no
int m_base_elements_no
Definition: Farm.h:505
otri_foobar
Definition: OTriticale.h:54
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
Crop::SimpleEvent
void SimpleEvent(long a_date, int a_todo, bool a_lock)
Adds an event to this crop management.
Definition: Farm.cpp:747
otri_fa_manure
Definition: OTriticale.h:39
otri_chopping
Definition: OTriticale.h:50
otri_autumn_sow
Definition: OTriticale.h:42
otri_hay_turning
Definition: OTriticale.h:51
fmc_Fertilizer
Definition: LandscapeFarmingEnums.h:1004
otri_fa_npk
Definition: OTriticale.h:45
Calendar::Date
long Date(void)
Definition: Calendar.h:57
otri_autumn_roll
Definition: OTriticale.h:43
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
otri_water
Definition: OTriticale.h:48
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
fmc_Watering
Definition: LandscapeFarmingEnums.h:1011
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
otri_autumn_harrow
Definition: OTriticale.h:41
otri_strigling
Definition: OTriticale.h:47
OTriticale::SetUpFarmCategoryInformation
void SetUpFarmCategoryInformation()
Definition: OTriticale.h:68
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
OTRITICALE_BASE
#define OTRITICALE_BASE
Definition: OTriticale.h:31
Farm::AutumnRoll
virtual bool AutumnRoll(LE *a_field, double a_user, int a_days)
Carry out a roll event in the autumn on a_field.
Definition: FarmFuncs.cpp:299
otri_start
Definition: OTriticale.h:38
tof_OptimisingFarm
Definition: LandscapeFarmingEnums.h:696
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
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::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
otri_autumn_plough
Definition: OTriticale.h:40
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
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
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
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
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