ALMaSS Rodenticide ODdox  1.1
The rodenticide model description following ODdox protocol
LE Class Reference

#include <elements.h>

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)
 
Farm * GetOwner (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
 
Farm * m_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< intm_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
 
PollenNectarDevelopmentCurve * m_pollencurve
 pointer to the correct pollen curve set More...
 
PollenNectarDevelopmentCurve * m_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 []
 

Constructor & Destructor Documentation

◆ LE()

LE::LE ( void  )

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

279  {
280 
284  m_signal_mask = 0;
285  m_lasttreat.resize(1);
286  m_lasttreat[0] = sleep_all_day;
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;
313  m_type = tole_Foobar;
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  }
362  SetLastSownVeg(tov_Undefined);
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 }

◆ ~LE()

LE::~LE ( void  )
virtual
452  {
453 }

Member Function Documentation

◆ AddArea()

void LE::AddArea ( double  a_area_diff)
inline
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

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.

173 {;}

◆ ForceGrowthInitialize()

virtual void LE::ForceGrowthInitialize ( void  )
inlinevirtual

Reimplemented in VegElement.

171 {;}

◆ ForceGrowthTest()

virtual void LE::ForceGrowthTest ( void  )
inlinevirtual

Reimplemented in VegElement.

172 {;}

◆ GetArea()

double LE::GetArea ( void  )
inline
196 { return m_area; }

References m_area.

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

◆ GetBirdMaize()

double LE::GetBirdMaize ( void  )
inline
204  {
205  return m_birdmaizeforage;
206  }

References m_birdmaizeforage.

◆ GetBirdSeed()

double LE::GetBirdSeed ( void  )
inline
198  {
199  return m_birdseedforage;
200  }

References m_birdseedforage.

◆ GetBorder()

LE* LE::GetBorder ( void  )
inline
317 { return m_border; }

References m_border.

Referenced by Landscape::BorderScan().

◆ GetCattleGrazing()

int LE::GetCattleGrazing ( void  )
inline
183 { return m_cattle_grazing; }

References m_cattle_grazing.

◆ GetCountryDesignation()

int LE::GetCountryDesignation ( void  )
inline
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

149 { return m_ddegs; }

References m_ddegs.

◆ GetDeadBiomass()

virtual double LE::GetDeadBiomass ( void  )
inlinevirtual

Reimplemented in VegElement.

153 { return 0.0; }

◆ GetGooseGrazingForage()

double LE::GetGooseGrazingForage ( GooseSpecies  a_goose)
inline
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).

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().

◆ GetGooseNosToday()

int LE::GetGooseNosToday ( )

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

This simply sums the total number of geese seen today.

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 }

◆ 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.

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 }

◆ 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.

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.

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

◆ 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.

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

◆ GetGreenBiomass()

virtual double LE::GetGreenBiomass ( void  )
inlinevirtual

Reimplemented in VegElement.

152 { return 0.0; }

◆ GetHigh()

bool LE::GetHigh ( void  )
inline
182 { return m_high; }

References m_high.

◆ GetInsectPop()

virtual double LE::GetInsectPop ( void  )
inlinevirtual

Reimplemented in VegElement.

156 { return 0.0; }

◆ GetLAGreen()

virtual double LE::GetLAGreen ( void  )
inlinevirtual

Reimplemented in VegElement.

150 { return 0.0; }

◆ GetLastSownVeg()

TTypesOfVegetation LE::GetLastSownVeg ( )
inline

Returns the last vegetation type to be sown.

299  {
300  return m_lastsownvegtype;
301  }

References m_lastsownvegtype.

◆ GetLastTreatment()

int LE::GetLastTreatment ( int a_index)
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 }

◆ GetLATotal()

virtual double LE::GetLATotal ( void  )
inlinevirtual

Reimplemented in VegElement.

151 { return 0.0; }

◆ GetMapIndex()

int LE::GetMapIndex ( void  )
inline
190 { return m_map_index; }

