ALMaSS  1.2 (after EcoStack, March 2024)
The Animal, Landscape and Man Simulation System
Elements.h
Go to the documentation of this file.
1 //
2 // Elements.h
3 //
4 /*
5 *******************************************************************************************************
6 Copyright (c) 2011, Christopher John Topping, Aarhus University
7 All rights reserved.
8 
9 Redistribution and use in source and binary forms, with or without modification, are permitted provided
10 that the following conditions are met:
11 
12 Redistributions of source code must retain the above copyright notice, this list of conditions and the
13 following disclaimer.
14 Redistributions in binary form must reproduce the above copyright notice, this list of conditions and
15 the following disclaimer in the documentation and/or other materials provided with the distribution.
16 
17 THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" AND ANY EXPRESS OR
18 IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND
19 FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT HOLDER OR CONTRIBUTORS
20 BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING,
21 BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR
22 BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT
23 LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS
24 SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
25 ********************************************************************************************************
26 */
27 
28 #ifndef ELEMENTS_H
29 #define ELEMENTS_H
30 
31 #define FMDEBUG
32 #include <fstream>
33 
34 class APoint;
35 
36 typedef unsigned int LE_Signal;
37 
38 static CfgBool l_el_read_bug_percentage_file("ELEM_READ_BUG_PERCENTAGE_FILE", CFG_CUSTOM, false);
39 static CfgStr l_el_bug_percentage_file("ELEM_BUG_PERCENTAGE_FILE", CFG_CUSTOM,"bugpercents.txt");
40 
41 #define LE_SIG_NO_FUNGICIDE 0x0001
42 #define LE_SIG_NO_INSECTICIDE 0x0002
43 #define LE_SIG_NO_SYNG_INSECT 0x0004
44 #define LE_SIG_NO_GROWTH_REG 0x0008
45 #define LE_SIG_NO_MOLLUSC 0x0010
46 #define LE_SIG_NO_HERBICIDE 0x0020
47 
48 // Number of user defined storage locations for farm management
49 // states. For ridiculously active farm management plans this
50 // might have to be increased. Ie. bump this number if there is
51 // a chance of more than 10 farm events for an given polygon on
52 // any given crop plan.
53 #define EL_MAX_USERSPACE 10 // Has to be a #define.
54 
55 // Decay time for treatment generated tramlines (in days).
56 #define EL_TRAMLINE_DECAYTIME (g_el_tramline_decaytime_days.value())
58 // Delay time before regrowth of weeds after herbicide treatment.
59 #define EL_HERBICIDE_DELAYTIME (g_el_herbicide_delaytime_days.value())
60 #define EL_STRIGLING_DELAYTIME (g_el_strigling_delaytime_days.value())
67 // Will be declared in other .h files, but these are needed here to break circular class definitions.
68 class Farm;
69 extern class LE_TypeClass *g_letype;
70 enum TTypesOfPopulation : int;
71 
73 {
74  public:
76  TTypesOfVegetation TranslateVegTypes(int VegReference);
77 
79  int BackTranslateVegTypes(TTypesOfVegetation VegReference);
80  int VegTypeToCurveNum( TTypesOfVegetation VegReference);
82 };
83 
85 
86 class LE {
87 public:
88  LE(Landscape * L);
89  virtual ~LE( void );
90  virtual int GetAphidDensity() { return false; }
97  //double m_volegrazing;
98  // /** \brief Variable used to reduce the grazing pressure */
99  //double m_voleResregrowth;
101  //double m_volegrazingDensity;
103  //void AddVoleGrazing(int a_number) { m_volegrazing+=a_number; }
105  //double GetVoleGrazing( void ) {return m_volegrazing; }
107  //void CalcVoleGrazingDensity( void ) { m_volegrazing *= m_voleResregrowth; m_volegrazingDensity = (m_volegrazing/m_area); }
109  //double GetVoleGrazingDensity( void ) {return m_volegrazingDensity; }
112  long m_user[ EL_MAX_USERSPACE ];
113  bool m_repeat_start;
114  Landscape* GetLandscape(void) { return m_Landscape; }
115  LE_Signal GetSignal( void ) { return m_signal_mask; }
116  void SetSignal( LE_Signal a_signal ) { m_signal_mask = a_signal; }
117  int GetSubType( void ) { return m_subtype; }
118  void SetSubType( int a_subtype ) { m_subtype = a_subtype; }
119  int GetALMaSSEleType(void) { return m_almass_le_type; }
120  void SetALMaSSEleType(int a_type) { m_almass_le_type = a_type; }
121  virtual TTypesOfLandscapeElement GetElementType(void) { return m_type; }
122  virtual TTypesOfLandscapeElement GetOwner_tole(void) { return m_owner_tole; }
123  void SetOwner_tole(TTypesOfLandscapeElement a_tole) { m_owner_tole = a_tole; }
124  void SetElementType( int a_type ) { m_type = (TTypesOfLandscapeElement) a_type; }
125  void Trace( int a_value );
126  void ResetTrace( void );
127  long GetRunNum( void ) { return m_running; }
128  void BumpRunNum( void ) { m_running++; }
129  long GetMgtLoopDetectDate ( void ) { return m_management_loop_detect_date; }
130  void SetMgtLoopDetectDate ( long a_num ) { m_management_loop_detect_date = a_num; }
131  long GetMgtLoopDetectCount ( void ) { return m_management_loop_detect_count; }
132  void SetMgtLoopDetectCount ( long a_num ) { m_management_loop_detect_count = a_num; }
133  virtual void Tick( void );
134  virtual TTypesOfVegetation GetVegType(void) { return tov_None; }
135  virtual TTypesOfCrops GetCropType(void) { return m_CropType; }
136  virtual void SetCropType(TTypesOfCrops /* a_crop */) { ; }
137  int GetVegStore( void ) { return m_vege_danger_store; }
138  void SetVegStore( int a_veg )
139  { m_vege_danger_store = a_veg; }
140  void ZeroVegAge() { m_vegage=0; }
141  int GetVegAge() { return m_vegage; }
142  virtual void DoDevelopment( void );
143  virtual void RecalculateBugsNStuff( void ) { }
144  virtual int GetVegPhase(void) { return vegphase_foobar; }
145  virtual bool GetIsVeg(void) { return false; }
146  virtual double GetVegGrowthStage(void) {return 100;}
147  virtual double GetVegCover(void) { return 0.0; }
148  virtual double GetVegHeight( void ) { return 0.0; }
149  virtual APoint GetCentroid();
150  virtual int GetCentroidX() { return m_centroidx; }
151  virtual int GetCentroidY() { return m_centroidy; }
152  virtual void SetCentroid(int x, int y) { m_centroidx=x; m_centroidy=y; }
153  virtual double GetDigestibility( void ) { return 0.0; }
154  virtual int GetVegDensity( void ) { return 0; }
155  virtual bool GetSkScrapes( void ) { return false; }
156  virtual void SetVegGrowthScalerRand() { ; }
157  virtual double GetDayDegrees( void ) { return m_ddegs; }
158  virtual double GetLAGreen( void ) { return 0.0; }
159  virtual double GetLATotal( void ) { return 0.0; }
160  virtual double GetGreenBiomass( void ) { return 0.0; }
161  virtual double GetInterestedGreenBiomass ( void ) { return 0.0; }
162  virtual double GetGreenBiomassProp (void) {return 0.0;}
163  virtual double GetDeadBiomass( void ) { return 0.0; }
164  virtual double GetVegBiomass( void ) { return 0.0; }
165  virtual double GetWeedBiomass( void ) { return 0.0; }
166  virtual double GetInsectPop( void ) { return 0.0; }
167  virtual void SetInsectPop( double /* i */ ) { ; }
168  virtual void Insecticide( double /* a_fraction */ ) { ; }
169  virtual void InsectMortality( double /* a_fraction */ ) { ; }
170  virtual void ReduceWeedBiomass( double /* a_fraction */ ) { ; }
171  virtual void ToggleCattleGrazing( void ) {;}
172  virtual void TogglePigGrazing( void ) {;}
173  virtual void ToggleIrrigation(void) { ; }
174  virtual void SetVegBiomass( int /* a_biomass */ ) {;}
175  virtual void SetVegType(TTypesOfVegetation /* a_type */) { ; }
176  virtual void SetVegType( TTypesOfVegetation /* a_type */, TTypesOfVegetation /* a_weed_type */ ) {;}
177  virtual void SetVegHeight(double /* a_height */) { ; }
178  virtual void SetDigestibility(double /* a_digestability */) { ; }
179 
180  virtual void SetGrazingLevel(int /*a_grazing */) { ; }
181  virtual void SetVegParameters(double /* a_height */, double /* a_LAtotal */, double /* a_LAgreen */, double /* a_WeedBiomass */) { ; }
182  virtual void SetCropData(double, double, double, TTypesOfVegetation, double, int) { ; }
183  virtual void SetCropDataAll(double,double,double, double,TTypesOfVegetation, double, double , int, double , bool, double, double, double) {;}
184  virtual void StoreLAItotal() {;}
185  virtual void SetGrowthPhase( int /* a_phase */ ) {;}
186  virtual void ForceGrowthInitialize( bool a_force_decreasing = false) {;}
187  virtual void ForceGrowthInitialiseForFirstYearCrop ( void ) {;}
188  virtual void ForceGrowthTest( void ) {;}
189  virtual void ForceGrowthDevelopment( void ) {;}
190  virtual void ZeroVeg( void ) {;}
191  virtual void ReduceVeg( double /* a_reduc */ ) {;}
192  virtual void ReduceVeg_Extended(double /* a_reduc */) { ; }
193  virtual void GrazeVeg_Extended(double /* a_reduc */) { ; }
194  virtual double GetTrafficLoad(void) { return 0.0; }
195  virtual TTypesOfVegetation GetPreviousTov(int /* a_index */) { return tov_None; }
196  bool GetPoison( void ) { return m_poison; }
197  void SetPoison( bool a_poison ) { m_poison = a_poison; }
198  // -- ATTRIBUTES
199  bool Is_Att_High( void ) { return m_att_high; }
200  void Set_Att_High(bool a_high) { m_att_high = a_high; }
201  bool Is_Att_Water(void) { return m_att_water; }
202  void Set_Att_Water(bool a_water) { m_att_water = a_water; }
203  bool Is_Att_Forest(void) { return m_att_forest; }
204  void Set_Att_Forest(bool a_forest) { m_att_forest = a_forest; }
205  bool Is_Att_Woody(void) { return m_att_woody; }
206  void Set_Att_Woody(bool a_woody) { m_att_woody = a_woody; }
207  bool Is_Att_UrbanNoVeg(void) { return m_att_urbannoveg; }
208  void Set_Att_UrbanNoVeg(bool a_unv) { m_att_urbannoveg = a_unv; }
210  void Set_Att_UserDefinedBool(bool a_value) { m_att_userdefinedbool = a_value; }
212  void Set_Att_UserDefinedInt(int a_value) { m_att_userdefinedint = a_value; }
213  // -- VEG ATTRIBUTES
214  virtual bool Is_Att_Veg(void) { return false; }
215  virtual bool Is_Att_VegPatchy(void) { return false; }
216  virtual void Set_Att_VegPatchy(bool /* p */) { ; }
217  virtual bool Is_Att_VegCereal() { return false; }
218  virtual void Set_Att_VegCereal(bool /* p */) { ; }
219  virtual bool Is_Att_VegGrass() { return false; }
220  virtual void Set_Att_VegGrass(bool /* p */) { ; }
221  virtual bool Is_Att_VegMatureCereal() { return false; }
222  virtual void Set_Att_VegMatureCereal(bool /* p */) { ; }
223  virtual bool Is_Att_VegMaize() { return false; }
224  virtual void Set_Att_VegMaize(bool /* p */) { ; }
225  virtual bool Is_Att_VegGooseGrass() { return false; }
226  virtual void Set_Att_VegGooseGrass(bool /* p */) { ; }
227 
228  // for compatbility - to reduce out
229  inline void SetVegPatchy(bool p) { Set_Att_VegPatchy(p); }
230 
231  // -- END ATTRIBUTES
232  int GetCattleGrazing( void ) { return m_cattle_grazing; }
233  bool GetPigGrazing( void ) { return m_pig_grazing; }
234  bool HasTramlines( void ) { return ( m_tramlinesdecay>0 ); }
235  bool IsRecentlyMown( void ) { return ( m_mowndecay>0 ); }
236  int IsRecentlySprayed( void ) { return ( m_herbicidedelay ); }
238  int GetPoly( void ) { return m_poly; }
239  int GetMapIndex( void ) { return m_map_index; }
240  void SetMapIndex( int a_map_index ) { m_map_index = a_map_index; }
241  int GetOwnerFile( void ) { return m_owner_file; }
242  int GetOwnerIndex( void ) { return m_owner_index; }
243  int GetLastTreatment(int* a_index);
245  int GetLastTreatment();
249  for (int i = 0; i < (int)fmc_Foobar; i++) m_ManagementActionCounts[i] = 0;
250  }
255 
256  Farm* GetOwner( void ) { return m_owner; }
257  double GetArea( void ) { return m_area; }
259  virtual void SetSpeciesFunction(TTypesOfPopulation a_species) { ; }
260  double GetGooseGrazingForage(GooseSpecies a_goose) { return m_goosegrazingforage[a_goose]; }
261  double GetBirdSeed( void ) {
262  return m_birdseedforage;
263  }
264  void SetBirdSeed( double a_forage ) {
265  m_birdseedforage = a_forage;
266  }
267  double GetBirdMaize(void) {
268  return m_birdmaizeforage;
269  }
270  /*
271  double GetIsCereal(void) {
272  if ( m_goosegrazingforage[gs_foobar] == 1) return true;
273  return false;
274  }
275 */
276  void SetBirdMaize( double a_forage ) {
277  m_birdmaizeforage = a_forage;
278  }
280  void SetCountryDesignation( int a_designation ) { m_countrydesignation = a_designation; }
281  long GetOldDays( void ) { return m_olddays; }
282  void SetOwner( Farm *a_owner, int a_owner_num, int a_owner_index )
283  {
284  m_owner = a_owner;
285  m_owner_file = a_owner_num;
286  m_owner_index = a_owner_index;
287  }
288  void SetPoly( int a_poly ) { m_poly = a_poly; }
289  void SetMapValid( bool a_valid ) { m_is_in_map = a_valid; }
290  bool GetMapValid( void ) { return m_is_in_map; }
291  void SetArea( double a_area ) { m_area = a_area; }
293  virtual void GrazeVegetation( double /* m_grams */, bool ) { ; }
295  virtual void GrazeVegetationHeight(double a_reduc) { ; }
297  virtual void GrazeVegetationTotal( double /* m_grams */ )
298  {
299  ;
300  }
302  int GetSoilType() {
323  return m_soiltype;
324  }
326  int GetSoilTypeR() {
330  switch (m_soiltype)
331  {
332  case 0: return 3;
333  case 1: return 1;
334  case 2: return 1;
335  case 3: return 1;
336  case 4: return 1;
337  case 5: return 0;
338  case 6: return 0;
339  case 7: return 0;
340  case 8: return 0;
341  case 9: return 0;
342  case 10: return 0;
343  case 11: return 0;
344  case 12: return 0;
345  case 13: return 0;
346  case 14: return 0;
347  default:
348  return 3;
349  }
350  }
351  void SetSoilType( int a_st ) {
352  m_soiltype = a_st;
353  }
358  m_lastsownvegtype = a_tov;
359  }
364  return m_lastsownvegtype;
365  }
366  void SetLastTreatment(int a_treatment);
367  void SetSprayedToday(bool a_didit) { m_sprayedtoday = a_didit; }
368  bool GetSprayedToday() { return m_sprayedtoday; }
369  void SetCopyTreatment(int a_treatment);
370  void SetOldDays( long a_days ) { m_olddays = a_days; }
371  void SetRotIndex( int a_index ) { m_rot_index = a_index; }
372 
373  int GetRotIndex( void ) { return m_rot_index; }
374  void SetTramlinesDecay( int a_decaytime_days )
375  { m_tramlinesdecay = a_decaytime_days; }
376  void SetHerbicideDelay( int a_decaytime_days )
377  { m_herbicidedelay = a_decaytime_days; }
378  void SetMownDecay( int a_decaytime_days )
379  { m_mowndecay = a_decaytime_days; }
380  void AddArea( double a_area_diff ) { m_area += a_area_diff; }
381  LE* GetBorder( void ) { return m_border; }
382 // LE* GetUnsprayedMargin( void ) { return m_unsprayedmargin; }
384  void SetBorder( LE* a_border ) { m_border = a_border; }
385 // void SetUnsprayedMargin( LE* a_unsprayedmargin ) { m_unsprayedmargin = a_unsprayedmargin; }
386  void SetUnsprayedMarginPolyRef( int a_unsprayedmargin ) { m_unsprayedmarginpolyref = a_unsprayedmargin; }
387  void SetPesticideCell( int a_cell ) { m_PesticideGridCell = a_cell; }
389  void SetValidXY( int a_valid_x, int a_valid_y )
390  {
391  m_valid_x = a_valid_x;
392  m_valid_y = a_valid_y;
393  }
394  int GetValidX( void ) { return m_valid_x; }
395  int GetValidY( void ) { return m_valid_y; }
396 
397  int GetMaxX( void ) { return m_maxx; }
398  int GetMaxY( void ) { return m_maxy; }
399  int GetMinX( void ) { return m_minx; }
400  int GetMinY( void ) { return m_miny; }
401  void SetMaxX( int x ) { m_maxx=x; }
402  void SetMaxY( int y ) { m_maxy=y; }
403  void SetMinX( int x ) { m_minx=x; }
404  void SetMinY( int y ) { m_miny=y; }
405  int GetMDates(int a, int b) {return MDates[a][b];}
406  void SetMDates(int a, int b, int c) {MDates[a][b]=c;}
407  int GetMConstants(int a) {return MConsts[a];}
408  void SetMConstants(int a, int c) {MConsts[a]=c;}
410  double GetVegDDegs() {
411  return m_vegddegs; //
412  }
414  int GetOpenness( void ) { return m_openness; }
416  double GetElevation(void) { return m_elevation; }
417  double GetSlope(void) { return m_slope; }
418  double GetAspect(void) { return m_aspect; }
420  void SetGooseNos(int a_number, int a_day) { m_gooseNos[a_day] = a_number; }
422  void SetGooseSpNos(int a_number, int a_day, GooseSpecies a_goose) {
423  m_gooseSpNos[a_day][a_goose] = a_number;
424  }
426  void SetGooseNosTimed(int a_number, int a_day) { m_gooseNosTimed[a_day] = a_number; }
428  void SetGooseSpNosTimed(int a_number, int a_day, GooseSpecies a_goose) {
429  m_gooseSpNosTimed[a_day][a_goose] = a_number;
430  }
432  void SetGooseRoostDist(int a_dist, GooseSpecies a_goose) { m_dist_to_closest_roost[a_goose] = a_dist; }
434  int GetGooseNosToday();
436  int GetGooseNosTodayTimed();
438  int GetGooseNos( );
440  int GetQuarryNos();
442  int GetGooseSpNosToday(GooseSpecies a_goose);
444  int GetGooseSpNosTodayTimed(GooseSpecies a_goose);
446  int GetGooseRoostDist(GooseSpecies a_goose);
448  void SetOpenness( int a_openness ) { m_openness=a_openness; }
450  void SetElevation(double a_elevation) { m_elevation = a_elevation; }
451  void SetSlope(double a_slope) { m_slope = a_slope; }
452  void SetAspect(double a_aspect) { m_aspect = a_aspect; }
454  virtual void ResetDigestibility() { ; }
456  void DoCopy(const LE* a_Le);
458  virtual void SetMaleNewtPresent(bool) { ; };
460  virtual bool IsMaleNewtPresent() { return false; };
462  void SetStubble(bool a_flag) { m_instubble = a_flag; }
464  bool GetStubble() { return m_instubble; }
468  double GetSprayPPPRate(void) {return m_spray_ppp_rate;}
472  void SetSprayPPPRate(double a_rate) {m_spray_ppp_rate = a_rate;}
473  /********************** START POLLEN AND NECTAR METHODS ****************/
475  void SetPollenNectarCurveRef(int a_PollenNectarCurve) {
476  m_pollen_nectar_curve_index = a_PollenNectarCurve;
477  m_OurPollenNectarCurveSet = NULL; //this function is called in general,
478  }
480  void SetPollenNectarType(TTypesOfVegetation a_new_veg);
486  virtual double GetPollenQuantity() { return m_polleninfo.m_quantity; }
488  virtual double GetPollenQuality() { return m_polleninfo.m_quality; }
490  virtual double GetNectarQuantity() { return m_nectarinfo.m_quantity; }
492  virtual double GetSugar() { return m_nectarinfo.m_quality; }
494  virtual double GetTotalPollen() { return m_totalPollen; }
496  virtual double GetTotalNectar() { return m_totalNectar; }
498  virtual void ChangeTotalPollen(double a_amount) { m_totalPollen-=a_amount; if(m_totalPollen < 0) m_totalPollen=0;}
500  virtual void ChangeTotalNectar(double a_amount) { m_totalNectar-=a_amount; if(m_totalNectar <0) m_totalNectar=0;}
508  }
510  virtual void CalculateFlowerResourceForCrop(TTypesOfVegetation a_new_veg);
512  virtual void PollenNectarReset() { ; }
513  virtual double supplyNecDD() {return 0.0;}
514  virtual double supplySugDD() {return 0.0;}
515  virtual double supplyPolDD() {return 0.0;}
517  virtual bool GetPollenNectarFlag() { return m_PollenNectarFlag; }
520  /********************** END POLLEN AND NECTAR METHODS ******************/
521 
522  protected:
523 
526 
527 #ifdef FMDEBUG
528  int m_ptrace[256]; // Change bitmap in 'elements.cpp' if this
529  int m_pdates[256]; // needs to be increased!
530  int m_pindex; // Points to the next *empty* location, so last
531  // program step is in the location below this...
532 #endif
533  long m_running;
536  // May be -1 if no unsprayed margin or this element is a margin!
537  // Valid map coordinate inside this landscape element
538  // before(!) adding the border.
545  // Whether this polygon is actually mentioned in the main map.
547  // Quick hack to discern different hedgebank types.
549  int m_maxx;
550  int m_minx;
551  int m_maxy;
552  int m_miny;
553  long m_olddays;
556  Farm *m_owner {nullptr};
564  int m_poly;
565  // Copy of the index stored in the main map at run time.
566  // Needed by the pesticide machinery.
577  double m_area;
579  int m_gooseNos[366];
581  int m_gooseSpNos[366][gs_foobar];
583  int m_gooseNosTimed[366];
585  int m_gooseSpNosTimed[366][gs_foobar];
593  double m_goosegrazingforage[ gs_foobar ];
599  double m_elevation;
600  double m_slope;
601  double m_aspect;
603  double m_dist_to_closest_roost[gs_foobar];
604  int m_vegage;
607  // -- ATTRIBUTES
617  // -- END ATTRIBUTES
618  bool m_poison;
622  double m_vegddegs; // Total of day degrees for the crop/veg on this element.
623  double m_yddegs; // Yesterdays total of day degrees for this element.
624  double m_weedddegs; // Total of day degrees for this element when today
625  double m_ddegs; // Total of day degrees for this element when today
626  // is taken into consideration.
627  vector <int> m_lasttreat;
628  unsigned int m_lastindex;
629  // Only one copy of these is stored for use by all landscape elements.
630  static double m_monthly_traffic[];
631  static double m_largeroad_load[];
632  static double m_smallroad_load[];
633  int MDates[2][25];
634  int MConsts[10];
642  // Pollen and nectar related
652  vector<int> m_flowering_phases;
654  vector<double> m_nectar_amount;
656  vector<double> m_pollen_amount;
658  vector<double> m_sugar_amount;
667 };
668 
669 //---------------------------------------------------------------------------
670 
674  bool taken;
677  bool harvested;
678  double area;
679  int no_herb_app; //number of herbicide applications
683 };
684 
685 
686 class VegElement : public LE {
687 protected:
692  int m_insect_biomass_parameters_index{ 0 }; //default to 0
693  static double m_SeasonalInsectScaler[12];
697 public:
699  virtual ~VegElement(void) { ; };
700  virtual void DoDevelopment(void);
701  virtual double GetDigestibility(void) { return m_digestability; }
702  virtual double GetLAGreen(void) { return m_LAgreen; }
703  virtual double GetLATotal(void) { return m_LAtotal; }
704  virtual bool GetIsVeg(void) { return true; }
705  virtual double GetVegCover(void) { return m_veg_cover; }
706  virtual double GetVegHeight(void) { return m_veg_height; }
707  virtual double GetVegBiomass(void) { return m_veg_biomass; }
708  virtual double GetDeadBiomass(void) { return m_dead_biomass; }
709  virtual double GetGreenBiomass(void) { return m_green_biomass; }
710  virtual double GetInterestedGreenBiomass(void) { return m_interested_green_biomass; }
711  virtual double GetGreenBiomassProp(void) { return m_greenbiomass_per; }
712  virtual double GetWeedBiomass(void) { return m_weed_biomass; }
713  virtual int GetVegDensity(void) { return m_veg_density; }
714  virtual bool GetSkScrapes(void) { return m_skylarkscrapes; }
715  static void SetBiomassScalers(TTypesOfVegetation a_tov);
716  void Tick(void) override;
717  virtual void SetVegGrowthScalerRand();
718  virtual double GetInsectPop(void) { return m_insect_pop; }
719  virtual void SetInsectPop(double insects) { m_insect_pop = insects; }
720  virtual TTypesOfVegetation GetVegType(void) { return m_vege_type; }
721  virtual TTypesOfCrops GetCropType() { return m_CropType; }
722  virtual void SetCropType(TTypesOfCrops a_type) {
723  m_CropType = a_type;
725  switch(a_type){
726  case toc_GrassGrazed1:
727  case toc_GrassGrazed2:
729  case toc_GrassGrazedLast:
736  case toc_FodderGrass:
737  case toc_OFodderGrass:
739  break;
743  break;
747  break;
750  break;
751  default:
752  SetGrazingLevel(0);
753  }
754  }
757  virtual void Insecticide(double a_fraction)
758  {
759  m_insect_pop *= a_fraction;
760  if(a_fraction <= 0.36) //normal pesticide
762  if(a_fraction > 0.36 && a_fraction < 1) //bio pesticide
764  }
765 
766  // -- VEG ATTRIBUTES
767  virtual bool Is_Att_Veg(void) { return m_att_veg; }
768  virtual void Set_Att_Veg(bool p) { m_att_veg = p; }
769  virtual bool Is_Att_VegPatchy(void) { return m_att_veg_patchy; }
770  virtual void Set_Att_VegPatchy(bool p) { m_att_veg_patchy = p; }
771  virtual bool Is_Att_VegCereal() { return m_att_veg_cereal; }
772  virtual void Set_Att_VegCereal(bool p) { m_att_veg_cereal = p; }
774  virtual void Set_Att_VegMatureCereal(bool p) { m_att_veg_maturecereal = p; }
775  virtual bool Is_Att_VegMaize() { return m_att_veg_maize; }
776  virtual void Set_Att_VegMaize(bool p) { m_att_veg_maize = p; }
777  virtual bool Is_Att_VegGrass() { return m_att_veg_grass; }
778  virtual void Set_Att_VegGrass(bool p) { m_att_veg_grass = p; }
779  virtual bool Is_Att_VegGooseGrass() { return m_att_veg_goosegrass; }
780  virtual void Set_Att_VegGooseGrass(bool p) { m_att_veg_goosegrass = p; }
781 
782 
783  // for easy compatibility of code after introduction of attributes
784  inline bool IsMatureCereal() { return Is_Att_VegMatureCereal(); }
785  inline bool IsMaize() { return Is_Att_VegMaize(); }
786  inline bool IsCereal() { return Is_Att_VegCereal(); }
787  inline bool IsGooseGrass() { return Is_Att_VegGooseGrass(); }
788  inline void SetVegPatchy(bool p) { Set_Att_VegPatchy(p); }
789 
790  // -- END VEG ATTRIBUTES
791 
792  virtual void InsectMortality(double a_fraction);
793  virtual void ReduceWeedBiomass(double a_fraction)
794  {
795  m_weed_biomass *= a_fraction;
796  }
798  virtual void TogglePigGrazing(void) { m_pig_grazing = !m_pig_grazing; }
800  virtual void GrazeVegetation(double a_grams, bool a_force);
802  virtual void GrazeVegetationHeight(double a_reduc);
804  virtual void GrazeVegetationTotal(double a_grams);
805  // Outdated! Use ReduceVeg() below instead. Total biomass is
806  // (re)calculated from the total leaf area, it cannot just be
807  // set or changed to an arbitrary value.
808  //virtual void SetVegBiomass( int a_veg_biomass )
809  // { m_veg_biomass = a_veg_biomass; }
810  virtual void SetVegType(TTypesOfVegetation a_vege_type);
811  virtual void SetVegType(TTypesOfVegetation a_vege_type, TTypesOfVegetation a_weed_type);
812  virtual void SetCropData(double, double, double, TTypesOfVegetation, double, int);
813  virtual void SetCropDataAll(double, double, double, double, TTypesOfVegetation, double, double, int, double, bool, double, double, double);
814  virtual void SetVegHeight(double a_veg_height) { m_veg_height = a_veg_height; }
815  virtual void SetDigestibility(double a_digestability) { m_digestability = a_digestability; }
816  virtual void SetGrazingLevel(int a_grazing) { m_default_grazing_level = a_grazing; }
817  virtual void SetVegParameters(double a_veg_height, double a_LAtotal, double a_LAgreen, double a_WeedBiomass) {
818  m_veg_height = a_veg_height;
819  m_LAtotal = a_LAtotal;
820  m_LAgreen = a_LAgreen;
821  m_weed_biomass = a_WeedBiomass;
822  //RecalculateBugsNStuff();
823  }
824  virtual void SetGrowthPhase(int a_phase);
825  virtual void StoreLAItotal() { m_oldLAtotal = m_LAtotal; }
826  virtual void ForceGrowthInitialize(bool a_force_decreasing = false);
827  virtual void ForceGrowthInitialiseForFirstYearCrop ( void );
828  virtual void ForceGrowthTest(void);
829  virtual void ForceGrowthDevelopment(void);
830  virtual void ZeroVeg(void);
831  virtual void ReduceVeg(double a_reduc);
832  virtual void ReduceVeg_Extended(double a_reduc);
833 
835  virtual void ResetDigestibility()
836  {
837  StoreLAItotal();
838  for (int i = 0; i < 32; i++) m_oldnewgrowth[i] = 0.0;
839  }
840 
841  virtual int GetVegPhase() { return m_veg_phase; }
843  virtual void SetSpeciesFunction(TTypesOfPopulation a_species);
845  void SetInterestedBiomassFraction(double a_interested_biomass_fraction) { m_interested_biomass_fraction = a_interested_biomass_fraction; }
846 
847 protected:
854  double m_LAtotal;
855  double m_oldLAtotal;
856  double m_LAgreen;
857  double m_insect_pop;
865  double m_veg_height;
867 
868  // -- VEG ATTRIBUTES FLAGS
869  bool m_att_veg;
877  // -- END VEG ATTRIBUTES FLAGS
878 
879  double m_veg_cover;
880  double m_newgrowth;
884  double m_oldnewgrowth[32];
885  double m_oldnewgrowth2[14];
892  double m_force_Weed;
899  ifstream m_ifile;
900  void ReadBugPercentageFile(void);
902  virtual void RecalculateBugsNStuff(void);
905  void RandomVegStartValues(double* a_LAtotal, double* a_LAgreen, double* a_veg_height, double* a_weed_biomass);
906  void ForceGrowthSpringTest(void);
908  virtual void PollenNectarPhenologyCalculation();
910  void CalculateDigestibility();
912  void CalculateAphidDrivers();
914  void CalculateInsectBiomass();
916  virtual void PollenNectarReset();
918  void ResetGeese(void);
920 
925 
929  void DoNothing(void) { return; }
930 };
931 
932 
933 class Field : public VegElement
934 {
939 protected:
940 public:
942  void Tick(void) override;
943  Field(Landscape* L);
944  virtual void DoDevelopment(void);
945  TTypesOfVegetation GetPreviousTov(int a_index);
946  virtual TTypesOfCrops GetCropType() { return m_CropType; }
947  //virtual void SetCropType(TTypesOfCrops a_type) { m_CropType = a_type; SetInsectBiomassParametersIndex(a_type); }
948  int GetAphidDensity();
949  void SetVegGrowthScalerRand();
950 };
951 
952 
954 {
955 public:
957 };
958 
959 
960 class Hedges : public VegElement
961 {
962 public:
963  Hedges(Landscape *L);
964  virtual void DoDevelopment( void ) {
966  m_insect_pop=0;
967  }
968 };
969 
970 
971 class HedgeBank : public VegElement
972 {
973 public:
974  HedgeBank(Landscape *L);
975  virtual void DoDevelopment(void) {
977  m_insect_pop = m_insect_pop * 3.0;
978  }
979 };
980 
981 
982 class BeetleBank : public VegElement
983 {
984 public:
985  BeetleBank(Landscape* L);
986  virtual void DoDevelopment(void);
987 };
988 
989 
993 class FlowerStrip : public VegElement
994 {
995 public:
996  FlowerStrip(Landscape* L, int a_type);
997  virtual void DoDevelopment(void);
998  void SetSubType(int a_subtype) {
999  if (a_subtype == 2) SetVegType(tov_FlowerStrip2);
1000  else if (a_subtype == 3) SetVegType(tov_FlowerStrip3);
1002  // Once the tov type is fixed set the veg curve number
1004  }
1005 protected:
1006  void Cutting(int a_today);
1007  long m_DateCut{-1};
1008 };
1009 
1014 {
1015 public:
1016  FlowerStripWithRotation(Landscape* L, int a_type);
1017  virtual void DoDevelopment(void);
1018  void SetSubType(int a_subtype) {
1019  if (a_subtype == 2) SetVegType(tov_DKOptimalFlowerMix2);
1020  else if (a_subtype == 3) SetVegType(tov_DKOptimalFlowerMix3);
1022  // Once the tov type is fixed set the veg curve number
1024  }
1025 protected:
1026  long m_DateHarrow{ -1 };
1027  long m_DateSow{ -1 };
1028  long m_DateStrigling{ -1 };
1029 };
1030 
1035 {
1036 public:
1037  FieldBoundary(Landscape* L, int a_type);
1038  virtual void DoDevelopment(void);
1039 protected:
1040  void Cutting(int a_today);
1042 };
1043 
1044 
1046 {
1047  // Attributes
1048  void Cutting(int a_today);
1050 
1051  public:
1053  // Is needed due to special development for this element
1054  // type, cutting of the roadside verges.
1055  virtual void DoDevelopment( void );
1056 };
1057 
1059 {
1060  void ResetingVeg(int a_today);
1061 public:
1063  // Is needed due to special development for this element
1064  // We want to reset the vegetation every year
1065  virtual void DoDevelopment(void);
1066 };
1067 
1068 class NaturalGrass : public VegElement
1069 {
1070 public:
1072  virtual void DoDevelopment();
1073 };
1074 
1076 {
1077 public:
1079  virtual void DoDevelopment( void );
1087 };
1088 
1089 //---------------------------------------------------------------------------
1090 
1091 
1093 {
1094 public:
1096  virtual void DoDevelopment( void ) {
1098  m_insect_pop=0;
1099  }
1100 };
1101 
1103 {
1104 public:
1106 };
1107 
1108 class Orchard : public VegElement
1109 {
1110  void Cutting(int a_today);
1112 
1113 public:
1114  Orchard(Landscape *L);
1115  // Is needed due to special development for this element
1116  // type, cutting of the roadside verges.
1117  virtual void DoDevelopment( void );
1118 };
1119 
1120 class OrchardBand : public VegElement
1121 {
1123 
1124 public:
1125  OrchardBand( Landscape *L );
1126  // Is needed due to special development for this element
1127  // type, cutting of the roadside verges.
1128  virtual void DoDevelopment( void );
1129 };
1130 
1132 {
1133  void Cutting(int a_today);
1135 
1136 public:
1141  virtual void DoDevelopment( void );
1142 };
1143 
1144 class NonVegElement : public LE
1145 {
1146 public:
1148 };
1149 
1155 class Pond : public NonVegElement {
1156 protected:
1167 public:
1168  Pond( Landscape *L );
1172  virtual void DoDevelopment(void);
1174  void CalcPondPesticide();
1176  void CalcLarvalFood();
1178  bool SubtractLarvalFood(double a_food);
1182  virtual void SetMaleNewtPresent(bool a_ispresent) { m_MaleNewtPresent = a_ispresent; };
1185 };
1186 
1187 class LargeRoad : public NonVegElement
1188 {
1189 public:
1190  virtual double GetTrafficLoad( void );
1191  LargeRoad( Landscape *L );
1192 };
1193 
1194 
1195 
1196 class SmallRoad : public NonVegElement
1197 {
1198 public:
1199  virtual double GetTrafficLoad( void );
1200  SmallRoad( Landscape *L );
1201 };
1202 
1203 #endif // ELEMENTS_H
1204 
LE_TypeClass::BackTranslateEleTypes
int BackTranslateEleTypes(TTypesOfLandscapeElement EleReference)
Definition: Elements.cpp:5529
toc_None
Definition: LandscapeFarmingEnums.h:925
LE::GetMDates
int GetMDates(int a, int b)
Definition: Elements.h:405
tole_SolarPanel
Definition: LandscapeFarmingEnums.h:151
cfg_farm_cattle_grazing_lvl_rot
CfgInt cfg_farm_cattle_grazing_lvl_rot
VegElement::Is_Att_VegGrass
virtual bool Is_Att_VegGrass()
Definition: Elements.h:777
LE::m_pdates
int m_pdates[256]
Definition: Elements.h:529
tov_DKOLegume_Beans
Definition: LandscapeFarmingEnums.h:345
g_el_strigling_delaytime_days
CfgInt g_el_strigling_delaytime_days
harvest1
Definition: Plants.h:55
g_AManager
std::shared_ptr< Population_Manager_Base > g_AManager
Definition: ALMaSS_CmdLine.cpp:148
cfg_FloweringPeriodPhasesProportionArray
CfgArray_Double cfg_FloweringPeriodPhasesProportionArray
Vector to store the proportions for flowering period phases, for now there are three phases; beginnin...
tov_SpringBarleySeed
Definition: LandscapeFarmingEnums.h:214
toc_Potatoes
Definition: LandscapeFarmingEnums.h:891
VegElement::ReduceVeg_Extended
virtual void ReduceVeg_Extended(double a_reduc)
Definition: Elements.cpp:2726
LE::Is_Att_UrbanNoVeg
bool Is_Att_UrbanNoVeg(void)
Definition: Elements.h:207
toc_OFodderGrass
Definition: LandscapeFarmingEnums.h:835
Pond::m_MaleNewtPresent
bool m_MaleNewtPresent
Flag for presence of a male newt.
Definition: Elements.h:1164
TOP_Skylark
Definition: PopulationManager.h:59
LE::SetCropDataAll
virtual void SetCropDataAll(double, double, double, double, TTypesOfVegetation, double, double, int, double, bool, double, double, double)
Definition: Elements.h:183
tole_OtherOakForest
Definition: LandscapeFarmingEnums.h:142
LE::m_spray_ppp_type
PlantProtectionProducts m_spray_ppp_type
This is to store the sprayed pesticide type.
Definition: Elements.h:664
MownGrassStrip::m_DateCut
long m_DateCut
Definition: Elements.h:1134
tole_SandDune
Definition: LandscapeFarmingEnums.h:103
toc_Oats
Definition: LandscapeFarmingEnums.h:819
LE::GetAspect
double GetAspect(void)
Definition: Elements.h:418
tov_FIWinterWheat
Definition: LandscapeFarmingEnums.h:524
cfg_noncrop_growth_stage_with_green_biomass
CfgFloat cfg_noncrop_growth_stage_with_green_biomass("NONCROP_GROWTH_STAGE_WITH_GREEN_BIOMASS", CFG_CUSTOM, 50)
Growth stage for non-crop habitat, this is used for aphid.
tov_DEOGrasslandSilageAnnual
Definition: LandscapeFarmingEnums.h:482
toc_Cabbage
Definition: LandscapeFarmingEnums.h:787
tov_DKOChristmasTrees_Perm
Definition: LandscapeFarmingEnums.h:447
LE::GetMinX
int GetMinX(void)
Definition: Elements.h:399
tov_FIBufferZone
Definition: LandscapeFarmingEnums.h:563
toc_OSetAside
Definition: LandscapeFarmingEnums.h:863
LE::GetLastSownVeg
TTypesOfVegetation GetLastSownVeg()
Returns the last vegetation type to be sown.
Definition: Elements.h:363
PermanentSetaside::PermanentSetaside
PermanentSetaside(Landscape *L)
Definition: Elements.cpp:2857
cfg_insectbiomassscaling
CfgFloat cfg_insectbiomassscaling("ELE_INSECTBIOMASSSCALER", CFG_CUSTOM, 0.5)
A scaling value used to change the insext density crop relationship which was based on DK 2000 data.
LE::GetDigestibility
virtual double GetDigestibility(void)
Definition: Elements.h:153
LE::Set_Att_Water
void Set_Att_Water(bool a_water)
Definition: Elements.h:202
Landscape::SupplyLEPointer
LE * SupplyLEPointer(int a_polyref)
Returns a pointer to the object referred to by the polygon number.
Definition: Landscape.h:1722
toc_OWinterBarleyExtensive
Definition: LandscapeFarmingEnums.h:879
tov_DEOWinterWheat
Definition: LandscapeFarmingEnums.h:497
tov_WinterWheatStrigling
Definition: LandscapeFarmingEnums.h:221
LE::m_monthly_traffic
static double m_monthly_traffic[]
Used for birds that feed on grain on cereal fields 3% spill is expected.
Definition: Elements.h:630
tov_DKGrazingPigs_Perm
Definition: LandscapeFarmingEnums.h:452
tole_Pylon
Definition: LandscapeFarmingEnums.h:118
VegElement::VegElement
VegElement(TTypesOfLandscapeElement tole, Landscape *L)
Definition: Elements.cpp:1282
toc_OPotatoesIndustry
Definition: LandscapeFarmingEnums.h:852
CropActualValues
Struct for storing actual data on crop type, area of a field it is grown in, biomass at harvest,...
Definition: Elements.h:673
VegElement::Is_Att_VegGooseGrass
virtual bool Is_Att_VegGooseGrass()
Definition: Elements.h:779
tov_DKOSetAside_AnnualFlower
Definition: LandscapeFarmingEnums.h:394
tov_NorwegianOats
Definition: LandscapeFarmingEnums.h:230
VegElement::PollenNectarReset
virtual void PollenNectarReset()
Resets the daily availability of pollen and nectar per square meter and in total to zero.
Definition: Elements.cpp:2202
LE::SetOwner
void SetOwner(Farm *a_owner, int a_owner_num, int a_owner_index)
Definition: Elements.h:282
WARN_FILE
Definition: MapErrorMsg.h:37
tov_DKOCerealLegume
Definition: LandscapeFarmingEnums.h:366
tole_OtherPermCrop
Definition: LandscapeFarmingEnums.h:177
tov_DEOSpringRye
Definition: LandscapeFarmingEnums.h:491
tole_SwampForest
Definition: LandscapeFarmingEnums.h:135
tov_DKOLegume_Peas
Definition: LandscapeFarmingEnums.h:344
tov_SpringBarleySKManagement
Definition: LandscapeFarmingEnums.h:227
LE::SetOldDays
void SetOldDays(long a_days)
Definition: Elements.h:370
toc_OrchardCrop
Definition: LandscapeFarmingEnums.h:855
tov_DKWinterRape
Definition: LandscapeFarmingEnums.h:418
PlantProtectionProducts
PlantProtectionProducts
A list ofPPP names for tracking by the Pesticide class.
Definition: LandscapeFarmingEnums.h:1077
tov_OCloverGrassGrazed2
Definition: LandscapeFarmingEnums.h:205
tov_DKOptimalFlowerMix3
Definition: LandscapeFarmingEnums.h:438
LE::SetMDates
void SetMDates(int a, int b, int c)
Definition: Elements.h:406
g_rand_uni_fnc
double g_rand_uni_fnc()
Definition: ALMaSS_Random.cpp:56
VegElement::SetCropData
virtual void SetCropData(double, double, double, TTypesOfVegetation, double, int)
Definition: Elements.cpp:2814
tov_BEBeetSpring
Definition: LandscapeFarmingEnums.h:290
tov_FRSorghum
Definition: LandscapeFarmingEnums.h:594
tov_PLSpringWheat
Definition: LandscapeFarmingEnums.h:237
cfg_pest_productapplic_startdate
CfgInt cfg_pest_productapplic_startdate
Start date for applying pesticide the first time.
Definition: Elements.cpp:166
toc_FodderGrass
Definition: LandscapeFarmingEnums.h:803
Pesticide::RemovePlantPesticide
void RemovePlantPesticide(int a_minx, int a_maxx, int a_miny, int a_maxy, int a_map_index)
Sets all plant pesticide maps (so all except soil) to 0.
Definition: Pesticide.cpp:373
cfg_OrchardNoCutsDay
CfgInt cfg_OrchardNoCutsDay("TOX_ORCHARDNOCUTS", CFG_CUSTOM, -1)
VegElement::m_interested_green_biomass
double m_interested_green_biomass
Definition: Elements.h:862
LE::~LE
virtual ~LE(void)
Definition: Elements.cpp:1011
toc_OCloverGrassGrazed1
Definition: LandscapeFarmingEnums.h:826
tov_PTCabbage_Hort
Definition: LandscapeFarmingEnums.h:331
tov_NLPermanentGrassGrazedExtensive
Definition: LandscapeFarmingEnums.h:272
EL_VEG_HEIGHTSCALE
#define EL_VEG_HEIGHTSCALE
Definition: Elements.cpp:251
VegElement::SetBiomassScalers
static void SetBiomassScalers(TTypesOfVegetation a_tov)
Definition: Elements.cpp:344
tov_DEOSugarBeet
Definition: LandscapeFarmingEnums.h:492
cfg_OrchardSprayDay
static CfgInt cfg_OrchardSprayDay("TOX_ORCHARDSPRAYDAY", CFG_CUSTOM, 150)
tov_IRWinterBarley
Definition: LandscapeFarmingEnums.h:601
VegElement::GetGreenBiomass
virtual double GetGreenBiomass(void)
Definition: Elements.h:709
tole_Portarea
Definition: LandscapeFarmingEnums.h:132
marchfirst
Definition: Plants.h:54
sow
Definition: Plants.h:53
cfg_PermanentVegGrowthMaxScaler
CfgFloat cfg_PermanentVegGrowthMaxScaler("VEG_GROWTHSCALERMAX", CFG_CUSTOM, 1.0)
Scales the growth of vegetation - max value.
LE::CalculateFlowerResourceForCropSow
virtual void CalculateFlowerResourceForCropSow(TTypesOfVegetation a_new_veg)
Definition: Elements.cpp:1199
LE::m_area
double m_area
The element area in m2.
Definition: Elements.h:577
toc_WinterTriticale
Definition: LandscapeFarmingEnums.h:921
RV_CUT_OCT
#define RV_CUT_OCT
Definition: Elements.cpp:269
Landscape::SupplyTemp
double SupplyTemp(void)
Passes a request on to the associated Weather class function, the temperature for the current day.
Definition: Landscape.h:1993
toc_OOrchPear
Definition: LandscapeFarmingEnums.h:848
VegElement::IsCereal
bool IsCereal()
Definition: Elements.h:786
toc_SpringBarleySeed
Definition: LandscapeFarmingEnums.h:904
LE::GrazeVegetationTotal
virtual void GrazeVegetationTotal(double)
Definition: Elements.h:297
tov_DKOCabbages
Definition: LandscapeFarmingEnums.h:352
tov_PTCloverGrassGrazed1
Definition: LandscapeFarmingEnums.h:314
tole_InvasiveForest
Definition: LandscapeFarmingEnums.h:145
LE::SetLastSownVeg
void SetLastSownVeg(TTypesOfVegetation a_tov)
Records the last vegetation type to be sown.
Definition: Elements.h:357
toc_OMaizeSilage
Definition: LandscapeFarmingEnums.h:841
tov_DEOMaizeSilage
Definition: LandscapeFarmingEnums.h:486
EL_BUG_PERCENT_SB_A
#define EL_BUG_PERCENT_SB_A
Definition: Elements.cpp:38
toc_OPotatoes
Definition: LandscapeFarmingEnums.h:851
VegElement::m_newgrowthsum
double m_newgrowthsum
Definition: Elements.h:888
FlowerStrip::FlowerStrip
FlowerStrip(Landscape *L, int a_type)
Definition: Elements.cpp:2873
toc_OSeedGrass2
Definition: LandscapeFarmingEnums.h:862
LE::GetArea
double GetArea(void)
Definition: Elements.h:257
toc_CarrotsSpring
Definition: LandscapeFarmingEnums.h:790
toc_PermanentGrassLowYield
Definition: LandscapeFarmingEnums.h:887
MownGrassStrip::DoDevelopment
virtual void DoDevelopment(void)
Definition: Elements.cpp:3192
tov_DKOSugarBeets
Definition: LandscapeFarmingEnums.h:350
cfg_farm_cattle_grazing_lvl_tussocky
CfgInt cfg_farm_cattle_grazing_lvl_tussocky
VegElement::DoDevelopment
virtual void DoDevelopment(void)
Definition: Elements.cpp:2564
PlantGrowthData::GetLAgreenDiff
double GetLAgreenDiff(double a_ddegs, double a_yddegs, int a_plant, int a_phase)
Get the differential in LA green for the day degrees experienced.
Definition: Plants.h:106
VegElement::GetVegPhase
virtual int GetVegPhase()
Definition: Elements.h:841
tov_DEOats
Definition: LandscapeFarmingEnums.h:479
tov_DKSpringOats_CC
Definition: LandscapeFarmingEnums.h:429
toc_OrchOther
Definition: LandscapeFarmingEnums.h:857
tov_DKSpringOats
Definition: LandscapeFarmingEnums.h:413
Orchard
Definition: Elements.h:1108
cfg_NectarMonthBaseTemp
CfgArray_Double cfg_NectarMonthBaseTemp("NECTAR_MONTH_BASE_TEMP", CFG_CUSTOM, 12, vector< double > {3.6, 3.6, 3.9, 3.9, 9, 9, 9, 6, 5, 0, 2, 2})
Monthly base development temperature for NECTAR.
toc_OWinterWheatUndersownExtensive
Definition: LandscapeFarmingEnums.h:884
NaturalGrass
Definition: Elements.h:1068
toc_OFirstYearDanger
Definition: LandscapeFarmingEnums.h:833
tov_WWheatPToxicControl
Definition: LandscapeFarmingEnums.h:217
tov_PTCloverGrassGrazed2
Definition: LandscapeFarmingEnums.h:315
EL_BUG_PERCENT_Edges_B
#define EL_BUG_PERCENT_Edges_B
Definition: Elements.cpp:75
Pesticide::ReducePlantPesticide
void ReducePlantPesticide(int a_minx, int a_maxx, int a_miny, int a_maxy, int a_map_index, float a_reduc, bool a_remove_from_surface=false)
Reduce the amount in plant pesticide maps. Everything is removed for surface if boolean is true (used...
Definition: Pesticide.cpp:399
tov_IRWinterOats
Definition: LandscapeFarmingEnums.h:603
l_el_rv_cut_height
static CfgFloat l_el_rv_cut_height("ELEM_RV_CUT_HEIGHT", CFG_PRIVATE, 10.0)
CropActualValues::taken
bool taken
Definition: Elements.h:674
LE::GetLastTreatment
int GetLastTreatment()
Returns the last treatment recorded for the polygon.
Definition: Elements.cpp:1069
LE::GetBirdSeed
double GetBirdSeed(void)
Definition: Elements.h:261
tov_SetAside
Definition: LandscapeFarmingEnums.h:212
tov_DKOWinterRye_CC
Definition: LandscapeFarmingEnums.h:425
toc_OYoungForestCrop
Definition: LandscapeFarmingEnums.h:885
tole_Churchyard
Definition: LandscapeFarmingEnums.h:108
tole_UnsprayedFieldMargin
Definition: LandscapeFarmingEnums.h:94
VegElement::SetDigestibility
virtual void SetDigestibility(double a_digestability)
Definition: Elements.h:815
tov_PLBeet
Definition: LandscapeFarmingEnums.h:242
LE::m_subtype
int m_subtype
Definition: Elements.h:548
toc_SpringRape
Definition: LandscapeFarmingEnums.h:906
tov_DKOWinterFodderGrass
Definition: LandscapeFarmingEnums.h:379
toc_WinterRye
Definition: LandscapeFarmingEnums.h:920
tole_Missing
Definition: LandscapeFarmingEnums.h:181
LE::m_OurPollenNectarCurveSet
PollenNectarDevelopmentCurveSet * m_OurPollenNectarCurveSet
pointer to the correct pollen curve set
Definition: Elements.h:660
EL_BUG_PERCENT_WRy_A
#define EL_BUG_PERCENT_WRy_A
Definition: Elements.cpp:50
cfg_MownGrassNoCutsDay
static CfgInt cfg_MownGrassNoCutsDay("ELE_MOWNGRASSNOCUTS", CFG_CUSTOM, 2)
Landscape::SupplyShouldSpray
bool SupplyShouldSpray()
Returns m_toxShouldSpray, a flag indicating whether pesticide should be sprayed.
Definition: Landscape.h:580
tov_DEOCarrots
Definition: LandscapeFarmingEnums.h:481
Pond::SubtractLarvalFood
bool SubtractLarvalFood(double a_food)
Called by a larva when feeding, removes an age specific amount of larval food
Definition: Elements.cpp:3402
tov_FIOPotatoIndustry_South
Definition: LandscapeFarmingEnums.h:546
tov_DKMixedVeg
Definition: LandscapeFarmingEnums.h:384
EL_BUG_PERCENT_SA_C
#define EL_BUG_PERCENT_SA_C
Definition: Elements.cpp:70
LE::m_att_high
bool m_att_high
Definition: Elements.h:608
tov_DKSpringBarley_CC
Definition: LandscapeFarmingEnums.h:431
tov_SpringBarleyStriglingCulm
Definition: LandscapeFarmingEnums.h:224
LE::m_att_water
bool m_att_water
Definition: Elements.h:609
tov_OWinterWheatUndersownExt
Definition: LandscapeFarmingEnums.h:225
tov_OCloverGrassSilage1
Definition: LandscapeFarmingEnums.h:205
l_el_bug_glue
static CfgFloat l_el_bug_glue("ELEM_BUG_GLUE", CFG_PRIVATE, 0.50)
FieldBoundary::DoDevelopment
virtual void DoDevelopment(void)
Definition: Elements.cpp:3006
tov_DKOOrchApple
Definition: LandscapeFarmingEnums.h:466
LE::GetMConstants
int GetMConstants(int a)
Definition: Elements.h:407
VegElement::m_att_veg_forest
bool m_att_veg_forest
Definition: Elements.h:876
tov_DEWinterWheatLate
Definition: LandscapeFarmingEnums.h:510
tov_FIPotato_North
Definition: LandscapeFarmingEnums.h:539
tole_AmenityGrass
Definition: LandscapeFarmingEnums.h:98
toc_OSpringBarleySilage
Definition: LandscapeFarmingEnums.h:870
LE::m_slope
double m_slope
Definition: Elements.h:600
LE::ClearManagementActionSum
void ClearManagementActionSum()
clears the management action counters
Definition: Elements.h:247
l_el_plant_biomass_proport
static CfgFloat l_el_plant_biomass_proport("ELEM_PLANT_BIOMASS_PROPORT", CFG_PRIVATE, 41.45)
FlowerStripWithRotation::m_DateStrigling
long m_DateStrigling
Definition: Elements.h:1028
LE::GetCentroidY
virtual int GetCentroidY()
Definition: Elements.h:151
LE::m_CropType
TTypesOfCrops m_CropType
Definition: Elements.h:93
LE::SetPoison
void SetPoison(bool a_poison)
Definition: Elements.h:197
tov_FITurnipRape
Definition: LandscapeFarmingEnums.h:533
LE::m_running
long m_running
Definition: Elements.h:533
tov_BEOrchardCrop
Definition: LandscapeFarmingEnums.h:298
toc_OSetAside_Flower
Definition: LandscapeFarmingEnums.h:864
tov_IRSpringOats
Definition: LandscapeFarmingEnums.h:598
tole_CorkOakForest
Definition: LandscapeFarmingEnums.h:140
LE::m_PesticideGridCell
int m_PesticideGridCell
Definition: Elements.h:544
toc_OOrchOther
Definition: LandscapeFarmingEnums.h:847
Calendar::GetYearNumber
int GetYearNumber(void)
Definition: Calendar.h:72
VegElement::SetGrazingLevel
virtual void SetGrazingLevel(int a_grazing)
Definition: Elements.h:816
toc_OAsparagusEstablishedPlantation
Definition: LandscapeFarmingEnums.h:818
toc_OCloverGrassSilage1
Definition: LandscapeFarmingEnums.h:829
TOP_Bombus
Definition: PopulationManager.h:73
tole_Foobar
Definition: LandscapeFarmingEnums.h:183
cfg_field_boundary_cut_chance
static CfgArray_Double cfg_field_boundary_cut_chance("FIELD_BOUNDARY_CUT_CHANCE", CFG_CUSTOM, 2, vector< double > {0.5, 0.5})
The daily chance for cutting of field boundaries with grass when it is within the cutting period.
tov_DKOWinterBarley
Definition: LandscapeFarmingEnums.h:401
LE::SetMinY
void SetMinY(int y)
Definition: Elements.h:404
tov_PLWinterRape
Definition: LandscapeFarmingEnums.h:233
LE::GetStubble
bool GetStubble()
Return the in stubble flag.
Definition: Elements.h:464
LE::Set_Att_VegGooseGrass
virtual void Set_Att_VegGooseGrass(bool)
Definition: Elements.h:226
VegElement::m_force_LAtotal
double m_force_LAtotal
Definition: Elements.h:894
CfgStr::value
char * value() const
Definition: Configurator.h:182
LE::ResetDigestibility
virtual void ResetDigestibility()
sets growth record to zero in descendent classes
Definition: Elements.h:454
toc_GrassGrazed1
Definition: LandscapeFarmingEnums.h:807
tole_FarmBufferZone
Definition: LandscapeFarmingEnums.h:170
cfg_PondLarvalFoodR
CfgFloat cfg_PondLarvalFoodR("POND_LARVALFOODFOODR", CFG_CUSTOM, 0.15)
The instanteous rate of growth for larval food (r from logistic equation)
LE::m_sugar_amount
vector< double > m_sugar_amount
The array to store the sugar quality for each period.
Definition: Elements.h:658
toc_YellowLupin
Definition: LandscapeFarmingEnums.h:923
LE::m_gooseNos
int m_gooseNos[366]
The number of geese each day.
Definition: Elements.h:579
tov_NLSpringBarley
Definition: LandscapeFarmingEnums.h:255
VegElement::m_LAgreen
double m_LAgreen
Definition: Elements.h:856
tole_StoneWall
Definition: LandscapeFarmingEnums.h:78
Calendar::GetHour
int GetHour(void)
Definition: Calendar.h:76
VegElement::GetDeadBiomass
virtual double GetDeadBiomass(void)
Definition: Elements.h:708
VegElement::ForceGrowthInitialize
virtual void ForceGrowthInitialize(bool a_force_decreasing=false)
Definition: Elements.cpp:2484
LE::GetMaxX
int GetMaxX(void)
Definition: Elements.h:397
VegElement::m_newoldgrowthindex2
int m_newoldgrowthindex2
Definition: Elements.h:887
tov_FlowerStrip2
Definition: LandscapeFarmingEnums.h:199
LE::m_squares_in_map
int m_squares_in_map
Definition: Elements.h:92
toc_OFarmForest
Definition: LandscapeFarmingEnums.h:830
LE::m_att_urbannoveg
bool m_att_urbannoveg
Definition: Elements.h:612
tov_PTBeans
Definition: LandscapeFarmingEnums.h:322
toc_VegSeeds
Definition: LandscapeFarmingEnums.h:917
LE::StoreLAItotal
virtual void StoreLAItotal()
Definition: Elements.h:184
TOP_Osmia
Definition: PopulationManager.h:69
tov_OMaizeSilage
Definition: LandscapeFarmingEnums.h:227
tov_PTMaize
Definition: LandscapeFarmingEnums.h:326
tov_DKOCloverGrassGrazed1
Definition: LandscapeFarmingEnums.h:374
LE::GetDayDegrees
virtual double GetDayDegrees(void)
Definition: Elements.h:157
LE::AddManagementActionDone
void AddManagementActionDone(FarmManagementCategory a_action)
Record management action throught a crop management action.
Definition: Elements.h:252
Pond::CalcLarvalFood
void CalcLarvalFood()
Calculates the amount of larval food present
Definition: Elements.cpp:3375
tov_DEOTriticale
Definition: LandscapeFarmingEnums.h:493
MapErrorMsg::WarnAddInfo
void WarnAddInfo(MapErrorState a_level, std::string a_add1, std::string a_add2)
Definition: MapErrorMsg.cpp:160
toc_OWinterWheat
Definition: LandscapeFarmingEnums.h:882
tole_Hedges
Definition: LandscapeFarmingEnums.h:59
tov_FIOWinterWheat
Definition: LandscapeFarmingEnums.h:525
tov_PTTriticale
Definition: LandscapeFarmingEnums.h:316
EL_BUG_PERCENT_SB_C
#define EL_BUG_PERCENT_SB_C
Definition: Elements.cpp:40
LE::Is_Att_Forest
bool Is_Att_Forest(void)
Definition: Elements.h:203
tov_PLSpringBarleySpr
Definition: LandscapeFarmingEnums.h:246
VegElement::m_greenbiomass_per
double m_greenbiomass_per
Definition: Elements.h:891
tov_WinterWheatStriglingCulm
Definition: LandscapeFarmingEnums.h:224
Pond
Ponds are defined as freshwater bodies between 25m2 and 5000m2. For newts the effective size is limit...
Definition: Elements.h:1155
LE::GetPoly
int GetPoly(void)
Returns the polyref number for this polygon.
Definition: Elements.h:238
LE::SetGooseNosTimed
void SetGooseNosTimed(int a_number, int a_day)
Definition: Elements.h:426
tov_DKOSetAside
Definition: LandscapeFarmingEnums.h:393
tov_DEOHerbsPerennial_after1year
Definition: LandscapeFarmingEnums.h:516
VegElement::m_total_biomass_old
double m_total_biomass_old
Definition: Elements.h:860
UnsprayedFieldMargin
Definition: Elements.h:1075
tole_BareRock
Definition: LandscapeFarmingEnums.h:97
toc_ORyegrass
Definition: LandscapeFarmingEnums.h:896
tov_DKOEnergyCrop_Perm
Definition: LandscapeFarmingEnums.h:449
LE::m_nectarinfo
PollenNectarData m_nectarinfo
Definition: Elements.h:644
LE::m_pindex
int m_pindex
Definition: Elements.h:530
VegElement::m_ifile
ifstream m_ifile
Definition: Elements.h:899
LE::m_nectar_amount
vector< double > m_nectar_amount
The array to store the nectar amount for each period.
Definition: Elements.h:654
l_el_rv_may_1st
static CfgInt l_el_rv_may_1st("ELEM_RV_MAY_1ST", CFG_PRIVATE, 121)
toc_OOrchApple
Definition: LandscapeFarmingEnums.h:844
tov_FIGrasslandPasturePerennial2
Definition: LandscapeFarmingEnums.h:557
VegElement::m_insect_biomass_parameters_c
static double m_insect_biomass_parameters_c[9]
Definition: Elements.h:691
tov_IRSpringWheat
Definition: LandscapeFarmingEnums.h:596
VegElement::m_force_veg_height
double m_force_veg_height
Definition: Elements.h:895
LE::m_currentOsmiaNests
int m_currentOsmiaNests
to record the number of actual osmia nests
Definition: Elements.h:641
tole_Carpark
Definition: LandscapeFarmingEnums.h:107
toc_OOrchCherry
Definition: LandscapeFarmingEnums.h:846
VegElement::m_att_veg
bool m_att_veg
Definition: Elements.h:869
tole_IndividualTree
Definition: LandscapeFarmingEnums.h:115
tov_BECatchPeaCrop
Definition: LandscapeFarmingEnums.h:291
CropActualValues::missed_fi_app
int missed_fi_app
Definition: Elements.h:682
tov_DKOWinterRape
Definition: LandscapeFarmingEnums.h:402
cfg_pollen_nectar_on
CfgBool cfg_pollen_nectar_on("ELE_POLLENNECTAR_ON", CFG_CUSTOM, false)
Flag to determine whether nectar and pollen models are used - should be set to true for pollinator mo...
LE::m_elevation
double m_elevation
Elevation data.
Definition: Elements.h:599
LE::ForceGrowthTest
virtual void ForceGrowthTest(void)
Definition: Elements.h:188
PlantGrowthData::GetLAtotalDiff
double GetLAtotalDiff(double a_ddegs, double a_yddegs, int a_plant, int a_phase)
Get the differential in LA total for the day degrees experienced.
Definition: Plants.h:116
CfgStr
String configurator entry class.
Definition: Configurator.h:173
tov_NLCabbageSpring
Definition: LandscapeFarmingEnums.h:267
VegElement::m_green_biomass
double m_green_biomass
Definition: Elements.h:861
toc_SpringWheat
Definition: LandscapeFarmingEnums.h:908
VegElement::ForceGrowthTest
virtual void ForceGrowthTest(void)
Definition: Elements.cpp:2428
LE::SetGooseSpNos
void SetGooseSpNos(int a_number, int a_day, GooseSpecies a_goose)
Definition: Elements.h:422
TOP_ApisRAM
Definition: PopulationManager.h:70
g_date
class Calendar * g_date
Definition: Calendar.cpp:37
VegElement::m_force_LAgreen
double m_force_LAgreen
Definition: Elements.h:893
toc_Maize
Definition: LandscapeFarmingEnums.h:813
FlowerStripWithRotation::FlowerStripWithRotation
FlowerStripWithRotation(Landscape *L, int a_type)
Definition: Elements.cpp:2910
LE::GetGreenBiomassProp
virtual double GetGreenBiomassProp(void)
Definition: Elements.h:162
Calendar::GetMonthRaw
int GetMonthRaw(void)
Definition: Calendar.h:74
tov_DKSpringBarley_Green
Definition: LandscapeFarmingEnums.h:411
LE::GetPesticideCell
int GetPesticideCell()
Definition: Elements.h:388
LE::SetSoilType
void SetSoilType(int a_st)
Definition: Elements.h:351
LE::SetCropData
virtual void SetCropData(double, double, double, TTypesOfVegetation, double, int)
Definition: Elements.h:182
VegElement::m_veg_cover
double m_veg_cover
Definition: Elements.h:879
LE::SetBorder
void SetBorder(LE *a_border)
Definition: Elements.h:384
WaterBufferZone::WaterBufferZone
WaterBufferZone(Landscape *L)
Definition: Elements.cpp:3091
Orchard::DoDevelopment
virtual void DoDevelopment(void)
Definition: Elements.cpp:3134
tov_PLCarrots
Definition: LandscapeFarmingEnums.h:245
VegElement::SetGrowthPhase
virtual void SetGrowthPhase(int a_phase)
Definition: Elements.cpp:2375
LE::SetCountryDesignation
void SetCountryDesignation(int a_designation)
Definition: Elements.h:280
LE::m_totalNectar
double m_totalNectar
Definition: Elements.h:646
tov_Carrots
Definition: LandscapeFarmingEnums.h:203
LE::GetPreviousTov
virtual TTypesOfVegetation GetPreviousTov(int)
Definition: Elements.h:195
FlowerStripWithRotation::SetSubType
void SetSubType(int a_subtype)
Definition: Elements.h:1018
Weather::GetDDDegs
double GetDDDegs(long a_date)
Definition: Weather.cpp:205
tov_PTOliveGroveTradOrganic
Definition: LandscapeFarmingEnums.h:334
LE::m_openness
int m_openness
The openness metric for a field (if any)
Definition: Elements.h:597
EL_BUG_PERCENT_G_C
#define EL_BUG_PERCENT_G_C
Definition: Elements.cpp:64
LE::GetGooseNos
int GetGooseNos()
For goose model functionality, returns the number of geese yesterday.
Definition: Elements.cpp:1118
tole_OrchardBand
Definition: LandscapeFarmingEnums.h:95
FlowerStrip::Cutting
void Cutting(int a_today)
Definition: Elements.cpp:2885
toc_CorkOak
Definition: LandscapeFarmingEnums.h:795
WaterBufferZone::ResetingVeg
void ResetingVeg(int a_today)
Definition: Elements.cpp:3108
NonVegElement::NonVegElement
NonVegElement(TTypesOfLandscapeElement tole, Landscape *L)
Definition: Elements.cpp:3323
tov_BEWinterWheat
Definition: LandscapeFarmingEnums.h:302
tov_WinterRape
Definition: LandscapeFarmingEnums.h:215
LE::m_maxy
int m_maxy
Definition: Elements.h:551
toc_CabbageSpring
Definition: LandscapeFarmingEnums.h:788
LE::SetTramlinesDecay
void SetTramlinesDecay(int a_decaytime_days)
Definition: Elements.h:374
cfg_PermanentVegGrowthMinScaler
CfgFloat cfg_PermanentVegGrowthMinScaler("VEG_GROWTHSCALERMIN", CFG_CUSTOM, 1.0)
Scales the growth of vegetation - min value.
toc_SpringBarleyPeaCloverGrass
Definition: LandscapeFarmingEnums.h:903
Pond::IsMaleNewtPresent
bool IsMaleNewtPresent()
Gets whether there is a male newt as present.
Definition: Elements.h:1184
tole_NaturalGrassWet
Definition: LandscapeFarmingEnums.h:109
Farm::GetPreviousTov
TTypesOfVegetation GetPreviousTov(int a_index)
Definition: Farm.h:966
toc_Beans
Definition: LandscapeFarmingEnums.h:783
LE::Is_Att_Veg
virtual bool Is_Att_Veg(void)
Definition: Elements.h:214
tov_OSpringBarleyClover
Definition: LandscapeFarmingEnums.h:208
VegElement::m_newgrowthruningaveragesum
double m_newgrowthruningaveragesum
Definition: Elements.h:889
toc_OCarrots
Definition: LandscapeFarmingEnums.h:825
LE_TypeClass::TranslateEleTypesFromString
TTypesOfLandscapeElement TranslateEleTypesFromString(string aEleReferenceStr)
Definition: Elements.cpp:3446
tov_DEWinterBarley
Definition: LandscapeFarmingEnums.h:507
July
const int July
Julian start dates of the month of July.
Definition: Landscape.h:50
tole_PermPastureTussockyWet
Definition: LandscapeFarmingEnums.h:122
tole_MetalledPath
Definition: LandscapeFarmingEnums.h:106
tov_FIOSpringBarley_Fodder
Definition: LandscapeFarmingEnums.h:555
LE::GetInsectPop
virtual double GetInsectPop(void)
Definition: Elements.h:166
tov_DKOMaizeSilage
Definition: LandscapeFarmingEnums.h:387
LE::GetValidX
int GetValidX(void)
Definition: Elements.h:394
LE::Is_Att_VegMatureCereal
virtual bool Is_Att_VegMatureCereal()
Definition: Elements.h:221
LE::m_soiltype
int m_soiltype
Definition: Elements.h:605
PollenNectarDevelopmentCurveSet
This class justs holds the set of resource curves related to a specific plant community or crop....
Definition: PollenNectar.h:44
LE::MDates
int MDates[2][25]
Definition: Elements.h:633
tole_Wasteland
Definition: LandscapeFarmingEnums.h:114
VegElement::m_new_weed_growth
double m_new_weed_growth
Definition: Elements.h:881
l_pest_insecticide_amount
CfgFloat l_pest_insecticide_amount
LE::IsMaleNewtPresent
virtual bool IsMaleNewtPresent()
Sets a male newt as present/absent in descendent classes - here only to prevent need for dynamic cast...
Definition: Elements.h:460
vegphase_foobar
Definition: Plants.h:57
tov_NaturalGrass
Definition: LandscapeFarmingEnums.h:196
toc_Turnip
Definition: LandscapeFarmingEnums.h:914
tov_DKOSetAside_PerennialFlower
Definition: LandscapeFarmingEnums.h:395
tov_DKOGrassLowYield_Perm
Definition: LandscapeFarmingEnums.h:455
Field::GetPreviousTov
TTypesOfVegetation GetPreviousTov(int a_index)
Definition: Elements.cpp:2809
NaturalGrass::NaturalGrass
NaturalGrass(TTypesOfLandscapeElement tole, Landscape *L)
Definition: Elements.cpp:3284
tov_DKSpringFodderGrass
Definition: LandscapeFarmingEnums.h:377
LE::SetPollenNectarCurveRef
void SetPollenNectarCurveRef(int a_PollenNectarCurve)
Sets the pollen/nectar curve number.
Definition: Elements.h:475
LE::ReduceVeg_Extended
virtual void ReduceVeg_Extended(double)
Definition: Elements.h:192
tov_ITGrassland
Definition: LandscapeFarmingEnums.h:606
HedgeBank
Definition: Elements.h:971
tole_OOrchard
Definition: LandscapeFarmingEnums.h:153
tole_WindTurbine
Definition: LandscapeFarmingEnums.h:119
tov_DKOSpringOats
Definition: LandscapeFarmingEnums.h:398
LE::SetMinX
void SetMinX(int x)
Definition: Elements.h:403
tov_FISpringBarley_Fodder
Definition: LandscapeFarmingEnums.h:553
VegElement::GrazeVegetationTotal
virtual void GrazeVegetationTotal(double a_grams)
The function that reduces the vegetation due to grazing.
Definition: Elements.cpp:2658
CfgFloat::value
double value() const
Definition: Configurator.h:142
tole_WalnutPlantation
Definition: LandscapeFarmingEnums.h:169
LE::GetOldDays
long GetOldDays(void)
Definition: Elements.h:281
LE::m_valid_y
int m_valid_y
Definition: Elements.h:540
g_el_herbicide_delaytime_days
CfgInt g_el_herbicide_delaytime_days
EL_BUG_PERCENT_WRy_B
#define EL_BUG_PERCENT_WRy_B
Definition: Elements.cpp:51
tov_DKOLegume_Beans_CC
Definition: LandscapeFarmingEnums.h:426
VegElement::GetVegType
virtual TTypesOfVegetation GetVegType(void)
Definition: Elements.h:720
VegElement::GetInsectPop
virtual double GetInsectPop(void)
Definition: Elements.h:718
tov_DEOAsparagusEstablishedPlantation
Definition: LandscapeFarmingEnums.h:512
tole_MixedForest
Definition: LandscapeFarmingEnums.h:75
Calendar::GetMonth
int GetMonth(void)
Definition: Calendar.h:73
toc_SeedGrass2
Definition: LandscapeFarmingEnums.h:898
tov_NLWinterWheat
Definition: LandscapeFarmingEnums.h:256
tole_OChristmasTrees
Definition: LandscapeFarmingEnums.h:157
VegElement::GetDigestibility
virtual double GetDigestibility(void)
Definition: Elements.h:701
l_el_rv_cut_aug
static CfgInt l_el_rv_cut_aug("ELEM_RV_CUT_AUG", CFG_PRIVATE, 42)
Landscape::SetPollenMap
void SetPollenMap(int a_poly_id, double a_pollen_quantity, int a_min_x, int a_min_y, int a_max_x, int a_max_y)
The function to set the pollen quantity for all the cells that belong to the given polygon ID.
Definition: Landscape.cpp:4037
toc_ORyeGrass
Definition: LandscapeFarmingEnums.h:859
tov_DKOrchPear
Definition: LandscapeFarmingEnums.h:463
l_el_veg_heightscale
static CfgInt l_el_veg_heightscale("ELEM_VEG_HEIGHTSCALE", CFG_PRIVATE, 16)
VegElement::m_forced_phase_shift
bool m_forced_phase_shift
Definition: Elements.h:882
LE::GetVegAge
int GetVegAge()
Definition: Elements.h:141
Pond::m_LarvalFood
double m_LarvalFood
The amount of larval food present
Definition: Elements.h:1158
tov_OWinterWheatUndersown
Definition: LandscapeFarmingEnums.h:211
LE::m_largeroad_load
static double m_largeroad_load[]
Definition: Elements.h:631
tov_OPermanentGrassGrazed
Definition: LandscapeFarmingEnums.h:206
LE::m_maxx
int m_maxx
Definition: Elements.h:549
cfg_PermanentVegGrowthMinScalerField
CfgFloat cfg_PermanentVegGrowthMinScalerField("VEG_FIELDGROWTHSCALERMIN", CFG_CUSTOM, 0.9)
Scales the growth of vegetation - min value.
VegElement::RandomVegStartValues
void RandomVegStartValues(double *a_LAtotal, double *a_LAgreen, double *a_veg_height, double *a_weed_biomass)
Definition: Elements.cpp:2367
cfg_BBPatchyChance
static CfgFloat cfg_BBPatchyChance("BEETLEBANKBPATCHYCHANCE", CFG_CUSTOM, 0.5)
The chance that a beetlebank being created is patchy or not.
tov_UKWinterRape
Definition: LandscapeFarmingEnums.h:286
VegElement::m_insect_pop
double m_insect_pop
Definition: Elements.h:857
Landscape::SupplyPollenHabitatType
PollenNectarData SupplyPollenHabitatType(int a_habitat_type)
Supply the pollen of the current day for the given habitat type.
Definition: Landscape.h:287
VegElement::m_vege_type
TTypesOfVegetation m_vege_type
Definition: Elements.h:848
tov_DEGrasslandSilageAnnual
Definition: LandscapeFarmingEnums.h:474
toc_YoungForestCrop
Definition: LandscapeFarmingEnums.h:924
tov_PTWinterBarley
Definition: LandscapeFarmingEnums.h:321
tole_Saltmarsh
Definition: LandscapeFarmingEnums.h:110
LE::GetVegGrowthStage
virtual double GetVegGrowthStage(void)
Definition: Elements.h:146
Hedges::DoDevelopment
virtual void DoDevelopment(void)
Definition: Elements.h:964
tov_NLGrassGrazed1Spring
Definition: LandscapeFarmingEnums.h:269
tole_MontadoCorkOak
Definition: LandscapeFarmingEnums.h:136
toc_PermanentGrassTussocky
Definition: LandscapeFarmingEnums.h:888
toc_CloverGrassGrazed3
Definition: LandscapeFarmingEnums.h:794
fmc_Foobar
Definition: LandscapeFarmingEnums.h:1013
tov_ITOOrchard
Definition: LandscapeFarmingEnums.h:608
Field::DoDevelopment
virtual void DoDevelopment(void)
Definition: Elements.cpp:2795
LE::m_att_forest
bool m_att_forest
Definition: Elements.h:610
tole_WaterBufferZone
Definition: LandscapeFarmingEnums.h:130
l_el_weed_percent
static CfgFloat l_el_weed_percent("ELEM_WEED_PERCENT", CFG_PRIVATE, 0.1)
VegElement::m_oldnewgrowth2
double m_oldnewgrowth2[14]
Definition: Elements.h:885
TOP_Goose
Definition: PopulationManager.h:65
toc_OWinterRye
Definition: LandscapeFarmingEnums.h:881
tov_DKOPotatoIndustry
Definition: LandscapeFarmingEnums.h:390
toc_OLentils
Definition: LandscapeFarmingEnums.h:838
tov_DKFarmYoungForest_Perm
Definition: LandscapeFarmingEnums.h:456
tov_DKCloverGrassGrazed2
Definition: LandscapeFarmingEnums.h:371
l_el_rv_cut_jun
static CfgInt l_el_rv_cut_jun("ELEM_RV_CUT_JUN", CFG_PRIVATE, 28)
LE::SetInsectPop
virtual void SetInsectPop(double)
Definition: Elements.h:167
EL_BUG_PERCENT_G_A
#define EL_BUG_PERCENT_G_A
Definition: Elements.cpp:62
LE::SetUnsprayedMarginPolyRef
void SetUnsprayedMarginPolyRef(int a_unsprayedmargin)
Definition: Elements.h:386
tole_OEnergyCrop
Definition: LandscapeFarmingEnums.h:159
tov_DKOptimalFlowerMix2
Definition: LandscapeFarmingEnums.h:437
tov_WinterWheatShort
Definition: LandscapeFarmingEnums.h:218
VegElement::m_veg_phase
int m_veg_phase
Definition: Elements.h:851
LE::GetMinY
int GetMinY(void)
Definition: Elements.h:400
tov_DKFarmForest_Perm
Definition: LandscapeFarmingEnums.h:450
tov_DKMaize
Definition: LandscapeFarmingEnums.h:382
cfg_beetlebankinsectscaler
static CfgFloat cfg_beetlebankinsectscaler("ELE_BBINSECTSCALER", CFG_CUSTOM, 1.0)
tov_PTMaize_Hort
Definition: LandscapeFarmingEnums.h:332
toc_Beet
Definition: LandscapeFarmingEnums.h:785
tov_DKOGrassGrazed_Perm
Definition: LandscapeFarmingEnums.h:454
VegElement::ResetGeese
void ResetGeese(void)
Reset geese numbers to zero in case this was not done by the population manager (the normal situation...
Definition: Elements.cpp:2645
LE::m_minx
int m_minx
Definition: Elements.h:550
VegElement::GetVegDensity
virtual int GetVegDensity(void)
Definition: Elements.h:713
tole_SmallRoad
Definition: LandscapeFarmingEnums.h:82
CreateLETypeClass
LE_TypeClass * CreateLETypeClass()
Definition: Elements.cpp:3434
LE::SetMaxY
void SetMaxY(int y)
Definition: Elements.h:402
Pesticide::DailyQueueAdd
void DailyQueueAdd(LE *a_element_sprayed, double a_amount, PlantProtectionProducts a_ppp, int a_drifttype=0)
Adds new pesticide spray event to the daily queue.
Definition: Pesticide.cpp:343
tov_DKWinterRye
Definition: LandscapeFarmingEnums.h:419
tov_WinterBarleyStrigling
Definition: LandscapeFarmingEnums.h:221
VegElement::GetVegCover
virtual double GetVegCover(void)
Definition: Elements.h:705
tov_FIGreenFallow_Perm
Definition: LandscapeFarmingEnums.h:572
LE::GetVegBiomass
virtual double GetVegBiomass(void)
Definition: Elements.h:164
VegElement::m_insect_biomass_parameters_index
int m_insect_biomass_parameters_index
Definition: Elements.h:692
g_nectarpollen
class PollenNectarDevelopmentData * g_nectarpollen
Definition: Plants.cpp:41
PlantGrowthData::GetLAgreenDiffScaled
double GetLAgreenDiffScaled(double a_ddegs, double a_yddegs, int a_plant, int a_phase, double a_scaler)
Get the differential in LA green for the day degrees experienced, scalable depending on plant growth ...
Definition: Plants.h:136
LE::GetNectarQuantity
virtual double GetNectarQuantity()
Gets the nectar quantity for this landscape element.
Definition: Elements.h:490
Orchard::Orchard
Orchard(Landscape *L)
Definition: Elements.cpp:3129
LE::m_att_woody
bool m_att_woody
Definition: Elements.h:611
tov_PotatoesIndustry
Definition: LandscapeFarmingEnums.h:212
tov_DECabbage
Definition: LandscapeFarmingEnums.h:472
tov_DKPlantNursery_Perm
Definition: LandscapeFarmingEnums.h:458
janfirst
Definition: Plants.h:52
tov_DKOOrchCherry
Definition: LandscapeFarmingEnums.h:468
tov_UKWinterWheat
Definition: LandscapeFarmingEnums.h:287
tov_FRGrassland_Perm
Definition: LandscapeFarmingEnums.h:589
VegElement::m_biomass_scale
static double m_biomass_scale[tov_Undefined]
Definition: Elements.h:694
tov_DEWinterRye
Definition: LandscapeFarmingEnums.h:506
Field::Field
Field(Landscape *L)
Definition: Elements.cpp:2757
tole_Airport
Definition: LandscapeFarmingEnums.h:131
toc_GrazingPigs
Definition: LandscapeFarmingEnums.h:811
tov_BEWinterBarley
Definition: LandscapeFarmingEnums.h:301
tov_DKGrassTussocky_Perm
Definition: LandscapeFarmingEnums.h:435
tole_BuiltUpWithParkland
Definition: LandscapeFarmingEnums.h:102
LE::ChangeTotalNectar
virtual void ChangeTotalNectar(double a_amount)
Removes a_amount from total LE nectar.
Definition: Elements.h:500
tov_DETriticale
Definition: LandscapeFarmingEnums.h:505
LE::SetSprayPPPRate
void SetSprayPPPRate(double a_rate)
Set the sprayed pesticide application rate.
Definition: Elements.h:472
LE::IsRecentlySprayed
int IsRecentlySprayed(void)
Definition: Elements.h:236
l_el_weed_slope
static CfgFloat l_el_weed_slope("ELEM_WEED_SLOPE", CFG_PRIVATE, 0.15)
tole_ChestnutForest
Definition: LandscapeFarmingEnums.h:143
LE::SetVegHeight
virtual void SetVegHeight(double)
Definition: Elements.h:177
tov_DKOSpringBarley
Definition: LandscapeFarmingEnums.h:363
tole_ChristmasTrees
Definition: LandscapeFarmingEnums.h:156
toc_OCloverGrassGrazed2
Definition: LandscapeFarmingEnums.h:827
tov_PermanentGrassLowYield
Definition: LandscapeFarmingEnums.h:225
toc_PotatoesSeed
Definition: LandscapeFarmingEnums.h:893
LE::GetDeadBiomass
virtual double GetDeadBiomass(void)
Definition: Elements.h:163
LE::m_herbicidedelay
int m_herbicidedelay
Definition: Elements.h:573
tov_FIOStarchPotato_North
Definition: LandscapeFarmingEnums.h:529
tov_PLFodderLucerne1
Definition: LandscapeFarmingEnums.h:243
tov_DKWinterFodderGrass
Definition: LandscapeFarmingEnums.h:378
LE::TogglePigGrazing
virtual void TogglePigGrazing(void)
Definition: Elements.h:172
cfg_pest_productapplic_period
CfgInt cfg_pest_productapplic_period
Period for applying pesticide.
Definition: Elements.cpp:169
LE::GetSugar
virtual double GetSugar()
Gets the nectar quality (sugar) for this landscape element.
Definition: Elements.h:492
LE::m_poison
bool m_poison
Definition: Elements.h:618
FlowerStripWithRotation
Element class for flower strips.
Definition: Elements.h:1013
LE::m_PollenNectarFlag
bool m_PollenNectarFlag
Records whether there is any pollen possibility here or not.
Definition: Elements.h:662
LE::SetOpenness
void SetOpenness(int a_openness)
Records the openness statistic for this polygon.
Definition: Elements.h:448
toc_OTriticale
Definition: LandscapeFarmingEnums.h:876
LE::Set_Att_Woody
void Set_Att_Woody(bool a_woody)
Definition: Elements.h:206
tov_FieldPeasStrigling
Definition: LandscapeFarmingEnums.h:218
VegElement::m_weed_curve_num
int m_weed_curve_num
Definition: Elements.h:850
tov_FIOCaraway2
Definition: LandscapeFarmingEnums.h:568
EL_BUG_PERCENT_A
#define EL_BUG_PERCENT_A
Definition: Elements.cpp:32
Orchard::Cutting
void Cutting(int a_today)
Definition: Elements.cpp:3177
toc_Horticulture
Definition: LandscapeFarmingEnums.h:812
tole_PermanentSetaside
Definition: LandscapeFarmingEnums.h:68
VegElement::m_nutrient_status
int m_nutrient_status
Definition: Elements.h:853
tov_FISprSpringBarley_Fodder
Definition: LandscapeFarmingEnums.h:554
tov_DELegumes
Definition: LandscapeFarmingEnums.h:476
l_el_rv_cut_sep
static CfgInt l_el_rv_cut_sep("ELEM_RV_CUT_SEP", CFG_PRIVATE, 49)
tov_DEWinterRape
Definition: LandscapeFarmingEnums.h:508
toc_FodderLucerne1
Definition: LandscapeFarmingEnums.h:804
toc_WinterRape
Definition: LandscapeFarmingEnums.h:919
tov_PLMaizeSilage
Definition: LandscapeFarmingEnums.h:240
cfg_farm_cattle_grazing_lvl_lowyield
CfgInt cfg_farm_cattle_grazing_lvl_lowyield
VegElement::IsMaize
bool IsMaize()
Definition: Elements.h:785
LE::SetVegGrowthScalerRand
virtual void SetVegGrowthScalerRand()
Definition: Elements.h:156
LE::m_centroidx
int m_centroidx
Definition: Elements.h:541
tov_OrchardCrop
Definition: LandscapeFarmingEnums.h:227
tov_UKPermanentGrass
Definition: LandscapeFarmingEnums.h:281
PollenNectarData::m_quantity
double m_quantity
Definition: PollenNectar.h:167
VegElement::ForceGrowthSpringTest
void ForceGrowthSpringTest(void)
Definition: Elements.cpp:2443
tov_PTShrubPastures
Definition: LandscapeFarmingEnums.h:318
CfgBool::value
bool value() const
Definition: Configurator.h:164
tov_PLWinterTriticale
Definition: LandscapeFarmingEnums.h:235
tov_DKPotato
Definition: LandscapeFarmingEnums.h:404
tov_DKSetAside_SummerMow
Definition: LandscapeFarmingEnums.h:410
Field::GetAphidDensity
int GetAphidDensity()
Definition: Elements.cpp:2800
LE::m_birdmaizeforage
double m_birdmaizeforage
The maize forage present in seeds/m2.
Definition: Elements.h:591
toc_OFieldPeasSilage
Definition: LandscapeFarmingEnums.h:832
toc_OSBarleySilage
Definition: LandscapeFarmingEnums.h:860
tov_DEHerbsPerennial_after1year
Definition: LandscapeFarmingEnums.h:514
LE::m_management_loop_detect_date
long m_management_loop_detect_date
Definition: Elements.h:554
tov_DEOBushFruitPerm
Definition: LandscapeFarmingEnums.h:521
tole_UrbanNoVeg
Definition: LandscapeFarmingEnums.h:100
Pond::m_pondpesticide
double m_pondpesticide
Holds the pesticide content per unit pond water.
Definition: Elements.h:1162
toc_OSpringBarleyCloverGrass
Definition: LandscapeFarmingEnums.h:866
toc_Triticale
Definition: LandscapeFarmingEnums.h:912
tov_PLSpringBarley
Definition: LandscapeFarmingEnums.h:238
tole_Chameleon
Definition: LandscapeFarmingEnums.h:182
tole_OAsparagusPerm
Definition: LandscapeFarmingEnums.h:178
cfg_PermanentVegGrowthMaxScalerField
CfgFloat cfg_PermanentVegGrowthMaxScalerField("VEG_FIELDGROWTHSCALERMAX", CFG_CUSTOM, 1.100)
Scales the growth of vegetation - max value.
tov_BEPotatoes
Definition: LandscapeFarmingEnums.h:299
cfg_farm_cattle_grazing_lvl_pasture
CfgInt cfg_farm_cattle_grazing_lvl_pasture
tov_FIFabaBean
Definition: LandscapeFarmingEnums.h:551
LE::m_lastindex
unsigned int m_lastindex
Definition: Elements.h:628
Pond::SetMaleNewtPresent
virtual void SetMaleNewtPresent(bool a_ispresent)
Sets a male as present/absent.
Definition: Elements.h:1182
g_Species
TTypesOfPopulation g_Species
Definition: PopulationManager.cpp:101
LE::GetWeedBiomass
virtual double GetWeedBiomass(void)
Definition: Elements.h:165
VegElement::SetVegGrowthScalerRand
virtual void SetVegGrowthScalerRand()
Definition: Elements.cpp:1277
tov_DKOSpringBarley_CC
Definition: LandscapeFarmingEnums.h:432
tov_DKOCloverGrassGrazed2
Definition: LandscapeFarmingEnums.h:375
g_el_tramline_decaytime_days
CfgInt g_el_tramline_decaytime_days("ELEM_TRAMLINE_DECAYTIME_DAYS", CFG_PRIVATE, 21)
toc_PlantNursery
Definition: LandscapeFarmingEnums.h:890
tov_DKOLentils
Definition: LandscapeFarmingEnums.h:434
RV_CUT_JUL
#define RV_CUT_JUL
Definition: Elements.cpp:260
RV_MAY_1ST
#define RV_MAY_1ST
Definition: Elements.cpp:272
tole_MontadoHolmOak
Definition: LandscapeFarmingEnums.h:137
tov_FIOTurnipRape
Definition: LandscapeFarmingEnums.h:534
tov_BroadBeans
Definition: LandscapeFarmingEnums.h:228
tov_DKCloverGrassGrazed3
Definition: LandscapeFarmingEnums.h:372
cfg_goose_MaizeDecayRateWinter
CfgFloat cfg_goose_MaizeDecayRateWinter
The decay rate for spilled maize for Harvest to Spring.
Definition: Elements.cpp:177
tov_FRWinterBarley
Definition: LandscapeFarmingEnums.h:582
tole_UnknownGrass
Definition: LandscapeFarmingEnums.h:113
tov_PTCabbage
Definition: LandscapeFarmingEnums.h:330
tov_DKOSpringFodderGrass
Definition: LandscapeFarmingEnums.h:380
LE::GetSprayedToday
bool GetSprayedToday()
Definition: Elements.h:368
LE::ToggleIrrigation
virtual void ToggleIrrigation(void)
Definition: Elements.h:173
tov_FIPotatoIndustry_South
Definition: LandscapeFarmingEnums.h:544
tov_DKSetAside
Definition: LandscapeFarmingEnums.h:409
cfg_month_varying_flower_base_temp
CfgInt cfg_month_varying_flower_base_temp("MONTH_VARING_FLOWER_BASE_TEMP", CFG_CUSTOM, 10)
Starting month for varying base development temperature for flower resource model.
toc_GenericCatchCrop
Definition: LandscapeFarmingEnums.h:806
LE::Set_Att_VegCereal
virtual void Set_Att_VegCereal(bool)
Definition: Elements.h:218
toc_SpringBarley
Definition: LandscapeFarmingEnums.h:901
tov_UKTempGrass
Definition: LandscapeFarmingEnums.h:284
cfg_field_boundary_cut_start
static CfgArray_Int cfg_field_boundary_cut_start("FIELD_BOUNDARY_CUT_START", CFG_CUSTOM, 2, vector< int > {9999, 9999})
First dates of cutting for field boundaries with grass.
tov_PTVineyards
Definition: LandscapeFarmingEnums.h:320
VegElement::Insecticide
virtual void Insecticide(double a_fraction)
Definition: Elements.h:757
toc_Fallow
Definition: LandscapeFarmingEnums.h:797
tole_AlmondPlantation
Definition: LandscapeFarmingEnums.h:168
cfg_FloweringPeriodPhasesLengthArray
CfgArray_Double cfg_FloweringPeriodPhasesLengthArray
Vector to store the length proportion for flowering period phases.
tov_DKPotatoSeed
Definition: LandscapeFarmingEnums.h:406
l_el_growth_daydeg_magic
static CfgInt l_el_growth_daydeg_magic("ELEM_GROWTH_DAYDEG_MAGIC", CFG_PRIVATE, 100)
tov_DKWinterCloverGrassGrazedSown
Definition: LandscapeFarmingEnums.h:369
toc_OWinterWheatUndersown
Definition: LandscapeFarmingEnums.h:883
tov_NLPermanentGrassGrazed
Definition: LandscapeFarmingEnums.h:261
toc_MaizeSpring
Definition: LandscapeFarmingEnums.h:815
tov_PLWinterRye
Definition: LandscapeFarmingEnums.h:236
tov_DKSpringBarley
Definition: LandscapeFarmingEnums.h:361
tov_OSBarleySilage
Definition: LandscapeFarmingEnums.h:218
LE_TypeClass::TranslateEleTypes
TTypesOfLandscapeElement TranslateEleTypes(int EleReference)
Definition: Elements.cpp:3582
MownGrassStrip
Definition: Elements.h:1131
FlowerStripWithRotation::m_DateHarrow
long m_DateHarrow
Definition: Elements.h:1026
tole_FishFarm
Definition: LandscapeFarmingEnums.h:124
LE::m_valid_x
int m_valid_x
Definition: Elements.h:539
LE::m_weedddegs
double m_weedddegs
Definition: Elements.h:624
LE::m_smallroad_load
static double m_smallroad_load[]
Definition: Elements.h:632
VegElement::m_interested_biomass_fraction
double m_interested_biomass_fraction
Fraction of the the interested biomass.
Definition: Elements.h:696
tov_FieldPeas
Definition: LandscapeFarmingEnums.h:203
LE::SetSprayedToday
void SetSprayedToday(bool a_didit)
Definition: Elements.h:367
TTypesOfLandscapeElement
TTypesOfLandscapeElement
Values that represent the types of landscape polygon that are represented in ALMaSS.
Definition: LandscapeFarmingEnums.h:57
VegElement::PollenNectarPhenologyCalculation
virtual void PollenNectarPhenologyCalculation()
This methods calculates the daily availability of pollen and nectar per square meter and in total.
Definition: Elements.cpp:2227
tov_DKOCatchCrop
Definition: LandscapeFarmingEnums.h:421
TOP_Aphid
Definition: PopulationManager.h:75
tole_Railway
Definition: LandscapeFarmingEnums.h:61
cfg_beer_law_extinction_coef
CfgFloat cfg_beer_law_extinction_coef("BEER_LAW_EXTINCTION_COEF", CFG_CUSTOM, 0.6)
The extiction coefficient that is used in Beer's law.
LE::m_vegage
int m_vegage
Definition: Elements.h:604
tole_Parkland
Definition: LandscapeFarmingEnums.h:99
VegElement::IsGooseGrass
bool IsGooseGrass()
Definition: Elements.h:787
Landscape
The landscape class containing all environmental and topographical data.
Definition: Landscape.h:142
MownGrassStrip::Cutting
void Cutting(int a_today)
Definition: Elements.cpp:3244
cfg_weight_cold_flower_resource
CfgFloat cfg_weight_cold_flower_resource("WEIGHT_CODE_FLOWER_RESOURCE", CFG_CUSTOM, 0.8)
Weight to shorten flowering period and decreasing resource amount when it is cold.
tov_PTPotatoes
Definition: LandscapeFarmingEnums.h:328
tov_FIGrasslandSilagePerennial2
Definition: LandscapeFarmingEnums.h:559
LE::AddArea
void AddArea(double a_area_diff)
Definition: Elements.h:380
TOP_Partridge
Definition: PopulationManager.h:64
tov_DKLegume_Beans
Definition: LandscapeFarmingEnums.h:358
LE::m_almass_le_type
int m_almass_le_type
This holds the ALMaSS element type reference number.
Definition: Elements.h:569
VegElement::GrazeVegetationHeight
virtual void GrazeVegetationHeight(double a_reduc)
Definition: Elements.cpp:2664
VegElement::m_weed_biomass
double m_weed_biomass
Definition: Elements.h:864
EL_MAX_USERSPACE
#define EL_MAX_USERSPACE
Definition: Elements.h:53
toc_OMixedVeg
Definition: LandscapeFarmingEnums.h:842
LE::GetLAGreen
virtual double GetLAGreen(void)
Definition: Elements.h:158
ForestElement::ForestElement
ForestElement(TTypesOfLandscapeElement tole, Landscape *L)
Definition: Elements.cpp:3316
cfg_pest_productapplic_startdate2
CfgInt cfg_pest_productapplic_startdate2
Start date for applying pesticide the second.
toc_SetAside
Definition: LandscapeFarmingEnums.h:899
tov_DKWinterRye_CC
Definition: LandscapeFarmingEnums.h:424
EL_BUG_PERCENT_WW_B
#define EL_BUG_PERCENT_WW_B
Definition: Elements.cpp:45
cfg_calc_pond_pesticide
CfgBool cfg_calc_pond_pesticide("POND_PEST_CALC_ON", CFG_CUSTOM, false)
Flag to determine whether to calculate pond pesticide concentration.
ForestElement::DoDevelopment
virtual void DoDevelopment(void)
Definition: Elements.h:1096
LE::m_lasttreat
vector< int > m_lasttreat
Definition: Elements.h:627
PastureElement
Definition: Elements.h:1102
tov_FIOFabaBean
Definition: LandscapeFarmingEnums.h:552
toc_OSpringBarleyExtensive
Definition: LandscapeFarmingEnums.h:867
toc_WinterBarley
Definition: LandscapeFarmingEnums.h:918
l_el_o_cut_green
CfgFloat l_el_o_cut_green("ELEM_RV_CUT_GREEN", CFG_PRIVATE, 1.5)
tov_DKCarrots
Definition: LandscapeFarmingEnums.h:353
tov_NLPotatoesSpring
Definition: LandscapeFarmingEnums.h:265
tov_NLOrchardCrop
Definition: LandscapeFarmingEnums.h:271
LE::m_birdseedforage
double m_birdseedforage
The grain forage present in seeds/m2.
Definition: Elements.h:589
LE::Is_Att_VegGrass
virtual bool Is_Att_VegGrass()
Definition: Elements.h:219
tov_DKOSpringBarleyCloverGrass
Definition: LandscapeFarmingEnums.h:364
tov_WinterBarley
Definition: LandscapeFarmingEnums.h:215
tov_DKOGrazingPigs
Definition: LandscapeFarmingEnums.h:385
LE::SetAspect
void SetAspect(double a_aspect)
Definition: Elements.h:452
LE::GetOpenness
int GetOpenness(void)
For goose model functionality, openness score for the polygon.
Definition: Elements.h:414
VegElement
Definition: Elements.h:686
tole_OliveGrove
Definition: LandscapeFarmingEnums.h:149
l_el_veg_start_lait
static CfgFloat l_el_veg_start_lait("ELEM_VEG_START_LAIT", CFG_PRIVATE, 1.08)
tov_UKPotatoes
Definition: LandscapeFarmingEnums.h:282
tov_FRSpringBarley
Definition: LandscapeFarmingEnums.h:587
tole_Coast
Definition: LandscapeFarmingEnums.h:89
VegElement::SetCropType
virtual void SetCropType(TTypesOfCrops a_type)
Definition: Elements.h:722
tov_IRGrassland_no_reseed
Definition: LandscapeFarmingEnums.h:599
cfg_flowerstripCutEnd
static CfgInt cfg_flowerstripCutEnd("ELE_FLOWERSTRIPCUT_END", CFG_CUSTOM, -1)
Last possible date of cutting for flower strips.
LE::SetRotIndex
void SetRotIndex(int a_index)
Definition: Elements.h:371
UnsprayedFieldMargin::UnsprayedFieldMargin
UnsprayedFieldMargin(Landscape *L)
Definition: Elements.cpp:3299
FlowerStrip::m_DateCut
long m_DateCut
Definition: Elements.h:1007
LE::GrazeVegetationHeight
virtual void GrazeVegetationHeight(double a_reduc)
Definition: Elements.h:295
tov_NLGrassGrazedExtensive1Spring
Definition: LandscapeFarmingEnums.h:275
EL_BUG_PERCENT_WRy_C
#define EL_BUG_PERCENT_WRy_C
Definition: Elements.cpp:52
cfg_flowerstripCutChance
static CfgFloat cfg_flowerstripCutChance("ELE_FLOWERSTRIPCUT_CHANCE", CFG_CUSTOM, 0.0)
If after first date of cutting for flower strips, this is the daily chance it happens.
LE::supplySugDD
virtual double supplySugDD()
Definition: Elements.h:514
tov_OPotatoes
Definition: LandscapeFarmingEnums.h:206
tov_BEWinterBarleyCC
Definition: LandscapeFarmingEnums.h:305
LE_TypeClass
Definition: Elements.h:72
toc_GrassGrazedExtensive
Definition: LandscapeFarmingEnums.h:809
LE::m_default_grazing_level
int m_default_grazing_level
Definition: Elements.h:620
LE::Is_Att_VegPatchy
virtual bool Is_Att_VegPatchy(void)
Definition: Elements.h:215
toc_DummyCropPestTesting
Definition: LandscapeFarmingEnums.h:796
LE::m_pig_grazing
bool m_pig_grazing
Definition: Elements.h:621
tov_FINaturalGrassland
Definition: LandscapeFarmingEnums.h:560
LE::Set_Att_VegGrass
virtual void Set_Att_VegGrass(bool)
Definition: Elements.h:220
Landscape::SupplyPesticide
double SupplyPesticide(int a_x, int a_y, PlantProtectionProducts a_ppp)
Gets total pesticide for a location.
Definition: Landscape.cpp:1386
tov_WWheatPTreatment
Definition: LandscapeFarmingEnums.h:217
tov_OWinterBarleyExt
Definition: LandscapeFarmingEnums.h:227
VegElement::Is_Att_Veg
virtual bool Is_Att_Veg(void)
Definition: Elements.h:767
tov_WinterRapeStrigling
Definition: LandscapeFarmingEnums.h:221
tov_FISpringRape
Definition: LandscapeFarmingEnums.h:535
tov_PTOliveGroveTraditional
Definition: LandscapeFarmingEnums.h:333
LE::GetVegPhase
virtual int GetVegPhase(void)
Definition: Elements.h:144
toc_StarchPotato
Definition: LandscapeFarmingEnums.h:909
tov_DECarrots
Definition: LandscapeFarmingEnums.h:473
tov_FICaraway1
Definition: LandscapeFarmingEnums.h:565
BeetleBank
Definition: Elements.h:982
cfg_pondpesticiderunoff
CfgFloat cfg_pondpesticiderunoff("POND_PEST_RUNOFFFACTOR", CFG_CUSTOM, 10.0)
The multiplication factor assumed to account for ingress of pesticide from run-off and soil water to ...
tov_OCloverGrassGrazed1
Definition: LandscapeFarmingEnums.h:205
LE::Is_Att_VegGooseGrass
virtual bool Is_Att_VegGooseGrass()
Definition: Elements.h:225
tov_SeedGrass1
Definition: LandscapeFarmingEnums.h:212
BeetleBank::BeetleBank
BeetleBank(Landscape *L)
Definition: Elements.cpp:2866
LE::m_skylarkscrapes
bool m_skylarkscrapes
For management testing of skylark scrapes.
Definition: Elements.h:95
Calendar::Date
long Date(void)
Definition: Calendar.h:57
CropActualValues::no_herb_app
int no_herb_app
Definition: Elements.h:679
tov_FIStarchPotato_South
Definition: LandscapeFarmingEnums.h:528
tole_Pond
Definition: LandscapeFarmingEnums.h:123
VegElement::~VegElement
virtual ~VegElement(void)
Definition: Elements.h:699
tov_SpringBarleySilage
Definition: LandscapeFarmingEnums.h:214
toc_Ryegrass
Definition: LandscapeFarmingEnums.h:895
tov_IRWinterWheat
Definition: LandscapeFarmingEnums.h:602
tole_Building
Definition: LandscapeFarmingEnums.h:84
OrchardBand::OrchardBand
OrchardBand(Landscape *L)
Definition: Elements.cpp:3124
VegElement::DoNothing
void DoNothing(void)
The default for SpeciesSpecificCalculations.
Definition: Elements.h:929
LE::m_owner_tole
TTypesOfLandscapeElement m_owner_tole
Definition: Elements.h:575
LE::m_OsmiaNestProb
double m_OsmiaNestProb
to record the chance of osmia nesting
Definition: Elements.h:637
tov_SpringBarleyPTreatment
Definition: LandscapeFarmingEnums.h:225
toc_OStarchPotato
Definition: LandscapeFarmingEnums.h:874
tov_FRPotatoes
Definition: LandscapeFarmingEnums.h:593
LE::DoDevelopment
virtual void DoDevelopment(void)
Definition: Elements.cpp:1107
tov_UKBeet
Definition: LandscapeFarmingEnums.h:279
APoint
A simple class defining an x,y coordinate set.
Definition: ALMaSS_Setup.h:52
tov_DKOSpringWheat
Definition: LandscapeFarmingEnums.h:399
tov_DKOrchCherry
Definition: LandscapeFarmingEnums.h:464
tov_DEPermanentGrassLowYield
Definition: LandscapeFarmingEnums.h:500
toc_OBarleyPeaCloverGrass
Definition: LandscapeFarmingEnums.h:820
tov_DKLegume_Whole
Definition: LandscapeFarmingEnums.h:356
LE::ForceGrowthInitialiseForFirstYearCrop
virtual void ForceGrowthInitialiseForFirstYearCrop(void)
Definition: Elements.h:187
tov_PTOliveGroveSuperIntensive
Definition: LandscapeFarmingEnums.h:336
tov_PTFodderMix
Definition: LandscapeFarmingEnums.h:312
VegElement::InsectMortality
virtual void InsectMortality(double a_fraction)
Definition: Elements.cpp:2843
TOP_Hare
Definition: PopulationManager.h:63
tole_Vineyard
Definition: LandscapeFarmingEnums.h:148
toc_Carrots
Definition: LandscapeFarmingEnums.h:789
tov_DKOLegume_Whole_CC
Definition: LandscapeFarmingEnums.h:428
VegElement::SpeciesSpecificCalculations
void(VegElement::* SpeciesSpecificCalculations)(void)
A useful function pointer that we can use to specify species specific calculations....
Definition: Elements.h:927
VegElement::m_insect_biomass_parameters_a
static double m_insect_biomass_parameters_a[9]
Definition: Elements.h:689
LE::GetSoilType
int GetSoilType()
Definition: Elements.h:302
cfg_field_boundary_cut_end
static CfgArray_Int cfg_field_boundary_cut_end("FIELD_BOUNDARY_CUT_END", CFG_CUSTOM, 2, vector< int > {120, 300})
Last dates of cutting for field boundaries with grass.
tov_Triticale
Definition: LandscapeFarmingEnums.h:215
tole_ForestAisle
Definition: LandscapeFarmingEnums.h:152
CfgBool
Bool configurator entry class.
Definition: Configurator.h:155
g_bug_percent_b
static double g_bug_percent_b[tov_Undefined]
Definition: Elements.cpp:193
WaterBufferZone
Definition: Elements.h:1058
tov_IRSpringBarley
Definition: LandscapeFarmingEnums.h:597
LE::GetGooseNosTodayTimed
int GetGooseNosTodayTimed()
For goose model functionality, returns the number of geese today at a predefined time.
Definition: Elements.cpp:1156
tov_DKOOrchPear
Definition: LandscapeFarmingEnums.h:467
tov_FRSpringOats
Definition: LandscapeFarmingEnums.h:590
tov_PLWinterBarley
Definition: LandscapeFarmingEnums.h:234
LE::GetPollenNectarCurveRef
int GetPollenNectarCurveRef(void)
Returns the pollen nectart curve number.
Definition: Elements.h:519
LE::supplyNecDD
virtual double supplyNecDD()
Definition: Elements.h:513
tov_DKOFarmYoungForest_Perm
Definition: LandscapeFarmingEnums.h:457
tov_DKMaizeSilage
Definition: LandscapeFarmingEnums.h:383
l_el_rv_cut_jul
static CfgInt l_el_rv_cut_jul("ELEM_RV_CUT_JUL", CFG_PRIVATE, 35)
LE::m_olddays
long m_olddays
Definition: Elements.h:553
LE::m_goosegrazingforage
double m_goosegrazingforage[gs_foobar]
The grazing forage present in KJ/min. The last value indicates cereal 1 or not -1.
Definition: Elements.h:593
LE::m_aspect
double m_aspect
Definition: Elements.h:601
tole_OFarmYoungForest
Definition: LandscapeFarmingEnums.h:167
tov_DEOPeas
Definition: LandscapeFarmingEnums.h:488
RV_CUT_HEIGHT
#define RV_CUT_HEIGHT
Definition: Elements.cpp:275
LE::m_maxOsmiaNests
int m_maxOsmiaNests
to record the number of possible osmia nests
Definition: Elements.h:639
tov_NLMaize
Definition: LandscapeFarmingEnums.h:253
tov_AgroChemIndustryCereal
Definition: LandscapeFarmingEnums.h:217
tov_DEGreenFallow_1year
Definition: LandscapeFarmingEnums.h:475
cfg_goose_GrainDecayRateSpring
CfgFloat cfg_goose_GrainDecayRateSpring
The decay rate for spilled grain for Spring until 1st July.
Definition: Elements.cpp:181
tov_NorwegianPotatoes
Definition: LandscapeFarmingEnums.h:230
MownGrassStrip::MownGrassStrip
MownGrassStrip(Landscape *L)
Definition: Elements.cpp:3117
tov_DKOMaize
Definition: LandscapeFarmingEnums.h:386
EL_BUG_PERCENT_SA_A
#define EL_BUG_PERCENT_SA_A
Definition: Elements.cpp:68
tov_OSeedGrass2
Definition: LandscapeFarmingEnums.h:208
tov_FIOPotato_North
Definition: LandscapeFarmingEnums.h:541
l_el_read_bug_percentage_file
static CfgBool l_el_read_bug_percentage_file("ELEM_READ_BUG_PERCENTAGE_FILE", CFG_CUSTOM, false)
tov_DKGrassLowYield_Perm
Definition: LandscapeFarmingEnums.h:461
LE::SetMownDecay
void SetMownDecay(int a_decaytime_days)
Definition: Elements.h:378
toc_FieldPeas
Definition: LandscapeFarmingEnums.h:799
LE::m_map_index
int m_map_index
Definition: Elements.h:567
Field::Tick
void Tick(void) override
Overides the veg element version to skip pollen and nectar reset on Jan 1st.
Definition: Elements.cpp:1101
Landscape::SetGreenBiomassMap
void SetGreenBiomassMap(int a_poly_id, double a_green_biomass, int a_min_x, int a_min_y, int a_max_x, int a_max_y)
The function to set the green biomass (in kg) for all the cells that belong to the given polygon ID....
Definition: Landscape.cpp:4045
tov_FIPotato_South
Definition: LandscapeFarmingEnums.h:540
LE::ReduceVeg
virtual void ReduceVeg(double)
Definition: Elements.h:191
Pond::m_pondquality
double m_pondquality
a factor used to alter the pond qualities (default behaviour is random 0.0-1.0)
Definition: Elements.h:1166
LE::SetVegPatchy
void SetVegPatchy(bool p)
Definition: Elements.h:229
toc_MixedVeg
Definition: LandscapeFarmingEnums.h:817
toc_OVegSeeds
Definition: LandscapeFarmingEnums.h:877
tov_DEOWinterRape
Definition: LandscapeFarmingEnums.h:495
tov_DEOOats
Definition: LandscapeFarmingEnums.h:487
LE::Is_Att_UserDefinedInt
int Is_Att_UserDefinedInt(void)
Definition: Elements.h:211
SmallRoad::GetTrafficLoad
virtual double GetTrafficLoad(void)
Definition: Elements.cpp:3429
FlowerStripWithRotation::m_DateSow
long m_DateSow
Definition: Elements.h:1027
Landscape::SupplyGooseGrazingForageH
double SupplyGooseGrazingForageH(double a_height, GooseSpecies a_goose)
Returns the leaf forage resource as seen from a goose standpoint at a polygon based on the height onl...
Definition: Landscape.h:1075
toc_FieldPeasSilage
Definition: LandscapeFarmingEnums.h:800
tole_PermPastureLowYield
Definition: LandscapeFarmingEnums.h:66
toc_OOrchardCrop
Definition: LandscapeFarmingEnums.h:845
tole_RiversidePlants
Definition: LandscapeFarmingEnums.h:71
EL_GROWTH_PHASE_SHIFT_LEVEL
#define EL_GROWTH_PHASE_SHIFT_LEVEL
Definition: Elements.cpp:230
cfg_UMPatchyChance
static CfgInt cfg_UMPatchyChance("UMPATCHYCHANCE", CFG_CUSTOM, 0)
l_el_o_cut_height
CfgFloat l_el_o_cut_height("ELEM_RV_CUT_HEIGHT", CFG_PRIVATE, 10.0)
ppp_foobar
Definition: LandscapeFarmingEnums.h:1089
tov_Wasteland
Definition: LandscapeFarmingEnums.h:228
tov_DEBushFruitPerm
Definition: LandscapeFarmingEnums.h:520
LE::GetGooseNosToday
int GetGooseNosToday()
For goose model functionality, returns the number of geese today.
Definition: Elements.cpp:1145
tov_NLGrassGrazedExtensive1
Definition: LandscapeFarmingEnums.h:273
tov_PTSorghum
Definition: LandscapeFarmingEnums.h:311
cfg_goose_UniformDecayRate
CfgBool cfg_goose_UniformDecayRate
Use the same grain and maize decay rate (the winter one also for spring)
Definition: Elements.cpp:183
LE::SetMaxX
void SetMaxX(int x)
Definition: Elements.h:401
LE::GetGooseRoostDist
int GetGooseRoostDist(GooseSpecies a_goose)
For goose model functionality, returns the distance to closest roost.
Definition: Elements.cpp:1177
LE::RecalculateBugsNStuff
virtual void RecalculateBugsNStuff(void)
Definition: Elements.h:143
cfg_flowerstripCutStart
static CfgInt cfg_flowerstripCutStart("ELE_FLOWERSTRIPCUT_START", CFG_CUSTOM, 366)
First date of cutting for flower strips.
UnsprayedFieldMargin::DoDevelopment
virtual void DoDevelopment(void)
Definition: Elements.cpp:3305
LE::GetSlope
double GetSlope(void)
Definition: Elements.h:417
tov_DEHerbsPerennial_1year
Definition: LandscapeFarmingEnums.h:513
Hedges
Definition: Elements.h:960
tov_DKUndefined
Definition: LandscapeFarmingEnums.h:415
tov_DKOOrchOther
Definition: LandscapeFarmingEnums.h:469
VegElement::Set_Att_VegMaize
virtual void Set_Att_VegMaize(bool p)
Definition: Elements.h:776
LE::GetVegHeight
virtual double GetVegHeight(void)
Definition: Elements.h:148
toc_OFieldPeas
Definition: LandscapeFarmingEnums.h:831
tov_DEOMaize
Definition: LandscapeFarmingEnums.h:485
VegElement::GetVegHeight
virtual double GetVegHeight(void)
Definition: Elements.h:706
tov_FRWinterWheat
Definition: LandscapeFarmingEnums.h:581
VegElement::Set_Att_VegMatureCereal
virtual void Set_Att_VegMatureCereal(bool p)
Definition: Elements.h:774
tole_HolmOakForest
Definition: LandscapeFarmingEnums.h:141
VegElement::ForceGrowthDevelopment
virtual void ForceGrowthDevelopment(void)
Definition: Elements.cpp:2531
g_letype
class LE_TypeClass * g_letype
Definition: Elements.cpp:806
tov_PermanentSetAside
Definition: LandscapeFarmingEnums.h:211
Pond::SupplyPondPesticide
double SupplyPondPesticide()
supply the current pesticide concentration per litre
Definition: Elements.h:1180
LE::m_miny
int m_miny
Definition: Elements.h:552
LE::GetPollen
virtual PollenNectarData GetPollen()
Gets the pollen quantity & quality for this landscape element.
Definition: Elements.h:482
RV_CUT_MAY
#define RV_CUT_MAY
Definition: Elements.cpp:254
tov_DEPotatoes
Definition: LandscapeFarmingEnums.h:502
LE::GetPollenQuantity
virtual double GetPollenQuantity()
Gets the pollen quantity for this landscape element.
Definition: Elements.h:486
EL_BUG_PERCENT_Edges_A
#define EL_BUG_PERCENT_Edges_A
Definition: Elements.cpp:74
tole_Saltpans
Definition: LandscapeFarmingEnums.h:133
LE_Signal
unsigned int LE_Signal
Definition: Elements.h:34
tole_UrbanPark
Definition: LandscapeFarmingEnums.h:101
tov_PLBeans
Definition: LandscapeFarmingEnums.h:249
tole_ActivePit
Definition: LandscapeFarmingEnums.h:85
VegElement::m_acc_DD_flower_resource
double m_acc_DD_flower_resource
Contains the day degrees since the sowing, this is only used for the crops.
Definition: Elements.h:922
VegElement::m_SeasonalInsectScaler
static double m_SeasonalInsectScaler[12]
Definition: Elements.h:693
cfg_MGPatchyChance
static CfgFloat cfg_MGPatchyChance("MOWNGRASSPATCHYCHANCE", CFG_CUSTOM, 0.5)
The chance that a beetlebank being created is patchy or not.
tov_FIGrasslandSilageAnnual
Definition: LandscapeFarmingEnums.h:564
Orchard::m_DateCut
long m_DateCut
Definition: Elements.h:1111
tole_NaturalFarmGrass
Definition: LandscapeFarmingEnums.h:171
VegElement::Is_Att_VegPatchy
virtual bool Is_Att_VegPatchy(void)
Definition: Elements.h:769
toc_PotatoesIndustry
Definition: LandscapeFarmingEnums.h:892
LE::m_Landscape
Landscape * m_Landscape
Definition: Elements.h:524
VegElement::Set_Att_Veg
virtual void Set_Att_Veg(bool p)
Definition: Elements.h:768
tov_WinterRyeStrigling
Definition: LandscapeFarmingEnums.h:221
TOP_NoSpecies
Definition: PopulationManager.h:58
VegElement::GetGreenBiomassProp
virtual double GetGreenBiomassProp(void)
Definition: Elements.h:711
tov_DEOGreenFallow_1year
Definition: LandscapeFarmingEnums.h:483
LE::SetPoly
void SetPoly(int a_poly)
Definition: Elements.h:288
tov_SpringBarleyCloverGrassStrigling
Definition: LandscapeFarmingEnums.h:220
RoadsideVerge::RoadsideVerge
RoadsideVerge(TTypesOfLandscapeElement tole, Landscape *L)
Definition: Elements.cpp:3031
tole_OFarmForest
Definition: LandscapeFarmingEnums.h:161
tole_NaturalGrassDry
Definition: LandscapeFarmingEnums.h:70
tov_DKOptimalFlowerMix1
Definition: LandscapeFarmingEnums.h:436
Pond::m_LarvalFoodScaler
double m_LarvalFoodScaler
The proportion of larval food per m2
Definition: Elements.h:1160
LE::m_flowering_phases
vector< int > m_flowering_phases
The array to store the day numbers of for turning point of flower resource.
Definition: Elements.h:652
VegElement::m_att_veg_goosegrass
bool m_att_veg_goosegrass
Definition: Elements.h:875
tov_FISpringBarley_Malt
Definition: LandscapeFarmingEnums.h:549
l_el_rv_cut_green
static CfgFloat l_el_rv_cut_green("ELEM_RV_CUT_GREEN", CFG_PRIVATE, 1.5)
tov_DKWinterBarley
Definition: LandscapeFarmingEnums.h:417
toc_FodderLucerne2
Definition: LandscapeFarmingEnums.h:805
VegElement::m_att_veg_cereal
bool m_att_veg_cereal
Definition: Elements.h:871
tov_UKBeans
Definition: LandscapeFarmingEnums.h:278
LE::GetVegDensity
virtual int GetVegDensity(void)
Definition: Elements.h:154
PollenNectarDevelopmentData
A class to manage a range of pollen and nectar development curves based on indexed rates.
Definition: PollenNectar.h:174
OrchardBand::m_LastSprayed
long m_LastSprayed
Definition: Elements.h:1122
tov_DESugarBeet
Definition: LandscapeFarmingEnums.h:471
tov_DEOOrchard
Definition: LandscapeFarmingEnums.h:519
VegElement::SetInsectPop
virtual void SetInsectPop(double insects)
Definition: Elements.h:719
tov_NLBeet
Definition: LandscapeFarmingEnums.h:251
tov_OCarrots
Definition: LandscapeFarmingEnums.h:205
MapErrorMsg::Warn
void Warn(MapErrorState a_level, std::string a_msg1, std::string a_msg2)
Definition: MapErrorMsg.cpp:69
RoadsideVerge
Definition: Elements.h:1045
tov_OFirstYearDanger
Definition: LandscapeFarmingEnums.h:206
tov_NLBeetSpring
Definition: LandscapeFarmingEnums.h:262
HedgeBank::DoDevelopment
virtual void DoDevelopment(void)
Definition: Elements.h:975
tov_FIOSpringBarley_Malt
Definition: LandscapeFarmingEnums.h:550
cfg_SeasonalInsectScaler
CfgArray_Double cfg_SeasonalInsectScaler("ELE_SEASONAL_INSECT_SCALER", CFG_CUSTOM, 12, vector< double > {0.1, 0.1, 0.15, 0.25, 0.75, 1.0, 1.0, 1.0, 0.9, 0.75, 0.25, 0.1 })
Monthly scaler for insect biomass vs veg biomass.
g_bug_percent_c
static double g_bug_percent_c[tov_Undefined]
Definition: Elements.cpp:194
tov_PlantNursery
Definition: LandscapeFarmingEnums.h:228
tov_IRGrassland_reseed
Definition: LandscapeFarmingEnums.h:600
LE::ForceGrowthDevelopment
virtual void ForceGrowthDevelopment(void)
Definition: Elements.h:189
CfgArray_Double
Definition: Configurator.h:208
LE::m_lastsownvegtype
TTypesOfVegetation m_lastsownvegtype
Records the last vegegetation type that was sown on the element.
Definition: Elements.h:595
LE::GetCattleGrazing
int GetCattleGrazing(void)
Definition: Elements.h:232
tov_SpringBarley
Definition: LandscapeFarmingEnums.h:214
tole_MownGrassStrip
Definition: LandscapeFarmingEnums.h:96
LE::GetRotIndex
int GetRotIndex(void)
Definition: Elements.h:373
LE::m_att_userdefinedint
int m_att_userdefinedint
a userdefined attribute which can be set by a species model without changing other standard values
Definition: Elements.h:616
LE::SetPesticideCell
void SetPesticideCell(int a_cell)
Definition: Elements.h:387
tov_FIGrasslandSilagePerennial1
Definition: LandscapeFarmingEnums.h:558
LE::Set_Att_VegPatchy
virtual void Set_Att_VegPatchy(bool)
Definition: Elements.h:216
tov_WinterWheatStriglingSingle
Definition: LandscapeFarmingEnums.h:224
tov_DKGrassGrazed_Perm
Definition: LandscapeFarmingEnums.h:460
LE::GetCentroid
virtual APoint GetCentroid()
Definition: Elements.cpp:1110
PlantGrowthData::GetHeightDiff
double GetHeightDiff(double a_ddegs, double a_yddegs, int a_plant, int a_phase)
Get the differential in veg height for the day degrees experienced.
Definition: Plants.h:125
tov_FIStarchPotato_North
Definition: LandscapeFarmingEnums.h:527
tov_PTOats
Definition: LandscapeFarmingEnums.h:327
tov_OSetAside
Definition: LandscapeFarmingEnums.h:208
LE::supplyPolDD
virtual double supplyPolDD()
Definition: Elements.h:515
EL_GROWTH_DATE_MAGIC
#define EL_GROWTH_DATE_MAGIC
Definition: Elements.cpp:224
VegElement::m_newoldgrowthindex
int m_newoldgrowthindex
Definition: Elements.h:886
EL_BUG_PERCENT_SB_B
#define EL_BUG_PERCENT_SB_B
Definition: Elements.cpp:39
LE::GetSkScrapes
virtual bool GetSkScrapes(void)
Definition: Elements.h:155
g_el_strigling_delaytime_days
CfgInt g_el_strigling_delaytime_days("ELEM_STRIGLING_DELAYTIME_DAYS", CFG_PRIVATE, 14)
LE::SetGrazingLevel
virtual void SetGrazingLevel(int)
Definition: Elements.h:180
VegElement::m_veg_biomass
double m_veg_biomass
Definition: Elements.h:858
tov_FISpringWheat
Definition: LandscapeFarmingEnums.h:531
toc_OSpringRye
Definition: LandscapeFarmingEnums.h:872
tov_PTWinterWheat
Definition: LandscapeFarmingEnums.h:309
tov_SpringWheat
Definition: LandscapeFarmingEnums.h:215
LE::Is_Att_Water
bool Is_Att_Water(void)
Definition: Elements.h:201
tov_FlowerStrip3
Definition: LandscapeFarmingEnums.h:200
LE::m_yddegs
double m_yddegs
Definition: Elements.h:623
cfg_randompondquality
CfgBool cfg_randompondquality("POND_RANDOMQUALITY", CFG_CUSTOM, false)
Controls whether random pond quality is used.
LE::Is_Att_UserDefinedBool
bool Is_Att_UserDefinedBool(void)
Definition: Elements.h:209
tole_RefuseSite
Definition: LandscapeFarmingEnums.h:129
tov_FIOSpringWheat
Definition: LandscapeFarmingEnums.h:532
tov_DKOWinterWheat_CC
Definition: LandscapeFarmingEnums.h:423
tov_DKBushFruit_Perm1
Definition: LandscapeFarmingEnums.h:442
LE::GetElevation
double GetElevation(void)
Get elevation data.
Definition: Elements.h:416
tov_DKPotatoIndustry
Definition: LandscapeFarmingEnums.h:405
tole_FarmYoungForest
Definition: LandscapeFarmingEnums.h:166
tov_DEPermanentGrassGrazed
Definition: LandscapeFarmingEnums.h:499
tov_NLSpringBarleySpring
Definition: LandscapeFarmingEnums.h:266
APoint::m_x
int m_x
Definition: ALMaSS_Setup.h:55
toc_OOats
Definition: LandscapeFarmingEnums.h:843
tole_DeciduousForest
Definition: LandscapeFarmingEnums.h:74
SmallRoad
Definition: Elements.h:1196
tov_DKCerealLegume
Definition: LandscapeFarmingEnums.h:365
tole_FlowerStrip
Definition: LandscapeFarmingEnums.h:179
CfgArray_Double::get_array_size
int get_array_size()
Definition: Configurator.h:222
tov_UKMaize
Definition: LandscapeFarmingEnums.h:280
cfg_goose_GrainDecayRateWinter
CfgFloat cfg_goose_GrainDecayRateWinter
The decay rate for spilled grain for Harvest to Spring.
Definition: Elements.cpp:175
Pond::Pond
Pond(Landscape *L)
Definition: Elements.cpp:3328
CropActualValues::tov_type
TTypesOfVegetation tov_type
Definition: Elements.h:675
tole_GreenFallow
Definition: LandscapeFarmingEnums.h:172
tov_OWinterRape
Definition: LandscapeFarmingEnums.h:209
tole_Track
Definition: LandscapeFarmingEnums.h:81
tov_DKOBushFruit_Perm1
Definition: LandscapeFarmingEnums.h:444
Landscape::SupplyFarmIntensity
double SupplyFarmIntensity(int a_x, int a_y)
Returns the farm intensity classification of the polygon using the polygon reference number a_polyref...
Definition: Landscape.cpp:1746
tole_PermPastureTussocky
Definition: LandscapeFarmingEnums.h:67
CreateLETypeClass
LE_TypeClass * CreateLETypeClass()
Definition: Elements.cpp:3434
l_el_rv_cut_oct
static CfgInt l_el_rv_cut_oct("ELEM_RV_CUT_OCT", CFG_PRIVATE, 49)
tole_HeritageSite
Definition: LandscapeFarmingEnums.h:112
cfg_clover_interested_biomass_fraction
CfgFloat cfg_clover_interested_biomass_fraction("CLOVER_INTERESTED_BIOMASS_FRACTION", CFG_CUSTOM, 0.4)
The interested biomass fraction for clover crop.
tov_SESpringBarley
Definition: LandscapeFarmingEnums.h:576
VegElement::ResetDigestibility
virtual void ResetDigestibility()
sets growth record to zero
Definition: Elements.h:835
PlantGrowthData::GetStartValue
double GetStartValue(int a_veg_type, int a_phase, int a_type)
Definition: Plants.h:142
tole_MaritimePineForest
Definition: LandscapeFarmingEnums.h:146
VegElement::GetLATotal
virtual double GetLATotal(void)
Definition: Elements.h:703
PlantGrowthData::GetHeightDiffScaled
double GetHeightDiffScaled(double a_ddegs, double a_yddegs, int a_plant, int a_phase, double a_scaler)
Get the differential in veg height for the day degrees experienced, scalable depending on plant growt...
Definition: Plants.h:140
VegElement::m_crop_index
int m_crop_index
Definition: Elements.h:919
tov_DKOLegume_Peas_CC
Definition: LandscapeFarmingEnums.h:427
VegElement::GetSkScrapes
virtual bool GetSkScrapes(void)
Definition: Elements.h:714
g_weed_percent
static double g_weed_percent[tov_Undefined]
Definition: Elements.cpp:191
tole_FieldBoundary
Definition: LandscapeFarmingEnums.h:62
LE::LE
LE(Landscape *L)
Definition: Elements.cpp:808
VegElement::SetInsectBiomassParametersIndex
void SetInsectBiomassParametersIndex(TTypesOfCrops a_type)
Definition: Elements.cpp:1999
Pond::DoDevelopment
virtual void DoDevelopment(void)
Definition: Elements.cpp:3336
EL_BUG_PERCENT_SA_B
#define EL_BUG_PERCENT_SA_B
Definition: Elements.cpp:69
tole_OBushFruit
Definition: LandscapeFarmingEnums.h:155
tov_PermanentGrassTussocky
Definition: LandscapeFarmingEnums.h:211
tov_FRSunflower
Definition: LandscapeFarmingEnums.h:591
LE::m_gooseSpNos
int m_gooseSpNos[366][gs_foobar]
The number of geese of each species each day.
Definition: Elements.h:581
Field
Definition: Elements.h:933
LE::m_days_since_insecticide_spray
int m_days_since_insecticide_spray
Definition: Elements.h:606
toc_PermanentSetAside
Definition: LandscapeFarmingEnums.h:889
tov_BEGrassGrazed2
Definition: LandscapeFarmingEnums.h:294
tov_BEGrassGrazed1
Definition: LandscapeFarmingEnums.h:292
FieldBoundary::m_DateCut
long m_DateCut
Definition: Elements.h:1041
VegElement::StoreLAItotal
virtual void StoreLAItotal()
Definition: Elements.h:825
LE::GetTrafficLoad
virtual double GetTrafficLoad(void)
Definition: Elements.h:194
VegElement::IsMatureCereal
bool IsMatureCereal()
Definition: Elements.h:784
tov_DKOSpringOats_CC
Definition: LandscapeFarmingEnums.h:430
l_el_rv_cut_may
static CfgInt l_el_rv_cut_may("ELEM_RV_CUT_MAY", CFG_PRIVATE, 142)
TTypesOfPopulation
TTypesOfPopulation
An enum to hold all the possible types of population handled by a Population_Manager class.
Definition: PopulationManager.h:57
tov_SpringBarleySpr
Definition: LandscapeFarmingEnums.h:228
EL_VEG_START_LAIT
#define EL_VEG_START_LAIT
Definition: Elements.cpp:247
CfgInt::value
int value() const
Definition: Configurator.h:116
tov_DEOPermanentGrassLowYield
Definition: LandscapeFarmingEnums.h:501
tov_FIFeedingGround
Definition: LandscapeFarmingEnums.h:561
CropActualValues::biomass_at_harvest
double biomass_at_harvest
Definition: Elements.h:676
tov_DKOVegSeeds
Definition: LandscapeFarmingEnums.h:400
tov_FIOPotato_South
Definition: LandscapeFarmingEnums.h:542
toc_CloverGrassGrazed2
Definition: LandscapeFarmingEnums.h:793
NonVegElement
Definition: Elements.h:1144
tole_Copse
Definition: LandscapeFarmingEnums.h:104
tov_PLPotatoes
Definition: LandscapeFarmingEnums.h:241
tov_PLWinterWheatLate
Definition: LandscapeFarmingEnums.h:247
tole_EnergyCrop
Definition: LandscapeFarmingEnums.h:158
toc_OBushFruit
Definition: LandscapeFarmingEnums.h:823
l_el_weed_glue
static CfgFloat l_el_weed_glue("ELEM_WEED_GLUE", CFG_PRIVATE, 0.99)
LE::m_farmfunc_tried_to_do
int m_farmfunc_tried_to_do
Definition: Elements.h:570
VegElement::GetInterestedGreenBiomass
virtual double GetInterestedGreenBiomass(void)
Definition: Elements.h:710
VegElement::Set_Att_VegGooseGrass
virtual void Set_Att_VegGooseGrass(bool p)
Definition: Elements.h:780
toc_OrchApple
Definition: LandscapeFarmingEnums.h:854
tole_FlowerStripWithRotation
Definition: LandscapeFarmingEnums.h:180
VegElement::GetIsVeg
virtual bool GetIsVeg(void)
Definition: Elements.h:704
CropActualValues::area
double area
Definition: Elements.h:678
tov_NoGrowth
Definition: LandscapeFarmingEnums.h:197
LE::InsectMortality
virtual void InsectMortality(double)
Definition: Elements.h:169
LE::SetSpeciesFunction
virtual void SetSpeciesFunction(TTypesOfPopulation a_species)
Sets the correct species simulation behaviour for the current species - implemented in VegElement.
Definition: Elements.h:259
tov_NLGrassGrazedExtensive2
Definition: LandscapeFarmingEnums.h:274
CfgArray_Double::value
std::vector< double > value() const
Definition: Configurator.h:219
tole_DrainageDitch
Definition: LandscapeFarmingEnums.h:127
VegElement::m_att_veg_maturecereal
bool m_att_veg_maturecereal
Definition: Elements.h:872
toc_SpringBarleySilage
Definition: LandscapeFarmingEnums.h:905
tov_DummyCropPestTesting
Definition: LandscapeFarmingEnums.h:341
toc_Tulips
Definition: LandscapeFarmingEnums.h:913
LE::MConsts
int MConsts[10]
Definition: Elements.h:634
RV_CUT_AUG
#define RV_CUT_AUG
Definition: Elements.cpp:263
tole_MontadoMixed
Definition: LandscapeFarmingEnums.h:138
LE::m_countrydesignation
int m_countrydesignation
Definition: Elements.h:557
EL_BUG_PERCENT_WW_A
#define EL_BUG_PERCENT_WW_A
Definition: Elements.cpp:44
LE::ToggleCattleGrazing
virtual void ToggleCattleGrazing(void)
Definition: Elements.h:171
tov_OTriticale
Definition: LandscapeFarmingEnums.h:209
tov_NLGrassGrazed1
Definition: LandscapeFarmingEnums.h:259
tov_OWinterBarley
Definition: LandscapeFarmingEnums.h:209
BeetleBank::DoDevelopment
virtual void DoDevelopment(void)
Definition: Elements.cpp:5672
tov_DKOrchOther
Definition: LandscapeFarmingEnums.h:465
cfg_goose_MaizeDecayRateSpring
CfgFloat cfg_goose_MaizeDecayRateSpring
The decay rate for spilled grain for Spring.
Definition: Elements.cpp:179
LE::SetValidXY
void SetValidXY(int a_valid_x, int a_valid_y)
Definition: Elements.h:389
PollenNectarDevelopmentData::tovGetPollenNectarCurve
PollenNectarDevelopmentCurveSet * tovGetPollenNectarCurve(TTypesOfVegetation a_tov_ref)
Definition: PollenNectar.h:204
NaturalGrass::DoDevelopment
virtual void DoDevelopment()
Definition: Elements.cpp:3290
tov_Undefined
Definition: LandscapeFarmingEnums.h:610
PermanentSetaside
Definition: Elements.h:953
EL_BUG_PERCENT_WW_C
#define EL_BUG_PERCENT_WW_C
Definition: Elements.cpp:46
LE::SetMapValid
void SetMapValid(bool a_valid)
Definition: Elements.h:289
tov_OSpringBarleyPigs
Definition: LandscapeFarmingEnums.h:209
Field::GetCropType
virtual TTypesOfCrops GetCropType()
Definition: Elements.h:946
tole_Scrub
Definition: LandscapeFarmingEnums.h:64
VegElement::m_dead_biomass
double m_dead_biomass
Definition: Elements.h:863
tov_PTOtherDryBeans
Definition: LandscapeFarmingEnums.h:317
LE_TypeClass::TranslateVegTypes
TTypesOfVegetation TranslateVegTypes(int VegReference)
Definition: Elements.cpp:3724
LE::GetPollenNectarFlag
virtual bool GetPollenNectarFlag()
Returns the flag showing whether there is potential pollen/nectar here or not.
Definition: Elements.h:517
tov_DKChristmasTrees_Perm
Definition: LandscapeFarmingEnums.h:446
tov_CloverGrassGrazed1
Definition: LandscapeFarmingEnums.h:203
LargeRoad
Definition: Elements.h:1187
LE::GetVegStore
int GetVegStore(void)
Variable used to record the current grazing pressure by e.g. voles *‍/ double m_volegrazing; /**.
Definition: Elements.h:137
LE::SetVegType
virtual void SetVegType(TTypesOfVegetation)
Definition: Elements.h:175
LE::GetGreenBiomass
virtual double GetGreenBiomass(void)
Definition: Elements.h:160
tole_RoadsideSlope
Definition: LandscapeFarmingEnums.h:105
RV_CUT_SEP
#define RV_CUT_SEP
Definition: Elements.cpp:266
LE::m_owner_index
int m_owner_index
Definition: Elements.h:559
LE::ReduceWeedBiomass
virtual void ReduceWeedBiomass(double)
Definition: Elements.h:170
toc_MaizeStrigling
Definition: LandscapeFarmingEnums.h:816
g_bug_percent_d
static double g_bug_percent_d[tov_Undefined]
Definition: Elements.cpp:195
VegElement::m_oldLAtotal
double m_oldLAtotal
Definition: Elements.h:855
tov_BEBeet
Definition: LandscapeFarmingEnums.h:289
toc_GrassGrazedLast
Definition: LandscapeFarmingEnums.h:810
tov_FICaraway2
Definition: LandscapeFarmingEnums.h:566
LE::m_totalPollen
double m_totalPollen
Definition: Elements.h:645
VegElement::Set_Att_VegGrass
virtual void Set_Att_VegGrass(bool p)
Definition: Elements.h:778
toc_OliveGrove
Definition: LandscapeFarmingEnums.h:837
RoadsideVerge::Cutting
void Cutting(int a_today)
Definition: Elements.cpp:3076
VegElement::SetVegHeight
virtual void SetVegHeight(double a_veg_height)
Definition: Elements.h:814
LE::SetGooseSpNosTimed
void SetGooseSpNosTimed(int a_number, int a_day, GooseSpecies a_goose)
Definition: Elements.h:428
tov_DKVegSeeds
Definition: LandscapeFarmingEnums.h:416
LE::m_ManagementActionCounts
vector< int > m_ManagementActionCounts
Definition: Elements.h:525
Field::SetVegGrowthScalerRand
void SetVegGrowthScalerRand()
Definition: Elements.cpp:2804
l_el_growth_phase_shift_level
static CfgFloat l_el_growth_phase_shift_level("ELEM_GROWTH_PHASE_SHIFT_LEVEL", CFG_PRIVATE, 0.5)
toc_MaizeSilage
Definition: LandscapeFarmingEnums.h:814
TTypesOfCrops
TTypesOfCrops
Definition: LandscapeFarmingEnums.h:781
tov_SEWinterRape_Seed
Definition: LandscapeFarmingEnums.h:577
VegElement::CalculateInsectBiomass
void CalculateInsectBiomass()
An insect biomass calculation for those species that need it.
Definition: Elements.cpp:2175
tole_Canal
Definition: LandscapeFarmingEnums.h:128
LE::SetStubble
void SetStubble(bool a_flag)
Sets the in stubble flag.
Definition: Elements.h:462
LE::GetGooseSpNosTodayTimed
int GetGooseSpNosTodayTimed(GooseSpecies a_goose)
For goose model functionality, returns the number of geese per species yesterday at a predefined time...
Definition: Elements.cpp:1173
VegElement::m_LAtotal
double m_LAtotal
Definition: Elements.h:854
LE::PollenNectarReset
virtual void PollenNectarReset()
Definition: Elements.h:512
EL_BUG_PERCENT_B
#define EL_BUG_PERCENT_B
Definition: Elements.cpp:33
tov_FIOWinterRye
Definition: LandscapeFarmingEnums.h:538
tole_Pipeline
Definition: LandscapeFarmingEnums.h:134
tov_OSpringBarleyExt
Definition: LandscapeFarmingEnums.h:225
tole_LargeRoad
Definition: LandscapeFarmingEnums.h:83
VegElement::SetVegPatchy
void SetVegPatchy(bool p)
Definition: Elements.h:788
VegElement::TogglePigGrazing
virtual void TogglePigGrazing(void)
Definition: Elements.h:798
LargeRoad::LargeRoad
LargeRoad(Landscape *L)
Definition: Elements.cpp:3414
TOP_Ladybird
Definition: PopulationManager.h:76
tov_FIWinterRye
Definition: LandscapeFarmingEnums.h:537
tov_BEGrassGrazedLast
Definition: LandscapeFarmingEnums.h:295
cfg_goosecountperiod
CfgInt cfg_goosecountperiod("GOOSE_GOOSECOUNTPERIOD", CFG_CUSTOM, 1)
The number of days a goose count can be used.
toc_PotatoesSpring
Definition: LandscapeFarmingEnums.h:894
tov_MaizeStrigling
Definition: LandscapeFarmingEnums.h:220
LE::SetDigestibility
virtual void SetDigestibility(double)
Definition: Elements.h:178
toc_OWinterBarley
Definition: LandscapeFarmingEnums.h:878
LE::m_border
LE * m_border
Definition: Elements.h:534
tov_PTSetAside
Definition: LandscapeFarmingEnums.h:337
LE::SetGooseNos
void SetGooseNos(int a_number, int a_day)
Definition: Elements.h:420
LE::GetMapValid
bool GetMapValid(void)
Definition: Elements.h:290
LE::GetManagementTotals
vector< int > GetManagementTotals()
Definition: Elements.h:254
VegElement::CalculateAphidDrivers
void CalculateAphidDrivers()
Determines the amount of new growth.
Definition: Elements.cpp:1975
LE::GetTotalPollen
virtual double GetTotalPollen()
Returns the total pollen quantity for this landscape element.
Definition: Elements.h:494
Landscape::SupplyGlobalRadiation
double SupplyGlobalRadiation()
Passes a request on to the associated Weather class function, the global amount of sunshine for the c...
Definition: Landscape.h:1951
c_SolarConversion
const double c_SolarConversion[2][81]
Definition: Elements.cpp:149
LE::GrazeVeg_Extended
virtual void GrazeVeg_Extended(double)
Definition: Elements.h:193
tov_PLWinterWheat
Definition: LandscapeFarmingEnums.h:232
EL_BUG_PERCENT_WR_C
#define EL_BUG_PERCENT_WR_C
Definition: Elements.cpp:58
tov_SpringBarleyGrass
Definition: LandscapeFarmingEnums.h:214
LE
Definition: Elements.h:86
LE::m_tramlinesdecay
int m_tramlinesdecay
Definition: Elements.h:571
tov_NLGrassGrazedExtensiveLast
Definition: LandscapeFarmingEnums.h:276
LE::ChangeTotalPollen
virtual void ChangeTotalPollen(double a_amount)
Removes a_amount from total LE pollen.
Definition: Elements.h:498
PollenNectarData
A data class to store nectar or pollen data.
Definition: PollenNectar.h:163
tole_Freshwater
Definition: LandscapeFarmingEnums.h:86
tov_DEPotatoesIndustry
Definition: LandscapeFarmingEnums.h:503
LE::Is_Att_High
bool Is_Att_High(void)
Definition: Elements.h:199
tov_FIOPotatoIndustry_North
Definition: LandscapeFarmingEnums.h:545
tole_YoungForest
Definition: LandscapeFarmingEnums.h:77
g_weather
class Weather * g_weather
Definition: Weather.cpp:49
tole_Stream
Definition: LandscapeFarmingEnums.h:111
tov_OBarleyPeaCloverGrass
Definition: LandscapeFarmingEnums.h:203
LE::Set_Att_UserDefinedInt
void Set_Att_UserDefinedInt(int a_value)
Definition: Elements.h:212
LE::SetBirdMaize
void SetBirdMaize(double a_forage)
Definition: Elements.h:276
tov_SpringBarleyStriglingSingle
Definition: LandscapeFarmingEnums.h:222
VegElement::Set_Att_VegPatchy
virtual void Set_Att_VegPatchy(bool p)
Definition: Elements.h:770
VegElement::Is_Att_VegMatureCereal
virtual bool Is_Att_VegMatureCereal()
Definition: Elements.h:773
LE::GetOwnerFile
int GetOwnerFile(void)
Definition: Elements.h:241
tov_OOats
Definition: LandscapeFarmingEnums.h:206
LE::SetCopyTreatment
void SetCopyTreatment(int a_treatment)
Definition: Elements.cpp:1044
tov_FlowerStrip1
Definition: LandscapeFarmingEnums.h:198
tov_DKWinterWheat_CC
Definition: LandscapeFarmingEnums.h:422
Landscape::SetNectarMap
void SetNectarMap(int a_poly_id, double a_nectar_quantity, int a_min_x, int a_min_y, int a_max_x, int a_max_y)
The function to set the nectar quantity for all the cells that belong to the given polygon ID.
Definition: Landscape.cpp:4041
VegElement::m_force_Weed
double m_force_Weed
Definition: Elements.h:892
LE::m_cattle_grazing
int m_cattle_grazing
Definition: Elements.h:619
g_msg
MapErrorMsg * g_msg
Definition: MapErrorMsg.cpp:41
tov_DKOPotatoSeed
Definition: LandscapeFarmingEnums.h:391
LE::GetInterestedGreenBiomass
virtual double GetInterestedGreenBiomass(void)
Definition: Elements.h:161
tole_Saltwater
Definition: LandscapeFarmingEnums.h:88
OrchardBand::DoDevelopment
virtual void DoDevelopment(void)
Definition: Elements.cpp:3260
LE::SetSprayPPPType
void SetSprayPPPType(PlantProtectionProducts a_type)
Set the sprayed pesticide type in the field.
Definition: Elements.h:470
tov_PTRyegrass
Definition: LandscapeFarmingEnums.h:324
tov_OGrazingPigs
Definition: LandscapeFarmingEnums.h:206
toc_OSpringRape
Definition: LandscapeFarmingEnums.h:871
tole_HedgeBank
Definition: LandscapeFarmingEnums.h:90
PlantGrowthData::GetLAtotalDiffScaled
double GetLAtotalDiffScaled(double a_ddegs, double a_yddegs, int a_plant, int a_phase, double a_scaler)
Get the differential in LA total for the day degrees experienced, scalable depending on plant growth ...
Definition: Plants.h:138
l_el_rv_cut_total
static CfgFloat l_el_rv_cut_total("ELEM_RV_CUT_TOTAL", CFG_PRIVATE, 2.0)
g_bug_percent_a
static double g_bug_percent_a[tov_Undefined]
Definition: Elements.cpp:192
ForestElement
Definition: Elements.h:1092
tole_River
Definition: LandscapeFarmingEnums.h:87
tov_DKOMixedVeg
Definition: LandscapeFarmingEnums.h:388
toc_SpringBarleyCloverGrass
Definition: LandscapeFarmingEnums.h:902
tov_DKOWinterCloverGrassGrazedSown
Definition: LandscapeFarmingEnums.h:373
LE::m_flowering_day_counter
int m_flowering_day_counter
The day counter to enter the flowering period.
Definition: Elements.h:650
VegElement::GetVegBiomass
virtual double GetVegBiomass(void)
Definition: Elements.h:707
VegElement::ReduceVeg
virtual void ReduceVeg(double a_reduc)
Definition: Elements.cpp:2714
VegElement::m_num_flowring_peroid
double m_num_flowring_peroid
Contains the number of days of the flowring period, this is only used for the crops.
Definition: Elements.h:924
tov_SpringBarleyCloverGrass
Definition: LandscapeFarmingEnums.h:214
tov_SpringRape
Definition: LandscapeFarmingEnums.h:215
tov_DKOWinterRye
Definition: LandscapeFarmingEnums.h:403
tov_DEOWinterBarley
Definition: LandscapeFarmingEnums.h:494
tov_DKCabbages
Definition: LandscapeFarmingEnums.h:351
LE::GetSprayPPPType
PlantProtectionProducts GetSprayPPPType(void)
Return the sprayed pesticide type in the field.
Definition: Elements.h:466
EL_BUG_PERCENT_WR_B
#define EL_BUG_PERCENT_WR_B
Definition: Elements.cpp:57
tole_Heath
Definition: LandscapeFarmingEnums.h:92
VegElement::m_att_veg_patchy
bool m_att_veg_patchy
Definition: Elements.h:870
VegElement::Is_Att_VegCereal
virtual bool Is_Att_VegCereal()
Definition: Elements.h:771
LE::SetLastTreatment
void SetLastTreatment(int a_treatment)
Definition: Elements.cpp:1048
tole_Orchard
Definition: LandscapeFarmingEnums.h:93
tov_FIGreenFallow_1year
Definition: LandscapeFarmingEnums.h:562
VegElement::m_newgrowthruningaverage
double m_newgrowthruningaverage
Definition: Elements.h:890
toc_OSugarBeet
Definition: LandscapeFarmingEnums.h:875
tov_DKOLupines
Definition: LandscapeFarmingEnums.h:433
LE::m_owner_file
int m_owner_file
Definition: Elements.h:558
LE::GrazeVegetation
virtual void GrazeVegetation(double, bool)
Definition: Elements.h:293
LE::m_ddegs
double m_ddegs
Definition: Elements.h:625
TTypesOfVegetation
TTypesOfVegetation
Values that represent the types of vegetation that are represented in ALMaSS.
Definition: LandscapeFarmingEnums.h:192
EL_BUG_PERCENT_Edges_C
#define EL_BUG_PERCENT_Edges_C
Definition: Elements.cpp:76
CfgInt
Integer configurator entry class.
Definition: Configurator.h:102
LE::GetIsVeg
virtual bool GetIsVeg(void)
Definition: Elements.h:145
tov_DEWinterWheat
Definition: LandscapeFarmingEnums.h:509
l_pest_enable_pesticide_engine
CfgBool l_pest_enable_pesticide_engine
Used to turn on or off the PPP functionality of ALMaSS.
VegElement::SetVegParameters
virtual void SetVegParameters(double a_veg_height, double a_LAtotal, double a_LAgreen, double a_WeedBiomass)
Definition: Elements.h:817
VegElement::SetCropDataAll
virtual void SetCropDataAll(double, double, double, double, TTypesOfVegetation, double, double, int, double, bool, double, double, double)
Definition: Elements.cpp:2824
LE::m_centroidy
int m_centroidy
Definition: Elements.h:542
cfg_pest_productapplic_startdate3
CfgInt cfg_pest_productapplic_startdate3
Start date for applying pesticide the third time.
VegElement::GetCropType
virtual TTypesOfCrops GetCropType()
Definition: Elements.h:721
tov_BEMaizeCC
Definition: LandscapeFarmingEnums.h:304
tov_DKOrchardCrop_Perm
Definition: LandscapeFarmingEnums.h:459
g_el_herbicide_delaytime_days
CfgInt g_el_herbicide_delaytime_days("ELEM_HERBICIDE_DELAYTIME_DAYS", CFG_PRIVATE, 14)
OrchardBand
Definition: Elements.h:1120
tov_DEOHerbsPerennial_1year
Definition: LandscapeFarmingEnums.h:515
tov_FISpringOats
Definition: LandscapeFarmingEnums.h:547
tov_DEOPermanentGrassGrazed
Definition: LandscapeFarmingEnums.h:489
tov_FRWinterRape
Definition: LandscapeFarmingEnums.h:584
tov_FieldPeasSilage
Definition: LandscapeFarmingEnums.h:227
tov_BEMaize
Definition: LandscapeFarmingEnums.h:296
tov_FIGrasslandPasturePerennial1
Definition: LandscapeFarmingEnums.h:556
LE::SetVegBiomass
virtual void SetVegBiomass(int)
Definition: Elements.h:174
Farm
The base class for all farm types.
Definition: Farm.h:755
tov_DEOCabbages
Definition: LandscapeFarmingEnums.h:480
tov_DKGrazingPigs
Definition: LandscapeFarmingEnums.h:381
tov_DKOFarmForest_Perm
Definition: LandscapeFarmingEnums.h:451
LargeRoad::GetTrafficLoad
virtual double GetTrafficLoad(void)
Definition: Elements.cpp:3419
tov_OSeedGrass1
Definition: LandscapeFarmingEnums.h:208
toc_Vineyards
Definition: LandscapeFarmingEnums.h:916
tov_SpringBarleyStrigling
Definition: LandscapeFarmingEnums.h:220
TOP_Vole
Definition: PopulationManager.h:60
VegElement::SetSpeciesFunction
virtual void SetSpeciesFunction(TTypesOfPopulation a_species)
Sets the correct species simulation behaviour for the current species.
Definition: Elements.cpp:1893
tole_ConiferousForest
Definition: LandscapeFarmingEnums.h:76
LE::GetVegCover
virtual double GetVegCover(void)
Definition: Elements.h:147
tole_AsparagusPerm
Definition: LandscapeFarmingEnums.h:175
tov_SeedGrass2
Definition: LandscapeFarmingEnums.h:212
VegElement::m_curve_num
int m_curve_num
Definition: Elements.h:849
tov_NLGrassGrazedLast
Definition: LandscapeFarmingEnums.h:270
tov_FRGrassland
Definition: LandscapeFarmingEnums.h:588
tov_DKCerealLegume_Whole
Definition: LandscapeFarmingEnums.h:367
tov_DEOLegume
Definition: LandscapeFarmingEnums.h:484
tov_OFieldPeas
Definition: LandscapeFarmingEnums.h:205
tov_DEOrchard
Definition: LandscapeFarmingEnums.h:518
LE::GetGooseSpNosToday
int GetGooseSpNosToday(GooseSpecies a_goose)
For goose model functionality, returns the number of geese per species yesterday.
Definition: Elements.cpp:1168
tov_DEOPotatoes
Definition: LandscapeFarmingEnums.h:490
tov_DKEnergyCrop_Perm
Definition: LandscapeFarmingEnums.h:448
LE::DoCopy
void DoCopy(const LE *a_Le)
a copy function to be used because a copy constuctor won't work
Definition: Elements.cpp:916
Landscape::SupplyNectarHabitatType
PollenNectarData SupplyNectarHabitatType(int a_habitat_type)
Supply the nectar of the current day for the given habitat type.
Definition: Landscape.h:289
tov_FodderBeet
Definition: LandscapeFarmingEnums.h:203
LE::Set_Att_UserDefinedBool
void Set_Att_UserDefinedBool(bool a_value)
Definition: Elements.h:210
tov_OSpringBarleyGrass
Definition: LandscapeFarmingEnums.h:208
VegElement::RecalculateBugsNStuff
virtual void RecalculateBugsNStuff(void)
This method is responsible for.
Definition: Elements.cpp:1830
tole_UrbanVeg
Definition: LandscapeFarmingEnums.h:125
FlowerStripWithRotation::DoDevelopment
virtual void DoDevelopment(void)
Definition: Elements.cpp:2918
LE::Set_Att_VegMatureCereal
virtual void Set_Att_VegMatureCereal(bool)
Definition: Elements.h:222
tov_WWheatPControl
Definition: LandscapeFarmingEnums.h:217
VegElement::m_digestability
double m_digestability
Definition: Elements.h:883
FieldBoundary::FieldBoundary
FieldBoundary(Landscape *L, int a_type)
Definition: Elements.cpp:2980
tov_DKOOrchardCrop_Perm
Definition: LandscapeFarmingEnums.h:441
tov_DKSpringBarleyCloverGrass
Definition: LandscapeFarmingEnums.h:362
tole_RoadsideVerge
Definition: LandscapeFarmingEnums.h:60
tov_BEMaizeSpring
Definition: LandscapeFarmingEnums.h:297
tov_BEPotatoesSpring
Definition: LandscapeFarmingEnums.h:300
EL_GROWTH_DAYDEG_MAGIC
#define EL_GROWTH_DAYDEG_MAGIC
Definition: Elements.cpp:218
LE::CalculateFlowerResourceForCrop
virtual void CalculateFlowerResourceForCrop(TTypesOfVegetation a_new_veg)
The function to calculate flower resource for the crop in a year.
Definition: Elements.cpp:1207
CfgFloat
Double configurator entry class.
Definition: Configurator.h:126
LE::m_gooseNosTimed
int m_gooseNosTimed[366]
The number of geese at a predefined time per day.
Definition: Elements.h:583
tole_FarmForest
Definition: LandscapeFarmingEnums.h:160
toc_OSpringBarleyPigs
Definition: LandscapeFarmingEnums.h:868
EL_BUG_PERCENT_C
#define EL_BUG_PERCENT_C
Definition: Elements.cpp:34
tole_Field
Definition: LandscapeFarmingEnums.h:65
toc_BushFruit
Definition: LandscapeFarmingEnums.h:786
LE::Is_Att_VegCereal
virtual bool Is_Att_VegCereal()
Definition: Elements.h:217
toc_OSpringBarley
Definition: LandscapeFarmingEnums.h:865
SmallRoad::SmallRoad
SmallRoad(Landscape *L)
Definition: Elements.cpp:3424
March
const int March
Julian start dates of the month of March.
Definition: Landscape.h:42
LE::Set_Att_High
void Set_Att_High(bool a_high)
Definition: Elements.h:200
toc_OLupines
Definition: LandscapeFarmingEnums.h:839
LE::m_spray_ppp_rate
double m_spray_ppp_rate
This is to store the sprayed pesticide rate.
Definition: Elements.h:666
LE::m_owner
Farm * m_owner
Definition: Elements.h:556
tov_CloverGrassGrazed2
Definition: LandscapeFarmingEnums.h:203
LE::m_pollen_nectar_curve_index
int m_pollen_nectar_curve_index
Variable to record the pollen and nectar curve number.
Definition: Elements.h:648
LE::m_vegddegs
double m_vegddegs
Definition: Elements.h:622
tov_UKSpringBarley
Definition: LandscapeFarmingEnums.h:283
toc_Sunflower
Definition: LandscapeFarmingEnums.h:911
LE::m_tried_to_do
int m_tried_to_do
Definition: Elements.h:91
tole_PitDisused
Definition: LandscapeFarmingEnums.h:72
tole_AgroForestrySystem
Definition: LandscapeFarmingEnums.h:139
toc_OSpringWheat
Definition: LandscapeFarmingEnums.h:873
LE::SetBirdSeed
void SetBirdSeed(double a_forage)
Definition: Elements.h:264
tov_NLCabbage
Definition: LandscapeFarmingEnums.h:257
tov_WinterWheat
Definition: LandscapeFarmingEnums.h:217
tole_Vildtager
Definition: LandscapeFarmingEnums.h:121
CropActualValues::harvested
bool harvested
Definition: Elements.h:677
PollenNectarData::m_quality
double m_quality
Definition: PollenNectar.h:168
LE::SetVegStore
void SetVegStore(int a_veg)
Definition: Elements.h:138
toc_OrchCherry
Definition: LandscapeFarmingEnums.h:856
toc_OSpringBarleyPeaCloverGrass
Definition: LandscapeFarmingEnums.h:869
toc_OMaize
Definition: LandscapeFarmingEnums.h:840
tov_DKOSpringBarleySilage
Definition: LandscapeFarmingEnums.h:397
mow
Definition: Treatment.h:105
CfgArray_Int::value
std::vector< int > value() const
Definition: Configurator.h:201
LE::GetCountryDesignation
int GetCountryDesignation(void)
Definition: Elements.h:279
tov_DKOCloverGrassGrazed3
Definition: LandscapeFarmingEnums.h:376
VegElement::SetInterestedBiomassFractionForCrop
void SetInterestedBiomassFractionForCrop(TTypesOfCrops a_crop_type)
Definition: Elements.cpp:1986
tov_FodderGrass
Definition: LandscapeFarmingEnums.h:224
VegElement::m_veg_density
int m_veg_density
Definition: Elements.h:866
tole_MushroomPerm
Definition: LandscapeFarmingEnums.h:176
tov_Maize
Definition: LandscapeFarmingEnums.h:203
tole_EucalyptusForest
Definition: LandscapeFarmingEnums.h:144
LE::m_gooseSpNosTimed
int m_gooseSpNosTimed[366][gs_foobar]
The number of geese of each species at a predefined time per day.
Definition: Elements.h:585
FlowerStrip::DoDevelopment
virtual void DoDevelopment(void)
Definition: Elements.cpp:2899
tov_DEPeas
Definition: LandscapeFarmingEnums.h:498
toc_OSeedGrass1
Definition: LandscapeFarmingEnums.h:861
tov_DKOWinterWheat
Definition: LandscapeFarmingEnums.h:360
LE::SetGrowthPhase
virtual void SetGrowthPhase(int)
Definition: Elements.h:185
tov_BEGrassGrazed1Spring
Definition: LandscapeFarmingEnums.h:293
toc_OPermanentGrassGrazed
Definition: LandscapeFarmingEnums.h:849
tov_OFieldPeasSilage
Definition: LandscapeFarmingEnums.h:218
LE::Set_Att_Forest
void Set_Att_Forest(bool a_forest)
Definition: Elements.h:204
CropActualValues::no_fi_app
int no_fi_app
Definition: Elements.h:681
toc_FodderBeet
Definition: LandscapeFarmingEnums.h:802
VegElement::m_total_biomass
double m_total_biomass
Definition: Elements.h:859
RV_CUT_JUN
#define RV_CUT_JUN
Definition: Elements.cpp:257
VegElement::Tick
void Tick(void) override
Definition: Elements.cpp:1095
tole_BushFruit
Definition: LandscapeFarmingEnums.h:154
tole_OPermPasturePigs
Definition: LandscapeFarmingEnums.h:163
tov_DESpringRye
Definition: LandscapeFarmingEnums.h:504
tov_DKOrchApple
Definition: LandscapeFarmingEnums.h:462
LE::Set_Att_UrbanNoVeg
void Set_Att_UrbanNoVeg(bool a_unv)
Definition: Elements.h:208
tov_YoungForest
Definition: LandscapeFarmingEnums.h:222
LE::GetUnsprayedMarginPolyRef
int GetUnsprayedMarginPolyRef(void)
Definition: Elements.h:383
tov_FRMaize_Silage
Definition: LandscapeFarmingEnums.h:586
tov_DKCatchCrop
Definition: LandscapeFarmingEnums.h:420
tov_NLGrassGrazed2
Definition: LandscapeFarmingEnums.h:260
PlantGrowthData::VegTypeToCurveNum
int VegTypeToCurveNum(TTypesOfVegetation VegReference)
Definition: Plants.cpp:282
toc_PermanentGrassGrazed
Definition: LandscapeFarmingEnums.h:886
FieldBoundary
Element class for field boudaries.
Definition: Elements.h:1034
VegElement::m_att_veg_grass
bool m_att_veg_grass
Definition: Elements.h:874
toc_OGrazingPigs
Definition: LandscapeFarmingEnums.h:836
CFG_CUSTOM
Definition: Configurator.h:70
g_random_fnc
int g_random_fnc(const int a_range)
Definition: ALMaSS_Random.cpp:74
tole_FlowersPerm
Definition: LandscapeFarmingEnums.h:174
tov_DKOCarrots
Definition: LandscapeFarmingEnums.h:355
VegElement::m_growth_scaler
double m_growth_scaler
Definition: Elements.h:852
LE::SetSlope
void SetSlope(double a_slope)
Definition: Elements.h:451
tov_Oats
Definition: LandscapeFarmingEnums.h:203
LE::GetSoilTypeR
int GetSoilTypeR()
Definition: Elements.h:326
tov_DKSeedGrassFescue_Spring
Definition: LandscapeFarmingEnums.h:407
LE::SetArea
void SetArea(double a_area)
Definition: Elements.h:291
toc_Sorghum
Definition: LandscapeFarmingEnums.h:900
toc_SeedGrass1
Definition: LandscapeFarmingEnums.h:897
tov_GenericCatchCrop
Definition: LandscapeFarmingEnums.h:339
LE::GetOwner
Farm * GetOwner(void)
Definition: Elements.h:256
LE::SetGooseRoostDist
void SetGooseRoostDist(int a_dist, GooseSpecies a_goose)
Definition: Elements.h:432
Calendar::DayInYear
int DayInYear(void)
Definition: Calendar.h:58
toc_Beans_Whole
Definition: LandscapeFarmingEnums.h:784
LE::GetGooseGrazingForage
double GetGooseGrazingForage(GooseSpecies a_goose)
Definition: Elements.h:260
VegElement::ZeroVeg
virtual void ZeroVeg(void)
Definition: Elements.cpp:2547
VegElement::SetInterestedBiomassFraction
void SetInterestedBiomassFraction(double a_interested_biomass_fraction)
Function to set the instrested biomass fraction.
Definition: Elements.h:845
LE::ZeroVeg
virtual void ZeroVeg(void)
Definition: Elements.h:190
PollenNectarDevelopmentData::tovGetPollenNectarCurveSowingFlag
bool tovGetPollenNectarCurveSowingFlag(TTypesOfVegetation a_tov_ref)
Definition: PollenNectar.h:221
VegElement::GetWeedBiomass
virtual double GetWeedBiomass(void)
Definition: Elements.h:712
tov_Lawn
Definition: LandscapeFarmingEnums.h:225
TOP_Oedothorax
Definition: PopulationManager.h:71
HedgeBank::HedgeBank
HedgeBank(Landscape *L)
Definition: Elements.cpp:2852
LE::SetHerbicideDelay
void SetHerbicideDelay(int a_decaytime_days)
Definition: Elements.h:376
tov_DKOFodderBeets
Definition: LandscapeFarmingEnums.h:349
LE_TypeClass::BackTranslateVegTypes
int BackTranslateVegTypes(TTypesOfVegetation VegReference)
Definition: Elements.cpp:4624
tov_WinterRye
Definition: LandscapeFarmingEnums.h:217
tov_FIOCaraway1
Definition: LandscapeFarmingEnums.h:567
toc_OCloverGrassGrazed3
Definition: LandscapeFarmingEnums.h:828
toc_Unmanaged
Definition: LandscapeFarmingEnums.h:915
VegElement::CalculateDigestibility
void CalculateDigestibility()
Sets vegetation digestability for hare and vole.
Definition: Elements.cpp:1934
LE::GetAphidDensity
virtual int GetAphidDensity()
Definition: Elements.h:90
tov_DEMaize
Definition: LandscapeFarmingEnums.h:477
LE::m_pollen_amount
vector< double > m_pollen_amount
The array to store the pollen amount for each period.
Definition: Elements.h:656
PollenNectarDevelopmentCurveSet::m_pollen_quality
double m_pollen_quality
The pollen quality when there is pollen, this also depends the species, by default it uses the apis v...
Definition: PollenNectar.h:77
tov_FIBufferZone_Perm
Definition: LandscapeFarmingEnums.h:573
tov_OWinterWheat
Definition: LandscapeFarmingEnums.h:228
toc_OBeans_Whole
Definition: LandscapeFarmingEnums.h:822
tov_PTHorticulture
Definition: LandscapeFarmingEnums.h:329
VegElement::Is_Att_VegMaize
virtual bool Is_Att_VegMaize()
Definition: Elements.h:775
VegElement::m_att_veg_maize
bool m_att_veg_maize
Definition: Elements.h:873
Weather::GetTempAfterDays
double GetTempAfterDays(int days)
Get the temperature at the given number of days which is the number of days after today.
Definition: Weather.h:484
tov_DKCloverGrassGrazed1
Definition: LandscapeFarmingEnums.h:370
tole_WoodlandMargin
Definition: LandscapeFarmingEnums.h:120
tov_DEOWinterRye
Definition: LandscapeFarmingEnums.h:496
WaterBufferZone::DoDevelopment
virtual void DoDevelopment(void)
Definition: Elements.cpp:3097
LE::GetLATotal
virtual double GetLATotal(void)
Definition: Elements.h:159
tov_MaizeSilage
Definition: LandscapeFarmingEnums.h:224
LE::GetBorder
LE * GetBorder(void)
Definition: Elements.h:381
PlantGrowthData::StartValid
bool StartValid(int a_veg_type, int a_phase)
Definition: Plants.cpp:834
tov_SEWinterWheat
Definition: LandscapeFarmingEnums.h:578
LE::GetBirdMaize
double GetBirdMaize(void)
Definition: Elements.h:267
cfg_PondLarvalFoodBiomassConst
CfgFloat cfg_PondLarvalFoodBiomassConst("POND_LARVALFOODBIOMASSCONST", CFG_CUSTOM, 215.0)
A constant relating the proportion of food units per m2. The value is calibrated to estimates of newt...
tole_PlantNursery
Definition: LandscapeFarmingEnums.h:117
tov_BEWinterWheatCC
Definition: LandscapeFarmingEnums.h:303
l_el_bug_percentage_file
static CfgStr l_el_bug_percentage_file("ELEM_BUG_PERCENTAGE_FILE", CFG_CUSTOM,"bugpercents.txt")
LE::SetElevation
void SetElevation(double a_elevation)
Records the elevation of the polygon.
Definition: Elements.h:450
RoadsideVerge::m_DateCut
long m_DateCut
Definition: Elements.h:1049
VegElement::m_insect_biomass_parameters_b
static double m_insect_biomass_parameters_b[9]
Definition: Elements.h:690
cfg_base_temp_increment_flower
CfgFloat cfg_base_temp_increment_flower("BASE_TEMP_INCREMENT_FLOWER", CFG_CUSTOM, 5)
Flower resource base temperature increment per month from the starting month.
VegElement::m_oldnewgrowth
double m_oldnewgrowth[32]
Definition: Elements.h:884
l_el_o_cut_total
CfgFloat l_el_o_cut_total("ELEM_RV_CUT_TOTAL", CFG_PRIVATE, 2.0)
LE::GetTotalNectar
virtual double GetTotalNectar()
Returns the total nectar quantity for this landscape element.
Definition: Elements.h:496
FieldBoundary::Cutting
void Cutting(int a_today)
Definition: Elements.cpp:2992
tov_Heath
Definition: LandscapeFarmingEnums.h:228
tov_DKOLegumeCloverGrass_Whole
Definition: LandscapeFarmingEnums.h:354
LE::m_sprayedtoday
bool m_sprayedtoday
flag to indicate an overspray situation
Definition: Elements.h:562
LE::ForceGrowthInitialize
virtual void ForceGrowthInitialize(bool a_force_decreasing=false)
Definition: Elements.h:186
tov_DKWinterWheat
Definition: LandscapeFarmingEnums.h:359
LE::m_att_userdefinedbool
bool m_att_userdefinedbool
a userdefined attribute which can be set by a species model without changing other standard values
Definition: Elements.h:614
tov_DKBushFruit_Perm2
Definition: LandscapeFarmingEnums.h:443
RV_CUT_GREEN
#define RV_CUT_GREEN
Definition: Elements.cpp:277
PastureElement::PastureElement
PastureElement(TTypesOfLandscapeElement tole, Landscape *L)
Definition: Elements.cpp:2751
tole_Garden
Definition: LandscapeFarmingEnums.h:80
g_letype
class LE_TypeClass * g_letype
Definition: Elements.cpp:806
LE::m_dist_to_closest_roost
double m_dist_to_closest_roost[gs_foobar]
An array holding the distance to the nearest goose roost.
Definition: Elements.h:603
PollenNectarDevelopmentData::tovGetPollenNectarCurveRef
int tovGetPollenNectarCurveRef(TTypesOfVegetation a_tov_ref)
Definition: PollenNectar.h:213
tov_DKSugarBeets
Definition: LandscapeFarmingEnums.h:347
toc_SpringRye
Definition: LandscapeFarmingEnums.h:907
VegElement::GrazeVegetation
virtual void GrazeVegetation(double a_grams, bool a_force)
Definition: Elements.cpp:2688
tov_FIPotatoIndustry_North
Definition: LandscapeFarmingEnums.h:543
tov_FIOStarchPotato_South
Definition: LandscapeFarmingEnums.h:530
VegElement::m_newgrowth
double m_newgrowth
Definition: Elements.h:880
toc_Foobar
Definition: LandscapeFarmingEnums.h:926
g_el_tramline_decaytime_days
CfgInt g_el_tramline_decaytime_days
tov_PTTurnipGrazed
Definition: LandscapeFarmingEnums.h:313
CropActualValues::missed_herb_app
int missed_herb_app
Definition: Elements.h:680
tov_PTYellowLupin
Definition: LandscapeFarmingEnums.h:325
Elements.h
cfg_SetAsidePatchyChance
static CfgFloat cfg_SetAsidePatchyChance("SETASIDEPATCHYCHANCE", CFG_CUSTOM, 1.0)
The chance that a setaside being created is patchy or not.
LE::Insecticide
virtual void Insecticide(double)
Definition: Elements.h:168
tov_ITOrchard
Definition: LandscapeFarmingEnums.h:607
LE::GetPollenQuality
virtual double GetPollenQuality()
Gets the pollen quality for this landscape element.
Definition: Elements.h:488
LE::m_rot_index
int m_rot_index
Definition: Elements.h:560
VegElement::m_start_dd_flower
bool m_start_dd_flower
The flag to start accumulating day degrees for flower resource.
Definition: Elements.h:898
tole_RiversideTrees
Definition: LandscapeFarmingEnums.h:73
LE::GetVegDDegs
double GetVegDDegs()
Get the total of day degrees for the crop/veg on this element.
Definition: Elements.h:410
toc_WinterWheat
Definition: LandscapeFarmingEnums.h:922
LE::GetNectar
virtual PollenNectarData GetNectar()
Gets the nectar quantity & quality for this landscape element.
Definition: Elements.h:484
Calendar::JanFirst
bool JanFirst(void)
Definition: Calendar.h:79
LE::GetCentroidX
virtual int GetCentroidX()
Definition: Elements.h:150
LE::GetSprayPPPRate
double GetSprayPPPRate(void)
Return the sprayed pesticide application rate.
Definition: Elements.h:468
tov_FRMaize
Definition: LandscapeFarmingEnums.h:585
tov_UKWinterBarley
Definition: LandscapeFarmingEnums.h:285
tov_DKOSetAside_SummerMow
Definition: LandscapeFarmingEnums.h:396
tov_FISugarBeet
Definition: LandscapeFarmingEnums.h:526
LE::SetPollenNectarType
void SetPollenNectarType(TTypesOfVegetation a_new_veg)
sets the pollen and nectar information based on tov
Definition: Elements.cpp:1181
LE::SetMConstants
void SetMConstants(int a, int c)
Definition: Elements.h:408
tov_PermanentGrassGrazed
Definition: LandscapeFarmingEnums.h:211
tole_Fence
Definition: LandscapeFarmingEnums.h:79
LE::m_poly
int m_poly
The polyref number for this polygon.
Definition: Elements.h:564
tov_PLBeetSpr
Definition: LandscapeFarmingEnums.h:248
LE::m_signal_mask
LE_Signal m_signal_mask
Definition: Elements.h:635
tov_DEMaizeSilage
Definition: LandscapeFarmingEnums.h:478
tov_NLTulips
Definition: LandscapeFarmingEnums.h:258
tole_WoodyEnergyCrop
Definition: LandscapeFarmingEnums.h:116
toc_FieldPeasStrigling
Definition: LandscapeFarmingEnums.h:801
tov_PLFodderLucerne2
Definition: LandscapeFarmingEnums.h:244
l_pest_productOrchard_amount
static CfgFloat l_pest_productOrchard_amount("PEST_PRODUCTORCHARD_AMOUNT", CFG_CUSTOM, 0.0)
tov_PTGrassGrazed
Definition: LandscapeFarmingEnums.h:310
toc_CloverGrassGrazed1
Definition: LandscapeFarmingEnums.h:792
toc_CatchCropPea
Definition: LandscapeFarmingEnums.h:791
LE::Set_Att_VegMaize
virtual void Set_Att_VegMaize(bool)
Definition: Elements.h:224
tov_FIOSpringRape
Definition: LandscapeFarmingEnums.h:536
tov_DKSpringWheat
Definition: LandscapeFarmingEnums.h:414
CfgArray_Int
Array_Int configurator entry class.
Definition: Configurator.h:189
Hedges::Hedges
Hedges(Landscape *L)
Definition: Elements.cpp:2847
tov_DKSpringBarleySilage
Definition: LandscapeFarmingEnums.h:412
toc_AsparagusEstablishedPlantation
Definition: LandscapeFarmingEnums.h:782
LE::GetMaxY
int GetMaxY(void)
Definition: Elements.h:398
tov_NorwegianSpringBarley
Definition: LandscapeFarmingEnums.h:230
tole_Marsh
Definition: LandscapeFarmingEnums.h:63
VegElement::m_force_growth
bool m_force_growth
Definition: Elements.h:896
LE::m_ptrace
int m_ptrace[256]
Definition: Elements.h:528
tov_OFodderBeet
Definition: LandscapeFarmingEnums.h:227
tov_DKOPotato
Definition: LandscapeFarmingEnums.h:389
cfg_PollenMonthBaseTemp
CfgArray_Double cfg_PollenMonthBaseTemp("POLLEN_MONTH_BASE_TEMP", CFG_CUSTOM, 12, vector< double > {3.9, 3.9, 4, 3.5, 8, 9, 9, 6, 5, 0, 2, 2})
Monthly base development temperature for pollen.
VegElement::SetVegType
virtual void SetVegType(TTypesOfVegetation a_vege_type)
Definition: Elements.cpp:2763
tole_RiceField
Definition: LandscapeFarmingEnums.h:150
tov_NLCatchCropPea
Definition: LandscapeFarmingEnums.h:268
tov_FIOSpringOats
Definition: LandscapeFarmingEnums.h:548
LE::GetPigGrazing
bool GetPigGrazing(void)
Definition: Elements.h:233
EL_BUG_PERCENT_G_B
#define EL_BUG_PERCENT_G_B
Definition: Elements.cpp:63
tov_DKOSeedGrassRye_Spring
Definition: LandscapeFarmingEnums.h:392
l_el_bug_slope
static CfgFloat l_el_bug_slope("ELEM_BUG_SLOPE", CFG_PRIVATE, 0.2)
VegElement::Set_Att_VegCereal
virtual void Set_Att_VegCereal(bool p)
Definition: Elements.h:772
LE::m_vege_danger_store
int m_vege_danger_store
Definition: Elements.h:543
tov_NLMaizeSpring
Definition: LandscapeFarmingEnums.h:264
tole_StonePineForest
Definition: LandscapeFarmingEnums.h:147
Landscape::SupplyPolyRef
int SupplyPolyRef(int a_x, int a_y)
Get the in map polygon reference number from the x, y location.
Definition: Landscape.h:2157
tov_FINaturalGrassland_Perm
Definition: LandscapeFarmingEnums.h:571
toc_OPotatoesSeed
Definition: LandscapeFarmingEnums.h:853
LE::HasTramlines
bool HasTramlines(void)
Definition: Elements.h:234
VegElement::ToggleCattleGrazing
virtual void ToggleCattleGrazing(void)
Definition: Elements.h:797
tov_SugarBeet
Definition: LandscapeFarmingEnums.h:228
tole_OPermPasture
Definition: LandscapeFarmingEnums.h:164
tov_DKLegume_Peas
Definition: LandscapeFarmingEnums.h:357
LE::SetMaleNewtPresent
virtual void SetMaleNewtPresent(bool)
Sets a male newt as present/absent in descendent classes - here only to prevent need for dynamic cast...
Definition: Elements.h:458
VegElement::CalcGooseForageResources
void CalcGooseForageResources()
Calculates spilled grain and grazing forage resources for geese.
Definition: Elements.cpp:2308
LE::m_mowndecay
int m_mowndecay
Definition: Elements.h:572
LE::GetValidY
int GetValidY(void)
Definition: Elements.h:395
FlowerStrip
Element class for flower strips.
Definition: Elements.h:993
tole_OPermPastureLowYield
Definition: LandscapeFarmingEnums.h:165
LE::SetPollenNectarCurves
void SetPollenNectarCurves(PollenNectarDevelopmentCurveSet *a_set)
Set method for pollen and nectar curves.
Definition: Elements.h:502
toc_OWinterRape
Definition: LandscapeFarmingEnums.h:880
TOP_Erigone
Definition: PopulationManager.h:61
tov_None
Definition: LandscapeFarmingEnums.h:195
LE::Is_Att_VegMaize
virtual bool Is_Att_VegMaize()
Definition: Elements.h:223
tole_RiverBed
Definition: LandscapeFarmingEnums.h:126
VegElement::m_veg_height
double m_veg_height
Definition: Elements.h:865
tov_NLPotatoes
Definition: LandscapeFarmingEnums.h:254
cfg_goose_grass_to_winter_cereal_scaler
CfgFloat cfg_goose_grass_to_winter_cereal_scaler
The scaler to go from energy intake from grass forage to winter cereal The default value of 1....
Definition: Elements.cpp:186
LE_TypeClass::VegTypeToCurveNum
int VegTypeToCurveNum(TTypesOfVegetation VegReference)
tov_PTWinterRye
Definition: LandscapeFarmingEnums.h:323
cfg_farm_cattle_grass_low
CfgInt cfg_farm_cattle_grass_low
LE::m_instubble
bool m_instubble
A flag describing the state of the field from a visual perspective - will be in stubble following a c...
Definition: Elements.h:587
toc_OBeans
Definition: LandscapeFarmingEnums.h:821
tov_WaterBufferZone
Definition: LandscapeFarmingEnums.h:201
LE::SetMapIndex
void SetMapIndex(int a_map_index)
Definition: Elements.h:240
Pond::CalcPondPesticide
void CalcPondPesticide()
Calculates the amount of pesticide per unit pond water
Definition: Elements.cpp:3344
VegElement::GetLAGreen
virtual double GetLAGreen(void)
Definition: Elements.h:702
LE::SetVegType
virtual void SetVegType(TTypesOfVegetation, TTypesOfVegetation)
Definition: Elements.h:176
ppp_1
Definition: LandscapeFarmingEnums.h:1079
tole_PermPasturePigs
Definition: LandscapeFarmingEnums.h:162
tov_DKOLegume_Whole
Definition: LandscapeFarmingEnums.h:346
toc_OCabbage
Definition: LandscapeFarmingEnums.h:824
CFG_PRIVATE
Definition: Configurator.h:72
tov_DKOGrazingPigs_Perm
Definition: LandscapeFarmingEnums.h:453
tov_DKFodderBeets
Definition: LandscapeFarmingEnums.h:348
toc_OPermanentGrassLowYield
Definition: LandscapeFarmingEnums.h:850
VegElement::ReduceWeedBiomass
virtual void ReduceWeedBiomass(double a_fraction)
Definition: Elements.h:793
WARN_TRIVIAL
Definition: MapErrorMsg.h:39
LE::m_polleninfo
PollenNectarData m_polleninfo
Definition: Elements.h:643
cfg_OrchardSprayDay2
static CfgInt cfg_OrchardSprayDay2("TOX_ORCHARDSPRAYDAYTWO", CFG_CUSTOM, 200000)
tov_PTCorkOak
Definition: LandscapeFarmingEnums.h:319
tov_FRWinterTriticale
Definition: LandscapeFarmingEnums.h:583
tov_SpringBarleyPeaCloverGrassStrigling
Definition: LandscapeFarmingEnums.h:222
tov_PLMaize
Definition: LandscapeFarmingEnums.h:239
toc_GrassGrazed2
Definition: LandscapeFarmingEnums.h:808
APoint::m_y
int m_y
Definition: ALMaSS_Setup.h:56
VegElement::ReadBugPercentageFile
void ReadBugPercentageFile(void)
Definition: Elements.cpp:1797
LE::GetOwnerIndex
int GetOwnerIndex(void)
Definition: Elements.h:242
g_pest
class Pesticide * g_pest
Definition: Pesticide.cpp:219
g_crops
class PlantGrowthData * g_crops
Definition: Plants.cpp:40
toc_FarmForest
Definition: LandscapeFarmingEnums.h:798
toc_OFodderBeet
Definition: LandscapeFarmingEnums.h:834
tov_PTPermanentGrassGrazed
Definition: LandscapeFarmingEnums.h:308
RV_CUT_TOTAL
#define RV_CUT_TOTAL
Definition: Elements.cpp:279
tov_FRSpringWheat
Definition: LandscapeFarmingEnums.h:592
LE::GetQuarryNos
int GetQuarryNos()
For goose model functionality, returns the number of geese yesterday which can be hunted as legal qua...
Definition: Elements.cpp:1131
LE::m_unsprayedmarginpolyref
int m_unsprayedmarginpolyref
Definition: Elements.h:535
tov_Potatoes
Definition: LandscapeFarmingEnums.h:212
LE::m_management_loop_detect_count
long m_management_loop_detect_count
Definition: Elements.h:555
tov_NLCarrotsSpring
Definition: LandscapeFarmingEnums.h:263
tole_FarmFeedingGround
Definition: LandscapeFarmingEnums.h:173
tov_OSpringBarley
Definition: LandscapeFarmingEnums.h:208
LE::Is_Att_Woody
bool Is_Att_Woody(void)
Definition: Elements.h:205
FarmManagementCategory
FarmManagementCategory
Definition: LandscapeFarmingEnums.h:1001
EL_BUG_PERCENT_WR_A
#define EL_BUG_PERCENT_WR_A
Definition: Elements.cpp:56
RoadsideVerge::DoDevelopment
virtual void DoDevelopment(void)
Definition: Elements.cpp:3037
tov_DESpringBarley
Definition: LandscapeFarmingEnums.h:517
LE::GetPoison
bool GetPoison(void)
Definition: Elements.h:196
LE::ZeroVegAge
void ZeroVegAge()
Definition: Elements.h:140
LE::SetVegParameters
virtual void SetVegParameters(double, double, double, double)
Definition: Elements.h:181
LE::IsRecentlyMown
bool IsRecentlyMown(void)
Definition: Elements.h:235
tole_PermPasture
Definition: LandscapeFarmingEnums.h:69
tov_DEAsparagusEstablishedPlantation
Definition: LandscapeFarmingEnums.h:511
toc_OrchPear
Definition: LandscapeFarmingEnums.h:858
tov_PTOliveGroveIntensive
Definition: LandscapeFarmingEnums.h:335
toc_SugarBeet
Definition: LandscapeFarmingEnums.h:910
October
const int October
Julian start dates of the month of October.
Definition: Landscape.h:56
tov_DKOCerealLegume_Whole
Definition: LandscapeFarmingEnums.h:368
tov_DKOBushFruit_Perm2
Definition: LandscapeFarmingEnums.h:445
cfg_ele_weedscaling
static CfgFloat cfg_ele_weedscaling("ELE_WEEDSCALING", CFG_CUSTOM, 1.0)
sleep_all_day
Definition: Treatment.h:33
LE::m_is_in_map
bool m_is_in_map
Definition: Elements.h:546
tov_NLCarrots
Definition: LandscapeFarmingEnums.h:252
tov_OWinterRye
Definition: LandscapeFarmingEnums.h:211
LE::GetMapIndex
int GetMapIndex(void)
Definition: Elements.h:239
tole_BeetleBank
Definition: LandscapeFarmingEnums.h:91
FlowerStrip::SetSubType
void SetSubType(int a_subtype)
Definition: Elements.h:998
LE::SetCentroid
virtual void SetCentroid(int x, int y)
Definition: Elements.h:152
LE::m_type
TTypesOfLandscapeElement m_type
Definition: Elements.h:574
tov_DKSeedGrassRye_Spring
Definition: LandscapeFarmingEnums.h:408
VegElement::ForceGrowthInitialiseForFirstYearCrop
virtual void ForceGrowthInitialiseForFirstYearCrop(void)
Definition: Elements.cpp:2462