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

#include <MaizeStrigling.h>

Inheritance diagram for MaizeStrigling:
Crop

Public Member Functions

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

◆ MaizeStrigling()

MaizeStrigling::MaizeStrigling ( 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 MaizeStrigling::Do ( Farm a_farm,
LE a_field,
FarmEvent a_ev 
)
virtual

Reimplemented from Crop.

36 {
37  m_farm = a_farm;
38  m_field = a_field;
39  m_ev = a_ev;
40  int d1=0;
41 
42  bool done = false;
43  switch ( m_ev->m_todo ) {
44  case mas_start:
45  {
48  a_field->ClearManagementActionSum();
49 
50  // Set up the date management stuff
52  // Start and stop dates for all events after harvest
53  int noDates= 2;
54  m_field->SetMDates(0,0,g_date->DayInYear(10,10));
55  // 0,0 determined by harvest date - used to see if at all possible
56  m_field->SetMDates(1,0,g_date->DayInYear(10,11));
57  m_field->SetMDates(0,1,g_date->DayInYear(15,10));
58  m_field->SetMDates(1,1,g_date->DayInYear(30,11));
59  // Check the next crop for early start, unless it is a spring crop
60  // in which case we ASSUME that no checking is necessary!!!!
61  // So DO NOT implement a crop that runs over the year boundary
62  if (m_ev->m_startday>g_date->DayInYear(1,7))
63  {
64  if (m_field->GetMDates(0,0) >=m_ev->m_startday)
65  {
67  g_msg->Warn( WARN_BUG, "Maize::Do(): Harvest too late for the next crop to start!!!", (a_field->GetLandscape()->VegtypeToString(l_tov)) );
68  exit( 1 );
69  }
70  // Now fix any late finishing problems
71  for (int i=0; i<noDates; i++)
72  {
73  if (m_field->GetMDates(0,i)>=m_ev->m_startday)
75  if (m_field->GetMDates(1,i)>=m_ev->m_startday)
77  }
78  }
79  // Now no operations can be timed after the start of the next crop.
80 
81  if ( ! m_ev->m_first_year )
82  {
83  int today=g_date->Date();
84  // Are we before July 1st?
85  d1 = g_date->OldDays() + g_date->DayInYear( 1,7 );
86  if (today < d1)
87  {
88  // Yes, too early. We assumme this is because the last crop was late
89  g_msg->Warn( WARN_BUG, "Maize::Do(): "
90  "Crop start attempt between 1st Jan & 1st July", "" );
91  exit( 1 );
92  }
93  else
94  {
95  d1 = g_date->OldDays() + m_first_date; // Add 365 for spring crop
96  if (today > d1)
97  {
98  // Yes too late - should not happen - raise an error
99  g_msg->Warn( WARN_BUG, "Maize::Do(): "
100  "Crop start attempt after last possible start date", "" );
101  exit( 1 );
102  }
103  }
104  }
105  else
106  {
108  mas_spring_plough, false );
109  break;
110  }
111  // End single block date checking code. Please see next line
112  // comment as well.
113  // Reinit d1 to first possible starting date.
114  d1 = g_date->OldDays() + m_first_date; // Add 365 for spring crop
115  if ( g_date->Date() > d1 ) {
116  d1 = g_date->Date();
117  }
118  // OK, let's go.
119  if ( m_farm->DoIt( 50 ))
120  {
121  SimpleEvent( d1, mas_fa_manure_a, false );
122  }
123  else
124  {
125  SimpleEvent( g_date->OldDays() + g_date->DayInYear( 20, 3 ) + 365,
126  mas_fa_manure_b, false );
127  }
128  break;
129  }
130 
131  case mas_fa_manure_a:
132  if (!m_farm->FA_Manure( m_field, 0.0,
133  g_date->DayInYear( 30, 11 ) - g_date->DayInYear())) {
134  SimpleEvent( g_date->Date() + 1, mas_fa_manure_a, false );
135  break;
136  }
138  break;
139 
140  case mas_autumn_plough:
141  if (!m_farm->AutumnPlough( m_field, 0.0,
142  g_date->DayInYear( 30, 11 ) - g_date->DayInYear())) {
143  SimpleEvent( g_date->Date() + 1, mas_autumn_plough, false );
144  break;
145  }
146  SimpleEvent( g_date->OldDays() + g_date->DayInYear( 1, 4 ) + 365,
147  mas_spring_harrow, false );
148  break;
149 
150  case mas_fa_manure_b:
151  if (!m_farm->FA_Manure( m_field, 0.0,
152  g_date->DayInYear( 25, 4 ) - g_date->DayInYear())) {
153  SimpleEvent( g_date->Date() + 1, mas_fa_manure_b, false );
154  break;
155  }
156  {
157  d1 = g_date->OldDays() + g_date->DayInYear( 1, 4 );
158  if ( g_date->Date()+1 > d1 ) {
159  d1 = g_date->Date()+1;
160  }
161  SimpleEvent( d1, mas_fa_slurry_one, false );
162  }
163  break;
164 
165  case mas_fa_slurry_one:
166  if (!m_farm->FA_Slurry( m_field, 0.0,
167  g_date->DayInYear( 30, 4 ) - g_date->DayInYear())) {
168  SimpleEvent( g_date->Date() + 1, mas_fa_slurry_one, false );
169  break;
170  }
171  SimpleEvent( g_date->Date() + 1, mas_spring_plough, false );
172  break;
173 
174  case mas_spring_plough:
175  if (!m_farm->SpringPlough( m_field, 0.0,
176  g_date->DayInYear( 1, 5 ) - g_date->DayInYear())) {
177  SimpleEvent( g_date->Date() + 1, mas_spring_plough, false );
178  break;
179  }
181  break;
182 
183  case mas_spring_harrow:
184  if (!m_farm->SpringHarrow( m_field, 0.0,
185  g_date->DayInYear( 10, 5 ) - g_date->DayInYear())) {
186  SimpleEvent( g_date->Date() + 1, mas_spring_harrow, false );
187  break;
188  }
189  {
190  d1 = g_date->OldDays() + g_date->DayInYear( 25, 4 );
191  if ( g_date->Date() > d1 ) {
192  d1 = g_date->Date();
193  }
194  SimpleEvent( d1, mas_spring_sow, false );
195  }
196  break;
197 
198  case mas_spring_sow:
199  if (!m_farm->SpringSow( m_field, 0.0,
200  g_date->DayInYear( 15, 5 ) - g_date->DayInYear())) {
201  SimpleEvent( g_date->Date() + 1, mas_spring_sow, false );
202  break;
203  }
205  SimpleEvent( g_date->Date(), mas_fa_npk, false );
206  break;
207 
208  case mas_fa_npk:
209  if (!m_farm->FA_NPK( m_field, 0.0,
210  g_date->DayInYear( 20, 5 ) - g_date->DayInYear())) {
211  SimpleEvent( g_date->Date() + 1, mas_fa_npk, false );
212  break;
213  }
214  if ( m_farm->DoIt( 70 )) {
215  {
216  d1 = g_date->OldDays() + g_date->DayInYear( 1, 5 );
217  if ( MAIZEStrigling_SOW_DATE + 5 > d1 ) {
218  d1 = MAIZEStrigling_SOW_DATE + 5;
219  }
220  SimpleEvent( d1, mas_herbi_one, false );
221  }
222  } else {
223  {
224  d1 = g_date->OldDays() + g_date->DayInYear( 2, 5 );
225  if ( MAIZEStrigling_SOW_DATE + 7 > d1 ) {
226  d1 = MAIZEStrigling_SOW_DATE + 7;
227  }
228  SimpleEvent( d1, mas_row_one, false );
229  }
230  }
231  break;
232 
233  case mas_herbi_one:
234  if ( m_ev->m_lock || m_farm->DoIt( (int) (100*cfg_herbi_app_prop.value() ))) {
235  if (!m_farm->HerbicideTreat( m_field, 0.0,
236  g_date->DayInYear( 25, 5 ) - g_date->DayInYear())) {
237  SimpleEvent( g_date->Date() + 1, mas_herbi_one, false );
238  break;
239  }
240  }
242  {
243  d1 = g_date->OldDays() + g_date->DayInYear( 1, 5 );
244  if ( MAIZEStrigling_SOW_DATE + 5 > d1 ) {
245  d1 = MAIZEStrigling_SOW_DATE + 5;
246  }
247  SimpleEvent( d1, mas_fa_slurry_two, false );
248  }
249  break;
250 
251  case mas_row_one:
252  if (!m_farm->RowCultivation( m_field, 0.0,
253  g_date->DayInYear( 25, 5 ) - g_date->DayInYear())) {
254  SimpleEvent( g_date->Date() + 1, mas_row_one, false );
255  break;
256  }
257  {
258  d1 = g_date->OldDays() + g_date->DayInYear( 1, 5 );
259  if ( MAIZEStrigling_SOW_DATE + 5 > d1 ) {
260  d1 = MAIZEStrigling_SOW_DATE + 5;
261  }
262  SimpleEvent( d1, mas_fa_slurry_two, false );
263  }
264  break;
265 
266  case mas_fa_slurry_two:
267  if (!m_farm->FA_Slurry( m_field, 0.0,
268  g_date->DayInYear( 25, 5 ) - g_date->DayInYear())) {
269  SimpleEvent( g_date->Date() + 1, mas_fa_slurry_two, false );
270  break;
271  }
272  if ( m_farm->DoIt( 86 )) {
273  {
274  d1 = g_date->OldDays() + g_date->DayInYear( 10, 5 );
275  if ( MAIZEStrigling_HERBI_ONE_DATE + 10 > d1 ) {
277  }
278  SimpleEvent( d1, mas_herbi_two, false );
279  }
280  } else {
281  {
282  d1 = g_date->OldDays() + g_date->DayInYear( 21, 5 );
283  if ( g_date->Date() + 1 > d1 ) {
284  d1 = g_date->Date() + 1;
285  }
286  SimpleEvent( d1, mas_row_two, false );
287  }
288  }
289  break;
290 
291  case mas_herbi_two:
292  if ( m_ev->m_lock || m_farm->DoIt( (int) (100*cfg_herbi_app_prop.value() ))) {
293  if (!m_farm->HerbicideTreat( m_field, 0.0,
294  g_date->DayInYear( 5, 6 ) - g_date->DayInYear())) {
295  SimpleEvent( g_date->Date() + 1, mas_herbi_two, false );
296  break;
297  }
298  }
299  SimpleEvent( g_date->OldDays() + g_date->DayInYear( 1, 7 ),
300  mas_water_one, false );
301  break;
302 
303  case mas_row_two:
304  if (!m_farm->RowCultivation( m_field, 0.0,
305  g_date->DayInYear( 20, 6 ) - g_date->DayInYear())) {
306  SimpleEvent( g_date->Date() + 1, mas_row_two, false );
307  break;
308  }
309  SimpleEvent( g_date->OldDays() + g_date->DayInYear( 1, 7 ),
310  mas_water_one, false );
311  break;
312 
313  case mas_water_one:
314  if ( m_ev->m_lock || m_farm->DoIt( 30 )) {
315  if (!m_farm->Water( m_field, 0.0,
316  g_date->DayInYear( 15, 7 ) - g_date->DayInYear())) {
317  SimpleEvent( g_date->Date() + 1, mas_water_one, false );
318  break;
319  }
320  }
321  {
322  d1 = g_date->OldDays() + g_date->DayInYear( 16, 7 );
323  if ( g_date->Date() + 7 > d1 ) {
324  d1 = g_date->Date() + 7;
325  }
326  SimpleEvent( d1, mas_water_two, false );
327  }
328  break;
329 
330  case mas_water_two:
331  if (!m_farm->Water( m_field, 0.0,
332  g_date->DayInYear( 30, 7 ) - g_date->DayInYear())) {
333  SimpleEvent( g_date->Date() + 1, mas_water_two, false );
334  break;
335  }
336  SimpleEvent( g_date->OldDays() + g_date->DayInYear( 10, 10 ),
337  mas_harvest, false );
338  break;
339 
340  case mas_harvest:
341  if (!m_farm->Harvest( m_field, 0.0,
342  m_field->GetMDates(1,0) - g_date->DayInYear())) {
343  SimpleEvent( g_date->Date() + 1, mas_harvest, false );
344  break;
345  }
346  {
347  d1 = g_date->OldDays() + m_field->GetMDates(0,1);
348  if ( g_date->Date() > d1 ) {
349  d1 = g_date->Date();
350  }
351  SimpleEvent( d1, mas_stubble, false );
352  }
353  break;
354 
355  case mas_stubble:
356  if ( m_ev->m_lock || m_farm->DoIt( 25 )) {
357  if (!m_farm->StubbleHarrowing( m_field, 0.0,
358  m_field->GetMDates(1,1) -
359  g_date->DayInYear())) {
360  SimpleEvent( g_date->Date() + 1, mas_stubble, false );
361  break;
362  }
363  }
364  d1=g_date->DayInYear();
365  done = true;
366  break;
367 
368  default:
369  g_msg->Warn( WARN_BUG, "Maize::Do(): "
370  "Unknown event type! ", "" );
371  exit( 1 );
372  }
373 
374  return done;
375 }

