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

UKBeet class
. More...

#include <UKBeet.h>

Inheritance diagram for UKBeet:
Crop

Public Member Functions

virtual bool Do (Farm *a_farm, LE *a_field, FarmEvent *a_ev)
 The one and only method for a crop management plan. All farm actions go through here. More...
 
 UKBeet (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...
 

Detailed Description

UKBeet class
.

See UKBeet.h::UKBeetToDo for a complete list of all possible events triggered codes by the beet management plan. When triggered these events are handled by Farm and are available as information for other objects such as animal and bird models.

Constructor & Destructor Documentation

◆ UKBeet()

UKBeet::UKBeet ( TTypesOfVegetation  a_tov,
TTypesOfCrops  a_toc,
Landscape a_L 
)
inline
70  : Crop(a_tov, a_toc, a_L)
71  {
72  // When we start it off, the first possible date for a farm operation is 1st September
73  // This information is used by other crops when they decide how much post processing of
74  // the management is allowed after harvest before the next crop starts.
75  m_first_date=g_date->DayInYear( 20,12 );
77  }

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

Member Function Documentation

◆ Do()

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

The one and only method for a crop management plan. All farm actions go through here.

Called every time something is done to the crop by the farmer in the first instance it is always called with m_ev->todo set to start, but susequently will be called whenever the farmer wants to carry out a new operation.
This method details all the management and relationships between operations necessary to grow and ALMaSS crop - in this case conventional beet.

Reimplemented from Crop.

66 {
67  /******************** This block can be added to the top of all Crop::Do methods ***********************************************/
68  m_farm = a_farm; // These assignments are necessary, not for this method but for related event calls
69  m_field = a_field;
70  m_ev = a_ev;
71  bool done = false; // The boolean value done indicates when we are totally finished with this plan (i.e. it is set to true).
72  int d1 = 0;
73  int noDates = 1;
74  TTypesOfVegetation l_tov = tov_UKBeet; // The current type - change to match the crop you have
75 /**********************************************To Here *************************************************************************/
76 
77  // Depending what event has occured jump to the correct bit of code
78  switch (m_ev->m_todo)
79  {
80  case uk_be_start:
81  {
82  // uk_be_start just sets up all the starting conditions and reference dates that are needed to start a uk_be
83  UK_BE_HERBI1 = false;
84  UK_BE_FUNGI1 = false;
85 
87 
88  // Set up the date management stuff
89  // The next bit of code just allows for altering dates after harvest if it is necessary
90  // to allow for a crop which starts its management early.
91 
92  // 2 start and stop dates for all 'movable' events for this crop
93  int noDates = 1;
94  m_field->SetMDates(0, 0, g_date->DayInYear(19, 9)); // last possible day of harvest
95  m_field->SetMDates(1, 0, g_date->DayInYear(19, 9));
96 
97  m_field->SetMConstants(0, 1);
98 
99  // Check the next crop for early start, unless it is a spring crop
100  // in which case we ASSUME that no checking is necessary!!!!
101  // So DO NOT implement a crop that runs over the year boundary (i.e. from spring to spring!), at least not without fixing this.
102 
103  //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)
104  //optimising farms not used for now so most of related code is removed (but not in 'start' case)
105  if (!(m_farm->GetType() == tof_OptimisingFarm && g_date->GetYearNumber() > 0)) {
106 
107  if (m_ev->m_startday > g_date->DayInYear(1, 7)) {
108  if (m_field->GetMDates(0, 0) >= m_ev->m_startday)
109  {
110  g_msg->Warn(WARN_BUG, "UKBeet::Do(): ", "Harvest too late for the next crop to start!!!");
111  int almassnum = m_field->GetLandscape()->BackTranslateVegTypes(m_ev->m_next_tov);
112  g_msg->Warn("Next Crop ", (double)almassnum); // this causes exit
113  }
114  // Now fix any late finishing problems
115  for (int i = 0; i < noDates; i++) {
116  if (m_field->GetMDates(0, i) >= m_ev->m_startday) {
117  m_field->SetMDates(0, i, m_ev->m_startday - 1); //move the starting date
118  }
119  if (m_field->GetMDates(1, i) >= m_ev->m_startday) {
120  m_field->SetMConstants(i, 0); //change the default value of the MConst (=1) to 0 (necessary to correctly execute farm events in case the finishing date (MDate) was moved)
121  m_field->SetMDates(1, i, m_ev->m_startday - 1); //move the finishing date
122  }
123  }
124  }
125  // Now no operations can be timed after the start of the next crop.
126 
127  if (!m_ev->m_first_year) {
128  // Are we before July 1st?
129  d1 = g_date->OldDays() + g_date->DayInYear(1, 7);
130  if (g_date->Date() < d1) {
131  // Yes, too early. We assumme this is because the last crop was late
132  printf("Poly: %d\n", m_field->GetPoly());
133  g_msg->Warn(WARN_BUG, "UKBeet::Do(): ", "Crop start attempt between 1st Jan & 1st July");
134  int prev = m_field->GetLandscape()->BackTranslateVegTypes(m_field->GetOwner()->GetPreviousTov(m_field->GetRotIndex()));
135  g_msg->Warn(WARN_BUG, "Previous Crop ", prev);
136  int almassnum = m_field->GetLandscape()->BackTranslateVegTypes(m_ev->m_next_tov);
137  g_msg->Warn("Next Crop ", (double)almassnum); // this causes exit
138  exit(1);
139  }
140  else {
141  d1 = g_date->OldDays() + m_first_date; // Add 365 for spring crop
142  if (g_date->Date() > d1) {
143  // Yes too late - should not happen - raise an error
144  g_msg->Warn(WARN_BUG, "UKBeet::Do(): ", "Crop start attempt after last possible start date");
145  int prev = m_field->GetLandscape()->BackTranslateVegTypes(m_field->GetOwner()->GetPreviousTov(m_field->GetRotIndex()));
146  g_msg->Warn(WARN_BUG, "Previous Crop ", prev);
147  int almassnum = m_field->GetLandscape()->BackTranslateVegTypes(m_ev->m_next_tov);
148  g_msg->Warn("Next Crop ", (double)almassnum); // this causes exit
149  exit(1);
150  }
151  }
152  }
153  else {
154  // Is the first year
155  // Some special code to cope with that first start-up year in ALMaSS - ignore for all practical purposes
156  // Code for first spring treatment used
158  break;
159  }
160  }//if
161 
162  // End single block date checking code. Please see next line comment as well.
163  // Reinit d1 to first possible starting date.
164  d1 = g_date->OldDays() + g_date->DayInYear(1, 9);
165  // OK, let's go.
166 
167  // here we could split first operation by soil type. As of this version soil data for the UK has not been obtained.
168  // With soil data some if/else need to be adapted. autumnharrow, winterplough and springplough.
169  // Here we queue up the first event - this differs depending on whether we have a
170  // stock or arable farmer
172  }
173  break;
174 
175 
176  // This is the first real farm operation
177  // autumn harrow 60% September
178  case uk_be_autumn_harrow:
179  if (m_ev->m_lock || m_farm->DoIt_prob(0.6))
180  {
181  if (!m_farm->AutumnHarrow(m_field, 0.0, g_date->DayInYear(20, 12) - g_date->DayInYear())) {
183  break;
184  }
185  }
187  break;
188 
189  // winter plough 50% October - December
190  case uk_be_winter_plough:
191  if (m_ev->m_lock || m_farm->DoIt_prob(0.5))
192  {
193  if (!m_farm->WinterPlough(m_field, 0.0, g_date->DayInYear(25, 12) - g_date->DayInYear())) {
195  break;
196  }
197  else
198  {
199  if (m_farm->IsStockFarmer()) //Stock Farmer // setting the next step which is NPK fertiliser application
200  {
202  }
203  else SimpleEvent_(g_date->OldDays() + g_date->DayInYear(1, 3) + 365, uk_be_ferti_p1, false, m_farm, m_field);
204  break;
205  }
206  break;
207  }
209  break;
210 
211  // spring plough 50% March
212  case uk_be_spring_plough:
213  if (!m_farm->SpringPlough(m_field, 0.0, g_date->DayInYear(31, 3) - g_date->DayInYear())) {
215  break;
216  }
217  if (m_farm->IsStockFarmer()) //Stock Farmer // setting the next step which is NPK fertiliser application
218  {
220  }
222  break;
223 
224  // NPK 60% March-April
225  case uk_be_ferti_p1:
226  if (m_ev->m_lock || m_farm->DoIt_prob(0.60))
227  {
228  if (!m_farm->FP_NPK(m_field, 0.0, g_date->DayInYear(13, 4) - g_date->DayInYear())) {
230  break;
231  }
232  }
234  break;
235  case uk_be_ferti_s1:
236  if (m_ev->m_lock || m_farm->DoIt_prob(0.60))
237  {
238  if (!m_farm->FA_NPK(m_field, 0.0, g_date->DayInYear(13, 4) - g_date->DayInYear())) {
240  break;
241  }
242  }
244  break;
245 
246  // Preseeding cultivation 100% March - April - then sow immediately after
248  if (!m_farm->PreseedingCultivator(m_field, 0.0, g_date->DayInYear(14, 4) - g_date->DayInYear())) {
250  break;
251  }
253  break;
254 
255  // Sow 100% March - April
256  // Then set up threads for herbicide, fungicide [main thread], and fertilizers.
257  // Insecticide is pre-treated to the seed. Need to include this if possible.
258  case uk_be_spring_sow:
259  if (!m_farm->SpringSow(m_field, 0.0, g_date->DayInYear(15, 4) - g_date->DayInYear())) {
261  break;
262  }
263  // Here is a fork leading to four parallel events
264  SimpleEvent_(g_date->Date() + 5, uk_be_herbicide1, false, m_farm, m_field); // Herbicide thread
265  SimpleEvent_(g_date->OldDays() + g_date->DayInYear(1, 7), uk_be_fungicide1, false, m_farm, m_field); // Fungicide thread = MAIN THREAD
266  if (m_farm->IsStockFarmer()) //Stock Farmer
267  {
268  SimpleEvent_(g_date->OldDays() + g_date->DayInYear(15, 4), uk_be_ferti_s2, false, m_farm, m_field); // Fertilizers thread
269  }
271  break;
272 
273  // N fertiliser applied in April-May
274  case uk_be_ferti_p2:
275  // Here comes fertilizers thread
276  if (m_field->GetGreenBiomass() <= 0) {
278  }
279  else
280  {
281  if (!m_farm->FP_AmmoniumSulphate(m_field, 0.0, g_date->DayInYear(15, 5) - g_date->DayInYear())) {
283  break;
284  }
285  }
286  // End of thread
287  break;
288  case uk_be_ferti_s2:
289  if (m_field->GetGreenBiomass() <= 0) {
291  break;
292  }
293  else
294  {
295  if (!m_farm->FA_AmmoniumSulphate(m_field, 0.0, g_date->DayInYear(15, 5) - g_date->DayInYear())) {
297  break;
298  }
299  }
300  // End of thread
301  break;
302 
303  // Herbicide thread starts here.
304  // There are five possible herbicide applications.
305  case uk_be_herbicide1:
306  // Herbicide 1 75% pre-em April
307  if (m_ev->m_lock || m_farm->DoIt_prob(0.75))
308  {
309  if (!m_farm->HerbicideTreat(m_field, 0.0, g_date->DayInYear(30, 4) - g_date->DayInYear())) {
311  break;
312  }
313  }
315  break;
316  case uk_be_herbicide2:
317  // Herbicide 2 100% May
318  if (m_ev->m_lock || m_farm->DoIt_prob(1))
319  {
320  if (!m_farm->HerbicideTreat(m_field, 0.0, g_date->DayInYear(31, 5) - g_date->DayInYear())) {
322  break;
323  }
324  }
326  break;
327  case uk_be_herbicide3:
328  // Herbicide 3 100% June
329  if (m_ev->m_lock || m_farm->DoIt_prob(1))
330  {
331  if (!m_farm->HerbicideTreat(m_field, 0.0, g_date->DayInYear(30, 6) - g_date->DayInYear())) {
333  break;
334  }
335  }
337  break;
338  case uk_be_herbicide4:
339  // Herbicide 4 80% July
340  if (m_ev->m_lock || m_farm->DoIt_prob(0.8))
341  {
342  if (!m_farm->HerbicideTreat(m_field, 0.0, g_date->DayInYear(31, 7) - g_date->DayInYear())) {
344  break;
345  }
346  }
348  break;
349  case uk_be_herbicide5:
350  // Herbicide 5 50% August
351  if (m_ev->m_lock || m_farm->DoIt_prob(0.5))
352  {
353  if (!m_farm->HerbicideTreat(m_field, 0.0, g_date->DayInYear(31, 8) - g_date->DayInYear())) {
355  break;
356  }
357  }
358  // End of thread
359  break;
360  // fungicide thread
361  // Fungicide1 100% July
362  case uk_be_fungicide1:
363  // Here comes the fungicide thread
364  if (!m_farm->FungicideTreat(m_field, 0.0, g_date->DayInYear(31, 7) - g_date->DayInYear())) {
366  break;
367  }
369  break;
370  // Fungicide2 75% August
371  case uk_be_fungicide2:
372  if (m_ev->m_lock || m_farm->DoIt_prob(0.75))
373  {
374  if (!m_farm->FungicideTreat(m_field, 0.0, g_date->DayInYear(21, 8) - g_date->DayInYear())) {
376  break;
377  }
378  }
380  break;
381  case uk_be_harvest:
382  // Here the MAIN thread continues
383  // We don't move harvest days
384  if (!m_farm->Harvest(m_field, 0.0, m_field->GetMDates(0, 0) - g_date->DayInYear())) {
386  break;
387  }
388  done = true;
389  // So we are done, and somwhere else the farmer will queue up the start event of the next crop
390  // END of MAIN THREAD
391  break;
392  default:
393  g_msg->Warn(WARN_BUG, "UKBeet::Do(): "
394  "Unknown event type! ", "");
395  exit(1);
396  }
397  return done;
398 }

References Farm::AutumnHarrow(), LE::ClearManagementActionSum(), Calendar::Date(), Calendar::DayInYear(), Farm::DoIt_prob(), Farm::FA_AmmoniumSulphate(), Farm::FA_NPK(), Farm::FP_AmmoniumSulphate(), Farm::FP_NPK(), Farm::FungicideTreat(), g_date, g_msg, LE::GetGreenBiomass(), LE::GetMDates(), LE::GetOwner(), LE::GetPoly(), Farm::GetPreviousTov(), LE::GetRotIndex(), Farm::GetType(), Calendar::GetYearNumber(), Farm::Harvest(), Farm::HerbicideTreat(), Farm::IsStockFarmer(), Crop::m_ev, Crop::m_farm, Crop::m_field, Crop::m_first_date, FarmEvent::m_first_year, FarmEvent::m_lock, FarmEvent::m_next_tov, FarmEvent::m_startday, FarmEvent::m_todo, Calendar::OldDays(), Farm::PreseedingCultivator(), LE::SetMConstants(), LE::SetMDates(), Crop::SimpleEvent_(), Farm::SpringPlough(), Farm::SpringSow(), tof_OptimisingFarm, tov_UKBeet, uk_be_autumn_harrow, uk_be_ferti_p1, uk_be_ferti_p2, uk_be_ferti_s1, uk_be_ferti_s2, UK_BE_FUNGI1, uk_be_fungicide1, uk_be_fungicide2, uk_be_harvest, UK_BE_HERBI1, uk_be_herbicide1, uk_be_herbicide2, uk_be_herbicide3, uk_be_herbicide4, uk_be_herbicide5, uk_be_preseeding_cultivator, uk_be_spring_plough, uk_be_spring_sow, uk_be_start, uk_be_winter_plough, MapErrorMsg::Warn(), WARN_BUG, and Farm::WinterPlough().

◆ SetUpFarmCategoryInformation()

void UKBeet::SetUpFarmCategoryInformation ( )
inline
78  {
79  const int elements = 2 + (uk_be_foobar - UKBEET_BASE);
81  FarmManagementCategory catlist[elements] =
82  {
83  fmc_Others, // this needs to be at the zero line
84  fmc_Others,//uk_be_start = 1, // Compulsory, must always be 1 (one).
85  fmc_Others,//uk_be_sleep_all_day = UKBEET_BASE,
86  fmc_Cultivation,//uk_be_autumn_harrow, // autumn harrow 57.5% September
87  fmc_Cultivation,//uk_be_winter_plough, // winter plough 50% October - December
88  fmc_Cultivation,//uk_be_spring_plough, // spring plough 50% March
89  fmc_Fertilizer,//uk_be_ferti_p1, // NPK 60% March - April
90  fmc_Fertilizer,//uk_be_ferti_s1,
91  fmc_Cultivation,//uk_be_preseeding_cultivator, // 100% March - April
92  fmc_Others,//uk_be_spring_sow, // 100% March - April
93  fmc_Fertilizer,//uk_be_ferti_p2, // NI 100% 100% April - May
94  fmc_Fertilizer,//uk_be_ferti_s2,
95  fmc_Herbicide,//uk_be_herbicide1, // pre-em 75% April - May
96  fmc_Herbicide,//uk_be_herbicide2, // 100% End May - June
97  fmc_Herbicide,//uk_be_herbicide3, // 100% June
98  fmc_Herbicide,//uk_be_herbicide4, // 80% July
99  fmc_Herbicide,//uk_be_herbicide5, // 50% September
100  fmc_Fungicide,//uk_be_fungicide1, // 100% July
101  fmc_Fungicide,//uk_be_fungicide2, // 75% August
102  fmc_Harvest,//uk_be_harvest, // 100% Septemeber - December
103  };
104  copy(begin(catlist), end(catlist), back_inserter(m_ManagementCategories));
105  }

References fmc_Cultivation, fmc_Fertilizer, fmc_Fungicide, fmc_Harvest, fmc_Herbicide, fmc_Others, Crop::m_base_elements_no, Crop::m_ManagementCategories, uk_be_foobar, and UKBEET_BASE.

Referenced by UKBeet().


The documentation for this class was generated from the following files:
LE::GetMDates
int GetMDates(int a, int b)
Definition: Elements.h:405
uk_be_ferti_s1
Definition: UKBeet.h:41
uk_be_ferti_p1
Definition: UKBeet.h:40
Farm::PreseedingCultivator
virtual bool PreseedingCultivator(LE *a_field, double a_user, int a_days)
Carry out preseeding cultivation on a_field (tilling set including cultivator and string roller to co...
Definition: FarmFuncs.cpp:312
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
Farm::IsStockFarmer
bool IsStockFarmer(void)
Definition: Farm.h:961
uk_be_herbicide4
Definition: UKBeet.h:49
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
uk_be_spring_plough
Definition: UKBeet.h:39
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
Calendar::GetYearNumber
int GetYearNumber(void)
Definition: Calendar.h:72
FarmEvent::m_first_year
bool m_first_year
Definition: Farm.h:386
LE::GetPoly
int GetPoly(void)
Returns the polyref number for this polygon.
Definition: Elements.h:238
Farm::DoIt_prob
bool DoIt_prob(double a_probability)
Return chance out of 0 to 1.
Definition: Farm.cpp:864
g_date
class Calendar * g_date
Definition: Calendar.cpp:37
UKBeet::SetUpFarmCategoryInformation
void SetUpFarmCategoryInformation()
Definition: UKBeet.h:78
fmc_Herbicide
Definition: LandscapeFarmingEnums.h:1006
uk_be_winter_plough
Definition: UKBeet.h:38
Farm::GetPreviousTov
TTypesOfVegetation GetPreviousTov(int a_index)
Definition: Farm.h:966
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
uk_be_harvest
Definition: UKBeet.h:53
Farm::GetType
TTypesOfFarm GetType(void)
Definition: Farm.h:956
uk_be_spring_sow
Definition: UKBeet.h:43
Crop::m_base_elements_no
int m_base_elements_no
Definition: Farm.h:505
UKBEET_BASE
#define UKBEET_BASE
Definition: UKBeet.h:21
uk_be_herbicide2
Definition: UKBeet.h:47
uk_be_start
Definition: UKBeet.h:35
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
Farm::FungicideTreat
virtual bool FungicideTreat(LE *a_field, double a_user, int a_days)
Apply fungicide to a_field.
Definition: FarmFuncs.cpp:2101
uk_be_ferti_s2
Definition: UKBeet.h:45
uk_be_autumn_harrow
Definition: UKBeet.h:37
uk_be_fungicide1
Definition: UKBeet.h:51
uk_be_fungicide2
Definition: UKBeet.h:52
fmc_Fertilizer
Definition: LandscapeFarmingEnums.h:1004
Calendar::Date
long Date(void)
Definition: Calendar.h:57
tov_UKBeet
Definition: LandscapeFarmingEnums.h:279
Farm::FP_AmmoniumSulphate
virtual bool FP_AmmoniumSulphate(LE *a_field, double a_user, int a_days)
Apply Ammonium Sulphate to a_field owned by an arable farmer.
Definition: FarmFuncs.cpp:882
fmc_Cultivation
Definition: LandscapeFarmingEnums.h:1008
uk_be_ferti_p2
Definition: UKBeet.h:44
fmc_Others
Definition: LandscapeFarmingEnums.h:1003
uk_be_herbicide1
Definition: UKBeet.h:46
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
uk_be_herbicide5
Definition: UKBeet.h:50
LE::GetRotIndex
int GetRotIndex(void)
Definition: Elements.h:373
uk_be_preseeding_cultivator
Definition: UKBeet.h:42
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
UK_BE_FUNGI1
#define UK_BE_FUNGI1
Definition: UKBeet.h:26
LE::GetGreenBiomass
virtual double GetGreenBiomass(void)
Definition: Elements.h:160
tof_OptimisingFarm
Definition: LandscapeFarmingEnums.h:696
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
Farm::FA_AmmoniumSulphate
virtual bool FA_AmmoniumSulphate(LE *a_field, double a_user, int a_days)
Apply ammonium sulphate to a_field owned by an stock farmer.
Definition: FarmFuncs.cpp:1081
TTypesOfVegetation
TTypesOfVegetation
Values that represent the types of vegetation that are represented in ALMaSS.
Definition: LandscapeFarmingEnums.h:192
fmc_Harvest
Definition: LandscapeFarmingEnums.h:1012
Farm::WinterPlough
virtual bool WinterPlough(LE *a_field, double a_user, int a_days)
Carry out a ploughing event in the winter on a_field.
Definition: FarmFuncs.cpp:395
UK_BE_HERBI1
#define UK_BE_HERBI1
A flag used to indicate autumn ploughing status.
Definition: UKBeet.h:25
uk_be_herbicide3
Definition: UKBeet.h:48
LE::GetOwner
Farm * GetOwner(void)
Definition: Elements.h:256
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::m_ev
FarmEvent * m_ev
Definition: Farm.h:500
uk_be_foobar
Definition: UKBeet.h:54
WARN_BUG
Definition: MapErrorMsg.h:34
fmc_Fungicide
Definition: LandscapeFarmingEnums.h:1007
FarmManagementCategory
FarmManagementCategory
Definition: LandscapeFarmingEnums.h:1001
Crop::SimpleEvent_
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.
Definition: Farm.cpp:751