ALMaSS Partridge ODdox  1.1
The partridge model description following ODdox protocol
LE Class Reference

#include <elements.h>

Inheritance diagram for LE:
NonVegElement VegElement ActivePit AmenityGrass BareRock Building BuiltUpWithParkland Canal Carpark ChameleonLE Churchyard Coast DrainageDitch Fence FishFarm Freshwater Garden HeritageSite LargeRoad MetalledPath Parkland PitDisused Pylon RefuseSite River RiverBed RuralResidential Saltwater SandDune SmallRoad StoneWall Stream Suburban Track Urban UrbanNoVeg UrbanPark UrbanVeg WindTurbine BeetleBank Field ForestElement GreenElement HedgeBank Hedges PermanentSetaside PermPasture PermPastureLowYield PermPastureTussocky RoadsideVerge WaterBufferZone

Public Member Functions

 LE (void)
 
virtual ~LE (void)
 
virtual double GetDayDegrees (void)
 Variable used to record the current grazing pressure by e.g. voles *‍/ double m_volegrazing; /**. More...
 
virtual double GetLAGreen (void)
 
virtual double GetLATotal (void)
 
virtual double GetGreenBiomass (void)
 
virtual double GetDeadBiomass (void)
 
virtual double GetVegBiomass (void)
 
virtual double GetWeedBiomass (void)
 
virtual double GetInsectPop (void)
 
virtual void SetInsectPop (double)
 
virtual void Insecticide (double)
 
virtual void InsectMortality (double)
 
virtual void ReduceWeedBiomass (double)
 
virtual void ToggleCattleGrazing (void)
 
virtual void TogglePigGrazing (void)
 
virtual void SetVegBiomass (int)
 
virtual void SetVegType (TTypesOfVegetation, TTypesOfVegetation)
 
virtual void SetVegHeight (double)
 
virtual void SetVegParameters (double, double, double, double)
 
virtual void SetCropData (double, double, double, TTypesOfVegetation, double, int)
 
virtual void SetCropDataAll (double, double, double, double, TTypesOfVegetation, double, double, int, double, bool, double)
 
virtual void StoreLAItotal ()
 
virtual void SetGrowthPhase (int)
 
virtual void ForceGrowthInitialize (void)
 
virtual void ForceGrowthTest (void)
 
virtual void ForceGrowthDevelopment (void)
 
virtual void ZeroVeg (void)
 
virtual void ReduceVeg (double)
 
virtual void ReduceVeg_Extended (double)
 
virtual void GrazeVeg_Extended (double)
 
virtual double GetTrafficLoad (void)
 
virtual TTypesOfVegetation GetPreviousCrop (int)
 
bool GetPoison (void)
 
void SetPoison (bool a_poison)
 
bool GetHigh (void)
 
int GetCattleGrazing (void)
 
bool GetPigGrazing (void)
 
bool HasTramlines (void)
 
bool IsRecentlyMown (void)
 
int IsRecentlySprayed (void)
 
int GetPoly (void)
 Returns the polyref number for this polygon. More...
 
int GetMapIndex (void)
 
void SetMapIndex (int a_map_index)
 
int GetOwnerFile (void)
 
int GetOwnerIndex (void)
 
int GetLastTreatment (int *a_index)
 
FarmGetOwner (void)
 
double GetArea (void)
 
double GetGooseGrazingForage (GooseSpecies a_goose)
 
double GetBirdSeed (void)
 
void SetBirdSeed (double a_forage)
 
double GetBirdMaize (void)
 
void SetBirdMaize (double a_forage)
 
int GetCountryDesignation (void)
 
void SetCountryDesignation (int a_designation)
 
long GetOldDays (void)
 
void SetOwner (Farm *a_owner, int a_owner_num, int a_owner_index)
 
void SetHigh (bool a_high)
 
void SetPoly (int a_poly)
 
void SetMapValid (bool a_valid)
 
bool GetMapValid (void)
 
void SetArea (double a_area)
 
virtual void GrazeVegetation (double, bool)
 
virtual void GrazeVegetationTotal (double)
 
int GetSoilType ()
 
int GetSoilTypeR ()
 
void SetSoilType (int a_st)
 
void SetLastSownVeg (TTypesOfVegetation a_tov)
 Records the last vegetation type to be sown. More...
 
TTypesOfVegetation GetLastSownVeg ()
 Returns the last vegetation type to be sown. More...
 
void SetLastTreatment (int a_treatment)
 
void SetSprayedToday (bool a_didit)
 
bool GetSprayedToday ()
 
void SetCopyTreatment (int a_treatment)
 
void SetOldDays (long a_days)
 
void SetRotIndex (int a_index)
 
int GetRotIndex (void)
 
void SetTramlinesDecay (int a_decaytime_days)
 
void SetHerbicideDelay (int a_decaytime_days)
 
void SetMownDecay (int a_decaytime_days)
 
void AddArea (double a_area_diff)
 
LEGetBorder (void)
 
int GetUnsprayedMarginPolyRef (void)
 
void SetBorder (LE *a_border)
 
void SetUnsprayedMarginPolyRef (int a_unsprayedmargin)
 
void SetPesticideCell (int a_cell)
 
int GetPesticideCell ()
 
void SetValidXY (int a_valid_x, int a_valid_y)
 
int GetValidX (void)
 
int GetValidY (void)
 
int GetMaxX (void)
 
int GetMaxY (void)
 
int GetMinX (void)
 
int GetMinY (void)
 
void SetMaxX (int x)
 
void SetMaxY (int y)
 
void SetMinX (int x)
 
void SetMinY (int y)
 
int GetMDates (int a, int b)
 
void SetMDates (int a, int b, int c)
 
int GetMConstants (int a)
 
void SetMConstants (int a, int c)
 
double GetVegDDegs ()
 Get the total of day degrees for the crop/veg on this element. More...
 
int GetOpenness (void)
 For goose model functionality, openness score for the polygon. More...
 
void SetGooseNos (int a_number, int a_day)
 
void SetGooseSpNos (int a_number, int a_day, GooseSpecies a_goose)
 
void SetGooseNosTimed (int a_number, int a_day)
 
void SetGooseSpNosTimed (int a_number, int a_day, GooseSpecies a_goose)
 
void SetGooseRoostDist (int a_dist, GooseSpecies a_goose)
 
int GetGooseNosToday ()
 For goose model functionality, returns the number of geese today. More...
 
int GetGooseNosTodayTimed ()
 For goose model functionality, returns the number of geese today at a predefined time. More...
 
int GetGooseNos ()
 For goose model functionality, returns the number of geese yesterday. More...
 
int GetQuarryNos ()
 For goose model functionality, returns the number of geese yesterday which can be hunted as legal quarry. More...
 
int GetGooseSpNosToday (GooseSpecies a_goose)
 For goose model functionality, returns the number of geese per species yesterday. More...
 
int GetGooseSpNosTodayTimed (GooseSpecies a_goose)
 For goose model functionality, returns the number of geese per species yesterday at a predefined time. More...
 
int GetGooseRoostDist (GooseSpecies a_goose)
 For goose model functionality, returns the distance to closest roost. More...
 
void SetOpenness (int a_openness)
 Records the openness statistic for this polygon. More...
 
virtual void ResetDigestability ()
 sets growth record to zero in descendent classes More...
 
void DoCopy (const LE *a_Le)
 a copy function to be used because a copy constuctor won't work More...
 
virtual void SetMaleNewtPresent (bool)
 Sets a male newt as present/absent in descendent classes - here only to prevent need for dynamic casts. More...
 
virtual bool IsMaleNewtPresent ()
 Sets a male newt as present/absent in descendent classes - here only to prevent need for dynamic casts. More...
 
void SetStubble (bool a_flag)
 Sets the in stubble flag. More...
 
bool GetStubble ()
 Return the in stubble flag. More...
 
bool GetOsmiaNest ()
 Test to see if a nest is found. More...
 
void ReleaseOsmiaNest ()
 Test to see if a nest is found. More...
 
void UpdateOsmiaNesting ()
 Recalculate the nest finding probability. More...
 
void IncOsmiaNesting ()
 Add an occupied nest. More...
 
void SetMaxOsmiaNests (double a_noNests)
 Add an occupied nest. More...
 
void SetPollenNectarData (int a_almasstype)
 sets the pollen and nectar information More...
 
virtual PollenNectarQuality GetPollen ()
 
virtual PollenNectarQuality GetNectar ()
 
virtual double GetTotalPollen ()
 
virtual double GetTotalNectar ()
 
void SetPollenNectarCurves (PollenNectarDevelopmentCurve *a_pollencurnve, PollenNectarDevelopmentCurve *a_nectarcurve)
 Set method for pollen and nectar curves. More...
 

Public Attributes

int m_tried_to_do
 
int m_squares_in_map
 
bool m_skylarkscrapes
 For management testing of skylark scrapes. More...
 

Protected Attributes

int m_ptrace [256]
 
int m_pdates [256]
 
int m_pindex
 
long m_running
 
LEm_border
 
int m_unsprayedmarginpolyref
 
int m_valid_x
 
int m_valid_y
 
int m_centroidx
 
int m_centroidy
 
int m_vege_danger_store
 
int m_PesticideGridCell
 
bool m_is_in_map
 
int m_subtype
 
int m_maxx
 
int m_minx
 
int m_maxy
 
int m_miny
 
long m_olddays
 
long m_management_loop_detect_date
 
long m_management_loop_detect_count
 
Farmm_owner
 
int m_countrydesignation
 
int m_owner_file
 
int m_owner_index
 
int m_rot_index
 
bool m_sprayedtoday
 flag to indicate an overspray situation More...
 
int m_poly
 The polyref number for this polygon. More...
 
int m_map_index
 
int m_almass_le_type
 This holds the ALMaSS element type reference number. More...
 
int m_farmfunc_tried_to_do
 
int m_tramlinesdecay
 
int m_mowndecay
 
int m_herbicidedelay
 
TTypesOfLandscapeElement m_type
 
double m_area
 The element area in m2. More...
 
int m_gooseNos [366]
 The number of geese each day. More...
 
int m_gooseSpNos [366][gs_foobar]
 The number of geese of each species each day. More...
 
int m_gooseNosTimed [366]
 The number of geese at a predefined time per day. More...
 
int m_gooseSpNosTimed [366][gs_foobar]
 The number of geese of each species at a predefined time per day. More...
 
bool m_instubble
 A flag describing the state of the field from a visual perspective - will be in stubble following a cereal crop until either soil cultivation or March 1st. More...
 
double m_birdseedforage
 The grain forage present in KJ/m2. More...
 
double m_birdmaizeforage
 The maize forage present in KJ/m2. More...
 
double m_goosegrazingforage [gs_foobar]
 The grazing forage present in KJ/min. The last value indicates cereal 1 or not -1. More...
 
TTypesOfVegetation m_lastsownvegtype
 Records the last vegegetation type that was sown on the element. More...
 
int m_openness
 The openness metric for a field (if any) More...
 
double m_dist_to_closest_roost [gs_foobar]
 An array holding the distance to the nearest goose roost. More...
 
int m_vegage
 
int m_soiltype
 
int m_days_since_insecticide_spray
 
bool m_high
 
bool m_poison
 
int m_cattle_grazing
 
int m_default_grazing_level
 
bool m_pig_grazing
 
double m_vegddegs
 
double m_yddegs
 
double m_ddegs
 
vector< int > m_lasttreat
 
unsigned int m_lastindex
 
int MDates [2][25]
 
int MConsts [10]
 
LE_Signal m_signal_mask
 
double m_OsmiaNestProb
 to record the chance of osmia nesting More...
 
int m_maxOsmiaNests
 to record the number of possible osmia nests More...
 
int m_currentOsmiaNests
 to record the number of actual osmia nests More...
 
PollenNectarQuality m_pollenquality
 
PollenNectarQuality m_nectarquality
 
double m_totalPollen
 
double m_totalNectar
 
double m_PollenM2
 
double m_NectarM2
 
PollenNectarDevelopmentCurvem_pollencurve
 pointer to the correct pollen curve set More...
 
PollenNectarDevelopmentCurvem_nectarcurve
 pointer to the correct nectar curve set More...
 

Static Protected Attributes

static double m_monthly_traffic []
 Used for birds that feed on grain on cereal fields 3% spill is expected. More...
 
static double m_largeroad_load []
 
static double m_smallroad_load []
 

Detailed Description

Definition at line 81 of file elements.h.

Constructor & Destructor Documentation

◆ LE()

LE::LE ( void  )

The major job of this constructor is simply to provide default values for all members

Definition at line 279 of file elements.cpp.

279  {
280 
284  m_signal_mask = 0;
285  m_lasttreat.resize(1);
287  m_lastindex = 0;
288  m_running = 0;
289  m_poison = false;
290  m_owner_file = -1;
291  m_owner_index = -1;
292  m_high = false;
293  m_cattle_grazing = 0;
294  m_default_grazing_level = 0; // this means any grazed elements must set this in their constructor.
295  m_pig_grazing = false;
296  m_yddegs = 0.0;
297  m_vegddegs = -1.0;
298  m_olddays = 0;
300  m_tramlinesdecay = 0;
301  m_mowndecay = 0;
302  m_herbicidedelay = 0;
303  m_border = NULL;
305  m_valid_x = -1;
306  m_valid_y = -1;
307  m_is_in_map = false;
308  m_squares_in_map = 0;
311  m_repeat_start = false;
312  m_skylarkscrapes = false;
314  SetALMaSSEleType(-1);
315  m_ddegs = 0.0;
316  m_maxx = -1; // a very small number
317  m_maxy = -1;
318  m_minx = 9999999; // a very big number
319  m_miny = 9999999;
320  m_countrydesignation = -1; // default not set
321  m_soiltype = -1;
322  m_area = 0;
323  m_centroidx = -1;
324  m_centroidy = -1;
325  m_vege_danger_store = -1;
326  m_PesticideGridCell = -1;
327  m_subtype = -1;
328  m_owner = NULL;
329  m_rot_index = -1;
330  m_poly = -1;
331  m_map_index = -1;
332  m_almass_le_type = -1;
334  SetStubble(false);
335  m_birdseedforage = -1;
336  m_birdmaizeforage = -1;
337  m_openness = -1;
338  m_vegage = -1;
339  m_OsmiaNestProb = 0;
340  m_maxOsmiaNests = 0;
342  for (int i = 0; i<10; i++) SetMConstants(i, 1);
343  for (int i = 0; i < 366; i++)
344  {
345  m_gooseNos[i] = 0;
346  m_gooseNosTimed[i] = 0;
347  for (int l = 0; l < gs_foobar; l++)
348  {
349  m_gooseSpNos[i][l] = 0;
350  m_gooseSpNosTimed[i][l] = 0;
351  }
352  }
353  for (int l = 0; l < gs_foobar; l++)
354  {
355  m_goosegrazingforage[l] = 0;
356  }
357  for (int i = 0; i < 25; i++)
358  {
359  MDates[0][i] = -1;
360  MDates[1][i] = -1;
361  }
363 #ifdef FMDEBUG
364  m_pindex = 0;
365  for ( int i = 0; i < 256; i++ ) {
366  m_pdates[ i ] = 0;
367  m_ptrace[ i ] = 0;
368  }
369 #endif
370 }

References sleep_all_day, tole_Foobar, and tov_Undefined.

◆ ~LE()

LE::~LE ( void  )
virtual

Definition at line 452 of file elements.cpp.

452  {
453 }

Member Function Documentation

◆ AddArea()

void LE::AddArea ( double  a_area_diff)
inline

Definition at line 316 of file elements.h.

316 { m_area += a_area_diff; }

References m_area.

Referenced by Landscape::BeetleBankAdd(), Landscape::BorderScan(), and Landscape::UnsprayedMarginScan().

◆ DoCopy()

void LE::DoCopy ( const LE a_Le)

a copy function to be used because a copy constuctor won't work

The major job of this method is simply to copy values for all members from one LE to another

Definition at line 372 of file elements.cpp.

372  {
373 
377  m_signal_mask = a_LE->m_signal_mask;
378  m_lasttreat = a_LE->m_lasttreat;
379  m_lastindex = a_LE->m_lastindex;
380  m_running = a_LE->m_running;
381  m_poison = a_LE->m_poison;
382  m_owner_file = a_LE->m_owner_file;
383  m_owner_index = a_LE->m_owner_index;
384  m_high = a_LE->m_high;
385  m_cattle_grazing = a_LE->m_cattle_grazing;
386  m_default_grazing_level = a_LE->m_default_grazing_level; // this means any grazed elements must set this in their constructor.
387  m_pig_grazing = a_LE->m_pig_grazing;
388  m_yddegs = a_LE->m_yddegs;
389  m_olddays = a_LE->m_olddays;
390  m_vegddegs = a_LE->m_vegddegs;
391  m_days_since_insecticide_spray = a_LE->m_days_since_insecticide_spray;
392  m_tramlinesdecay = a_LE->m_tramlinesdecay;
393  m_mowndecay = a_LE->m_mowndecay;
394  m_herbicidedelay = a_LE->m_herbicidedelay;
395  m_border = a_LE->m_border;
396  m_unsprayedmarginpolyref = a_LE->m_unsprayedmarginpolyref;
397  m_valid_x = a_LE->m_valid_x;
398  m_valid_y = a_LE->m_valid_y;
399  m_is_in_map = a_LE->m_is_in_map;
400  m_squares_in_map = a_LE->m_squares_in_map;
401  m_management_loop_detect_date = a_LE->m_management_loop_detect_date;
402  m_management_loop_detect_count = a_LE->m_management_loop_detect_count;
403  m_repeat_start = a_LE->m_repeat_start;
404  m_skylarkscrapes = a_LE->m_skylarkscrapes;
405  m_type = a_LE->m_type;
406  m_birdseedforage = a_LE->m_birdseedforage;
407  m_birdmaizeforage = a_LE->m_birdmaizeforage;
408  m_ddegs = a_LE->m_ddegs;
409  m_maxx = a_LE->m_maxx;
410  m_maxy = a_LE->m_maxy;
411  m_minx = a_LE->m_minx;
412  m_miny = a_LE->m_miny;
413  m_countrydesignation = a_LE->m_countrydesignation;
414  m_soiltype = a_LE->m_soiltype;
415  m_area = a_LE->m_area;
416  m_centroidx = a_LE->m_centroidx;
417  m_centroidy = a_LE->m_centroidy;
418  m_vege_danger_store = a_LE->m_vege_danger_store;
419  m_PesticideGridCell = a_LE->m_PesticideGridCell;
420  m_subtype = a_LE->m_subtype;
421  m_owner = a_LE->m_owner;
422  m_rot_index = a_LE->m_rot_index;
423  m_poly = a_LE->m_poly;
424  m_map_index = a_LE->m_map_index;
425  m_almass_le_type = a_LE->m_almass_le_type;
426  m_farmfunc_tried_to_do = a_LE->m_farmfunc_tried_to_do;
427  m_openness = a_LE->m_openness;
428  m_vegage = a_LE->m_vegage;
429  for (int i = 0; i < 366; i++)
430  {
431  m_gooseNos[i] = a_LE->m_gooseNos[i];
432  m_gooseNosTimed[i] = a_LE->m_gooseNosTimed[i];
433  for (int l = 0; l < gs_foobar; l++)
434  {
435  m_gooseSpNos[i][l] = a_LE->m_gooseSpNos[i][l];
436  m_gooseSpNosTimed[i][l] = a_LE->m_gooseSpNosTimed[i][l];
437  }
438  }
439  for (int l = 0; l < gs_foobar; l++)
440  {
441  m_goosegrazingforage[l] = a_LE->m_goosegrazingforage[l];
442  }
443  for (int i = 0; i < 25; i++)
444  {
445  MDates[0][i] = a_LE->MDates[0][i];
446  MDates[1][i] = a_LE->MDates[1][i];
447  }
448  for (int i = 0; i<10; i++) SetMConstants(i, a_LE->MConsts[i]);
449 }

References m_almass_le_type, m_area, m_birdmaizeforage, m_birdseedforage, m_border, m_cattle_grazing, m_centroidx, m_centroidy, m_countrydesignation, m_days_since_insecticide_spray, m_ddegs, m_default_grazing_level, m_farmfunc_tried_to_do, m_goosegrazingforage, m_gooseNos, m_gooseNosTimed, m_gooseSpNos, m_gooseSpNosTimed, m_herbicidedelay, m_high, m_is_in_map, m_lastindex, m_lasttreat, m_management_loop_detect_count, m_management_loop_detect_date, m_map_index, m_maxx, m_maxy, m_minx, m_miny, m_mowndecay, m_olddays, m_openness, m_owner, m_owner_file, m_owner_index, m_PesticideGridCell, m_pig_grazing, m_poison, m_poly, m_rot_index, m_running, m_signal_mask, m_skylarkscrapes, m_soiltype, m_squares_in_map, m_subtype, m_tramlinesdecay, m_type, m_unsprayedmarginpolyref, m_valid_x, m_valid_y, m_vegage, m_vegddegs, m_vege_danger_store, m_yddegs, MConsts, and MDates.

Referenced by Landscape::Landscape(), and Landscape::RemoveSmallPolygons().

◆ ForceGrowthDevelopment()

virtual void LE::ForceGrowthDevelopment ( void  )
inlinevirtual

Reimplemented in VegElement.

Definition at line 173 of file elements.h.

173 {;}

◆ ForceGrowthInitialize()

virtual void LE::ForceGrowthInitialize ( void  )
inlinevirtual

Reimplemented in VegElement.

Definition at line 171 of file elements.h.

171 {;}

◆ ForceGrowthTest()

virtual void LE::ForceGrowthTest ( void  )
inlinevirtual

Reimplemented in VegElement.

Definition at line 172 of file elements.h.

172 {;}

◆ GetArea()

double LE::GetArea ( void  )
inline

◆ GetBirdMaize()

double LE::GetBirdMaize ( void  )
inline

Definition at line 204 of file elements.h.

204  {
205  return m_birdmaizeforage;
206  }

References m_birdmaizeforage.

◆ GetBirdSeed()

double LE::GetBirdSeed ( void  )
inline

Definition at line 198 of file elements.h.

198  {
199  return m_birdseedforage;
200  }

References m_birdseedforage.

◆ GetBorder()

LE* LE::GetBorder ( void  )
inline

Definition at line 317 of file elements.h.

317 { return m_border; }

References m_border.

Referenced by Landscape::BorderScan().

◆ GetCattleGrazing()

int LE::GetCattleGrazing ( void  )
inline

Definition at line 183 of file elements.h.

183 { return m_cattle_grazing; }

References m_cattle_grazing.

◆ GetCountryDesignation()

int LE::GetCountryDesignation ( void  )
inline

Definition at line 216 of file elements.h.

216 { return m_countrydesignation; }

References m_countrydesignation.

◆ GetDayDegrees()

virtual double LE::GetDayDegrees ( void  )
inlinevirtual

Variable used to record the current grazing pressure by e.g. voles *‍/ double m_volegrazing; /**.

Variable used to reduce the grazing pressure *‍/ double m_voleResregrowth; /** Variable used to record the current grazing pressure by e.g. voles *‍/ double m_volegrazingDensity; /** Change the current grazing pressure by e.g. voles *‍/ void AddVoleGrazing(int a_number) { m_volegrazing+=a_number; } /** Get the current total grazing pressure by e.g. voles *‍/ double GetVoleGrazing( void ) {return m_volegrazing; } /** Calculate the current grazing pressure by e.g. voles *‍/ void CalcVoleGrazingDensity( void ) { m_volegrazing *= m_voleResregrowth; m_volegrazingDensity = (m_volegrazing/m_area); } /** Get the current grazing pressure by e.g. voles *‍/ double GetVoleGrazingDensity( void ) {return m_volegrazingDensity; } /** Reset the current grazing pressure by e.g. voles ‍/ //void ResetVoleGrazing( void ) { m_volegrazing = 0.0; } long m_user[ EL_MAX_USERSPACE ]; bool m_repeat_start; LE_Signal GetSignal( void ) { return m_signal_mask; } void SetSignal( LE_Signal a_signal ) { m_signal_mask = a_signal; } int GetSubType( void ) { return m_subtype; } void SetSubType( int a_subtype ) { m_subtype = a_subtype; } int GetALMaSSEleType(void) { return m_almass_le_type; } void SetALMaSSEleType(int a_type) { m_almass_le_type = a_type; } virtual TTypesOfLandscapeElement GetElementType( void ) { return m_type; } void SetElementType( int a_type ) { m_type = (TTypesOfLandscapeElement) a_type; } void Trace( int a_value ); void ResetTrace( void ); long GetRunNum( void ) { return m_running; } void BumpRunNum( void ) { m_running++; } long GetMgtLoopDetectDate ( void ) { return m_management_loop_detect_date; } void SetMgtLoopDetectDate ( long a_num ) { m_management_loop_detect_date = a_num; } long GetMgtLoopDetectCount ( void ) { return m_management_loop_detect_count; } void SetMgtLoopDetectCount ( long a_num ) { m_management_loop_detect_count = a_num; } void Tick( void ); virtual TTypesOfVegetation GetVegType( void ) { return tov_None; } int GetVegStore( void ) { return m_vege_danger_store; } void SetVegStore( int a_veg ) { m_vege_danger_store = a_veg; } void ZeroVegAge() { m_vegage=0; } int GetVegAge() { return m_vegage; } virtual void DoDevelopment( void ); virtual void RecalculateBugsNStuff( void ) { } virtual int GetVegPhase(void) { return vegphase_foobar; } virtual double GetVegCover(void) { return 0.0; } virtual double GetVegHeight( void ) { return 0.0; } virtual APoint GetCentroid(); virtual int GetCentroidX() { return m_centroidx; } virtual int GetCentroidY() { return m_centroidy; } virtual void SetCentroid(int x, int y) { m_centroidx=x; m_centroidy=y; } virtual double GetDigestability( void ) { return 0.0; } virtual int GetVegDensity( void ) { return 0; } virtual bool GetSkScrapes( void ) { return false; } virtual bool IsMatureCereal() { return false; } virtual bool IsCereal() { return false; } virtual bool IsGrass() { return false; } virtual bool GetVegPatchy(void) { return false; } virtual void SetVegPatchy( bool p ) { ;} virtual void SetVegPatchy( bool / p

Definition at line 149 of file elements.h.

149 { return m_ddegs; }

References m_ddegs.

◆ GetDeadBiomass()

virtual double LE::GetDeadBiomass ( void  )
inlinevirtual

Reimplemented in VegElement.

Definition at line 153 of file elements.h.

153 { return 0.0; }

◆ GetGooseGrazingForage()

double LE::GetGooseGrazingForage ( GooseSpecies  a_goose)
inline

Definition at line 197 of file elements.h.

197 { return m_goosegrazingforage[a_goose]; }

References m_goosegrazingforage.

◆ GetGooseNos()

int LE::GetGooseNos ( )

For goose model functionality, returns the number of geese yesterday.

This simply looks X days behind at the moment and sums the total number of geese seen.The length of the backward count can be altered by changing the config variable value cfg_goosecountperiod (default 1, only care about yesterday).

Definition at line 542 of file elements.cpp.

542  {
547  int geese = 0;
548  for (unsigned i = 1; i <= (unsigned)cfg_goosecountperiod.value( ); i++) {
549  unsigned ind = ((unsigned)g_date->DayInYear( ) - i) % 365;
550  geese += m_gooseNos[ ind ];
551  }
552  return geese;
553 }

References cfg_goosecountperiod, Calendar::DayInYear(), g_date, and CfgInt::value().

◆ GetGooseNosToday()

int LE::GetGooseNosToday ( )

For goose model functionality, returns the number of geese today.

This simply sums the total number of geese seen today.

Definition at line 569 of file elements.cpp.

569  {
573  int geese = 0;
574  for (unsigned i = 0; i < (unsigned)gs_foobar; i++) {
575  geese += m_gooseSpNos[g_date->DayInYear()][i];
576  }
577  return geese;
578 }

References Calendar::DayInYear(), and g_date.

◆ GetGooseNosTodayTimed()

int LE::GetGooseNosTodayTimed ( )

For goose model functionality, returns the number of geese today at a predefined time.

This simply sums the total number of geese seen today at our predefined timepoint.

Definition at line 580 of file elements.cpp.

580  {
584  int geese = 0;
585  for (unsigned i = 0; i < (unsigned)gs_foobar; i++) {
586  geese += m_gooseSpNosTimed[g_date->DayInYear()][i];
587  }
588  return geese;
589 }

References Calendar::DayInYear(), and g_date.

◆ GetGooseRoostDist()

int LE::GetGooseRoostDist ( GooseSpecies  a_goose)

For goose model functionality, returns the distance to closest roost.

Returns the distance to closest roost from the field.

Definition at line 601 of file elements.cpp.

601  {
602  return int(m_dist_to_closest_roost[a_goose]);
603 }

◆ GetGooseSpNosToday()

int LE::GetGooseSpNosToday ( GooseSpecies  a_goose)

For goose model functionality, returns the number of geese per species yesterday.

Returns the number of geese of a specific species on a field today.

Definition at line 592 of file elements.cpp.

592  {
593  return m_gooseSpNos[g_date->DayInYear()][a_goose];
594 }

References Calendar::DayInYear(), and g_date.

◆ GetGooseSpNosTodayTimed()

int LE::GetGooseSpNosTodayTimed ( GooseSpecies  a_goose)

For goose model functionality, returns the number of geese per species yesterday at a predefined time.

Returns the number of geese of a specific species on a field today.

Definition at line 597 of file elements.cpp.

597  {
598  return m_gooseSpNosTimed[g_date->DayInYear()][a_goose];
599 }

References Calendar::DayInYear(), and g_date.

◆ GetGreenBiomass()

virtual double LE::GetGreenBiomass ( void  )
inlinevirtual

Reimplemented in VegElement.

Definition at line 152 of file elements.h.

152 { return 0.0; }

◆ GetHigh()

bool LE::GetHigh ( void  )
inline

Definition at line 182 of file elements.h.

182 { return m_high; }

References m_high.

◆ GetInsectPop()

virtual double LE::GetInsectPop ( void  )
inlinevirtual

Reimplemented in VegElement.

Definition at line 156 of file elements.h.

156 { return 0.0; }

Referenced by Farm::BulbHarvest(), Farm::Harvest(), OptimisingFarm::Harvest(), and Farm::HarvestLong().

◆ GetLAGreen()

virtual double LE::GetLAGreen ( void  )
inlinevirtual

Reimplemented in VegElement.

Definition at line 150 of file elements.h.

150 { return 0.0; }

◆ GetLastSownVeg()

TTypesOfVegetation LE::GetLastSownVeg ( )
inline

Returns the last vegetation type to be sown.

Definition at line 299 of file elements.h.

299  {
300  return m_lastsownvegtype;
301  }

References m_lastsownvegtype.

◆ GetLastTreatment()

int LE::GetLastTreatment ( int *  a_index)

Definition at line 511 of file elements.cpp.

511  {
512  if ( * a_index == ( int )m_lastindex )
513  return sleep_all_day;
514  int i = ( * a_index ) ++;
515  int treat = m_lasttreat[ i ];
516  return treat;
517 }

References sleep_all_day.

◆ GetLATotal()

virtual double LE::GetLATotal ( void  )
inlinevirtual

Reimplemented in VegElement.

Definition at line 151 of file elements.h.

151 { return 0.0; }

◆ GetMapIndex()

int LE::GetMapIndex ( void  )
inline

Definition at line 190 of file elements.h.

190 { return m_map_index; }

References m_map_index.

Referenced by PesticideMap::Spray(), and Pesticide::TwinMapSpray().

◆ GetMapValid()

bool LE::GetMapValid ( void  )
inline

Definition at line 228 of file elements.h.

228 { return m_is_in_map; }

References m_is_in_map.

◆ GetMaxX()

int LE::GetMaxX ( void  )
inline

Definition at line 333 of file elements.h.

333 { return m_maxx; }

References m_maxx.

Referenced by PesticideMap::Spray().

◆ GetMaxY()

int LE::GetMaxY ( void  )
inline

Definition at line 334 of file elements.h.

334 { return m_maxy; }

References m_maxy.

Referenced by PesticideMap::Spray().

◆ GetMConstants()

int LE::GetMConstants ( int  a)
inline

Definition at line 343 of file elements.h.

343 {return MConsts[a];}

References MConsts.

◆ GetMDates()

int LE::GetMDates ( int  a,
int  b 
)
inline

Definition at line 341 of file elements.h.

341 {return MDates[a][b];}

References MDates.

◆ GetMinX()

int LE::GetMinX ( void  )
inline

Definition at line 335 of file elements.h.

335 { return m_minx; }

References m_minx.

Referenced by PesticideMap::Spray().

◆ GetMinY()

int LE::GetMinY ( void  )
inline

Definition at line 336 of file elements.h.

336 { return m_miny; }

References m_miny.

Referenced by PesticideMap::Spray().

◆ GetNectar()

virtual PollenNectarQuality LE::GetNectar ( )
inlinevirtual

Definition at line 431 of file elements.h.

431 { return m_nectarquality; }

References m_nectarquality.

◆ GetOldDays()

long LE::GetOldDays ( void  )
inline

Definition at line 218 of file elements.h.

218 { return m_olddays; }

References m_olddays.

◆ GetOpenness()

int LE::GetOpenness ( void  )
inline

For goose model functionality, openness score for the polygon.

Definition at line 350 of file elements.h.

350 { return m_openness; }

References m_openness.

◆ GetOsmiaNest()

bool LE::GetOsmiaNest ( )
inline

Test to see if a nest is found.

Definition at line 395 of file elements.h.

395  {
396  if ((m_currentOsmiaNests < m_maxOsmiaNests) && (g_rand_uni() < m_OsmiaNestProb)) return true;
397  return false;
398  }

References g_rand_uni, m_currentOsmiaNests, m_maxOsmiaNests, and m_OsmiaNestProb.

◆ GetOwner()

Farm* LE::GetOwner ( void  )
inline

Definition at line 195 of file elements.h.

195 { return m_owner; }

References m_owner.

◆ GetOwnerFile()

int LE::GetOwnerFile ( void  )
inline

Definition at line 192 of file elements.h.

192 { return m_owner_file; }

References m_owner_file.

◆ GetOwnerIndex()

int LE::GetOwnerIndex ( void  )
inline

Definition at line 193 of file elements.h.

193 { return m_owner_index; }

References m_owner_index.

◆ GetPesticideCell()

int LE::GetPesticideCell ( )
inline

Definition at line 324 of file elements.h.

324 { return m_PesticideGridCell; }

References m_PesticideGridCell.

◆ GetPigGrazing()

bool LE::GetPigGrazing ( void  )
inline

Definition at line 184 of file elements.h.

184 { return m_pig_grazing; }

References m_pig_grazing.

◆ GetPoison()

bool LE::GetPoison ( void  )
inline

Definition at line 180 of file elements.h.

180 { return m_poison; }

References m_poison.

◆ GetPollen()

virtual PollenNectarQuality LE::GetPollen ( )
inlinevirtual

Definition at line 430 of file elements.h.

430 { return m_pollenquality; }

References m_pollenquality.

◆ GetPoly()

int LE::GetPoly ( void  )
inline

Returns the polyref number for this polygon.

Definition at line 189 of file elements.h.

189 { return m_poly; }

References m_poly.

Referenced by Landscape::BorderScan(), Landscape::FindFieldCenter(), Landscape::hb_StripingDist(), and Landscape::UnsprayedMarginScan().

◆ GetPreviousCrop()

virtual TTypesOfVegetation LE::GetPreviousCrop ( int  )
inlinevirtual

Reimplemented in Field.

Definition at line 179 of file elements.h.

179 { return tov_None; }

References tov_None.

◆ GetQuarryNos()

int LE::GetQuarryNos ( )

For goose model functionality, returns the number of geese yesterday which can be hunted as legal quarry.

This simply looks X days behind at the moment and sums the total number of legal quarry species seen.The length of the backward count can be altered by changing the config variable value cfg_goosecountperiod (default 1, only care about yesterday).

Definition at line 555 of file elements.cpp.

555  {
560  int geese = 0;
561  for (unsigned i = 1; i <= (unsigned)cfg_goosecountperiod.value(); i++) {
562  unsigned ind = ((unsigned)g_date->DayInYear() - i) % 365;
563  geese += m_gooseSpNos[ind][gs_Pinkfoot];
564  geese += m_gooseSpNos[ind][gs_Greylag];
565  }
566  return geese;
567 }

References cfg_goosecountperiod, Calendar::DayInYear(), g_date, and CfgInt::value().

◆ GetRotIndex()

int LE::GetRotIndex ( void  )
inline

Definition at line 309 of file elements.h.

309 { return m_rot_index; }

References m_rot_index.

Referenced by Farm::GetNextCropStartDate(), Farm::HandleEvents(), and OptimisingFarm::HandleEvents().

◆ GetSoilType()

int LE::GetSoilType ( )
inline

/brief Gets the soil type ref number for the polygon

% Agricultural Usage AlmCode SoilType 0.99% None 0 Lake 4.45% None 1 Sand dunes 11.73% Poor 2 Lavbund 0.78% None 3 Marshland 6.28% Good 4 Clay / Sand 0.54% None 5 Sand dunes 4.57% Average 6 Moraine sand and gravel 38.11% Good 7 Moraine clay and silt( clay soil ) 19.31% Poor 8 Sandy 1.03% Good 9 Heavy Clay 9.91% Average 10 Sand / gravel - how is this different from moraine sand and gravel, smaller gravels maybe, no flints ? 1.79% Poor 11 Limestone ? 0.34% Poor 12 Chalk 0.15% None 13 Stoney

Definition at line 241 of file elements.h.

241  {
259  return m_soiltype;
260  }

References m_soiltype.

◆ GetSoilTypeR()

int LE::GetSoilTypeR ( )
inline

/brief Gets the soil type ref number for the polygon for rabbit warrens

The soil type follows the Danish Soil Classification and is denoted by a JB number see GetSoilType. Those types that are Sandy return 1, otherwise suitable for burrows 0, and 3 if unsuitable. If not soil types are specified then heavy soils suitable for long-term burrows are returned as default.

Definition at line 262 of file elements.h.

262  {
267  switch (m_soiltype)
268  {
269  case 0: return 3;
270  case 1: return 1;
271  case 2: return 3;
272  case 3: return 3;
273  case 4: return 0;
274  case 5: return 1;
275  case 6: return 0;
276  case 7: return 0;
277  case 8: return 1;
278  case 9: return 0;
279  case 10: return 0;
280  case 11: return 0;
281  case 12: return 0;
282  case 13: return 3;
283  default:
284  return 3;
285  }
286  }

References m_soiltype.

◆ GetSprayedToday()

bool LE::GetSprayedToday ( )
inline

Definition at line 304 of file elements.h.

304 { return m_sprayedtoday; }

References m_sprayedtoday.

◆ GetStubble()

bool LE::GetStubble ( )
inline

Return the in stubble flag.

Definition at line 392 of file elements.h.

392 { return m_instubble; }

References m_instubble.

◆ GetTotalNectar()

virtual double LE::GetTotalNectar ( )
inlinevirtual

Definition at line 433 of file elements.h.

433 { return m_totalNectar; }

References m_totalNectar.

◆ GetTotalPollen()

virtual double LE::GetTotalPollen ( )
inlinevirtual

Definition at line 432 of file elements.h.

432 { return m_totalPollen; }

References m_totalPollen.

◆ GetTrafficLoad()

virtual double LE::GetTrafficLoad ( void  )
inlinevirtual

Reimplemented in SmallRoad, and LargeRoad.

Definition at line 178 of file elements.h.

178 { return 0.0; }

◆ GetUnsprayedMarginPolyRef()

int LE::GetUnsprayedMarginPolyRef ( void  )
inline

Definition at line 319 of file elements.h.

319 { return m_unsprayedmarginpolyref; }

References m_unsprayedmarginpolyref.

Referenced by Farm::AutumnHarrow(), Farm::AutumnPlough(), Farm::AutumnRoll(), Farm::AutumnSow(), Farm::BedForming(), Farm::Biocide(), Farm::BulbHarvest(), Farm::BurnStrawStubble(), Farm::CattleIsOut(), Farm::CattleIsOutLow(), Farm::CattleOut(), Farm::CattleOutLowGrazing(), Farm::CutOrch(), Farm::CutToHay(), Farm::CutToSilage(), Farm::CutWeeds(), Farm::DeepPlough(), Field::DoDevelopment(), Farm::FA_AmmoniumSulphate(), Farm::FA_Calcium(), Farm::FA_GreenManure(), Farm::FA_ManganeseSulphate(), Farm::FA_Manure(), Farm::FA_NPK(), Farm::FA_NPKS(), Farm::FA_PK(), Farm::FA_RSM(), Farm::FA_Sludge(), Farm::FA_Slurry(), Farm::FlowerCutting(), Farm::FP_AmmoniumSulphate(), Farm::FP_Calcium(), Farm::FP_GreenManure(), Farm::FP_LiquidNH3(), Farm::FP_ManganeseSulphate(), Farm::FP_Manure(), Farm::FP_NPK(), Farm::FP_NPKS(), Farm::FP_PK(), Farm::FP_RSM(), Farm::FP_Sludge(), Farm::FP_Slurry(), Farm::Harvest(), OptimisingFarm::Harvest(), Farm::HarvestLong(), Farm::HayBailing(), Farm::HayTurning(), Farm::HeavyCultivatorAggregate(), Farm::HillingUp(), Farm::PigsAreOut(), Farm::PigsAreOutForced(), Farm::PigsOut(), Farm::PreseedingCultivator(), Farm::PreseedingCultivatorSow(), Farm::RowCultivation(), Farm::ShallowHarrow(), Farm::SleepAllDay(), Farm::SpringHarrow(), Farm::SpringPlough(), Farm::SpringRoll(), Farm::SpringSow(), Farm::SpringSowWithFerti(), Farm::StrawChopping(), Farm::StrawCovering(), Farm::StrawRemoval(), Farm::Strigling(), Farm::StriglingHill(), Farm::StriglingSow(), Farm::StubbleCultivatorHeavy(), Farm::StubbleHarrowing(), Farm::StubblePlough(), Farm::Swathing(), Landscape::UnsprayedMarginScan(), Farm::Water(), and Farm::WinterPlough().

◆ GetValidX()

int LE::GetValidX ( void  )
inline

Definition at line 330 of file elements.h.

330 { return m_valid_x; }

References m_valid_x.

Referenced by Landscape::BorderAdd(), Landscape::UnsprayedMarginAdd(), and Landscape::UnsprayedMarginScan().

◆ GetValidY()

int LE::GetValidY ( void  )
inline

Definition at line 331 of file elements.h.

331 { return m_valid_y; }

References m_valid_y.

Referenced by Landscape::BorderAdd(), Landscape::UnsprayedMarginAdd(), and Landscape::UnsprayedMarginScan().

◆ GetVegBiomass()

virtual double LE::GetVegBiomass ( void  )
inlinevirtual

Reimplemented in VegElement.

Definition at line 154 of file elements.h.

154 { return 0.0; }

Referenced by Farm::CattleIsOut(), Farm::CattleIsOutLow(), and OptimisingFarm::Harvest().

◆ GetVegDDegs()

double LE::GetVegDDegs ( )
inline

Get the total of day degrees for the crop/veg on this element.

Definition at line 346 of file elements.h.

346  {
347  return m_vegddegs; //
348  }

References m_vegddegs.

◆ GetWeedBiomass()

virtual double LE::GetWeedBiomass ( void  )
inlinevirtual

Reimplemented in VegElement.

Definition at line 155 of file elements.h.

155 { return 0.0; }

◆ GrazeVeg_Extended()

virtual void LE::GrazeVeg_Extended ( double  )
inlinevirtual

Definition at line 177 of file elements.h.

177 { ; }

◆ GrazeVegetation()

virtual void LE::GrazeVegetation ( double  ,
bool   
)
inlinevirtual

/brief Reduces the total vegetation biomass as a result of grazing in descendent classes, per m2 mass

Reimplemented in VegElement.

Definition at line 231 of file elements.h.

232  {
233  ;
234  }

Referenced by Farm::CattleIsOut(), Farm::CattleIsOutLow(), Farm::CattleOut(), and Farm::CattleOutLowGrazing().

◆ GrazeVegetationTotal()

virtual void LE::GrazeVegetationTotal ( double  )
inlinevirtual

/brief Reduces the total vegetation biomass as a result of grazing in descendent classes, total polygon mass

Reimplemented in VegElement.

Definition at line 236 of file elements.h.

237  {
238  ;
239  }

◆ HasTramlines()

bool LE::HasTramlines ( void  )
inline

Definition at line 185 of file elements.h.

185 { return ( m_tramlinesdecay>0 ); }

References m_tramlinesdecay.

◆ IncOsmiaNesting()

void LE::IncOsmiaNesting ( )
inline

Add an occupied nest.

Definition at line 415 of file elements.h.

416  {
418  }

References m_currentOsmiaNests.

◆ Insecticide()

virtual void LE::Insecticide ( double  )
inlinevirtual

Reimplemented in VegElement.

Definition at line 158 of file elements.h.

158 { ; }

Referenced by Farm::InsecticideTreat(), OptimisingFarm::InsecticideTreat(), and Farm::ProductApplication().

◆ InsectMortality()

◆ IsMaleNewtPresent()

virtual bool LE::IsMaleNewtPresent ( )
inlinevirtual

Sets a male newt as present/absent in descendent classes - here only to prevent need for dynamic casts.

Reimplemented in Pond.

Definition at line 388 of file elements.h.

388 { return false; };

◆ IsRecentlyMown()

bool LE::IsRecentlyMown ( void  )
inline

Definition at line 186 of file elements.h.

186 { return ( m_mowndecay>0 ); }

References m_mowndecay.

◆ IsRecentlySprayed()

int LE::IsRecentlySprayed ( void  )
inline

Definition at line 187 of file elements.h.

187 { return ( m_herbicidedelay ); }

References m_herbicidedelay.

◆ ReduceVeg()

virtual void LE::ReduceVeg ( double  )
inlinevirtual

Reimplemented in VegElement.

Definition at line 175 of file elements.h.

175 {;}

Referenced by Farm::BurnStrawStubble(), Farm::CutWeeds(), and Farm::ShallowHarrow().

◆ ReduceVeg_Extended()

virtual void LE::ReduceVeg_Extended ( double  )
inlinevirtual

Reimplemented in VegElement.

Definition at line 176 of file elements.h.

176 { ; }

Referenced by Farm::CutOrch(), Farm::CutToHay(), Farm::CutToSilage(), Farm::FlowerCutting(), Farm::PigsAreOutForced(), and Farm::PigsOut().

◆ ReduceWeedBiomass()

virtual void LE::ReduceWeedBiomass ( double  )
inlinevirtual

◆ ReleaseOsmiaNest()

void LE::ReleaseOsmiaNest ( )
inline

Test to see if a nest is found.

Definition at line 401 of file elements.h.

401  {
403  }

References m_currentOsmiaNests.

◆ ResetDigestability()

virtual void LE::ResetDigestability ( )
inlinevirtual

sets growth record to zero in descendent classes

Reimplemented in VegElement.

Definition at line 382 of file elements.h.

382 { ; }

Referenced by Farm::BulbHarvest(), Farm::CutToSilage(), Farm::Harvest(), OptimisingFarm::Harvest(), and Farm::HarvestLong().

◆ SetArea()

void LE::SetArea ( double  a_area)
inline

◆ SetBirdMaize()

void LE::SetBirdMaize ( double  a_forage)
inline

Definition at line 213 of file elements.h.

213  {
214  m_birdmaizeforage = a_forage;
215  }

References m_birdmaizeforage.

Referenced by Farm::Harvest(), and Farm::HarvestLong().

◆ SetBirdSeed()

void LE::SetBirdSeed ( double  a_forage)
inline

Definition at line 201 of file elements.h.

201  {
202  m_birdseedforage = a_forage;
203  }

References m_birdseedforage.

Referenced by Farm::Harvest(), and Farm::HarvestLong().

◆ SetBorder()

void LE::SetBorder ( LE a_border)
inline

Definition at line 320 of file elements.h.

320 { m_border = a_border; }

References m_border.

Referenced by Landscape::BorderAdd(), and Landscape::ReadPolys2().

◆ SetCopyTreatment()

void LE::SetCopyTreatment ( int  a_treatment)

Definition at line 486 of file elements.cpp.

486  {
487  SetLastTreatment( a_treatment );
488 }

◆ SetCountryDesignation()

void LE::SetCountryDesignation ( int  a_designation)
inline

Definition at line 217 of file elements.h.

217 { m_countrydesignation = a_designation; }

References m_countrydesignation.

◆ SetCropData()

virtual void LE::SetCropData ( double  ,
double  ,
double  ,
TTypesOfVegetation  ,
double  ,
int   
)
inlinevirtual

Reimplemented in VegElement.

Definition at line 167 of file elements.h.

167 { ; }

Referenced by Field::DoDevelopment().

◆ SetCropDataAll()

virtual void LE::SetCropDataAll ( double  ,
double  ,
double  ,
double  ,
TTypesOfVegetation  ,
double  ,
double  ,
int  ,
double  ,
bool  ,
double   
)
inlinevirtual

Reimplemented in VegElement.

Definition at line 168 of file elements.h.

168 {;}

Referenced by Field::DoDevelopment().

◆ SetGooseNos()

void LE::SetGooseNos ( int  a_number,
int  a_day 
)
inline

For goose model functionality, records the number of geese on a_day day

Definition at line 352 of file elements.h.

352 { m_gooseNos[a_day] = a_number; }

References m_gooseNos.

◆ SetGooseNosTimed()

void LE::SetGooseNosTimed ( int  a_number,
int  a_day 
)
inline

For goose model functionality, records the number of geese on a_day day

Definition at line 358 of file elements.h.

358 { m_gooseNosTimed[a_day] = a_number; }

References m_gooseNosTimed.

◆ SetGooseRoostDist()

void LE::SetGooseRoostDist ( int  a_dist,
GooseSpecies  a_goose 
)
inline

For goose model functionality, records the distance to the closest roost.

Definition at line 364 of file elements.h.

364 { m_dist_to_closest_roost[a_goose] = a_dist; }

References m_dist_to_closest_roost.

◆ SetGooseSpNos()

void LE::SetGooseSpNos ( int  a_number,
int  a_day,
GooseSpecies  a_goose 
)
inline

For goose model functionality, records the number of geese on a_day day

Definition at line 354 of file elements.h.

354  {
355  m_gooseSpNos[a_day][a_goose] = a_number;
356  }

References m_gooseSpNos.

◆ SetGooseSpNosTimed()

void LE::SetGooseSpNosTimed ( int  a_number,
int  a_day,
GooseSpecies  a_goose 
)
inline

For goose model functionality, records the number of geese on a_day day

Definition at line 360 of file elements.h.

360  {
361  m_gooseSpNosTimed[a_day][a_goose] = a_number;
362  }

References m_gooseSpNosTimed.

◆ SetGrowthPhase()

◆ SetHerbicideDelay()

void LE::SetHerbicideDelay ( int  a_decaytime_days)
inline

Definition at line 312 of file elements.h.

313  { m_herbicidedelay = a_decaytime_days; }

References m_herbicidedelay.

Referenced by Farm::HerbicideTreat(), OptimisingFarm::HerbicideTreat(), Farm::Strigling(), and Farm::StriglingSow().

◆ SetHigh()

◆ SetInsectPop()

virtual void LE::SetInsectPop ( double  )
inlinevirtual

Reimplemented in VegElement.

Definition at line 157 of file elements.h.

157 { ; }

Referenced by Farm::BulbHarvest(), Farm::Harvest(), OptimisingFarm::Harvest(), and Farm::HarvestLong().

◆ SetLastSownVeg()

void LE::SetLastSownVeg ( TTypesOfVegetation  a_tov)
inline

Records the last vegetation type to be sown.

Definition at line 293 of file elements.h.

293  {
294  m_lastsownvegtype = a_tov;
295  }

References m_lastsownvegtype.

Referenced by Farm::AutumnSow(), Farm::PreseedingCultivatorSow(), Farm::SpringSow(), and Farm::SpringSowWithFerti().

◆ SetLastTreatment()

void LE::SetLastTreatment ( int  a_treatment)

Definition at line 490 of file elements.cpp.

490  {
491  unsigned sz = (int) m_lasttreat.size();
492  if ( m_lastindex == sz )
493  m_lasttreat.resize( m_lastindex + 1 );
494 
495  m_lasttreat[ m_lastindex++ ] = a_treatment;
496 
497  // Count this treatment in the grand scope of things.
498  g_landscape_p->IncTreatCounter( a_treatment );
499  // If we have a field margin then we need to tell it about this
500  // but not if it is an insecticide spray etc..
501  /* if (m_unsprayedmarginpolyref!=-1) { switch (a_treatment) { case herbicide_treat: case growth_regulator:
502  case fungicide_treat: case insecticide_treat: case trial_insecticidetreat: case syninsecticide_treat: case molluscicide:
503  break; // Do not add sprayings default: LE* le=g_landscape_p->SupplyLEPointer(m_unsprayedmarginpolyref);
504  le->SetCopyTreatment(a_treatment); // Now we also need to do something with the treatment
505 
506  break; }
507 
508  } */
509 }

