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

#include <SpringBarleySeed.h>

Inheritance diagram for SpringBarleySeed:
Crop

Public Member Functions

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

◆ SpringBarleySeed()

SpringBarleySeed::SpringBarleySeed ( TTypesOfVegetation  a_tov,
TTypesOfCrops  a_toc,
Landscape a_L 
)
inline
65  : Crop(a_tov, a_toc, a_L)
66  {
69  }

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

Member Function Documentation

◆ Do()

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

Reimplemented from Crop.

38 {
39  m_farm = a_farm;
40  m_field = a_field;
41  m_ev = a_ev;
42  int d1=0;
43  int noDates=3;
44  bool done = false;
45 
46  switch ( m_ev->m_todo )
47  {
48  case sbse_start:
49  // Decide wether to do autumn_plough:
50  SBSE_FUNGI_DATE = 0;
51  SBSE_WATER_DATE = 0;
52  a_field->ClearManagementActionSum();
53 
54 
55  // Set up the date management stuff
56  // Could save the start day in case it is needed later
57  // m_field->m_startday = m_ev->m_startday;
60  // Start and stop dates for all events after harvest
61  m_field->SetMDates(0,0,g_date->DayInYear(1,8));
62  // Determined by harvest date - used to see if at all possible
63  m_field->SetMDates(1,0,g_date->DayInYear(20,8));
64  m_field->SetMDates(0,1,g_date->DayInYear(5,8));
65  m_field->SetMDates(1,1,g_date->DayInYear(25,8));
66  m_field->SetMDates(0,2,g_date->DayInYear(15,8));
67  m_field->SetMDates(1,2,g_date->DayInYear(15,9));
68  // Check the next crop for early start, unless it is a spring crop
69  if ((m_field->GetMDates(0,0) >=m_ev->m_startday)
70  && (m_ev->m_startday>g_date->DayInYear(1,7)))
71  {
72  g_msg->Warn( WARN_BUG, "SpringBarleySeed::Do(): "
73  "Harvest too late for the next crop to start!!!", "" );
74  exit( 1 );
75  }
76  // Now fix any late finishing problems
77  for (int i=0; i<noDates; i++)
78  {
79  if (m_field->GetMDates(0,i)>=m_ev->m_startday)
81  if (m_field->GetMDates(1,i)>=m_ev->m_startday)
83  }
84  // Now no operations can be timed after the start of the next crop.
85  if ( ! m_ev->m_first_year )
86  {
87  // Are we before July 1st?
88  d1 = g_date->OldDays() + g_date->DayInYear( 1,7 );
89  if (g_date->Date() < d1)
90  {
91  // Yes, too early. We assumme this is because the last crop was late
92  g_msg->Warn( WARN_BUG, "SpringBarleySeed::Do(): "
93  "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, "SpringBarleySeed::Do(): "
103  "Crop start attempt after last possible start date", "" );
104  exit( 1 );
105  }
106  }
107 
108  }
109  else
110  {
111  SimpleEvent( g_date->OldDays() + g_date->DayInYear( 1,4 ),
112  sbse_spring_plough, false );
113  break;
114  }
115  // End single block date checking code. Please see next line
116  // comment as well.
117  // Reinit d1 to first possible starting date.
118  d1 = g_date->OldDays() + g_date->DayInYear( 1,11 );
119  if ( g_date->Date() > d1 ) {
120  d1 = g_date->Date();
121  }
122 
123  // OK, let's go.
124 
125  if (m_farm->DoIt(50))
126  {
127  SimpleEvent( d1, sbse_autumn_plough, false );
128  }
129  else
130  {
131  SimpleEvent( g_date->OldDays() + 365 + g_date->DayInYear( 15, 3 ),
132  sbse_spring_plough, false );
133  }
134  break;
135 
136  case sbse_autumn_plough:
137  if (!m_farm->AutumnPlough( m_field, 0.0,
138  g_date->DayInYear( 1,12 ) -
139  g_date->DayInYear())) {
140  SimpleEvent( g_date->Date() + 1, sbse_autumn_plough, true );
141  break;
142  }
143  SimpleEvent( g_date->OldDays() + g_date->DayInYear( 15,3 )+365,
144  sbse_spring_harrow, false );
145  break;
146 
147  case sbse_spring_plough:
148  if (!m_farm->SpringPlough( m_field, 0.0,
149  g_date->DayInYear( 10, 4 ) -
150  g_date->DayInYear())) {
151  SimpleEvent( g_date->Date()+1, sbse_spring_plough, true );
152  break;
153  }
155  break;
156 
157  case sbse_spring_harrow:
158  if (!m_farm->SpringHarrow( m_field, 0.0,
159  g_date->DayInYear( 10,4 ) -
160  g_date->DayInYear())) {
161  SimpleEvent( g_date->Date() + 1, sbse_spring_harrow, true );
162  break;
163  }
164  {
165  int d1 = g_date->Date();
166  if ( d1 > g_date->OldDays() + g_date->DayInYear( 20,3 ))
167  d1 = g_date->OldDays() + g_date->DayInYear( 20,3 );
168  if ( m_farm->DoIt( 80 ))
169  SimpleEvent( d1, sbse_fertnpk, false );
170  else
171  SimpleEvent( d1, sbse_fertlnh3, false );
172  }
173  break;
174 
175  case sbse_fertnpk:
176  if (!m_farm->FP_NPK( m_field, 0.0,
177  g_date->DayInYear( 10, 4 ) -
178  g_date->DayInYear())) {
179  SimpleEvent( g_date->Date() + 1, sbse_fertnpk, true );
180  break;
181  }
182  {
183  int d1 = g_date->Date();
184  if ( d1 < g_date->OldDays() + g_date->DayInYear( 25,3 )) {
185  d1 = g_date->OldDays() + g_date->DayInYear( 25,3 );
186  }
187  SimpleEvent( d1, sbse_spring_sow, false );
188  }
189  break;
190 
191  case sbse_fertlnh3:
192  if (!m_farm->FP_LiquidNH3( m_field, 0.0,
193  g_date->DayInYear( 10, 4 ) -
194  g_date->DayInYear())) {
195  SimpleEvent( g_date->Date() + 1, sbse_fertlnh3, true );
196  break;
197  }
198  SimpleEvent( g_date->Date(), sbse_fertpk, false );
199  break;
200 
201 
202  case sbse_fertpk:
203  if (!m_farm->FP_PK( m_field, 0.0,
204  g_date->DayInYear( 10, 4 ) -
205  g_date->DayInYear())) {
206  SimpleEvent( g_date->Date() + 1, sbse_fertpk, true );
207  break;
208  }
209  {
210  int d1 = g_date->Date();
211  if ( d1 < g_date->OldDays() + g_date->DayInYear( 25,3 )) {
212  d1 = g_date->OldDays() + g_date->DayInYear( 25,3 );
213  }
214  SimpleEvent( d1, sbse_spring_sow, false );
215  }
216  break;
217 
218  case sbse_spring_sow:
219  if (!m_farm->SpringSow( m_field, 0.0,
220  g_date->DayInYear( 15,4 ) -
221  g_date->DayInYear())) {
222  SimpleEvent( g_date->Date() + 1, sbse_spring_sow, true );
223  break;
224  }
225  SimpleEvent( g_date->Date(), sbse_spring_roll, false );
226  {
227  int d1 = g_date->Date();
228  if ( d1 < g_date->OldDays() + g_date->DayInYear( 1,4 )) {
229  d1 = g_date->OldDays() + g_date->DayInYear( 1,4 );
230  }
231  SimpleEvent( d1, sbse_herbicide_one, false );
232  }
233  break;
234 
235  case sbse_spring_roll:
236  if ( m_ev->m_lock || m_farm->DoIt( 90 ))
237  {
238  if (!m_farm->SpringRoll( m_field, 0.0,
239  g_date->DayInYear( 20,4 ) -
240  g_date->DayInYear())) {
241  SimpleEvent( g_date->Date() + 1, sbse_spring_roll, true );
242  break;
243  }
244  }
245  break;
246 
247  case sbse_herbicide_one:
248  if ( m_ev->m_lock || m_farm->DoIt( (int) (100*cfg_herbi_app_prop.value() ))) {
249  if (!m_farm->HerbicideTreat( m_field, 0.0,
250  g_date->DayInYear( 30,4 ) -
251  g_date->DayInYear())) {
252  SimpleEvent( g_date->Date() + 1, sbse_herbicide_one, true );
253  break;
254  }
255  }
256  SimpleEvent( g_date->OldDays() + g_date->DayInYear( 10,5 ),
257  sbse_GR, false );
258  SimpleEvent( g_date->OldDays() + g_date->DayInYear( 10,5 ),
259  sbse_fungicide_one, false );
260  SimpleEvent( g_date->OldDays() + g_date->DayInYear( 15,5 ),
261  sbse_water_one, false );
262  break;
263 
264  case sbse_GR:
265  if ( m_ev->m_lock || m_farm->DoIt( (int) (25*cfg_greg_app_prop.value() )))
266  {
267  if (!m_farm->GrowthRegulator( m_field, 0.0,
268  g_date->DayInYear( 25,5 ) -
269  g_date->DayInYear())) {
270  SimpleEvent( g_date->Date() + 1, sbse_GR, true );
271  break;
272  }
273  }
274  break;
275 
276  // Fungicide thread
277  case sbse_fungicide_one:
278  if ( g_date->Date() < SBSE_WATER_DATE + 1 ) {
280  break;
281  }
282  if ( m_ev->m_lock || m_farm->DoIt( (int) (90*cfg_fungi_app_prop1.value() )))
283  {
284  if (!m_farm->FungicideTreat( m_field, 0.0,
285  g_date->DayInYear( 25,5 ) -
286  g_date->DayInYear())) {
287  SimpleEvent( g_date->Date() + 1, sbse_fungicide_one, true );
288  break;
289  }
291  {
292  d1 = g_date->Date() + 10;
293  if ( d1 < g_date->OldDays() + g_date->DayInYear( 15,5 )) {
294  d1 = g_date->OldDays() + g_date->DayInYear( 15,5 );
295  }
296  SimpleEvent( d1, sbse_fungicide_two, false );
297  }
298  }
299  break;
300 
301  case sbse_fungicide_two:
302  if ( g_date->Date() < SBSE_WATER_DATE + 1 ) {
304  break;
305  }
306  if ( m_ev->m_lock || m_farm->DoIt( (int) (30*cfg_fungi_app_prop1.value() )))
307  {
308  if (!m_farm->FungicideTreat( m_field, 0.0,
309  g_date->DayInYear( 10,6 ) -
310  g_date->DayInYear())) {
311  SimpleEvent( g_date->Date() + 1, sbse_fungicide_two, true );
312  break;
313  }
315  }
316  break;
317 
318  // Water thread
319  case sbse_water_one:
320  if ( g_date->Date() < SBSE_FUNGI_DATE + 1 ) {
322  break;
323  }
324  if ( m_ev->m_lock || m_farm->DoIt( 20 ))
325  {
326  if (!m_farm->Water( m_field, 0.0,
327  g_date->DayInYear( 30,5 ) -
328  g_date->DayInYear())) {
329  SimpleEvent( g_date->Date() + 1, sbse_water_one, true );
330  break;
331  }
333  }
334  SimpleEvent( g_date->OldDays() + g_date->DayInYear( 1,6 ),
335  sbse_water_two, false );
336  break;
337 
338  case sbse_water_two:
339  if ( g_date->Date() < SBSE_FUNGI_DATE + 1 ) {
341  break;
342  }
343  if ( m_ev->m_lock || m_farm->DoIt( 20 ))
344  {
345  if (!m_farm->Water( m_field, 0.0,
346  g_date->DayInYear( 1,7 ) -
347  g_date->DayInYear())) {
348  SimpleEvent( g_date->Date() + 1, sbse_water_two, true );
349  break;
350  }
352  }
353  SimpleEvent( g_date->OldDays() + g_date->DayInYear( 1,8 ),
354  sbse_harvest, false );
355  break;
356 
357  case sbse_harvest:
358  if (!m_farm->Harvest( m_field, 0.0,
359  m_field->GetMDates(1,0) -
360  g_date->DayInYear())) {
361  SimpleEvent( g_date->Date() + 1, sbse_harvest, true );
362  break;
363  }
364  {
365  d1 = g_date->Date();
366  if ( d1 < g_date->OldDays() + m_field->GetMDates(0,1))
367  d1 = g_date->OldDays() + m_field->GetMDates(0,1);
368  SimpleEvent( d1, sbse_hay_bailing, false );
369  }
370  break;
371 
372  case sbse_hay_bailing:
373  if (!m_farm->HayBailing( m_field, 0.0,
374  m_field->GetMDates(1,1) -
375  g_date->DayInYear())) {
376  SimpleEvent( g_date->Date() + 1, sbse_hay_bailing, true );
377  break;
378  }
379 // The rest is removed until we figure out how to implement over the year
380 // boundries - this is not a nice crop **CJT**
381 /* if ( m_farm->DoIt( 20 ))
382  SimpleEvent( g_date->Date(), sbse_burn_straw_stubble, false );
383  else {
384  int d1 = g_date->Date();
385  if ( d1 < g_date->OldDays() + m_field->GetMDates(0,2))
386  d1 = g_date->OldDays() + m_field->GetMDates(0,2);
387  SimpleEvent( d1, sbse_herbicide_two, false );
388  }
389  break;
390 
391  case sbse_herbicide_two:
392  if (m_farm->DoIt(100*cfg_herbi_app_prop.value()))
393  {
394  if (!m_farm->HerbicideTreat( m_field, 0.0,
395  m_field->GetMDates(1,2) -
396  g_date->DayInYear())) {
397  SimpleEvent( g_date->Date() + 1, sbse_herbicide_two, true );
398  break;
399  }
400  done = true;
401  }
402  */
403  done = true;
404  break;
405 
407  if (!m_farm->BurnStrawStubble( m_field, 0.0,
408  m_field->GetMDates(1,2) -
409  g_date->DayInYear())) {
411  break;
412  }
413  done=true;
414  break;
415 
416  default:
417  g_msg->Warn( WARN_BUG, "SpringBarleySeed::Do(): "
418  "Unknown event type! ", "" );
419  exit( 1 );
420  }
421  return done;
422 }