References m_map_index.

◆ GetMapValid()

bool LE::GetMapValid ( void  )
inline
228 { return m_is_in_map; }

References m_is_in_map.

◆ GetMaxX()

int LE::GetMaxX ( void  )
inline
333 { return m_maxx; }

References m_maxx.

◆ GetMaxY()

int LE::GetMaxY ( void  )
inline
334 { return m_maxy; }

References m_maxy.

◆ GetMConstants()

int LE::GetMConstants ( int  a)
inline
343 {return MConsts[a];}

References MConsts.

◆ GetMDates()

int LE::GetMDates ( int  a,
int  b 
)
inline
341 {return MDates[a][b];}

References MDates.

◆ GetMinX()

int LE::GetMinX ( void  )
inline
335 { return m_minx; }

References m_minx.

◆ GetMinY()

int LE::GetMinY ( void  )
inline
336 { return m_miny; }

References m_miny.

◆ GetNectar()

virtual PollenNectarQuality LE::GetNectar ( )
inlinevirtual
431 { return m_nectarquality; }

References m_nectarquality.

◆ GetOldDays()

long LE::GetOldDays ( void  )
inline
218 { return m_olddays; }

References m_olddays.

◆ GetOpenness()

int LE::GetOpenness ( void  )
inline

For goose model functionality, openness score for the polygon.

350 { return m_openness; }

References m_openness.

◆ GetOsmiaNest()

bool LE::GetOsmiaNest ( )
inline

Test to see if a nest is found.

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
195 { return m_owner; }

References m_owner.

◆ GetOwnerFile()

int LE::GetOwnerFile ( void  )
inline
192 { return m_owner_file; }

References m_owner_file.

◆ GetOwnerIndex()

int LE::GetOwnerIndex ( void  )
inline
193 { return m_owner_index; }

References m_owner_index.

◆ GetPesticideCell()

int LE::GetPesticideCell ( )
inline
324 { return m_PesticideGridCell; }

References m_PesticideGridCell.

◆ GetPigGrazing()

bool LE::GetPigGrazing ( void  )
inline
184 { return m_pig_grazing; }

References m_pig_grazing.

◆ GetPoison()

bool LE::GetPoison ( void  )
inline
180 { return m_poison; }

References m_poison.

◆ GetPollen()

virtual PollenNectarQuality LE::GetPollen ( )
inlinevirtual
430 { return m_pollenquality; }

References m_pollenquality.

◆ GetPoly()

int LE::GetPoly ( void  )
inline

Returns the polyref number for this polygon.

189 { return m_poly; }

References m_poly.

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

◆ GetPreviousCrop()

virtual TTypesOfVegetation LE::GetPreviousCrop ( int  )
inlinevirtual

Reimplemented in Field.

179 { return 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).

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().

◆ GetRotIndex()

int LE::GetRotIndex ( void  )
inline
309 { return m_rot_index; }

References m_rot_index.

◆ 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

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.

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
304 { return m_sprayedtoday; }

References m_sprayedtoday.

◆ GetStubble()

bool LE::GetStubble ( )
inline

Return the in stubble flag.

392 { return m_instubble; }

References m_instubble.

◆ GetTotalNectar()

virtual double LE::GetTotalNectar ( )
inlinevirtual
433 { return m_totalNectar; }

References m_totalNectar.

◆ GetTotalPollen()

virtual double LE::GetTotalPollen ( )
inlinevirtual
432 { return m_totalPollen; }

References m_totalPollen.

◆ GetTrafficLoad()

virtual double LE::GetTrafficLoad ( void  )
inlinevirtual

Reimplemented in SmallRoad, and LargeRoad.

178 { return 0.0; }

◆ GetUnsprayedMarginPolyRef()

int LE::GetUnsprayedMarginPolyRef ( void  )
inline

◆ GetValidX()

int LE::GetValidX ( void  )
inline

◆ GetValidY()

int LE::GetValidY ( void  )
inline