References g_landscape_p, and Landscape::IncTreatCounter().

Referenced by Farm::AutumnHarrow(), Farm::AutumnPlough(), Farm::AutumnRoll(), Farm::AutumnSow(), Farm::BedForming(), Farm::Biocide(), Farm::BulbHarvest(), Farm::BurnStrawStubble(), Farm::CattleIsOut(), Farm::CattleIsOutLow(), Farm::CattleOut(), Farm::CattleOutLowGrazing(), Farm::CutOrch(), RoadsideVerge::Cutting(), Orchard::Cutting(), MownGrass::Cutting(), Farm::CutToHay(), Farm::CutToSilage(), Farm::CutWeeds(), Farm::DeepPlough(), Farm::FA_AmmoniumSulphate(), Farm::FA_Calcium(), Farm::FA_GreenManure(), Farm::FA_ManganeseSulphate(), Farm::FA_Manure(), Farm::FA_NPK(), Farm::FA_NPKS(), Farm::FA_PK(), Farm::FA_RSM(), Farm::FA_Sludge(), Farm::FA_Slurry(), Farm::FlowerCutting(), Farm::FP_AmmoniumSulphate(), Farm::FP_Calcium(), Farm::FP_GreenManure(), Farm::FP_LiquidNH3(), Farm::FP_ManganeseSulphate(), Farm::FP_Manure(), Farm::FP_NPK(), Farm::FP_NPKS(), Farm::FP_PK(), Farm::FP_RSM(), Farm::FP_Sludge(), Farm::FP_Slurry(), Farm::FungicideTreat(), OptimisingFarm::FungicideTreat(), Farm::GrowthRegulator(), Farm::Harvest(), OptimisingFarm::Harvest(), Farm::HarvestLong(), Farm::HayBailing(), Farm::HayTurning(), Farm::HeavyCultivatorAggregate(), Farm::HerbicideTreat(), OptimisingFarm::HerbicideTreat(), Farm::HillingUp(), Farm::InsecticideTreat(), OptimisingFarm::InsecticideTreat(), Farm::Molluscicide(), Farm::PigsAreOutForced(), Farm::PigsOut(), Farm::PreseedingCultivator(), Farm::PreseedingCultivatorSow(), Farm::ProductApplication(), Farm::ProductApplication_DateLimited(), Farm::RowCultivation(), Farm::ShallowHarrow(), Farm::SleepAllDay(), Farm::SpringHarrow(), Farm::SpringPlough(), Farm::SpringRoll(), Farm::SpringSow(), Farm::SpringSowWithFerti(), Farm::StrawChopping(), Farm::StrawCovering(), Farm::StrawRemoval(), Farm::Strigling(), Farm::StriglingHill(), Farm::StriglingSow(), Farm::StubbleCultivatorHeavy(), Farm::StubbleHarrowing(), Farm::StubblePlough(), Farm::Swathing(), Farm::Water(), and Farm::WinterPlough().