References Farm::AutumnPlough(), Farm::BurnStrawStubble(), cfg_fungi_app_prop1, cfg_greg_app_prop, cfg_herbi_app_prop, LE::ClearManagementActionSum(), Calendar::Date(), Calendar::DayInYear(), Farm::DoIt(), Farm::FP_LiquidNH3(), Farm::FP_NPK(), Farm::FP_PK(), Farm::FungicideTreat(), g_date, g_msg, LE::GetMDates(), Farm::GrowthRegulator(), Farm::Harvest(), Farm::HayBailing(), 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_startday, FarmEvent::m_todo, Calendar::OldDays(), sbse_autumn_plough, sbse_burn_straw_stubble, sbse_fertlnh3, sbse_fertnpk, sbse_fertpk, SBSE_FUNGI_DATE, sbse_fungicide_one, sbse_fungicide_two, sbse_GR, sbse_harvest, sbse_hay_bailing, sbse_herbicide_one, sbse_spring_harrow, sbse_spring_plough, sbse_spring_roll, sbse_spring_sow, sbse_start, SBSE_WATER_DATE, sbse_water_one, sbse_water_two, LE::SetMDates(), Crop::SimpleEvent(), Farm::SpringHarrow(), Farm::SpringPlough(), Farm::SpringRoll(), Farm::SpringSow(), CfgFloat::value(), MapErrorMsg::Warn(), WARN_BUG, and Farm::Water().