References Farm::AutumnPlough(), cfg_herbi_app_prop, LE::ClearManagementActionSum(), Calendar::Date(), Calendar::DayInYear(), Farm::DoIt(), Farm::FA_Manure(), Farm::FA_NPK(), Farm::FA_Slurry(), g_date, g_msg, LE::GetMDates(), Farm::Harvest(), Farm::HerbicideTreat(), 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_next_tov, FarmEvent::m_startday, FarmEvent::m_todo, MAIZEStrigling_HERBI_ONE_DATE, MAIZEStrigling_SOW_DATE, mas_autumn_plough, mas_fa_manure_a, mas_fa_manure_b, mas_fa_npk, mas_fa_slurry_one, mas_fa_slurry_two, mas_harvest, mas_herbi_one, mas_herbi_two, mas_row_one, mas_row_two, mas_spring_harrow, mas_spring_plough, mas_spring_sow, mas_start, mas_stubble, mas_water_one, mas_water_two, Calendar::OldDays(), Farm::RowCultivation(), LE::SetMDates(), Crop::SimpleEvent(), Farm::SpringHarrow(), Farm::SpringPlough(), Farm::SpringSow(), Farm::StubbleHarrowing(), CfgFloat::value(), MapErrorMsg::Warn(), WARN_BUG, and Farm::Water().