◆ SetMaleNewtPresent()

virtual void LE::SetMaleNewtPresent ( bool  )
inlinevirtual

Sets a male newt as present/absent in descendent classes - here only to prevent need for dynamic casts.

Reimplemented in Pond.

Definition at line 386 of file elements.h.

386 { ; };

◆ SetMapIndex()

void LE::SetMapIndex ( int  a_map_index)
inline

Definition at line 191 of file elements.h.

191 { m_map_index = a_map_index; }

References m_map_index.

Referenced by Landscape::ReadPolys2().

◆ SetMapValid()

void LE::SetMapValid ( bool  a_valid)
inline

Definition at line 227 of file elements.h.

227 { m_is_in_map = a_valid; }

References m_is_in_map.

Referenced by Landscape::BeetleBankAdd(), and Landscape::BorderScan().

◆ SetMaxOsmiaNests()

void LE::SetMaxOsmiaNests ( double  a_noNests)
inline

Add an occupied nest.

Definition at line 421 of file elements.h.

422  {
423  m_maxOsmiaNests = int(a_noNests * m_area);
424  if (m_maxOsmiaNests < 1) m_maxOsmiaNests = 0;
425  }

References m_area, and m_maxOsmiaNests.

◆ SetMaxX()

void LE::SetMaxX ( int  x)
inline