◆ SetUpFarmCategoryInformation()

void SpringBarleySeed::SetUpFarmCategoryInformation ( )
inline
70  {
71  const int elements = 2 + (sbse_foobar - SBARLEYSEED_BASE);
73 
74  FarmManagementCategory catlist[elements] =
75  {
76  fmc_Others, // zero element unused but must be here
77  fmc_Others,//sbse_start = 1, // Compulsory, start event must always be 1 (one).
78  fmc_Cultivation,//sbse_autumn_plough = SBARLEYSEED_BASE,
79  fmc_Cultivation,//sbse_spring_plough,
80  fmc_Cultivation,//sbse_spring_harrow,
81  fmc_Fertilizer,//sbse_fertnpk,
82  fmc_Fertilizer,//sbse_fertlnh3,
83  fmc_Fertilizer,//sbse_fertpk,
84  fmc_Others,//sbse_spring_sow,
85  fmc_Others,//sbse_spring_roll,
86  fmc_Herbicide,//sbse_herbicide_one,
87  fmc_Herbicide,//sbse_herbicide_two,
88  fmc_Fungicide,//sbse_fungicide_one,
89  fmc_Fungicide,//sbse_fungicide_two,
90  fmc_Others,//sbse_GR,
91  fmc_Watering,//sbse_water_one,
92  fmc_Watering,//sbse_water_two,
93  fmc_Harvest,//sbse_harvest,
94  fmc_Others,//sbse_hay_bailing,
95  fmc_Others//sbse_burn_straw_stubble
96 
97  // no foobar entry
98 
99  };
100  // Iterate over the catlist elements and copy them to vector
101  copy(begin(catlist), end(catlist), back_inserter(m_ManagementCategories));
102 
103  }