◆ GetVegBiomass()

virtual double LE::GetVegBiomass ( void  )
inlinevirtual

Reimplemented in VegElement.

154 { return 0.0; }

◆ GetVegDDegs()

double LE::GetVegDDegs ( )
inline

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

346  {
347  return m_vegddegs; //
348  }

References m_vegddegs.

◆ GetWeedBiomass()

virtual double LE::GetWeedBiomass ( void  )
inlinevirtual

Reimplemented in VegElement.

155 { return 0.0; }

◆ GrazeVeg_Extended()

virtual void LE::GrazeVeg_Extended ( double  )
inlinevirtual
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.

232  {
233  ;
234  }

◆ 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.

237  {
238  ;
239  }

◆ HasTramlines()

bool LE::HasTramlines ( void  )
inline
185 { return ( m_tramlinesdecay>0 ); }

References m_tramlinesdecay.

◆ IncOsmiaNesting()

void LE::IncOsmiaNesting ( )
inline

Add an occupied nest.

416  {
418  }

References m_currentOsmiaNests.

◆ Insecticide()

virtual void LE::Insecticide ( double  )
inlinevirtual

Reimplemented in VegElement.

158 { ; }

◆ InsectMortality()

virtual void LE::InsectMortality ( double  )
inlinevirtual

Reimplemented in VegElement.

159 { ; }

◆ 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.

388 { return false; };

◆ IsRecentlyMown()

bool LE::IsRecentlyMown ( void  )
inline
186 { return ( m_mowndecay>0 ); }

References m_mowndecay.

◆ IsRecentlySprayed()

int LE::IsRecentlySprayed ( void  )
inline
187 { return ( m_herbicidedelay ); }

References m_herbicidedelay.

◆ ReduceVeg()

virtual void LE::ReduceVeg ( double  )
inlinevirtual

Reimplemented in VegElement.

175 {;}

◆ ReduceVeg_Extended()

virtual void LE::ReduceVeg_Extended ( double  )
inlinevirtual

Reimplemented in VegElement.

176 { ; }

◆ ReduceWeedBiomass()

virtual void LE::ReduceWeedBiomass ( double  )
inlinevirtual

Reimplemented in VegElement.

160 { ; }

◆ ReleaseOsmiaNest()

void LE::ReleaseOsmiaNest ( )
inline

Test to see if a nest is found.

401  {
403  }

References m_currentOsmiaNests.

◆ ResetDigestability()

virtual void LE::ResetDigestability ( )
inlinevirtual

sets growth record to zero in descendent classes

Reimplemented in VegElement.

382 { ; }

◆ SetArea()

void LE::SetArea ( double  a_area)
inline

◆ SetBirdMaize()

void LE::SetBirdMaize ( double  a_forage)
inline
213  {
214  m_birdmaizeforage = a_forage;
215  }

References m_birdmaizeforage.

◆ SetBirdSeed()

void LE::SetBirdSeed ( double  a_forage)
inline
201  {
202  m_birdseedforage = a_forage;
203  }

References m_birdseedforage.

◆ SetBorder()

void LE::SetBorder ( LE a_border)
inline
320 { m_border = a_border; }

References m_border.

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

◆ SetCopyTreatment()

void LE::SetCopyTreatment ( int  a_treatment)
486  {
487  SetLastTreatment( a_treatment );
488 }

◆ SetCountryDesignation()

void LE::SetCountryDesignation ( int  a_designation)
inline
217 { m_countrydesignation = a_designation; }

References m_countrydesignation.

◆ SetCropData()

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

Reimplemented in VegElement.

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.

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

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

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.

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

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

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

References m_gooseSpNosTimed.

◆ SetGrowthPhase()

virtual void LE::SetGrowthPhase ( int  )
inlinevirtual

Reimplemented in VegElement.

170 {;}

◆ SetHerbicideDelay()

void LE::SetHerbicideDelay ( int  a_decaytime_days)
inline
313  { m_herbicidedelay = a_decaytime_days; }