Definition at line 337 of file elements.h.

337 { m_maxx=x; }

References m_maxx.

◆ SetMaxY()

void LE::SetMaxY ( int  y)
inline

Definition at line 338 of file elements.h.

338 { m_maxy=y; }

References m_maxy.

◆ SetMConstants()

void LE::SetMConstants ( int  a,
int  c 
)
inline

Definition at line 344 of file elements.h.

344 {MConsts[a]=c;}

References MConsts.

◆ SetMDates()

void LE::SetMDates ( int  a,
int  b,
int  c 
)
inline

Definition at line 342 of file elements.h.

342 {MDates[a][b]=c;}

References MDates.

◆ SetMinX()

void LE::SetMinX ( int  x)
inline

Definition at line 339 of file elements.h.

339 { m_minx=x; }

References m_minx.

◆ SetMinY()

void LE::SetMinY ( int  y)
inline

Definition at line 340 of file elements.h.

340 { m_miny=y; }

References m_miny.

◆ SetMownDecay()

void LE::SetMownDecay ( int  a_decaytime_days)
inline

Definition at line 314 of file elements.h.

315  { m_mowndecay = a_decaytime_days; }

References m_mowndecay.

Referenced by Farm::CutOrch(), Orchard::Cutting(), and MownGrass::Cutting().

