ALMaSS Rodenticide ODdox
1.1
The rodenticide model description following ODdox protocol
|
#include <elements.h>
|
| 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) |
|
LE * | GetBorder (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...
|
|
◆ LE()
The major job of this constructor is simply to provide default values for all members
311 m_repeat_start =
false;
314 SetALMaSSEleType(-1);
343 for (
int i = 0; i < 366; i++)
347 for (
int l = 0; l < gs_foobar; l++)
353 for (
int l = 0; l < gs_foobar; l++)
357 for (
int i = 0; i < 25; i++)
365 for (
int i = 0; i < 256; i++ ) {
◆ ~LE()
◆ AddArea()
void LE::AddArea |
( |
double |
a_area_diff | ) |
|
|
inline |
◆ 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
403 m_repeat_start = a_LE->m_repeat_start;
429 for (
int i = 0; i < 366; i++)
433 for (
int l = 0; l < gs_foobar; l++)
439 for (
int l = 0; l < gs_foobar; l++)
443 for (
int i = 0; i < 25; i++)
445 MDates[0][i] = a_LE->MDates[0][i];
446 MDates[1][i] = a_LE->MDates[1][i];
448 for (
int i = 0; i<10; i++)
SetMConstants(i, a_LE->MConsts[i]);
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 |
◆ ForceGrowthInitialize()
virtual void LE::ForceGrowthInitialize |
( |
void |
| ) |
|
|
inlinevirtual |
◆ ForceGrowthTest()
virtual void LE::ForceGrowthTest |
( |
void |
| ) |
|
|
inlinevirtual |
◆ GetArea()
double LE::GetArea |
( |
void |
| ) |
|
|
inline |
◆ GetBirdMaize()
double LE::GetBirdMaize |
( |
void |
| ) |
|
|
inline |
◆ GetBirdSeed()
double LE::GetBirdSeed |
( |
void |
| ) |
|
|
inline |
◆ GetBorder()
LE* LE::GetBorder |
( |
void |
| ) |
|
|
inline |
◆ GetCattleGrazing()
int LE::GetCattleGrazing |
( |
void |
| ) |
|
|
inline |
◆ GetCountryDesignation()
int LE::GetCountryDesignation |
( |
void |
| ) |
|
|
inline |
◆ 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
References m_ddegs.
◆ GetDeadBiomass()
virtual double LE::GetDeadBiomass |
( |
void |
| ) |
|
|
inlinevirtual |
◆ GetGooseGrazingForage()
double LE::GetGooseGrazingForage |
( |
GooseSpecies |
a_goose | ) |
|
|
inline |
◆ 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).
549 unsigned ind = ((unsigned)g_date->DayInYear( ) - i) % 365;
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.
574 for (
unsigned i = 0; i < (unsigned)gs_foobar; i++) {
◆ 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.
585 for (
unsigned i = 0; i < (unsigned)gs_foobar; i++) {
◆ 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.
◆ 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.
◆ 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.
◆ GetGreenBiomass()
virtual double LE::GetGreenBiomass |
( |
void |
| ) |
|
|
inlinevirtual |
◆ GetHigh()
bool LE::GetHigh |
( |
void |
| ) |
|
|
inline |
◆ GetInsectPop()
virtual double LE::GetInsectPop |
( |
void |
| ) |
|
|
inlinevirtual |
◆ GetLAGreen()
virtual double LE::GetLAGreen |
( |
void |
| ) |
|
|
inlinevirtual |
◆ GetLastSownVeg()
TTypesOfVegetation LE::GetLastSownVeg |
( |
| ) |
|
|
inline |
◆ GetLastTreatment()
int LE::GetLastTreatment |
( |
int * |
a_index | ) |
|
513 return sleep_all_day;
514 int i = ( * a_index ) ++;
◆ GetLATotal()
virtual double LE::GetLATotal |
( |
void |
| ) |
|
|
inlinevirtual |
◆ GetMapIndex()
int LE::GetMapIndex |
( |
void |
| ) |
|
|
inline |
◆ GetMapValid()
bool LE::GetMapValid |
( |
void |
| ) |
|
|
inline |
◆ GetMaxX()
◆ GetMaxY()
◆ GetMConstants()
int LE::GetMConstants |
( |
int |
a | ) |
|
|
inline |
◆ GetMDates()
◆ GetMinX()
◆ GetMinY()
◆ GetNectar()
virtual PollenNectarQuality LE::GetNectar |
( |
| ) |
|
|
inlinevirtual |
◆ GetOldDays()
long LE::GetOldDays |
( |
void |
| ) |
|
|
inline |
◆ GetOpenness()
int LE::GetOpenness |
( |
void |
| ) |
|
|
inline |
For goose model functionality, openness score for the polygon.
References m_openness.
◆ GetOsmiaNest()
bool LE::GetOsmiaNest |
( |
| ) |
|
|
inline |
◆ GetOwner()
Farm* LE::GetOwner |
( |
void |
| ) |
|
|
inline |
◆ GetOwnerFile()
int LE::GetOwnerFile |
( |
void |
| ) |
|
|
inline |
◆ GetOwnerIndex()
int LE::GetOwnerIndex |
( |
void |
| ) |
|
|
inline |
◆ GetPesticideCell()
int LE::GetPesticideCell |
( |
| ) |
|
|
inline |
◆ GetPigGrazing()
bool LE::GetPigGrazing |
( |
void |
| ) |
|
|
inline |
◆ GetPoison()
bool LE::GetPoison |
( |
void |
| ) |
|
|
inline |
◆ GetPollen()
virtual PollenNectarQuality LE::GetPollen |
( |
| ) |
|
|
inlinevirtual |
◆ GetPoly()
◆ GetPreviousCrop()
virtual TTypesOfVegetation LE::GetPreviousCrop |
( |
int |
| ) |
|
|
inlinevirtual |
◆ 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).
562 unsigned ind = ((unsigned)g_date->DayInYear() - i) % 365;
References cfg_goosecountperiod().
◆ GetRotIndex()
int LE::GetRotIndex |
( |
void |
| ) |
|
|
inline |
◆ GetSoilType()
/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
References m_soiltype.
◆ GetSoilTypeR()
/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.
References m_soiltype.
◆ GetSprayedToday()
bool LE::GetSprayedToday |
( |
| ) |
|
|
inline |
◆ GetStubble()
◆ GetTotalNectar()
virtual double LE::GetTotalNectar |
( |
| ) |
|
|
inlinevirtual |
◆ GetTotalPollen()
virtual double LE::GetTotalPollen |
( |
| ) |
|
|
inlinevirtual |
◆ GetTrafficLoad()
virtual double LE::GetTrafficLoad |
( |
void |
| ) |
|
|
inlinevirtual |
◆ 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 |
◆ GetVegDDegs()
double LE::GetVegDDegs |
( |
| ) |
|
|
inline |
Get the total of day degrees for the crop/veg on this element.
References m_vegddegs.
◆ GetWeedBiomass()
virtual double LE::GetWeedBiomass |
( |
void |
| ) |
|
|
inlinevirtual |
◆ GrazeVeg_Extended()
virtual void LE::GrazeVeg_Extended |
( |
double |
| ) |
|
|
inlinevirtual |
◆ 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.
◆ 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.
◆ HasTramlines()
bool LE::HasTramlines |
( |
void |
| ) |
|
|
inline |
◆ IncOsmiaNesting()
void LE::IncOsmiaNesting |
( |
| ) |
|
|
inline |
◆ Insecticide()
virtual void LE::Insecticide |
( |
double |
| ) |
|
|
inlinevirtual |
◆ InsectMortality()
virtual void LE::InsectMortality |
( |
double |
| ) |
|
|
inlinevirtual |
◆ 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.
◆ IsRecentlyMown()
bool LE::IsRecentlyMown |
( |
void |
| ) |
|
|
inline |
◆ IsRecentlySprayed()
int LE::IsRecentlySprayed |
( |
void |
| ) |
|
|
inline |
◆ ReduceVeg()
virtual void LE::ReduceVeg |
( |
double |
| ) |
|
|
inlinevirtual |
◆ ReduceVeg_Extended()
virtual void LE::ReduceVeg_Extended |
( |
double |
| ) |
|
|
inlinevirtual |
◆ ReduceWeedBiomass()
virtual void LE::ReduceWeedBiomass |
( |
double |
| ) |
|
|
inlinevirtual |
◆ ReleaseOsmiaNest()
void LE::ReleaseOsmiaNest |
( |
| ) |
|
|
inline |
◆ ResetDigestability()
virtual void LE::ResetDigestability |
( |
| ) |
|
|
inlinevirtual |
sets growth record to zero in descendent classes
Reimplemented in VegElement.
◆ SetArea()
void LE::SetArea |
( |
double |
a_area | ) |
|
|
inline |
◆ SetBirdMaize()
void LE::SetBirdMaize |
( |
double |
a_forage | ) |
|
|
inline |
◆ SetBirdSeed()
void LE::SetBirdSeed |
( |
double |
a_forage | ) |
|
|
inline |
◆ SetBorder()
void LE::SetBorder |
( |
LE * |
a_border | ) |
|
|
inline |
◆ SetCopyTreatment()
void LE::SetCopyTreatment |
( |
int |
a_treatment | ) |
|
◆ SetCountryDesignation()
void LE::SetCountryDesignation |
( |
int |
a_designation | ) |
|
|
inline |
◆ SetCropData()
virtual void LE::SetCropData |
( |
double |
, |
|
|
double |
, |
|
|
double |
, |
|
|
TTypesOfVegetation |
, |
|
|
double |
, |
|
|
int |
|
|
) |
| |
|
inlinevirtual |
◆ SetCropDataAll()
virtual void LE::SetCropDataAll |
( |
double |
, |
|
|
double |
, |
|
|
double |
, |
|
|
double |
, |
|
|
TTypesOfVegetation |
, |
|
|
double |
, |
|
|
double |
, |
|
|
int |
, |
|
|
double |
, |
|
|
bool |
, |
|
|
double |
|
|
) |
| |
|
inlinevirtual |
◆ SetGooseNos()
void LE::SetGooseNos |
( |
int |
a_number, |
|
|
int |
a_day |
|
) |
| |
|
inline |
For goose model functionality, records the number of geese on a_day day
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
References m_gooseNosTimed.
◆ SetGooseRoostDist()
void LE::SetGooseRoostDist |
( |
int |
a_dist, |
|
|
GooseSpecies |
a_goose |
|
) |
| |
|
inline |
◆ 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
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
References m_gooseSpNosTimed.
◆ SetGrowthPhase()
virtual void LE::SetGrowthPhase |
( |
int |
| ) |
|
|
inlinevirtual |
◆ SetHerbicideDelay()
void LE::SetHerbicideDelay |
( |
int |
a_decaytime_days | ) |
|
|
inline |
◆ SetHigh()
void LE::SetHigh |
( |
bool |
a_high | ) |
|
|
inline |
References m_high.
Referenced by ActivePit::ActivePit(), Building::Building(), BuiltUpWithParkland::BuiltUpWithParkland(), Fence::Fence(), ForestElement::ForestElement(), Garden::Garden(), Hedges::Hedges(), Orchard::Orchard(), OrchardBand::OrchardBand(), PitDisused::PitDisused(), PlantNursery::PlantNursery(), Pylon::Pylon(), RiversideTrees::RiversideTrees(), Scrub::Scrub(), StoneWall::StoneWall(), UrbanNoVeg::UrbanNoVeg(), UrbanVeg::UrbanVeg(), WindTurbine::WindTurbine(), and YoungForest::YoungForest().
◆ SetInsectPop()
virtual void LE::SetInsectPop |
( |
double |
| ) |
|
|
inlinevirtual |
◆ SetLastSownVeg()
void LE::SetLastSownVeg |
( |
TTypesOfVegetation |
a_tov | ) |
|
|
inline |
◆ SetLastTreatment()
void LE::SetLastTreatment |
( |
int |
a_treatment | ) |
|
◆ 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.
◆ SetMapIndex()
void LE::SetMapIndex |
( |
int |
a_map_index | ) |
|
|
inline |
◆ SetMapValid()
void LE::SetMapValid |
( |
bool |
a_valid | ) |
|
|
inline |
◆ SetMaxOsmiaNests()
void LE::SetMaxOsmiaNests |
( |
double |
a_noNests | ) |
|
|
inline |
◆ SetMaxX()
void LE::SetMaxX |
( |
int |
x | ) |
|
|
inline |
◆ SetMaxY()
void LE::SetMaxY |
( |
int |
y | ) |
|
|
inline |
◆ SetMConstants()
void LE::SetMConstants |
( |
int |
a, |
|
|
int |
c |
|
) |
| |
|
inline |
◆ SetMDates()
◆ SetMinX()
void LE::SetMinX |
( |
int |
x | ) |
|
|
inline |
◆ SetMinY()
void LE::SetMinY |
( |
int |
y | ) |
|
|
inline |
◆ SetMownDecay()
void LE::SetMownDecay |
( |
int |
a_decaytime_days | ) |
|
|
inline |
◆ SetOldDays()
void LE::SetOldDays |
( |
long |
a_days | ) |
|
|
inline |
◆ SetOpenness()
void LE::SetOpenness |
( |
int |
a_openness | ) |
|
|
inline |
◆ SetOwner()
void LE::SetOwner |
( |
Farm * |
a_owner, |
|
|
int |
a_owner_num, |
|
|
int |
a_owner_index |
|
) |
| |
|
inline |
◆ SetPesticideCell()
void LE::SetPesticideCell |
( |
int |
a_cell | ) |
|
|
inline |
◆ SetPoison()
void LE::SetPoison |
( |
bool |
a_poison | ) |
|
|
inline |
◆ SetPollenNectarCurves()
void LE::SetPollenNectarCurves |
( |
PollenNectarDevelopmentCurve * |
a_pollencurnve, |
|
|
PollenNectarDevelopmentCurve * |
a_nectarcurve |
|
) |
| |
|
inline |
◆ SetPollenNectarData()
void LE::SetPollenNectarData |
( |
int |
a_almasstype | ) |
|
◆ SetPoly()
void LE::SetPoly |
( |
int |
a_poly | ) |
|
|
inline |
◆ SetRotIndex()
void LE::SetRotIndex |
( |
int |
a_index | ) |
|
|
inline |
◆ SetSoilType()
void LE::SetSoilType |
( |
int |
a_st | ) |
|
|
inline |
◆ SetSprayedToday()
void LE::SetSprayedToday |
( |
bool |
a_didit | ) |
|
|
inline |
◆ SetStubble()
void LE::SetStubble |
( |
bool |
a_flag | ) |
|
|
inline |
◆ SetTramlinesDecay()
void LE::SetTramlinesDecay |
( |
int |
a_decaytime_days | ) |
|
|
inline |
◆ SetUnsprayedMarginPolyRef()
void LE::SetUnsprayedMarginPolyRef |
( |
int |
a_unsprayedmargin | ) |
|
|
inline |
◆ SetValidXY()
void LE::SetValidXY |
( |
int |
a_valid_x, |
|
|
int |
a_valid_y |
|
) |
| |
|
inline |
◆ SetVegBiomass()
virtual void LE::SetVegBiomass |
( |
int |
| ) |
|
|
inlinevirtual |
◆ SetVegHeight()
virtual void LE::SetVegHeight |
( |
double |
| ) |
|
|
inlinevirtual |
◆ SetVegParameters()
virtual void LE::SetVegParameters |
( |
double |
, |
|
|
double |
, |
|
|
double |
, |
|
|
double |
|
|
) |
| |
|
inlinevirtual |
◆ SetVegType()
virtual void LE::SetVegType |
( |
TTypesOfVegetation |
, |
|
|
TTypesOfVegetation |
|
|
) |
| |
|
inlinevirtual |
◆ StoreLAItotal()
virtual void LE::StoreLAItotal |
( |
| ) |
|
|
inlinevirtual |
◆ ToggleCattleGrazing()
virtual void LE::ToggleCattleGrazing |
( |
void |
| ) |
|
|
inlinevirtual |
◆ TogglePigGrazing()
virtual void LE::TogglePigGrazing |
( |
void |
| ) |
|
|
inlinevirtual |
◆ UpdateOsmiaNesting()
void LE::UpdateOsmiaNesting |
( |
| ) |
|
|
inline |
◆ ZeroVeg()
virtual void LE::ZeroVeg |
( |
void |
| ) |
|
|
inlinevirtual |
◆ m_almass_le_type
This holds the ALMaSS element type reference number.
Referenced by DoCopy().
◆ m_area
◆ m_birdmaizeforage
double LE::m_birdmaizeforage |
|
protected |
◆ m_birdseedforage
double LE::m_birdseedforage |
|
protected |
◆ m_border
◆ m_cattle_grazing
◆ m_centroidx
◆ m_centroidy
◆ m_countrydesignation
int LE::m_countrydesignation |
|
protected |
◆ m_currentOsmiaNests
int LE::m_currentOsmiaNests |
|
protected |
◆ m_days_since_insecticide_spray
int LE::m_days_since_insecticide_spray |
|
protected |
◆ m_ddegs
◆ m_default_grazing_level
int LE::m_default_grazing_level |
|
protected |
◆ m_dist_to_closest_roost
double LE::m_dist_to_closest_roost[gs_foobar] |
|
protected |
◆ m_farmfunc_tried_to_do
int LE::m_farmfunc_tried_to_do |
|
protected |
◆ m_goosegrazingforage
double LE::m_goosegrazingforage[gs_foobar] |
|
protected |
◆ m_gooseNos
◆ m_gooseNosTimed
int LE::m_gooseNosTimed[366] |
|
protected |
◆ m_gooseSpNos
int LE::m_gooseSpNos[366][gs_foobar] |
|
protected |
◆ m_gooseSpNosTimed
int LE::m_gooseSpNosTimed[366][gs_foobar] |
|
protected |
◆ m_herbicidedelay
◆ m_high
◆ 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.
Referenced by GetStubble(), and SetStubble().
◆ m_is_in_map
◆ 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 |
◆ m_lastsownvegtype
TTypesOfVegetation LE::m_lastsownvegtype |
|
protected |
◆ m_lasttreat
vector<int> LE::m_lasttreat |
|
protected |
◆ m_management_loop_detect_count
long LE::m_management_loop_detect_count |
|
protected |
◆ m_management_loop_detect_date
long LE::m_management_loop_detect_date |
|
protected |
◆ m_map_index
◆ m_maxOsmiaNests
◆ m_maxx
◆ m_maxy
◆ m_minx
◆ m_miny
◆ 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
◆ m_nectarcurve
PollenNectarDevelopmentCurve* LE::m_nectarcurve |
|
protected |
◆ m_NectarM2
◆ m_nectarquality
PollenNectarQuality LE::m_nectarquality |
|
protected |
◆ m_olddays
◆ m_openness
◆ m_OsmiaNestProb
double LE::m_OsmiaNestProb |
|
protected |
◆ m_owner
◆ m_owner_file
◆ m_owner_index
◆ m_pdates
◆ m_PesticideGridCell
int LE::m_PesticideGridCell |
|
protected |
◆ m_pig_grazing
◆ m_pindex
◆ m_poison
◆ m_pollencurve
PollenNectarDevelopmentCurve* LE::m_pollencurve |
|
protected |
◆ m_PollenM2
◆ m_pollenquality
PollenNectarQuality LE::m_pollenquality |
|
protected |
◆ m_poly
◆ m_ptrace
◆ m_rot_index
◆ m_running
◆ m_signal_mask
◆ m_skylarkscrapes
bool LE::m_skylarkscrapes |
◆ 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
◆ m_sprayedtoday
◆ m_squares_in_map
◆ m_subtype
◆ m_totalNectar
◆ m_totalPollen
◆ m_tramlinesdecay
◆ 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
◆ m_valid_y
◆ m_vegage
◆ m_vegddegs
◆ m_vege_danger_store
int LE::m_vege_danger_store |
|
protected |
◆ m_yddegs
◆ MConsts
◆ MDates
The documentation for this class was generated from the following files:
int m_pdates[256]
Definition: elements.h:442
CfgInt cfg_goosecountperiod("GOOSE_GOOSECOUNTPERIOD", CFG_CUSTOM, 1)
The number of days a goose count can be used.
double m_area
The element area in m2.
Definition: elements.h:489
void SetLastSownVeg(TTypesOfVegetation a_tov)
Records the last vegetation type to be sown.
Definition: elements.h:293
PollenNectarQuality m_pollenquality
Definition: elements.h:539
int m_subtype
Definition: elements.h:461
long m_running
Definition: elements.h:446
int m_PesticideGridCell
Definition: elements.h:457
int m_gooseNos[366]
The number of geese each day.
Definition: elements.h:491
int m_squares_in_map
Definition: elements.h:86
int m_pindex
Definition: elements.h:443
int m_currentOsmiaNests
to record the number of actual osmia nests
Definition: elements.h:538
PollenNectarDevelopmentCurve * m_pollencurve
pointer to the correct pollen curve set
Definition: elements.h:546
double m_totalNectar
Definition: elements.h:542
int m_openness
The openness metric for a field (if any)
Definition: elements.h:509
int m_maxy
Definition: elements.h:464
int m_soiltype
Definition: elements.h:513
int MDates[2][25]
Definition: elements.h:530
int m_valid_y
Definition: elements.h:453
int m_maxx
Definition: elements.h:462
int m_minx
Definition: elements.h:463
int m_herbicidedelay
Definition: elements.h:486
bool m_poison
Definition: elements.h:516
int m_centroidx
Definition: elements.h:454
double m_birdmaizeforage
The maize forage present in KJ/m2.
Definition: elements.h:503
long m_management_loop_detect_date
Definition: elements.h:467
unsigned int m_lastindex
Definition: elements.h:525
int m_valid_x
Definition: elements.h:452
int m_vegage
Definition: elements.h:512
int m_almass_le_type
This holds the ALMaSS element type reference number.
Definition: elements.h:482
vector< int > m_lasttreat
Definition: elements.h:524
double m_birdseedforage
The grain forage present in KJ/m2.
Definition: elements.h:501
int m_default_grazing_level
Definition: elements.h:518
bool m_pig_grazing
Definition: elements.h:519
bool m_skylarkscrapes
For management testing of skylark scrapes.
Definition: elements.h:88
double m_OsmiaNestProb
to record the chance of osmia nesting
Definition: elements.h:534
long m_olddays
Definition: elements.h:466
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
int m_maxOsmiaNests
to record the number of possible osmia nests
Definition: elements.h:536
class Landscape * g_landscape_p
Definition: Landscape.cpp:258
int m_map_index
Definition: elements.h:480
int m_miny
Definition: elements.h:465
TTypesOfVegetation m_lastsownvegtype
Records the last vegegetation type that was sown on the element.
Definition: elements.h:507
double m_yddegs
Definition: elements.h:521
boost::variate_generator< base_generator_type &, boost::uniform_real<> > g_rand_uni
bool m_high
Definition: elements.h:515
int m_gooseSpNos[366][gs_foobar]
The number of geese of each species each day.
Definition: elements.h:493
int m_days_since_insecticide_spray
Definition: elements.h:514
int m_farmfunc_tried_to_do
Definition: elements.h:483
int MConsts[10]
Definition: elements.h:531
int m_countrydesignation
Definition: elements.h:470
int m_owner_index
Definition: elements.h:472
double m_totalPollen
Definition: elements.h:541
void SetStubble(bool a_flag)
Sets the in stubble flag.
Definition: elements.h:390
LE * m_border
Definition: elements.h:447
int m_tramlinesdecay
Definition: elements.h:484
int m_cattle_grazing
Definition: elements.h:517
void SetPollenNectarCurves(PollenNectarDevelopmentCurve *a_pollencurnve, PollenNectarDevelopmentCurve *a_nectarcurve)
Set method for pollen and nectar curves.
Definition: elements.h:435
void SetLastTreatment(int a_treatment)
Definition: elements.cpp:490
int m_owner_file
Definition: elements.h:471
double m_ddegs
Definition: elements.h:522
int m_centroidy
Definition: elements.h:455
int m_gooseNosTimed[366]
The number of geese at a predefined time per day.
Definition: elements.h:495
Farm * m_owner
Definition: elements.h:469
double m_vegddegs
Definition: elements.h:520
int m_gooseSpNosTimed[366][gs_foobar]
The number of geese of each species at a predefined time per day.
Definition: elements.h:497
PollenNectarDevelopmentCurve * m_nectarcurve
pointer to the correct nectar curve set
Definition: elements.h:548
class PollenNectarDevelopmentData * g_nectarpollen
Definition: Landscape.cpp:241
bool m_sprayedtoday
flag to indicate an overspray situation
Definition: elements.h:475
double m_dist_to_closest_roost[gs_foobar]
An array holding the distance to the nearest goose roost.
Definition: elements.h:511
int m_rot_index
Definition: elements.h:473
void SetMConstants(int a, int c)
Definition: elements.h:344
int m_poly
The polyref number for this polygon.
Definition: elements.h:477
LE_Signal m_signal_mask
Definition: elements.h:532
int m_ptrace[256]
Definition: elements.h:441
int m_vege_danger_store
Definition: elements.h:456
int m_mowndecay
Definition: elements.h:485
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
int m_unsprayedmarginpolyref
Definition: elements.h:448
long m_management_loop_detect_count
Definition: elements.h:468
PollenNectarQuality m_nectarquality
Definition: elements.h:540
bool m_is_in_map
Definition: elements.h:459
void IncTreatCounter(int a_treat)
Definition: Landscape.cpp:3575
TTypesOfLandscapeElement m_type
Definition: elements.h:487