References fmc_Cultivation, fmc_Fertilizer, fmc_Fungicide, fmc_Harvest, fmc_Herbicide, fmc_Others, fmc_Watering, Crop::m_base_elements_no, Crop::m_ManagementCategories, SBARLEYSEED_BASE, and sbse_foobar.

Referenced by SpringBarleySeed().


The documentation for this class was generated from the following files:
LE::GetMDates
int GetMDates(int a, int b)
Definition: Elements.h:405
sbse_fungicide_two
Definition: SpringBarleySeed.h:49
sbse_fertlnh3
Definition: SpringBarleySeed.h:42
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
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
sbse_burn_straw_stubble
Definition: SpringBarleySeed.h:55
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::FP_NPK
virtual bool FP_NPK(LE *a_field, double a_user, int a_days)
Apply NPK fertilizer, on a_field owned by an arable farmer.
Definition: FarmFuncs.cpp:645
Farm::DoIt
bool DoIt(double a_probability)
Return chance out of 0 to 100.
Definition: Farm.cpp:856
sbse_spring_plough
Definition: SpringBarleySeed.h:39
cfg_fungi_app_prop1
CfgFloat cfg_fungi_app_prop1
FarmEvent::m_first_year
bool m_first_year
Definition: Farm.h:386
sbse_water_two
Definition: SpringBarleySeed.h:52
g_date
class Calendar * g_date
Definition: Calendar.cpp:37
fmc_Herbicide
Definition: LandscapeFarmingEnums.h:1006
sbse_spring_harrow
Definition: SpringBarleySeed.h:40
SBSE_WATER_DATE
#define SBSE_WATER_DATE
Definition: SpringBarleySeed.h:34
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
CfgFloat::value
double value() const
Definition: Configurator.h:142
sbse_fungicide_one
Definition: SpringBarleySeed.h:48
Crop::m_base_elements_no
int m_base_elements_no
Definition: Farm.h:505
cfg_greg_app_prop
CfgFloat cfg_greg_app_prop
cfg_herbi_app_prop
CfgFloat cfg_herbi_app_prop
Crop::m_first_date
int m_first_date
Definition: Farm.h:501
FarmEvent::m_startday
int m_startday
Definition: Farm.h:385
Farm::FungicideTreat
virtual bool FungicideTreat(LE *a_field, double a_user, int a_days)
Apply fungicide to a_field.
Definition: FarmFuncs.cpp:2101
Farm::FP_PK
virtual bool FP_PK(LE *a_field, double a_user, int a_days)
Apply PK fertilizer, on a_field owned by an arable farmer.
Definition: FarmFuncs.cpp:673
Crop::SimpleEvent
void SimpleEvent(long a_date, int a_todo, bool a_lock)
Adds an event to this crop management.
Definition: Farm.cpp:747
sbse_foobar
Definition: SpringBarleySeed.h:56
sbse_autumn_plough
Definition: SpringBarleySeed.h:38
sbse_harvest
Definition: SpringBarleySeed.h:53
fmc_Fertilizer
Definition: LandscapeFarmingEnums.h:1004
Calendar::Date
long Date(void)
Definition: Calendar.h:57
sbse_spring_sow
Definition: SpringBarleySeed.h:44
sbse_hay_bailing
Definition: SpringBarleySeed.h:54
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
fmc_Others
Definition: LandscapeFarmingEnums.h:1003
fmc_Watering
Definition: LandscapeFarmingEnums.h:1011
Calendar::OldDays
long OldDays(void)
Definition: Calendar.h:60
sbse_water_one
Definition: SpringBarleySeed.h:51
MapErrorMsg::Warn
void Warn(MapErrorState a_level, std::string a_msg1, std::string a_msg2)
Definition: MapErrorMsg.cpp:69
SBARLEYSEED_BASE
#define SBARLEYSEED_BASE
Definition: SpringBarleySeed.h:31
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::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
sbse_start
Definition: SpringBarleySeed.h:37
SBSE_FUNGI_DATE
#define SBSE_FUNGI_DATE
Definition: SpringBarleySeed.h:33
Farm::FP_LiquidNH3
virtual bool FP_LiquidNH3(LE *a_field, double a_user, int a_days)
Apply liquid ammonia fertilizer to a_field owned by an arable farmer.
Definition: FarmFuncs.cpp:808
sbse_fertnpk
Definition: SpringBarleySeed.h:41
fmc_Harvest
Definition: LandscapeFarmingEnums.h:1012
Farm::GrowthRegulator
virtual bool GrowthRegulator(LE *a_field, double a_user, int a_days)
Apply growth regulator to a_field.
Definition: FarmFuncs.cpp:2070
sbse_GR
Definition: SpringBarleySeed.h:50
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
Farm::BurnStrawStubble
virtual bool BurnStrawStubble(LE *a_field, double a_user, int a_days)
Burn stubble on a_field.
Definition: FarmFuncs.cpp:1567
sbse_fertpk
Definition: SpringBarleySeed.h:43
sbse_herbicide_one
Definition: SpringBarleySeed.h:46
Crop::m_ev
FarmEvent * m_ev
Definition: Farm.h:500
WARN_BUG
Definition: MapErrorMsg.h:34
fmc_Fungicide
Definition: LandscapeFarmingEnums.h:1007
sbse_spring_roll
Definition: SpringBarleySeed.h:45
FarmManagementCategory
FarmManagementCategory
Definition: LandscapeFarmingEnums.h:1001
SpringBarleySeed::SetUpFarmCategoryInformation
void SetUpFarmCategoryInformation()
Definition: SpringBarleySeed.h:70
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