◆ SetOldDays()

void LE::SetOldDays ( long  a_days)
inline

Definition at line 306 of file elements.h.

306 { m_olddays = a_days; }

References m_olddays.

◆ SetOpenness()

void LE::SetOpenness ( int  a_openness)
inline

Records the openness statistic for this polygon.

Definition at line 380 of file elements.h.

380 { m_openness=a_openness; }

References m_openness.

Referenced by Landscape::Landscape(), and Landscape::ReadPolys2().

◆ SetOwner()

void LE::SetOwner ( Farm a_owner,
int  a_owner_num,
int  a_owner_index 
)
inline

Definition at line 219 of file elements.h.

220  {
221  m_owner = a_owner;
222  m_owner_file = a_owner_num;
223  m_owner_index = a_owner_index;
224  }

References m_owner, m_owner_file, and m_owner_index.

Referenced by FarmManager::AddField(), and Landscape::RemoveSmallPolygons().

◆ SetPesticideCell()

void LE::SetPesticideCell ( int  a_cell)
inline

Definition at line 323 of file elements.h.

323 { m_PesticideGridCell = a_cell; }

References m_PesticideGridCell.

◆ SetPoison()

void LE::SetPoison ( bool  a_poison)
inline

Definition at line 181 of file elements.h.

181 { m_poison = a_poison; }