◆ SetUpFarmCategoryInformation()

void MaizeStrigling::SetUpFarmCategoryInformation ( )
inline
68  {
69  const int elements = 2 + (mas_foobar - MAIZEStrigling_BASE);
71 
72  FarmManagementCategory catlist[elements] =
73  {
74  fmc_Others, // zero element unused but must be here
75  fmc_Others, // mas_start = 1, // Compulsory, start event must always be 1 (one).
76  fmc_Fertilizer, // mas_fa_manure_a = MAIZEStrigling_BASE,
77  fmc_Fertilizer, // mas_fa_manure_b,
78  fmc_Cultivation, // mas_autumn_plough,
79  fmc_Fertilizer, // mas_fa_slurry_one,
80  fmc_Cultivation, // mas_spring_plough,
81  fmc_Cultivation, // mas_spring_harrow,
82  fmc_Others, // mas_spring_sow,
83  fmc_Fertilizer, // mas_fa_npk,
84  fmc_Cultivation, // mas_row_one,
85  fmc_Fertilizer, // mas_fa_slurry_two,
86  fmc_Cultivation, // mas_row_two,
87  fmc_Watering, // mas_water_one,
88  fmc_Watering, // mas_water_two,
89  fmc_Harvest, // mas_harvest,
90  fmc_Cultivation, // mas_stubble,
91  fmc_Herbicide, // mas_herbi_one,
92  fmc_Herbicide // mas_herbi_two,
93 
94 
95  // no foobar entry
96 
97  };
98  // Iterate over the catlist elements and copy them to vector
99  copy(begin(catlist), end(catlist), back_inserter(m_ManagementCategories));
100 
101  }