References m_herbicidedelay.

◆ SetHigh()

◆ SetInsectPop()

virtual void LE::SetInsectPop ( double  )
inlinevirtual

Reimplemented in VegElement.

157 { ; }

◆ SetLastSownVeg()

void LE::SetLastSownVeg ( TTypesOfVegetation  a_tov)
inline

Records the last vegetation type to be sown.

293  {
294  m_lastsownvegtype = a_tov;
295  }

References m_lastsownvegtype.

◆ SetLastTreatment()

void LE::SetLastTreatment ( int  a_treatment)
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 RoadsideVerge::Cutting(), Orchard::Cutting(), and MownGrass::Cutting().

◆ 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.

386 { ; };

◆ SetMapIndex()

void LE::SetMapIndex ( int  a_map_index)
inline
191 { m_map_index = a_map_index; }

References m_map_index.

Referenced by Landscape::ReadPolys2().

◆ SetMapValid()

void LE::SetMapValid ( bool  a_valid)
inline
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.

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
337 { m_maxx=x; }

References m_maxx.

◆ SetMaxY()

void LE::SetMaxY ( int  y)
inline
338 { m_maxy=y; }

References m_maxy.

◆ SetMConstants()

void LE::SetMConstants ( int  a,
int  c 
)
inline
344 {MConsts[a]=c;}

References MConsts.

◆ SetMDates()

void LE::SetMDates ( int  a,
int  b,
int  c 
)
inline
342 {MDates[a][b]=c;}

References MDates.

◆ SetMinX()

void LE::SetMinX ( int  x)
inline
339 { m_minx=x; }

References m_minx.

◆ SetMinY()

void LE::SetMinY ( int  y)
inline
340 { m_miny=y; }

References m_miny.

◆ SetMownDecay()

void LE::SetMownDecay ( int  a_decaytime_days)
inline
315  { m_mowndecay = a_decaytime_days; }

References m_mowndecay.

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

◆ SetOldDays()

void LE::SetOldDays ( long  a_days)
inline
306 { m_olddays = a_days; }

References m_olddays.

◆ SetOpenness()

void LE::SetOpenness ( int  a_openness)
inline

Records the openness statistic for this polygon.

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
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 Landscape::RemoveSmallPolygons().

◆ SetPesticideCell()

void LE::SetPesticideCell ( int  a_cell)
inline
323 { m_PesticideGridCell = a_cell; }

References m_PesticideGridCell.

◆ SetPoison()

void LE::SetPoison ( bool  a_poison)
inline
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.

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

References m_nectarcurve, and m_pollencurve.

Referenced by VegElement::SetVegType().

◆ SetPollenNectarData()

void LE::SetPollenNectarData ( int  a_almasstype)

sets the pollen and nectar information

605  {
606  SetPollenNectarCurves(g_nectarpollen->GetPollenNectarCurvePtr(a_almasstype).m_pollencurveptr, g_nectarpollen->GetPollenNectarCurvePtr(a_almasstype).m_nectarcurveptr);
607  m_pollenquality.m_quality = m_pollencurve->GetData(365);
608  m_nectarquality.m_quality = m_nectarcurve->GetData(365);
609  m_totalPollen = 0.0;
610  m_totalNectar = 0.0;
611 }

References g_nectarpollen.

Referenced by Landscape::NewElement().

◆ SetPoly()

void LE::SetPoly ( int  a_poly)
inline

◆ SetRotIndex()

void LE::SetRotIndex ( int  a_index)
inline
307 { m_rot_index = a_index; }

References m_rot_index.

◆ SetSoilType()

void LE::SetSoilType ( int  a_st)
inline
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
303 { m_sprayedtoday = a_didit; }

References m_sprayedtoday.

Referenced by Field::DoDevelopment().

◆ SetStubble()

void LE::SetStubble ( bool  a_flag)
inline

Sets the in stubble flag.

390 { m_instubble = a_flag; }