References m_poison.

◆ SetPollenNectarCurves()

void LE::SetPollenNectarCurves ( PollenNectarDevelopmentCurve a_pollencurnve,
PollenNectarDevelopmentCurve a_nectarcurve 
)
inline

Set method for pollen and nectar curves.

Definition at line 435 of file elements.h.

435  {
436  m_pollencurve = a_pollencurnve;
437  m_nectarcurve = a_nectarcurve;
438  }

References m_nectarcurve, and m_pollencurve.

Referenced by VegElement::SetVegType().

◆ SetPollenNectarData()

◆ SetPoly()

void LE::SetPoly ( int  a_poly)
inline

◆ SetRotIndex()

void LE::SetRotIndex ( int  a_index)
inline

Definition at line 307 of file elements.h.

307 { m_rot_index = a_index; }

References m_rot_index.

Referenced by Farm::HandleEvents(), OptimisingFarm::HandleEvents(), and OptimisingFarm::Match_crop_to_field().

◆ SetSoilType()

void LE::SetSoilType ( int  a_st)
inline

Definition at line 287 of file elements.h.

287  {
288  m_soiltype = a_st;
289  }

References m_soiltype.

Referenced by Landscape::Landscape(), and Landscape::ReadPolys2().

◆ SetSprayedToday()

void LE::SetSprayedToday ( bool  a_didit)
inline

Definition at line 303 of file elements.h.

303 { m_sprayedtoday = a_didit; }

References m_sprayedtoday.

Referenced by Field::DoDevelopment(), and Farm::ProductApplication_DateLimited().

◆ SetStubble()

void LE::SetStubble ( bool  a_flag)
inline

Sets the in stubble flag.

Definition at line 390 of file elements.h.

390 { m_instubble = a_flag; }

References m_instubble.

Referenced by Farm::Harvest(), and VegElement::ZeroVeg().

◆ SetTramlinesDecay()

◆ SetUnsprayedMarginPolyRef()

void LE::SetUnsprayedMarginPolyRef ( int  a_unsprayedmargin)
inline

Definition at line 322 of file elements.h.

322 { m_unsprayedmarginpolyref = a_unsprayedmargin; }

References m_unsprayedmarginpolyref.

Referenced by Landscape::Landscape(), Landscape::ReadPolys2(), and Landscape::UnsprayedMarginAdd().

◆ SetValidXY()

void LE::SetValidXY ( int  a_valid_x,
int  a_valid_y 
)
inline

Definition at line 325 of file elements.h.

326  {
327  m_valid_x = a_valid_x;
328  m_valid_y = a_valid_y;
329  }

References m_valid_x, and m_valid_y.

Referenced by Landscape::BeetleBankAdd().

◆ SetVegBiomass()

virtual void LE::SetVegBiomass ( int  )
inlinevirtual

Definition at line 163 of file elements.h.

163 {;}

◆ SetVegHeight()

virtual void LE::SetVegHeight ( double  )
inlinevirtual

Reimplemented in VegElement.

Definition at line 165 of file elements.h.

165 { ; }

Referenced by Farm::CutToHay(), Farm::CutToSilage(), and Farm::FlowerCutting().

◆ SetVegParameters()

virtual void LE::SetVegParameters ( double  ,
double  ,
double  ,
double   
)
inlinevirtual

Reimplemented in VegElement.

Definition at line 166 of file elements.h.

166 { ; }

Referenced by Farm::CutOrch().

◆ SetVegType()

virtual void LE::SetVegType ( TTypesOfVegetation  ,
TTypesOfVegetation   
)
inlinevirtual

Reimplemented in VegElement.

Definition at line 164 of file elements.h.

164 {;}

Referenced by Farm::HandleEvents(), and OptimisingFarm::HandleEvents().

◆ StoreLAItotal()

virtual void LE::StoreLAItotal ( )
inlinevirtual

Reimplemented in VegElement.

Definition at line 169 of file elements.h.

169 {;}

◆ ToggleCattleGrazing()

virtual void LE::ToggleCattleGrazing ( void  )
inlinevirtual

Reimplemented in VegElement.

Definition at line 161 of file elements.h.

161 {;}

Referenced by Farm::CattleIsOut(), Farm::CattleIsOutLow(), Farm::CattleOut(), and Farm::CattleOutLowGrazing().

◆ TogglePigGrazing()

virtual void LE::TogglePigGrazing ( void  )
inlinevirtual

Reimplemented in VegElement.

Definition at line 162 of file elements.h.

162 {;}

Referenced by Farm::PigsAreOut(), and Farm::PigsOut().

◆ UpdateOsmiaNesting()

void LE::UpdateOsmiaNesting ( )
inline

Recalculate the nest finding probability.

Definition at line 406 of file elements.h.

407  {
408  if (m_maxOsmiaNests <= 0) m_OsmiaNestProb = 0.0;
409  else {
411  }
412  }

References m_currentOsmiaNests, m_maxOsmiaNests, and m_OsmiaNestProb.

◆ ZeroVeg()

Member Data Documentation

◆ m_almass_le_type

int LE::m_almass_le_type
protected

This holds the ALMaSS element type reference number.

Definition at line 482 of file elements.h.

Referenced by DoCopy().

◆ m_area

◆ m_birdmaizeforage

double LE::m_birdmaizeforage
protected

The maize forage present in KJ/m2.

Definition at line 503 of file elements.h.

Referenced by VegElement::CalcGooseForageResources(), DoCopy(), GetBirdMaize(), SetBirdMaize(), and VegElement::ZeroVeg().

◆ m_birdseedforage

double LE::m_birdseedforage
protected

The grain forage present in KJ/m2.

Definition at line 501 of file elements.h.

Referenced by VegElement::CalcGooseForageResources(), DoCopy(), GetBirdSeed(), SetBirdSeed(), and VegElement::ZeroVeg().

◆ m_border

LE* LE::m_border
protected

Definition at line 447 of file elements.h.

Referenced by DoCopy(), GetBorder(), and SetBorder().

◆ m_cattle_grazing

◆ m_centroidx

int LE::m_centroidx
protected

Definition at line 454 of file elements.h.

Referenced by DoCopy().

◆ m_centroidy

int LE::m_centroidy
protected

Definition at line 455 of file elements.h.

Referenced by DoCopy().

◆ m_countrydesignation

int LE::m_countrydesignation
protected

◆ m_currentOsmiaNests

int LE::m_currentOsmiaNests
protected

to record the number of actual osmia nests

Definition at line 538 of file elements.h.

Referenced by GetOsmiaNest(), IncOsmiaNesting(), ReleaseOsmiaNest(), and UpdateOsmiaNesting().

◆ m_days_since_insecticide_spray

int LE::m_days_since_insecticide_spray
protected

Definition at line 514 of file elements.h.

Referenced by DoCopy(), VegElement::Insecticide(), and VegElement::RecalculateBugsNStuff().

◆ m_ddegs

◆ m_default_grazing_level

◆ m_dist_to_closest_roost

double LE::m_dist_to_closest_roost[gs_foobar]
protected

An array holding the distance to the nearest goose roost.

Definition at line 511 of file elements.h.

Referenced by SetGooseRoostDist().

◆ m_farmfunc_tried_to_do

int LE::m_farmfunc_tried_to_do
protected

Definition at line 483 of file elements.h.

Referenced by DoCopy().

◆ m_goosegrazingforage

double LE::m_goosegrazingforage[gs_foobar]
protected

The grazing forage present in KJ/min. The last value indicates cereal 1 or not -1.

Definition at line 505 of file elements.h.

Referenced by VegElement::CalcGooseForageResources(), DoCopy(), and GetGooseGrazingForage().

◆ m_gooseNos

int LE::m_gooseNos[366]
protected

The number of geese each day.

Definition at line 491 of file elements.h.

Referenced by DoCopy(), VegElement::ResetGeese(), and SetGooseNos().

◆ m_gooseNosTimed

int LE::m_gooseNosTimed[366]
protected

The number of geese at a predefined time per day.

Definition at line 495 of file elements.h.

Referenced by DoCopy(), and SetGooseNosTimed().

◆ m_gooseSpNos

int LE::m_gooseSpNos[366][gs_foobar]
protected