References fmc_Cultivation, fmc_Fertilizer, fmc_Harvest, fmc_Herbicide, fmc_Others, fmc_Watering, Crop::m_base_elements_no, Crop::m_ManagementCategories, MAIZEStrigling_BASE, and mas_foobar.

Referenced by MaizeStrigling().


The documentation for this class was generated from the following files:
LE::GetMDates
int GetMDates(int a, int b)
Definition: Elements.h:405
MAIZEStrigling_SOW_DATE
#define MAIZEStrigling_SOW_DATE
Definition: MaizeStrigling.h:32
mas_fa_manure_b
Definition: MaizeStrigling.h:38
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
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
Farm::HerbicideTreat
virtual bool HerbicideTreat(LE *a_field, double a_user, int a_days)
Apply herbicide to a_field.
Definition: FarmFuncs.cpp:2025
cfg_herbi_app_prop
CfgFloat cfg_herbi_app_prop
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
mas_fa_slurry_one
Definition: MaizeStrigling.h:40
mas_start
Definition: MaizeStrigling.h:36
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
mas_foobar
Definition: MaizeStrigling.h:54
mas_spring_sow
Definition: MaizeStrigling.h:43
g_date
class Calendar * g_date
Definition: Calendar.cpp:37
mas_spring_plough
Definition: MaizeStrigling.h:41
fmc_Herbicide
Definition: LandscapeFarmingEnums.h:1006
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
mas_water_one
Definition: MaizeStrigling.h:48
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
mas_herbi_two
Definition: MaizeStrigling.h:53
mas_fa_npk
Definition: MaizeStrigling.h:44
CfgFloat::value
double value() const
Definition: Configurator.h:142
Crop::m_base_elements_no
int m_base_elements_no
Definition: Farm.h:505
mas_stubble
Definition: MaizeStrigling.h:51
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
mas_herbi_one
Definition: MaizeStrigling.h:52
MaizeStrigling::SetUpFarmCategoryInformation
void SetUpFarmCategoryInformation()
Definition: MaizeStrigling.h:68
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_Fertilizer
Definition: LandscapeFarmingEnums.h:1004
mas_fa_slurry_two
Definition: MaizeStrigling.h:46
mas_row_one
Definition: MaizeStrigling.h:45
Calendar::Date
long Date(void)
Definition: Calendar.h:57
fmc_Cultivation
Definition: LandscapeFarmingEnums.h:1008
fmc_Others
Definition: LandscapeFarmingEnums.h:1003
fmc_Watering
Definition: LandscapeFarmingEnums.h:1011
Calendar::OldDays
long OldDays(void)
Definition: Calendar.h:60
mas_fa_manure_a
Definition: MaizeStrigling.h:37
MapErrorMsg::Warn
void Warn(MapErrorState a_level, std::string a_msg1, std::string a_msg2)
Definition: MapErrorMsg.cpp: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
FarmEvent::m_todo
int m_todo
Definition: Farm.h:388
MAIZEStrigling_HERBI_ONE_DATE
#define MAIZEStrigling_HERBI_ONE_DATE
Definition: MaizeStrigling.h:33
mas_autumn_plough
Definition: MaizeStrigling.h:39
mas_spring_harrow
Definition: MaizeStrigling.h:42
Farm::RowCultivation
virtual bool RowCultivation(LE *a_field, double a_user, int a_days)
Carry out a harrowing between crop rows on a_field.
Definition: FarmFuncs.cpp:1183
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
TTypesOfVegetation
TTypesOfVegetation
Values that represent the types of vegetation that are represented in ALMaSS.
Definition: LandscapeFarmingEnums.h:192
fmc_Harvest
Definition: LandscapeFarmingEnums.h:1012
Calendar::DayInYear
int DayInYear(void)
Definition: Calendar.h:58
mas_row_two
Definition: MaizeStrigling.h:47
Crop::Crop
Crop(TTypesOfVegetation a_tov, TTypesOfCrops a_toc, Landscape *a_L)
Definition: Farm.cpp:733
MAIZEStrigling_BASE
#define MAIZEStrigling_BASE
Definition: MaizeStrigling.h:31
mas_water_two
Definition: MaizeStrigling.h:49
Crop::m_ev
FarmEvent * m_ev
Definition: Farm.h:500
WARN_BUG
Definition: MapErrorMsg.h:34
mas_harvest
Definition: MaizeStrigling.h:50
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
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