References m_instubble.

Referenced by VegElement::ZeroVeg().

◆ SetTramlinesDecay()

void LE::SetTramlinesDecay ( int  a_decaytime_days)
inline
311  { m_tramlinesdecay = a_decaytime_days; }

References m_tramlinesdecay.

◆ SetUnsprayedMarginPolyRef()

void LE::SetUnsprayedMarginPolyRef ( int  a_unsprayedmargin)
inline

◆ SetValidXY()

void LE::SetValidXY ( int  a_valid_x,
int  a_valid_y 
)
inline
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
163 {;}

◆ SetVegHeight()

virtual void LE::SetVegHeight ( double  )
inlinevirtual

Reimplemented in VegElement.

165 { ; }

◆ SetVegParameters()

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

Reimplemented in VegElement.

166 { ; }

◆ SetVegType()

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

Reimplemented in VegElement.

164 {;}

◆ StoreLAItotal()

virtual void LE::StoreLAItotal ( )
inlinevirtual

Reimplemented in VegElement.

169 {;}

◆ ToggleCattleGrazing()

virtual void LE::ToggleCattleGrazing ( void  )
inlinevirtual

Reimplemented in VegElement.

161 {;}

◆ TogglePigGrazing()

virtual void LE::TogglePigGrazing ( void  )
inlinevirtual

Reimplemented in VegElement.

162 {;}

◆ UpdateOsmiaNesting()

void LE::UpdateOsmiaNesting ( )
inline

Recalculate the nest finding probability.

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

References m_currentOsmiaNests, m_maxOsmiaNests, and m_OsmiaNestProb.

◆ ZeroVeg()

virtual void LE::ZeroVeg ( void  )
inlinevirtual

Reimplemented in VegElement.

174 {;}

Member Data Documentation

◆ m_almass_le_type

int LE::m_almass_le_type
protected

This holds the ALMaSS element type reference number.

Referenced by DoCopy().

◆ m_area

◆ m_birdmaizeforage

double LE::m_birdmaizeforage
protected

The maize forage present in KJ/m2.

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

◆ m_birdseedforage

double LE::m_birdseedforage
protected

The grain forage present in KJ/m2.

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

◆ m_border

LE* LE::m_border
protected

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

◆ m_cattle_grazing

◆ m_centroidx

int LE::m_centroidx
protected

Referenced by DoCopy().

◆ m_centroidy

int LE::m_centroidy
protected

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

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

◆ m_days_since_insecticide_spray

int LE::m_days_since_insecticide_spray
protected

◆ 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.

Referenced by SetGooseRoostDist().

◆ m_farmfunc_tried_to_do

int LE::m_farmfunc_tried_to_do
protected

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.

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

◆ m_gooseNos

int LE::m_gooseNos[366]
protected

The number of geese each day.

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.

Referenced by DoCopy(), and SetGooseNosTimed().

◆ m_gooseSpNos

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

The number of geese of each species each day.

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.

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

◆ m_herbicidedelay

◆ m_high

bool LE::m_high
protected

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.

Referenced by GetStubble(), and SetStubble().

◆ m_is_in_map

bool LE::m_is_in_map
protected

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}

Referenced by LargeRoad::GetTrafficLoad().

◆ m_lastindex

unsigned int LE::m_lastindex
protected

Referenced by DoCopy().

◆ m_lastsownvegtype

TTypesOfVegetation LE::m_lastsownvegtype
protected

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

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

◆ m_lasttreat

vector<int> LE::m_lasttreat
protected

Referenced by DoCopy().

◆ m_management_loop_detect_count

long LE::m_management_loop_detect_count
protected

Referenced by DoCopy().

◆ m_management_loop_detect_date

long LE::m_management_loop_detect_date
protected

Referenced by DoCopy().

◆ m_map_index

int LE::m_map_index
protected

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

◆ m_maxOsmiaNests

int LE::m_maxOsmiaNests
protected

to record the number of possible osmia nests

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