The number of geese of each species each day.

Definition at line 493 of file elements.h.

Referenced by DoCopy(), VegElement::ResetGeese(), and SetGooseSpNos().

◆ m_gooseSpNosTimed

int LE::m_gooseSpNosTimed[366][gs_foobar]
protected

The number of geese of each species at a predefined time per day.

Definition at line 497 of file elements.h.

Referenced by DoCopy(), VegElement::ResetGeese(), and SetGooseSpNosTimed().

◆ m_herbicidedelay

int LE::m_herbicidedelay
protected

◆ m_high

bool LE::m_high
protected

Definition at line 515 of file elements.h.

Referenced by DoCopy(), GetHigh(), and SetHigh().

◆ m_instubble

bool LE::m_instubble
protected

A flag describing the state of the field from a visual perspective - will be in stubble following a cereal crop until either soil cultivation or March 1st.

Definition at line 499 of file elements.h.

Referenced by GetStubble(), and SetStubble().

◆ m_is_in_map

bool LE::m_is_in_map
protected

Definition at line 459 of file elements.h.

Referenced by DoCopy(), GetMapValid(), and SetMapValid().

◆ m_largeroad_load

double LE::m_largeroad_load
staticprotected
Initial value:
=
{15,9,4,5,14,54,332,381,252,206,204,215,
231,256,335,470,384,270,191,130,91,100,99,60}

Definition at line 528 of file elements.h.

Referenced by LargeRoad::GetTrafficLoad().

◆ m_lastindex

unsigned int LE::m_lastindex
protected

Definition at line 525 of file elements.h.

Referenced by DoCopy().

◆ m_lastsownvegtype

TTypesOfVegetation LE::m_lastsownvegtype
protected

Records the last vegegetation type that was sown on the element.

Definition at line 507 of file elements.h.

Referenced by GetLastSownVeg(), VegElement::IsCereal(), VegElement::IsGooseGrass(), and SetLastSownVeg().

◆ m_lasttreat

vector<int> LE::m_lasttreat
protected

Definition at line 524 of file elements.h.

Referenced by DoCopy().

◆ m_management_loop_detect_count

long LE::m_management_loop_detect_count
protected

Definition at line 468 of file elements.h.

Referenced by DoCopy().

◆ m_management_loop_detect_date

long LE::m_management_loop_detect_date
protected

Definition at line 467 of file elements.h.

Referenced by DoCopy().

◆ m_map_index

int LE::m_map_index
protected

Definition at line 480 of file elements.h.

Referenced by DoCopy(), GetMapIndex(), and SetMapIndex().

◆ m_maxOsmiaNests

int LE::m_maxOsmiaNests
protected

to record the number of possible osmia nests

Definition at line 536 of file elements.h.

Referenced by GetOsmiaNest(), SetMaxOsmiaNests(), and UpdateOsmiaNesting().

◆ m_maxx

int LE::m_maxx
protected

Definition at line 462 of file elements.h.

Referenced by Pond::CalcPondPesticide(), DoCopy(), GetMaxX(), and SetMaxX().

◆ m_maxy

int LE::m_maxy
protected

Definition at line 464 of file elements.h.

Referenced by Pond::CalcPondPesticide(), DoCopy(), GetMaxY(), and SetMaxY().

◆ m_minx

int LE::m_minx
protected

Definition at line 463 of file elements.h.

Referenced by Pond::CalcPondPesticide(), DoCopy(), GetMinX(), and SetMinX().

◆ m_miny

int LE::m_miny
protected

Definition at line 465 of file elements.h.

Referenced by Pond::CalcPondPesticide(), DoCopy(), GetMinY(), and SetMinY().

◆ m_monthly_traffic

double LE::m_monthly_traffic
staticprotected
Initial value:
=
{0.9009, 0.9434, 0.9901, 1.0101, 1.0417, 1.0870,
1.0870, 1.0753, 1.0753, 1.0101, 0.9804, 0.9434}

Used for birds that feed on grain on cereal fields 3% spill is expected.

Yield % kg/Ha spill kJ/kg kj/m 0.85 0.01 8.5 13680 11.628 0.85 0.02 17 13680 23.256 0.85 0.03 25.5 13680 34.884 0.85 0.04 34 13680 46.512 0.85 0.05 42.5 13680 58.14 0.85 0.06 51 13680 69.768

Definition at line 527 of file elements.h.

Referenced by LargeRoad::GetTrafficLoad(), and SmallRoad::GetTrafficLoad().

◆ m_mowndecay

int LE::m_mowndecay
protected

Definition at line 485 of file elements.h.

Referenced by DoCopy(), IsRecentlyMown(), and SetMownDecay().

◆ m_nectarcurve

PollenNectarDevelopmentCurve* LE::m_nectarcurve
protected

pointer to the correct nectar curve set

Definition at line 548 of file elements.h.

Referenced by SetPollenNectarCurves(), and VegElement::SetVegType().

◆ m_NectarM2

double LE::m_NectarM2
protected

Definition at line 544 of file elements.h.

Referenced by VegElement::PollenNectarPhenologyCalculation().

◆ m_nectarquality

PollenNectarQuality LE::m_nectarquality
protected

Definition at line 540 of file elements.h.

Referenced by GetNectar().

◆ m_olddays

long LE::m_olddays
protected

Definition at line 466 of file elements.h.

Referenced by DoCopy(), GetOldDays(), and SetOldDays().

◆ m_openness

int LE::m_openness
protected

The openness metric for a field (if any)

Definition at line 509 of file elements.h.

Referenced by DoCopy(), GetOpenness(), and SetOpenness().

◆ m_OsmiaNestProb

double LE::m_OsmiaNestProb
protected

to record the chance of osmia nesting

Definition at line 534 of file elements.h.

Referenced by GetOsmiaNest(), and UpdateOsmiaNesting().

◆ m_owner

Farm* LE::m_owner
protected

Definition at line 469 of file elements.h.

Referenced by DoCopy(), GetOwner(), Field::GetPreviousCrop(), and SetOwner().

◆ m_owner_file

int LE::m_owner_file
protected

Definition at line 471 of file elements.h.

Referenced by DoCopy(), GetOwnerFile(), and SetOwner().

◆ m_owner_index

int LE::m_owner_index
protected

◆ m_pdates

int LE::m_pdates[256]
protected

Definition at line 442 of file elements.h.

◆ m_PesticideGridCell

int LE::m_PesticideGridCell
protected

Definition at line 457 of file elements.h.

Referenced by DoCopy(), GetPesticideCell(), and SetPesticideCell().

◆ m_pig_grazing

bool LE::m_pig_grazing
protected

Definition at line 519 of file elements.h.

Referenced by DoCopy(), GetPigGrazing(), and VegElement::TogglePigGrazing().

◆ m_pindex

int LE::m_pindex
protected

Definition at line 443 of file elements.h.

◆ m_poison

bool LE::m_poison
protected

Definition at line 516 of file elements.h.

Referenced by DoCopy(), GetPoison(), and SetPoison().

◆ m_pollencurve

PollenNectarDevelopmentCurve* LE::m_pollencurve
protected

pointer to the correct pollen curve set

Definition at line 546 of file elements.h.

Referenced by VegElement::PollenNectarPhenologyCalculation(), SetPollenNectarCurves(), and VegElement::SetVegType().

◆ m_PollenM2

double LE::m_PollenM2
protected

Definition at line 543 of file elements.h.

Referenced by VegElement::PollenNectarPhenologyCalculation().

◆ m_pollenquality

PollenNectarQuality LE::m_pollenquality
protected

Definition at line 539 of file elements.h.

Referenced by GetPollen(), and VegElement::PollenNectarPhenologyCalculation().

◆ m_poly

int LE::m_poly
protected

The polyref number for this polygon.

Definition at line 477 of file elements.h.

Referenced by Pond::CalcPondPesticide(), DoCopy(), VegElement::DoDevelopment(), GetPoly(), VegElement::RecalculateBugsNStuff(), and SetPoly().

◆ m_ptrace

int LE::m_ptrace[256]
protected

Definition at line 441 of file elements.h.

◆ m_rot_index

int LE::m_rot_index
protected

Definition at line 473 of file elements.h.

Referenced by DoCopy(), GetRotIndex(), and SetRotIndex().

◆ m_running

long LE::m_running
protected

Definition at line 446 of file elements.h.

Referenced by DoCopy().

◆ m_signal_mask

LE_Signal LE::m_signal_mask
protected

Definition at line 532 of file elements.h.

Referenced by DoCopy().

◆ m_skylarkscrapes

bool LE::m_skylarkscrapes

For management testing of skylark scrapes.

Definition at line 88 of file elements.h.

Referenced by DoCopy(), and VegElement::GetSkScrapes().

◆ m_smallroad_load

double LE::m_smallroad_load
staticprotected
Initial value:
=
{4,3,1,1,4,15,94,108,71,58,58,61,
65,73,95,133,109,76,54,37,26,28,28,17}

Definition at line 529 of file elements.h.

Referenced by SmallRoad::GetTrafficLoad().

◆ m_soiltype

int LE::m_soiltype
protected

Definition at line 513 of file elements.h.

Referenced by DoCopy(), GetSoilType(), GetSoilTypeR(), and SetSoilType().

◆ m_sprayedtoday

bool LE::m_sprayedtoday
protected

flag to indicate an overspray situation

Definition at line 475 of file elements.h.

Referenced by GetSprayedToday(), and SetSprayedToday().

◆ m_squares_in_map

int LE::m_squares_in_map

Definition at line 86 of file elements.h.

Referenced by DoCopy().

◆ m_subtype

int LE::m_subtype
protected

Definition at line 461 of file elements.h.

Referenced by DoCopy().

◆ m_totalNectar

double LE::m_totalNectar
protected

Definition at line 542 of file elements.h.

Referenced by GetTotalNectar(), and VegElement::PollenNectarPhenologyCalculation().

◆ m_totalPollen

double LE::m_totalPollen
protected

Definition at line 541 of file elements.h.

Referenced by GetTotalPollen(), and VegElement::PollenNectarPhenologyCalculation().

◆ m_tramlinesdecay

int LE::m_tramlinesdecay
protected

Definition at line 484 of file elements.h.

Referenced by DoCopy(), HasTramlines(), and SetTramlinesDecay().

◆ m_tried_to_do

int LE::m_tried_to_do

Definition at line 85 of file elements.h.

Referenced by Farm::LeSwitch().

◆ m_type

TTypesOfLandscapeElement LE::m_type
protected

Definition at line 487 of file elements.h.

Referenced by ActivePit::ActivePit(), AmenityGrass::AmenityGrass(), BareRock::BareRock(), BeetleBank::BeetleBank(), Building::Building(), BuiltUpWithParkland::BuiltUpWithParkland(), Canal::Canal(), Carpark::Carpark(), ChameleonLE::ChameleonLE(), Churchyard::Churchyard(), Coast::Coast(), ConiferousForest::ConiferousForest(), Copse::Copse(), DeciduousForest::DeciduousForest(), DoCopy(), Field::DoDevelopment(), DrainageDitch::DrainageDitch(), Fence::Fence(), Field::Field(), FieldBoundary::FieldBoundary(), FishFarm::FishFarm(), Freshwater::Freshwater(), Garden::Garden(), Heath::Heath(), HedgeBank::HedgeBank(), Hedges::Hedges(), HeritageSite::HeritageSite(), IndividualTree::IndividualTree(), LargeRoad::LargeRoad(), Marsh::Marsh(), MetalledPath::MetalledPath(), MixedForest::MixedForest(), MownGrass::MownGrass(), NaturalGrassDry::NaturalGrassDry(), NaturalGrassWet::NaturalGrassWet(), Orchard::Orchard(), OrchardBand::OrchardBand(), Parkland::Parkland(), PermanentSetaside::PermanentSetaside(), PermPasture::PermPasture(), PermPastureLowYield::PermPastureLowYield(), PermPastureTussocky::PermPastureTussocky(), PitDisused::PitDisused(), PlantNursery::PlantNursery(), Pond::Pond(), Pylon::Pylon(), Railway::Railway(), RefuseSite::RefuseSite(), River::River(), RiverBed::RiverBed(), RiversidePlants::RiversidePlants(), RiversideTrees::RiversideTrees(), RoadsideSlope::RoadsideSlope(), RoadsideVerge::RoadsideVerge(), Saltmarsh::Saltmarsh(), Saltwater::Saltwater(), SandDune::SandDune(), Scrub::Scrub(), SmallRoad::SmallRoad(), StoneWall::StoneWall(), Stream::Stream(), Track::Track(), UnsprayedFieldMargin::UnsprayedFieldMargin(), UrbanNoVeg::UrbanNoVeg(), UrbanPark::UrbanPark(), UrbanVeg::UrbanVeg(), Vildtager::Vildtager(), Wasteland::Wasteland(), WaterBufferZone::WaterBufferZone(), WindTurbine::WindTurbine(), WoodlandMargin::WoodlandMargin(), WoodyEnergyCrop::WoodyEnergyCrop(), and YoungForest::YoungForest().

◆ m_unsprayedmarginpolyref

int LE::m_unsprayedmarginpolyref
protected

◆ m_valid_x

int LE::m_valid_x
protected

Definition at line 452 of file elements.h.

Referenced by DoCopy(), GetValidX(), and SetValidXY().

◆ m_valid_y

int LE::m_valid_y
protected

Definition at line 453 of file elements.h.

Referenced by DoCopy(), GetValidY(), and SetValidXY().

◆ m_vegage

int LE::m_vegage
protected

Definition at line 512 of file elements.h.

Referenced by DoCopy().

◆ m_vegddegs

double LE::m_vegddegs
protected

◆ m_vege_danger_store

int LE::m_vege_danger_store
protected

Definition at line 456 of file elements.h.

Referenced by DoCopy().

◆ m_yddegs

◆ MConsts

int LE::MConsts[10]
protected

Definition at line 531 of file elements.h.

Referenced by DoCopy(), GetMConstants(), and SetMConstants().

◆ MDates

int LE::MDates[2][25]
protected

Definition at line 530 of file elements.h.

Referenced by DoCopy(), GetMDates(), and SetMDates().


The documentation for this class was generated from the following files:
LE::m_pdates
int m_pdates[256]
Definition: elements.h:442
LE::m_area
double m_area
The element area in m2.
Definition: elements.h:489
LE::SetLastSownVeg
void SetLastSownVeg(TTypesOfVegetation a_tov)
Records the last vegetation type to be sown.
Definition: elements.h:293
LE::m_pollenquality
PollenNectarQuality m_pollenquality
Definition: elements.h:539
LE::m_subtype
int m_subtype
Definition: elements.h:461
LE::m_running
long m_running
Definition: elements.h:446
LE::m_PesticideGridCell
int m_PesticideGridCell
Definition: elements.h:457
LE::m_gooseNos
int m_gooseNos[366]
The number of geese each day.
Definition: elements.h:491
LE::m_squares_in_map
int m_squares_in_map
Definition: elements.h:86
LE::m_pindex
int m_pindex
Definition: elements.h:443
LE::m_currentOsmiaNests
int m_currentOsmiaNests
to record the number of actual osmia nests
Definition: elements.h:538
tov_Undefined
Definition: tov_declaration.h:114
LE::m_pollencurve
PollenNectarDevelopmentCurve * m_pollencurve
pointer to the correct pollen curve set
Definition: elements.h:546
LE::m_totalNectar
double m_totalNectar
Definition: elements.h:542
LE::m_openness
int m_openness
The openness metric for a field (if any)
Definition: elements.h:509
LE::m_maxy
int m_maxy
Definition: elements.h:464
LE::m_soiltype
int m_soiltype
Definition: elements.h:513
LE::MDates
int MDates[2][25]
Definition: elements.h:530
LE::m_valid_y
int m_valid_y
Definition: elements.h:453
PollenNectarDevelopmentCurveSet::m_pollencurveptr
PollenNectarDevelopmentCurve * m_pollencurveptr
Definition: plants.h:211
LE::m_maxx
int m_maxx
Definition: elements.h:462
LE::m_minx
int m_minx
Definition: elements.h:463
LE::m_herbicidedelay
int m_herbicidedelay
Definition: elements.h:486
LE::m_poison
bool m_poison
Definition: elements.h:516
LE::m_centroidx
int m_centroidx
Definition: elements.h:454
PollenNectarDevelopmentCurve::GetData
double GetData(int a_index)
The basic return function for the curve - day indexed.
Definition: plants.h:193
PollenNectarDevelopmentData::GetPollenNectarCurvePtr
PollenNectarDevelopmentCurveSet GetPollenNectarCurvePtr(int a_almassLEref)
Definition: plants.cpp:566
g_rand_uni
boost::variate_generator< base_generator_type &, boost::uniform_real<> > g_rand_uni
tole_Foobar
Definition: tole_declaration.h:111
LE::m_birdmaizeforage
double m_birdmaizeforage
The maize forage present in KJ/m2.
Definition: elements.h:503
LE::m_management_loop_detect_date
long m_management_loop_detect_date
Definition: elements.h:467
LE::m_lastindex
unsigned int m_lastindex
Definition: elements.h:525
LE::m_valid_x
int m_valid_x
Definition: elements.h:452
LE::m_vegage
int m_vegage
Definition: elements.h:512
LE::m_almass_le_type
int m_almass_le_type
This holds the ALMaSS element type reference number.
Definition: elements.h:482
LE::m_lasttreat
vector< int > m_lasttreat
Definition: elements.h:524
LE::m_birdseedforage
double m_birdseedforage
The grain forage present in KJ/m2.
Definition: elements.h:501
LE::m_default_grazing_level
int m_default_grazing_level
Definition: elements.h:518
LE::m_pig_grazing
bool m_pig_grazing
Definition: elements.h:519
LE::m_skylarkscrapes
bool m_skylarkscrapes
For management testing of skylark scrapes.
Definition: elements.h:88
LE::m_OsmiaNestProb
double m_OsmiaNestProb
to record the chance of osmia nesting
Definition: elements.h:534
cfg_goosecountperiod
CfgInt cfg_goosecountperiod("GOOSE_GOOSECOUNTPERIOD", CFG_CUSTOM, 1)
The number of days a goose count can be used.
LE::m_olddays
long m_olddays
Definition: elements.h:466
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:505
LE::m_maxOsmiaNests
int m_maxOsmiaNests
to record the number of possible osmia nests
Definition: elements.h:536
g_landscape_p
class Landscape * g_landscape_p
Definition: Landscape.cpp:258
LE::m_map_index
int m_map_index
Definition: elements.h:480
LE::m_miny
int m_miny
Definition: elements.h:465
LE::m_lastsownvegtype
TTypesOfVegetation m_lastsownvegtype
Records the last vegegetation type that was sown on the element.
Definition: elements.h:507
LE::m_yddegs
double m_yddegs
Definition: elements.h:521
LE::m_high
bool m_high
Definition: elements.h:515
LE::m_gooseSpNos
int m_gooseSpNos[366][gs_foobar]
The number of geese of each species each day.
Definition: elements.h:493
LE::m_days_since_insecticide_spray
int m_days_since_insecticide_spray
Definition: elements.h:514
LE::m_farmfunc_tried_to_do
int m_farmfunc_tried_to_do
Definition: elements.h:483
LE::MConsts
int MConsts[10]
Definition: elements.h:531
LE::m_countrydesignation
int m_countrydesignation
Definition: elements.h:470
PollenNectarDevelopmentCurveSet::m_nectarcurveptr
PollenNectarDevelopmentCurve * m_nectarcurveptr
Definition: plants.h:212
LE::m_owner_index
int m_owner_index
Definition: elements.h:472
LE::m_totalPollen
double m_totalPollen
Definition: elements.h:541
LE::SetStubble
void SetStubble(bool a_flag)
Sets the in stubble flag.
Definition: elements.h:390
LE::m_border
LE * m_border
Definition: elements.h:447
LE::m_tramlinesdecay
int m_tramlinesdecay
Definition: elements.h:484
LE::m_cattle_grazing
int m_cattle_grazing
Definition: elements.h:517
LE::SetPollenNectarCurves
void SetPollenNectarCurves(PollenNectarDevelopmentCurve *a_pollencurnve, PollenNectarDevelopmentCurve *a_nectarcurve)
Set method for pollen and nectar curves.
Definition: elements.h:435
LE::SetLastTreatment
void SetLastTreatment(int a_treatment)
Definition: elements.cpp:490
LE::m_owner_file
int m_owner_file
Definition: elements.h:471
LE::m_ddegs
double m_ddegs
Definition: elements.h:522
LE::m_centroidy
int m_centroidy
Definition: elements.h:455
LE::m_gooseNosTimed
int m_gooseNosTimed[366]
The number of geese at a predefined time per day.
Definition: elements.h:495
LE::m_owner
Farm * m_owner
Definition: elements.h:469
LE::m_vegddegs
double m_vegddegs
Definition: elements.h:520
CfgInt::value
int value(void)
Definition: configurator.h:98
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:497
LE::m_nectarcurve
PollenNectarDevelopmentCurve * m_nectarcurve
pointer to the correct nectar curve set
Definition: elements.h:548
g_nectarpollen
class PollenNectarDevelopmentData * g_nectarpollen
Definition: Landscape.cpp:241
Calendar::DayInYear
int DayInYear(void)
Definition: calendar.h:58
g_date
class Calendar * g_date
Definition: calendar.cpp:38
LE::m_sprayedtoday
bool m_sprayedtoday
flag to indicate an overspray situation
Definition: elements.h:475
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:511
LE::m_rot_index
int m_rot_index
Definition: elements.h:473
sleep_all_day
Definition: treatment.h:33
LE::SetMConstants
void SetMConstants(int a, int c)
Definition: elements.h:344
LE::m_poly
int m_poly
The polyref number for this polygon.
Definition: elements.h:477
LE::m_signal_mask
LE_Signal m_signal_mask
Definition: elements.h:532
LE::m_ptrace
int m_ptrace[256]
Definition: elements.h:441
LE::m_vege_danger_store
int m_vege_danger_store
Definition: elements.h:456
LE::m_mowndecay
int m_mowndecay
Definition: elements.h:485
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:499
LE::m_unsprayedmarginpolyref
int m_unsprayedmarginpolyref
Definition: elements.h:448
LE::m_management_loop_detect_count
long m_management_loop_detect_count
Definition: elements.h:468
tov_None
Definition: tov_declaration.h:39
LE::m_nectarquality
PollenNectarQuality m_nectarquality
Definition: elements.h:540
PollenNectarQuality::m_quality
double m_quality
Definition: plants.h:220
LE::m_is_in_map
bool m_is_in_map
Definition: elements.h:459
Landscape::IncTreatCounter
void IncTreatCounter(int a_treat)
Definition: Landscape.cpp:3575
LE::m_type
TTypesOfLandscapeElement m_type
Definition: elements.h:487