◆ m_maxx

int LE::m_maxx
protected

◆ m_maxy

int LE::m_maxy
protected

◆ m_minx

int LE::m_minx
protected

◆ m_miny

int LE::m_miny
protected

◆ 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

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

◆ m_mowndecay

int LE::m_mowndecay
protected

◆ m_nectarcurve

PollenNectarDevelopmentCurve* LE::m_nectarcurve
protected

pointer to the correct nectar curve set

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

◆ m_NectarM2

double LE::m_NectarM2
protected

◆ m_nectarquality

PollenNectarQuality LE::m_nectarquality
protected

Referenced by GetNectar().

◆ m_olddays

long LE::m_olddays
protected

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

◆ m_openness

int LE::m_openness
protected

The openness metric for a field (if any)

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

◆ m_OsmiaNestProb

double LE::m_OsmiaNestProb
protected

to record the chance of osmia nesting

Referenced by GetOsmiaNest(), and UpdateOsmiaNesting().

◆ m_owner

Farm* LE::m_owner
protected

◆ m_owner_file

int LE::m_owner_file
protected

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

◆ m_owner_index

◆ m_pdates

int LE::m_pdates[256]
protected

◆ m_PesticideGridCell

int LE::m_PesticideGridCell
protected

◆ m_pig_grazing

bool LE::m_pig_grazing
protected

◆ m_pindex

int LE::m_pindex
protected

◆ m_poison

bool LE::m_poison
protected

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

◆ m_pollencurve

PollenNectarDevelopmentCurve* LE::m_pollencurve
protected

pointer to the correct pollen curve set

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

◆ m_PollenM2

double LE::m_PollenM2
protected

◆ m_pollenquality

PollenNectarQuality LE::m_pollenquality
protected

◆ m_poly

int LE::m_poly
protected

◆ m_ptrace

int LE::m_ptrace[256]
protected

◆ m_rot_index

int LE::m_rot_index
protected

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

◆ m_running

long LE::m_running
protected

Referenced by DoCopy().

◆ m_signal_mask

LE_Signal LE::m_signal_mask
protected

Referenced by DoCopy().

◆ m_skylarkscrapes

bool LE::m_skylarkscrapes

For management testing of skylark scrapes.

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}

Referenced by SmallRoad::GetTrafficLoad().

◆ m_soiltype

int LE::m_soiltype
protected

◆ m_sprayedtoday

bool LE::m_sprayedtoday
protected

flag to indicate an overspray situation

Referenced by GetSprayedToday(), and SetSprayedToday().

◆ m_squares_in_map

int LE::m_squares_in_map

Referenced by DoCopy().

◆ m_subtype

int LE::m_subtype
protected

Referenced by DoCopy().

◆ m_totalNectar

double LE::m_totalNectar
protected

◆ m_totalPollen

double LE::m_totalPollen
protected

◆ m_tramlinesdecay

int LE::m_tramlinesdecay
protected

◆ m_tried_to_do

int LE::m_tried_to_do

◆ m_type

TTypesOfLandscapeElement LE::m_type
protected

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

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

◆ m_valid_y

int LE::m_valid_y
protected

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

◆ m_vegage

int LE::m_vegage
protected

Referenced by DoCopy().

◆ m_vegddegs

◆ m_vege_danger_store

int LE::m_vege_danger_store
protected

Referenced by DoCopy().

◆ m_yddegs

◆ MConsts

int LE::MConsts[10]
protected

◆ MDates

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

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
cfg_goosecountperiod
CfgInt cfg_goosecountperiod("GOOSE_GOOSECOUNTPERIOD", CFG_CUSTOM, 1)
The number of days a goose count can be used.
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
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
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
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
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
g_rand_uni
boost::variate_generator< base_generator_type &, boost::uniform_real<> > g_rand_uni
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
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
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
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
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
int
LE::m_nectarquality
PollenNectarQuality m_nectarquality
Definition: elements.h:540
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