ALMaSS Rodenticide ODdox  1.1
The rodenticide model description following ODdox protocol
ALMaSS_CmdLine.cpp File Reference
#include "assert.h"
#include <cstdlib>
#include <cstring>
#include <stdio.h>
#include <stdlib.h>
#include <errno.h>
#include <iostream>
#include <fstream>
#include <time.h>
#include <cmath>
#include <vector>
#include <list>
#include <string>
#include <blitz/array.h>
#include "../BatchALMaSS/ALMaSS_Setup.h"
#include "../ALMaSSDefines.h"
#include "../Landscape/ls.h"
#include "../BatchALMaSS/MovementMap.h"
#include "../BatchALMaSS/BinaryMapBase.h"
#include "../BatchALMaSS/PopulationManager.h"
#include "../Vole/GeneticMaterial.h"
#include "../Skylark/skylarks_all.h"
#include "../Partridge/Partridge_All.h"
#include "../Partridge/Partridge_Population_Manager.h"
#include "../Vole/vole_all.h"
#include "../Vole/VolePopulationManager.h"
#include "../Vole/Predators.h"
#include "../Bembidion/bembidion_all.h"
#include "../Hare/hare_all.h"
#include "../Spider/spider_all.h"
#include "../Spider/SpiderPopulationManager.h"
#include "../MarshFritillary/MarshFritillaryHdrs.h"
#include "../GooseManagement/GooseMemoryMap.h"
#include "../GooseManagement/Goose_Base.h"
#include "../BatchALMaSS/CurveClasses.h"
#include "../Hunters/Hunters_all.h"
#include "../GooseManagement/Goose_Population_Manager.h"
#include "../RoeDeer/Roe_all.h"
#include "../RoeDeer/Roe_pop_manager.h"
#include "../Rabbit/Rabbit.h"
#include "../Rabbit/Rabbit_Population_Manager.h"
#include "../Newt/Newt.h"
#include "../Newt/Newt_Population_Manager.h"
#include "../Osmia/Osmia.h"
#include "../Osmia/Osmia_Population_Manager.h"

Macros

#define _CRT_SECURE_NO_DEPRECATE
 

Functions

static CfgInt cfg_DayInMonth ("PRB_DAYINMONTH", CFG_CUSTOM, 1)
 
static CfgBool cfg_UseEasyPop ("VOLE_USEEASYPOP", CFG_CUSTOM, false)
 
static CfgBool cfg_VoleCatastrophe_on ("VOLE_CATASTROPHE_ON", CFG_CUSTOM, false)
 
static CfgInt cfg_VoleCatastrophe_interval ("VOLE_CATASTROPHE_I", CFG_CUSTOM, 365 *5)
 
static CfgInt cfg_VoleCatastrophe_mortality ("VOLE_CATASTROPHE_M", CFG_CUSTOM, 90)
 
void RunTheSim ()
 
void CloseDownSim ()
 
bool ReadBatchINI ()
 
void GetProbeInput_ini ()
 
void CreateLandscape ()
 
bool CreatePopulationManager ()
 
void SpeciesSpecificReporting ()
 
void SpeciesSpecificActions ()
 
bool BeginningOfMonth ()
 
void DumpVegAreaData (int a_day)
 
void PredProbeReportDay0 (int a_time)
 
void ProbeReport (int a_time)
 
void ImpactProbeReport (int a_time)
 
int random (int a_range)
 
void delay (int secs)
 
void FloatToDouble (double &d, float f)
 
int main ()
 

Variables

boost::variate_generator< base_generator_type &, boost::uniform_real<> > g_rand_uni
 
const double g_randmaxp = RAND_MAX + 1.0
 
CfgBool cfg_dumpvegjan
 
CfgStr cfg_dumpvegjanfile
 
CfgBool cfg_dumpvegjune
 
CfgStr cfg_dumpvegjunefile
 
CfgBool cfg_fixed_random_sequence
 
PopulationManagerList g_PopulationManagerList
 
Landscapeg_ALandscape
 
Population_Managerg_AManager
 
Hunter_Population_Manager * g_Hunter_Population_Manager
 
TPredator_Population_Manager * g_PredatorManager
 
int g_Species
 
int g_torun
 
char * g_files [100]
 
char * g_Predfiles [100]
 
char g_ResultsDir [255]
 
char g_PredResultsDir [255]
 
int g_time
 
int g_Year
 
int g_Steps
 
int g_NoProbes
 
unsigned g_NoOfPredProbes
 
ALMaSS_MathFuncs g_AlmassMathFuncs
 

Macro Definition Documentation

◆ _CRT_SECURE_NO_DEPRECATE

#define _CRT_SECURE_NO_DEPRECATE

Function Documentation

◆ BeginningOfMonth()

bool BeginningOfMonth ( )

◆ cfg_DayInMonth()

static CfgInt cfg_DayInMonth ( "PRB_DAYINMONTH"  ,
CFG_CUSTOM  ,
 
)
static

◆ cfg_UseEasyPop()

static CfgBool cfg_UseEasyPop ( "VOLE_USEEASYPOP"  ,
CFG_CUSTOM  ,
false   
)
static

◆ cfg_VoleCatastrophe_interval()

static CfgInt cfg_VoleCatastrophe_interval ( "VOLE_CATASTROPHE_I"  ,
CFG_CUSTOM  ,
365 *  5 
)
static

◆ cfg_VoleCatastrophe_mortality()

static CfgInt cfg_VoleCatastrophe_mortality ( "VOLE_CATASTROPHE_M"  ,
CFG_CUSTOM  ,
90   
)
static

◆ cfg_VoleCatastrophe_on()

static CfgBool cfg_VoleCatastrophe_on ( "VOLE_CATASTROPHE_ON"  ,
CFG_CUSTOM  ,
false   
)
static

◆ CloseDownSim()

void CloseDownSim ( )
472  {
473  if ( g_AManager )
474  {
476  // Close the probe file
477  if ( g_AManager->TheProbe[ 0 ] != NULL ) g_AManager->TheProbe[ 0 ]->CloseFile();
478  // delete all probes
479  for ( int i = 0; i < g_NoProbes; i++ ) delete g_AManager->TheProbe[ i ];
480  delete g_AManager;
481  if ( g_Species == 1 ) {
482  delete g_PredatorManager;
483  }
484  }
485  delete g_ALandscape;
486  delete g_cfg;
487 }

References probe_data::CloseFile(), g_ALandscape, g_AManager, g_NoProbes, g_PredatorManager, g_Species, Landscape::SimulationClosingActions(), and Population_Manager::TheProbe.

Referenced by main().

◆ CreateLandscape()

void CreateLandscape ( )
234  {
235  // Create the landscape
236  g_ALandscape = new Landscape();
237 }

References g_ALandscape.

Referenced by main().

◆ CreatePopulationManager()

bool CreatePopulationManager ( )
240  {
241  // SET UP THE ANIMAL POPULATION
242  // THE LANDSCAPE MUST BE SETUP BEFORE THE CALL HERE
243 
244  if ( g_Species == 0 ) {
245  Skylark_Population_Manager * skMan = new Skylark_Population_Manager( g_ALandscape );
246  g_AManager = skMan;
251  }
252  else if ( g_Species == 1 ) {
253  Vole_Population_Manager * vMan = new Vole_Population_Manager( g_ALandscape );
254  g_AManager = vMan;
256  g_PredatorManager = new TPredator_Population_Manager( g_ALandscape, vMan );
257  g_PredatorManager->SetNoProbes( g_NoOfPredProbes);
259  }
260  else if ( g_Species == 2 ) {
261  Spider_Population_Manager * spMan = new Spider_Population_Manager( g_ALandscape );
263  g_AManager = spMan;
264  }
265  else if ( g_Species == 3 ) {
266  Bembidion_Population_Manager * bMan = new Bembidion_Population_Manager( g_ALandscape );
268  g_AManager = bMan;
269  }
270  else if ( g_Species == 4 ) { // Hare
271  THare_Population_Manager * hMan = new THare_Population_Manager( g_ALandscape );
273  g_AManager = hMan;
274  }
275  else if ( g_Species == 5 ) {
276  Partridge_Population_Manager * pMan = new Partridge_Population_Manager( g_ALandscape );
277  g_AManager = pMan;
279  }
280  else if ( g_Species == 6 ) {
281  Goose_Population_Manager * gMan = new Goose_Population_Manager( g_ALandscape );
282  g_AManager = gMan;
284  g_Hunter_Population_Manager = new Hunter_Population_Manager( g_ALandscape );
286  }
287  else if ( g_Species == 7 ) {
288  MarshFritillary_Population_Manager * mMan = new MarshFritillary_Population_Manager( g_ALandscape );
289  g_AManager = mMan;
291  }
292 #ifdef __dormouse //LADA
293  else if (g_Species == 8) {
294  Dormouse_Population_Manager * dMan = new Dormouse_Population_Manager(g_ALandscape);
295  g_AManager = dMan;
297  }
298 #endif // __dormouse
299  else if (g_Species == 9)
300  {
301  RoeDeer_Population_Manager * rMan = new RoeDeer_Population_Manager( g_ALandscape );
302  g_AManager = rMan;
304  }
305  else if (g_Species == 10)
306  {
307  Rabbit_Population_Manager * rMan = new Rabbit_Population_Manager(g_ALandscape);
308  g_AManager = rMan;
310  }
311  else if (g_Species == 11)
312  {
313  Newt_Population_Manager * nwMan = new Newt_Population_Manager(g_ALandscape);
314  g_AManager = nwMan;
316  }
317  else if (g_Species == 12)
318  {
319  Osmia_Population_Manager * osMan = new Osmia_Population_Manager(g_ALandscape);
320  g_AManager = osMan;
322  }
323  else {
324  g_msg->Warn("Population_Manager::CreatePopulationManager() Unknown species number> ", g_Species);
325  exit(0);
326  }
327 
329  return true;
330 }

References g_ALandscape, g_AManager, g_Hunter_Population_Manager, g_NoOfPredProbes, g_NoProbes, g_PopulationManagerList, g_PredatorManager, g_Species, Population_Manager::OpenTheBreedingPairsProbe(), Population_Manager::OpenTheBreedingSuccessProbe(), Population_Manager::OpenTheFledgelingProbe(), Population_Manager::SetNoProbes(), PopulationManagerList::SetPopulation(), TOP_Beetle, TOP_Dormouse, TOP_Goose, TOP_Hare, TOP_Hunters, TOP_MarshFritillary, TOP_Newt, TOP_Osmia, TOP_Partridge, TOP_Predators, TOP_Rabbit, TOP_RoeDeer, TOP_Skylark, TOP_Spider, and TOP_Vole.

Referenced by main().

◆ delay()

void delay ( int  secs)
162  {
163  time_t start_time, cur_time;
164  time(&start_time);
165  do
166  {
167  time(&cur_time);
168  } while((cur_time - start_time) < secs);
169 }

◆ DumpVegAreaData()

void DumpVegAreaData ( int  a_day)

◆ FloatToDouble()

void FloatToDouble ( double &  d,
float  f 
)
174  {
175  d = f;
176 }

Referenced by VegElement::ReadBugPercentageFile().

◆ GetProbeInput_ini()

void GetProbeInput_ini ( )
334  {
335  char Nme[ 511 ];
336  ofstream * AFile=NULL;
337  for ( int NProbes = 0; NProbes < g_NoProbes; NProbes++ ) {
338  // Must read the probe from a file
339  g_AManager->TheProbe[ NProbes ] = new probe_data;
340  g_AManager->ProbeFileInput( ( char * ) g_files[ NProbes ], NProbes );
341  char NoProbesString[ 255 ];
342  sprintf( NoProbesString, "%sProbe.res", g_ResultsDir );
343  if ( NProbes == 0 ) {
344  AFile = g_AManager->TheProbe[ NProbes ]->OpenFile( NoProbesString );
345  if ( !AFile ) {
346  g_ALandscape->Warn( "BatchALMSS - cannot open Probe File", NULL );
347  exit( 1 );
348  }
349  } else
350  g_AManager->TheProbe[ NProbes ]->SetFile( AFile );
351  }
352  if ( g_Species == 1 ) {
353  for ( int NProbes = 0; NProbes < ( int )g_NoOfPredProbes; NProbes++ ) {
354  g_PredatorManager->TheProbe[ NProbes ] = new probe_data;
355  g_PredatorManager->ProbeFileInput( ( char * ) g_Predfiles[ NProbes ], NProbes );
356  sprintf( Nme, "%sPredProbe%d.res", g_ResultsDir, NProbes + 1 );
357  // strcpy( Nme, g_PredResultsDir );
358  if ( NProbes == 0 ) {
359  AFile = g_PredatorManager->TheProbe[ NProbes ]->OpenFile( Nme );
360  if ( !AFile ) {
361  g_ALandscape->Warn( "BatchALMSS - cannot open Probe File", Nme );
362  exit( 1 );
363  }
364  } else
365  g_PredatorManager->TheProbe[ NProbes ]->SetFile( AFile );
366  }
367  }
368  for ( int NProbes = 0; NProbes < g_NoProbes; NProbes++ ) {
369  delete [] g_files[NProbes];
370  }
371  for ( int NProbes = 0; NProbes < ( int )g_NoOfPredProbes; NProbes++ ) {
372  delete [] g_Predfiles[NProbes];
373  }
374 }

References g_ALandscape, g_AManager, g_files, g_NoOfPredProbes, g_NoProbes, g_PredatorManager, g_Predfiles, g_ResultsDir, g_Species, probe_data::OpenFile(), Population_Manager::ProbeFileInput(), probe_data::SetFile(), Population_Manager::TheProbe, and Landscape::Warn().

Referenced by main().

◆ ImpactProbeReport()

void ImpactProbeReport ( int  a_time)

◆ main()

int main ( )
191  {
192 #ifdef _DEBUG
193  // Get the current state of the flag
194  // and store it in a temporary variable
195  int tmpFlag = _CrtSetDbgFlag( _CRTDBG_REPORT_FLAG );
196 
197  // Turn On (OR) - Keep freed memory blocks in the
198  // heap's linked list and mark them as freed
199  tmpFlag |= _CRTDBG_DELAY_FREE_MEM_DF;
200 
201  // Turn Off (AND) - prevent _CrtCheckMemory from
202  // being called at every allocation request
203  tmpFlag &= ~_CRTDBG_CHECK_ALWAYS_DF;
204  // Set the new state for the flag
205  _CrtSetDbgFlag( tmpFlag );
206 #endif
207  // Must come first. Used by the configurator below.
208  g_msg = new MapErrorMsg("ErrorFile.txt");
209  g_msg->SetWarnLevel(WARN_ALL);
210 
211  // Configurator instantiation is automatic.
212  g_cfg->ReadSymbols("TIALMaSSConfig.cfg");
213  //g_cfg->DumpAllSymbolsAndExit( "allsymbols.cfg" );
214 
215  if (cfg_fixed_random_sequence.value()) srand( 0 ); else srand( (int)time( NULL ) );
216  CreateLandscape();
217  printf( "Landscape Created\n" ); // So now set up a Population Manager
218  if (!ReadBatchINI()) {
219  char ch;
220  cout << "Problem with ini file";
221  cin >> ch;
222  }
223  if (!CreatePopulationManager()) return false; else
224  printf( "Population Created\n" ); // Now got to get the probe files read in
227  // Ready to go
228  RunTheSim();
229  CloseDownSim();
230  return 0;
231 }

References cfg_fixed_random_sequence, CloseDownSim(), CreateLandscape(), CreatePopulationManager(), g_ALandscape, g_AManager, GetProbeInput_ini(), ReadBatchINI(), RunTheSim(), and Landscape::SetThePopManager().

◆ PredProbeReportDay0()

void PredProbeReportDay0 ( int  a_time)

◆ ProbeReport()

void ProbeReport ( int  a_time)

◆ random()

int random ( int  a_range)
142  {
143  /* Want to raise exception on this?
144  if ( a_range <= 0 )
145  return 0;
146  */
147  //int result = (int)(((double) rand() / g_randmaxp ) * a_range);
148  return (int) (g_rand_uni()*a_range);
149  //return result;
150 }

References g_rand_uni.

Referenced by Landscape::AddBeetleBanks(), Landscape::BorderScan(), RoadsideVerge::DoDevelopment(), Landscape::Landscape(), VegElement::RandomVegStartValues(), Landscape::ReadPolys2(), Population_Manager::Shuffle(), and UnsprayedFieldMargin::UnsprayedFieldMargin().

◆ ReadBatchINI()

bool ReadBatchINI ( )
377  {
378  // Must read the TIBatch.INI
379  // Read the INI file
380  FILE * Fi = NULL;
381  char answer = 'X';
382  Fi=fopen("BatchALMaSS.ini", "r" );
383  while ( Fi==NULL ) {
384  // Issue and error warning
385  cout << "INI File Missing: ";
386  cout << "BatchALMaSS.ini" << "\n";
387  cout << "Try Again?";
388  cin >> answer;
389  if ( answer != 'Y' ) exit(0);
390  Fi = fopen("BatchALMaSS.ini", "r" );
391  }
392  char Data[ 255 ];
393  fscanf( Fi, "%d\r", & g_NoProbes );
394  for ( int i = 0; i < g_NoProbes; i++ ) {
395  fscanf( Fi, "%s\r", Data);
396  g_files[ i ] = new char[ 255 ];
397  strcpy( g_files[ i ], Data );
398  }
399  fscanf( Fi, "%s\r", Data );
400  strcpy( g_ResultsDir, Data );
401  // Read the PredBatch.INI file
402  if ( g_Species == 1) {
403  FILE * Fi2 = NULL;
404  answer = 'X';
405  while ( !Fi2 ) {
406  Fi2=fopen("VoleToxPreds.ini", "r" );
407  if ( !Fi2 ) {
408  // Issue and error warning
409  cout << "Predator Batch File Missing: VoleToxPreds.INI";
410  cout << "Try Again (Y/N) ? ";
411  cin >> answer;
412  if ( answer != 'Y' ) return false;
413  }
414  }
415  char Data2[ 255 ];
416  fscanf( Fi2, "%d\r", & g_NoOfPredProbes );
417  for ( int i = 0; i < ( int )g_NoOfPredProbes; i++ ) {
418  fscanf( Fi2, "%s\r", Data2 );
419  g_Predfiles[ i ] = new char[ 255 ];
420  strcpy( g_Predfiles[ i ], Data2 );
421  }
422  fscanf( Fi2, "%s\r", Data2 );
423  strcpy( g_PredResultsDir, Data2 );
424  fclose( Fi2 );
425  }
426  fscanf( Fi, "%d\r", & g_torun );
427  g_torun *= 365; // the number of years and multiplied by 365 to get days
428  fscanf( Fi, "%d\r", & g_Species );
429  fclose( Fi );
430  switch (g_Species) {
431  case 0:
432  printf("Running Skylarks\n");
433  break;
434  case 1:
435  printf("Running Voles\n");
436  break;
437  case 2:
438  printf("Running Spiders\n");
439  break;
440  case 3:
441  printf("Running Beetles\n");
442  break;
443  case 4:
444  printf("Running Hares\n");
445  break;
446  case 5:
447  printf("Running Partridges\n");
448  break;
449  case 6:
450  printf("Running Goose Management\n");
451  break;
452  case 7:
453  printf("Running Marsh Fritillary\n");
454  break;
455  case 8:
456  printf("Running Dormouse\n");
457  break;
458  case 9:
459  printf("Running Roe Deer\n");
460  break;
461  case 10:
462  printf("Running Rabbits\n");
463  break;
464  case 11:
465  printf("Running Newts\n");
466  break;
467  }
468  return true;
469 }

References g_files, g_NoOfPredProbes, g_NoProbes, g_Predfiles, g_PredResultsDir, g_ResultsDir, g_Species, and g_torun.

Referenced by main().

◆ RunTheSim()

void RunTheSim ( )
491  {
492  for ( int i = 0; i < g_torun; i++ ) {
494  // Update the Date
495  g_time++;
496 
497  printf("%d\r",g_time);
498  int day = g_ALandscape->SupplyDayInMonth();
499  int month = g_ALandscape->SupplyMonth();
500  if ( ( day == 1 ) && ( month == 1 ) ) g_Year++;
501 
502  if (g_Species == 1) g_PredatorManager->Run(1);
503  if (g_Species == 6)
504  {
505  for (int tenmin = 0; tenmin<144; tenmin++)
506  {
507  g_AManager->Run(1); // Goose Model
509  if (g_date->TickMinute10()) g_date->TickHour();
510  }
511  }
512  else g_AManager->Run(1);
513 
514  char str[255];
516 
518  }
519 }

References Landscape::DumpVegAreaData(), g_ALandscape, g_AManager, g_Hunter_Population_Manager, g_PredatorManager, g_Species, g_time, g_torun, g_Year, Population_Manager::Run(), Population_Manager::SpeciesSpecificReporting(), Landscape::SupplyDayInMonth(), Landscape::SupplyMonth(), and Landscape::TurnTheWorld().

Referenced by main().

◆ SpeciesSpecificActions()

void SpeciesSpecificActions ( )

◆ SpeciesSpecificReporting()

void SpeciesSpecificReporting ( )

Variable Documentation

◆ cfg_dumpvegjan

CfgBool cfg_dumpvegjan

◆ cfg_dumpvegjanfile

CfgStr cfg_dumpvegjanfile

◆ cfg_dumpvegjune

CfgBool cfg_dumpvegjune

◆ cfg_dumpvegjunefile

CfgStr cfg_dumpvegjunefile

◆ cfg_fixed_random_sequence

CfgBool cfg_fixed_random_sequence

Referenced by main().

◆ g_ALandscape

◆ g_AlmassMathFuncs

ALMaSS_MathFuncs g_AlmassMathFuncs

◆ g_AManager

◆ g_files

char* g_files[100]

Referenced by GetProbeInput_ini(), and ReadBatchINI().

◆ g_Hunter_Population_Manager

Hunter_Population_Manager* g_Hunter_Population_Manager

◆ g_NoOfPredProbes

unsigned g_NoOfPredProbes

◆ g_NoProbes

◆ g_PopulationManagerList

PopulationManagerList g_PopulationManagerList

Referenced by CreatePopulationManager().

◆ g_PredatorManager

TPredator_Population_Manager* g_PredatorManager

◆ g_Predfiles

char* g_Predfiles[100]

Referenced by GetProbeInput_ini(), and ReadBatchINI().

◆ g_PredResultsDir

char g_PredResultsDir[255]

Referenced by ReadBatchINI().

◆ g_rand_uni

boost::variate_generator<base_generator_type&, boost::uniform_real<> > g_rand_uni

Referenced by random().

◆ g_randmaxp

const double g_randmaxp = RAND_MAX + 1.0

◆ g_ResultsDir

char g_ResultsDir[255]

Referenced by GetProbeInput_ini(), and ReadBatchINI().

◆ g_Species

◆ g_Steps

int g_Steps

◆ g_time

int g_time

Referenced by RunTheSim().

◆ g_torun

int g_torun

Referenced by ReadBatchINI(), and RunTheSim().

◆ g_Year

int g_Year

Referenced by RunTheSim().

version_major
static const int version_major
Definition: Landscape.cpp:49
Landscape::SupplyVegCoverVector
double SupplyVegCoverVector(unsigned int a_index)
Definition: landscape.h:1053
LE_TypeClass::BackTranslateEleTypes
int BackTranslateEleTypes(TTypesOfLandscapeElement EleReference)
Definition: elements.cpp:3610
TOP_Rabbit
Definition: PopulationManager.h:68
LE::GetMDates
int GetMDates(int a, int b)
Definition: elements.h:341
RodenticideManager::GetMap
double GetMap(int a_x, int a_y)
Get poisoned mice at x,y.
Definition: Rodenticide.h:129
Landscape::CalculateCentroids
void CalculateCentroids(void)
Definition: Landscape.cpp:3040
LE::m_pdates
int m_pdates[256]
Definition: elements.h:442
cfg_rodenticide_dumppolyinterval
CfgInt cfg_rodenticide_dumppolyinterval("RODENTICIDE_DUMPPOLYINTERVAL", CFG_CUSTOM, 180)
Population_Manager::TestFile2
FILE * TestFile2
Definition: PopulationManager.h:540
EL_BUG_PERCENT_SB_A
#define EL_BUG_PERCENT_SB_A
Definition: elements.cpp:38
VegElement::ReduceVeg_Extended
virtual void ReduceVeg_Extended(double a_reduc)
Definition: elements.cpp:2097
VegElement::Set_CropDataStorage
void Set_CropDataStorage(int index, CropActualValues a_struct)
Definition: elements.h:662
Pond::m_MaleNewtPresent
bool m_MaleNewtPresent
Flag for presence of a male newt.
Definition: elements.h:1192
ttop_ReproductiveEffects
Definition: landscape.h:69
cfg_B6B
CfgFloat cfg_B6B
LE::SetMaxOsmiaNests
void SetMaxOsmiaNests(double a_noNests)
Add an occupied nest.
Definition: elements.h:421
Landscape::m_PondRefsList
vector< int > m_PondRefsList
List of pond polyrefs.
Definition: landscape.h:199
Landscape::hb_max_x
int hb_max_x
Definition: landscape.h:272
LE::GetMinX
int GetMinX(void)
Definition: elements.h:335
probe_data::m_TargetTypes
bool m_TargetTypes[10]
Definition: PopulationManager.h:301
WaterBufferZone::WaterBufferZone
WaterBufferZone(void)
Definition: elements.cpp:2346
Landscape::m_versioninfo
char m_versioninfo[30]
Definition: landscape.h:115
Landscape::hb_width
int hb_width
Definition: landscape.h:269
cfg_l_treatment_y
CfgInt cfg_l_treatment_y("LAND_TREATMENTY", CFG_CUSTOM, 0)
VegElement::Add_no_fi_app
void Add_no_fi_app()
Definition: elements.h:650
Landscape::hb_MarkTopFromLocalMax
void hb_MarkTopFromLocalMax(int a_color)
Landscape::SupplyFarmType
TTypesOfFarm SupplyFarmType(int a_polyref)
Definition: landscape.h:1179
LE::GetLastSownVeg
TTypesOfVegetation GetLastSownVeg()
Returns the last vegetation type to be sown.
Definition: elements.h:299
cfg_ele_weedscaling
static CfgFloat cfg_ele_weedscaling("ELE_WEEDSCALING", CFG_CUSTOM, 1.0)
Population_Manager::SupplyStateNames
const char * SupplyStateNames(int i)
Definition: PopulationManager.h:497
Landscape::SupplyVegDigestability
double SupplyVegDigestability(int a_polyref)
Definition: landscape.h:919
Landscape::ResetGrainAndMaize
void ResetGrainAndMaize()
Resets all grain.
Definition: Landscape.cpp:730
Urban::Urban
Urban(void)
HeritageSite
Definition: elements.h:1304
Landscape::SupplyLEPointer
LE * SupplyLEPointer(int a_polyref)
Definition: landscape.h:1099
RodenticidePredators_Population_Manager::ReadHabitatValues
void ReadHabitatValues(int a_type)
Read in specific predator type habitat scores.
Definition: RodenticidePredators.cpp:151
ConiferousForest
Definition: elements.h:961
cfg_B6F
CfgFloat cfg_B6F
Landscape::DumpMapInfoByArea
void DumpMapInfoByArea(const char *a_filename, bool a_append, bool a_dump_zero_areas, bool a_write_veg_names)
Definition: Landscape.cpp:3652
GooseFieldListItem::grass
double grass[gs_foobar]
Definition: landscape.h:91
LE::m_monthly_traffic
static double m_monthly_traffic[]
Used for birds that feed on grain on cereal fields 3% spill is expected.
Definition: elements.h:527
May
const int May
Definition: landscape.h:40
RV_MAY_1ST
#define RV_MAY_1ST
Definition: elements.cpp:212
RodenticideManager::DumpRodenticideMap
void DumpRodenticideMap(string a_fname)
Dumps a map of rodenticide loads per 1m2 cells.
Definition: Rodenticide.cpp:399
Population_Manager::EmptyTheArray
void EmptyTheArray()
Removes all objects from the TheArray by deleting them and clearing TheArray.
Definition: PopulationManager.cpp:962
CropActualValues
Struct for storing actual data on crop type, area of a field it is grown in, biomass at harvest,...
Definition: elements.h:555
RodenticideManager::DistributeRing
void DistributeRing(int a_x, int a_y, double a_amount)
Distribute an amount to the twin map in a ring.
Definition: Rodenticide.cpp:269
Landscape::SupplyNumberOfPolygons
unsigned int SupplyNumberOfPolygons(void)
Definition: landscape.h:1461
LE::SetOwner
void SetOwner(Farm *a_owner, int a_owner_num, int a_owner_index)
Definition: elements.h:219
DeciduousForest::DeciduousForest
DeciduousForest(void)
Definition: elements.cpp:2685
RodenticideManager::DoPlaceBait
void DoPlaceBait()
Initiates bait placement for those bait locations necessary.
Definition: Rodenticide.cpp:333
delay
void delay(int secs)
Definition: ALMaSS_CmdLine.cpp:162
Landscape::SubtractPondLarvalFood
bool SubtractPondLarvalFood(double a_food, int a_polyrefindex)
Removes larval food from a pond and returns true if it was possible, otherwise false.
Definition: Landscape.cpp:664
GooseFieldListItem::lastsownveg
std::string lastsownveg
Definition: landscape.h:98
l_map_dump_treatcounts_enable
static CfgBool l_map_dump_treatcounts_enable("MAP_DUMP_TREATCOUNTS_ENABLE", CFG_CUSTOM, false)
LE::SetOldDays
void SetOldDays(long a_days)
Definition: elements.h:306
RodenticidePredators_Population_Manager::EvaluatePoly
double EvaluatePoly(int a_poly)
Get the habitat quality based on polygon type.
Definition: RodenticidePredators.cpp:184
Population_Manager::SpeciesSpecificReporting
char * SpeciesSpecificReporting(int a_species, int a_time)
Definition: PopulationManager.cpp:1121
cfg_l_usecustompoly
CfgBool cfg_l_usecustompoly("LAND_USECUSTOMPOLY", CFG_CUSTOM, false)
Landscape::SupplyJustSprayed
int SupplyJustSprayed(int a_polyref)
Definition: landscape.h:1275
LE::SetMDates
void SetMDates(int a, int b, int c)
Definition: elements.h:342
cfg_mintownbuildingnumber
static CfgInt cfg_mintownbuildingnumber("MAP_MINTOWNBUILDINGNUMBER", CFG_CUSTOM, 6)
cfg_DayInMonth
static CfgInt cfg_DayInMonth("PRB_DAYINMONTH", CFG_CUSTOM, 1)
TAnimal::KillThis
virtual void KillThis()
Definition: PopulationManager.h:219
VegElement::SetCropData
virtual void SetCropData(double, double, double, TTypesOfVegetation, double, int)
Definition: elements.cpp:2181
Landscape::SupplyGreenBiomass
double SupplyGreenBiomass(int a_polyref)
Definition: landscape.h:1017
Landscape::SupplyNumberOfFarms
int SupplyNumberOfFarms()
Definition: landscape.h:1148
LE::~LE
virtual ~LE(void)
Definition: elements.cpp:452
StoneWall::StoneWall
StoneWall(void)
Definition: elements.cpp:2744
TALMaSSObject::SetStepDone
void SetStepDone(bool a_bool)
Sets the step done indicator flag.
Definition: PopulationManager.h:133
LE::GetNectar
virtual PollenNectarQuality GetNectar()
Definition: elements.h:431
SimpleStatistics::get_N
double get_N()
Returns the number of values.
Definition: PopulationManager.h:358
cfg_goosecountperiod
CfgInt cfg_goosecountperiod("GOOSE_GOOSECOUNTPERIOD", CFG_CUSTOM, 1)
The number of days a goose count can be used.
DrainageDitch
Definition: elements.h:1239
VegElement::GetGreenBiomass
virtual double GetGreenBiomass(void)
Definition: elements.h:580
LE::ForceGrowthInitialize
virtual void ForceGrowthInitialize(void)
Definition: elements.h:171
BaitLocation::SetX
void SetX(int a_x)
Set x-coordinate.
Definition: Rodenticide.h:54
g_generator
base_generator_type g_generator(static_cast< unsigned int >(std::time(0)))
Landscape::TranslateVegTypes
TTypesOfVegetation TranslateVegTypes(int VegReference)
Definition: landscape.h:1655
Landscape::SupplyHumidity
double SupplyHumidity(void)
Definition: landscape.h:1393
Population_Manager::ProbeFileInput
int ProbeFileInput(char *p_Filename, int p_ProbeNo)
Definition: PopulationManager.cpp:574
LE::m_area
double m_area
The element area in m2.
Definition: elements.h:489
cfg_pollen_nectar_on
CfgBool cfg_pollen_nectar_on("ELE_POLLENNECTAR_ON", CFG_CUSTOM, false)
Flag to determine whether nectar and pollen models are used - should be set to true for pollinator mo...
Population_Manager::m_catastrophestartyear
int m_catastrophestartyear
Definition: PopulationManager.h:532
cfg_pesticidemapnoyears
CfgInt cfg_pesticidemapnoyears("PEST_MAP_NOYEARS", CFG_CUSTOM, 1)
The numer of years of pesticide mapping.
Landscape::m_RodenticidePreds
RodenticidePredators_Population_Manager * m_RodenticidePreds
Definition: landscape.h:158
Landscape::SupplyTemp
double SupplyTemp(void)
Definition: landscape.h:1386
cfg_fungi_app_prop3
CfgFloat cfg_fungi_app_prop3("CROPS_FUNGICIDE_APPLIC_THREE_PROPORTION", CFG_CUSTOM, 1.0)
Landscape::SupplyPesticideDecay
bool SupplyPesticideDecay(PlantProtectionProducts a_ppp)
Returns true if there is any pesticide in the system at all at this point.
Definition: Landscape.cpp:776
Landscape::SupplyLATotal
double SupplyLATotal(int a_x, int a_y)
Definition: landscape.h:1004
VegElement::IsCereal
virtual bool IsCereal()
Definition: elements.cpp:1467
g_landscape_p
Landscape * g_landscape_p
Definition: Landscape.cpp:258
Landscape::SupplyMeanTemp
double SupplyMeanTemp(long a_date, unsigned int a_period)
Definition: landscape.h:1372
Landscape::MagicMapP2PolyRef
int MagicMapP2PolyRef(int a_magic)
Definition: landscape.h:1516
Population_Manager::DoLast
virtual void DoLast()
Definition: PopulationManager.cpp:530
LE::GrazeVegetationTotal
virtual void GrazeVegetationTotal(double)
Definition: elements.h:236
Landscape::DumpMap
void DumpMap(const char *a_filename)
Definition: Landscape.cpp:1386
cfg_P1H
CfgStr cfg_P1H
BaitLocation::BaitLocation
BaitLocation(int a_x, int a_y, TTypesBaitLocation a_type)
BaitLocation constructor.
Definition: Rodenticide.cpp:109
Population_Manager::RipleysOutputPrb
FILE * RipleysOutputPrb
Definition: PopulationManager.h:582
Landscape::hb_new_hbs
vector< LE * > hb_new_hbs
Definition: landscape.h:264
l_el_rv_cut_oct
static CfgInt l_el_rv_cut_oct("ELEM_RV_CUT_OCT", CFG_PRIVATE, 49)
tbl_christmasstrees
Definition: Rodenticide.h:13
g_Steps
int g_Steps
Definition: ALMaSS_CmdLine.cpp:133
SimpleStatistics::get_SD
double get_SD()
Returns the sample standard deviation.
Definition: PopulationManager.h:387
direction_nw
Definition: landscape.h:60
LE::SetLastSownVeg
void SetLastSownVeg(TTypesOfVegetation a_tov)
Records the last vegetation type to be sown.
Definition: elements.h:293
RodenticidePredators_Population_Manager::Tick
void Tick()
Updates the rodenticide exposure for all predator territories.
Definition: RodenticidePredators.cpp:386
GooseFieldListItem::vegheight
double vegheight
Definition: landscape.h:94
Landscape::SupplyCountryDesig
int SupplyCountryDesig(int a_x, int a_y)
Definition: landscape.h:1132
l_map_no_pesticide_fields
static CfgInt l_map_no_pesticide_fields("MAP_NO_PESTICIDE_FIELDS", CFG_CUSTOM, 0)
Landscape::SupplyRandomPondRef
int SupplyRandomPondRef()
Returns random pond polyref.
Definition: Landscape.cpp:2610
TOP_ApisRAM
Definition: PopulationManager.h:71
VegElement::m_newgrowthsum
double m_newgrowthsum
Definition: elements.h:700
LE::m_pollenquality
PollenNectarQuality m_pollenquality
Definition: elements.h:539
cfg_MownGrassNoCutsDay
static CfgInt cfg_MownGrassNoCutsDay("ELE_MOWNGRASSNOCUTS", CFG_CUSTOM, -1)
Landscape::hb_MapBorder
bool hb_MapBorder(int a_x, int a_y)
cfg_ins_app_prop3
CfgFloat cfg_ins_app_prop3("CROPS_INSECTICIDE_APPLIC_THREE_PROPORTION", CFG_CUSTOM, 1.0)
l_el_rv_cut_sep
static CfgInt l_el_rv_cut_sep("ELEM_RV_CUT_SEP", CFG_PRIVATE, 49)
g_str
char g_str[255]
Definition: PopulationManager.cpp:129
LE::GetArea
double GetArea(void)
Definition: elements.h:196
LE::UpdateOsmiaNesting
void UpdateOsmiaNesting()
Recalculate the nest finding probability.
Definition: elements.h:406
VegElement::DoDevelopment
virtual void DoDevelopment(void)
Definition: elements.cpp:2004
MovementMap16::MovementMap16
MovementMap16(Landscape *L)
Definition: MovementMap.cpp:423
Landscape::SupplyJustMown
bool SupplyJustMown(int a_polyref)
Definition: landscape.h:1263
VegElement::GetVegPhase
virtual int GetVegPhase()
Definition: elements.h:673
Population_Manager::RipleysOutputPrb9
FILE * RipleysOutputPrb9
Definition: PopulationManager.h:591
cfg_VoleCatastrophe_mortality
static CfgInt cfg_VoleCatastrophe_mortality("VOLE_CATASTROPHE_M", CFG_CUSTOM, 90)
ChameleonLE::ChameleonLE
ChameleonLE(void)
Definition: elements.cpp:2727
Landscape::SupplyVegType
TTypesOfVegetation SupplyVegType(int a_x, int a_y)
Definition: landscape.h:1321
EL_PLANT_BIOMASS
#define EL_PLANT_BIOMASS
Definition: elements.cpp:182
Landscape::hb_PaintBorder
void hb_PaintBorder(int a_color)
Population_Manager::CloseTheMonthlyRipleysOutputProbe
void CloseTheMonthlyRipleysOutputProbe()
Definition: PopulationManager.cpp:885
EL_GROWTH_PHASE_SHIFT_LEVEL
#define EL_GROWTH_PHASE_SHIFT_LEVEL
Definition: elements.cpp:170
Orchard
Definition: elements.h:992
SimpleStatistics
Definition: PopulationManager.h:323
NaturalGrassWet
Definition: elements.h:874
l_el_rv_cut_jun
static CfgInt l_el_rv_cut_jun("ELEM_RV_CUT_JUN", CFG_PRIVATE, 28)
probe_data::m_NoAreas
unsigned m_NoAreas
Definition: PopulationManager.h:292
g_pest
class Pesticide * g_pest
Landscape::SupplyElementType
TTypesOfLandscapeElement SupplyElementType(int a_polyref)
Definition: landscape.h:1110
RodenticidePredators_Population_Manager::m_sim_h
int m_sim_h
Definition: RodenticidePredators.h:69
CropActualValues::taken
bool taken
Definition: elements.h:556
LE::GetBirdSeed
double GetBirdSeed(void)
Definition: elements.h:198
Railway
Definition: elements.h:920
Landscape::SupplySimAreaMaxExtent
int SupplySimAreaMaxExtent(void)
Definition: landscape.h:1642
Landscape::PolysDump
void PolysDump(const char *a_filename)
Definition: Landscape.cpp:1803
LE::m_subtype
int m_subtype
Definition: elements.h:461
Copse
Definition: elements.h:947
cfg_pesticidemapdayinyear
CfgInt cfg_pesticidemapdayinyear("PEST_MAP_DAYINYEAR", CFG_CUSTOM, 364)
The interval between maps.
Population_Manager::Shuffle_or_Sort
void Shuffle_or_Sort(unsigned Type)
Definition: PopulationManager.cpp:1073
ttop_AcuteDelayedEffects
Definition: landscape.h:76
Churchyard::Churchyard
Churchyard(void)
Definition: elements.cpp:2962
cfg_MaizeEnergy
CfgBool cfg_MaizeEnergy
Landscape::CalulateFieldOpennessCentroid
int CalulateFieldOpennessCentroid(int a_pref)
Provides a measure of the shortest distance in 360 degree, e-g- looking NE % SW before tall obstacles...
Definition: Landscape.cpp:359
Landscape::SupplyShouldSpray
bool SupplyShouldSpray()
Definition: landscape.h:357
Pond::SubtractLarvalFood
bool SubtractLarvalFood(double a_food)
Called by a larva when feeding, removes an age specific amount of larval food
Definition: elements.cpp:2849
VegElement::GetVegPatchy
virtual bool GetVegPatchy(void)
Definition: elements.h:584
EL_BUG_PERCENT_WW_B
#define EL_BUG_PERCENT_WW_B
Definition: elements.cpp:45
December
const int December
Definition: landscape.h:47
probe_data::probe_data
probe_data()
Definition: PopulationManager.cpp:1479
EL_BUG_PERCENT_WW_A
#define EL_BUG_PERCENT_WW_A
Definition: elements.cpp:44
GooseFieldListItem::geeseTimed
int geeseTimed
Definition: landscape.h:85
probe_data::m_RefFarms
unsigned m_RefFarms[25]
Definition: PopulationManager.h:299
BaitLocation::GetUseFlag
bool GetUseFlag()
Get use flag.
Definition: Rodenticide.h:52
Landscape::VegtypeToString
std::string VegtypeToString(TTypesOfVegetation a_veg)
Definition: Landscape.cpp:4235
Railway::Railway
Railway(void)
Definition: elements.cpp:2655
Landscape::RemoveSmallPolygons
int RemoveSmallPolygons(void)
Removes small polygons from the map.
Definition: Landscape.cpp:2184
cfg_fungi_app_prop2
CfgFloat cfg_fungi_app_prop2("CROPS_FUNGICIDE_APPLIC_TWO_PROPORTION", CFG_CUSTOM, 1.0)
g_rand_uni2
boost::variate_generator< base_generator_type &, boost::uniform_int<> > g_rand_uni2(g_generator, g_uni_dist2)
SimpleStatistics::m_Sum
double m_Sum
Definition: PopulationManager.h:332
February
const int February
Definition: landscape.h:37
Population_Manager::TheArray
vector< TListOfAnimals > TheArray
Definition: PopulationManager.h:534
Landscape::SupplyVegBiomassVector
double SupplyVegBiomassVector(unsigned int a_index)
Definition: landscape.h:948
LE::GetMConstants
int GetMConstants(int a)
Definition: elements.h:343
Population_Manager::StateNamesLength
unsigned StateNamesLength
Definition: PopulationManager.h:535
IDMapScaled::m_scale
int m_scale
Definition: MovementMap.h:135
EL_BUG_PERCENT_WRy_A
#define EL_BUG_PERCENT_WRy_A
Definition: elements.cpp:50
Landscape::SupplyOpenness
int SupplyOpenness(int a_x, int a_y)
Get openness for a location.
Definition: landscape.h:453
cfg_pm_eventsize
CfgInt cfg_pm_eventsize("PM_EVENTSIZE", CFG_CUSTOM, 100)
cfg_dumpvegjan
CfgBool cfg_dumpvegjan("G_VEGAREASJAN_ON", CFG_CUSTOM, false)
cfg_dumpvegjune
CfgBool cfg_dumpvegjune
Landscape::~Landscape
~Landscape(void)
Definition: Landscape.cpp:1424
g_rand_uni3
boost::variate_generator< base_generator_type &, boost::uniform_int<> > g_rand_uni3(g_generator, g_uni_dist3)
Mersenne_Twister
boost::random::mt19937 Mersenne_Twister
Definition: BoostRandomGenerators.h:36
Landscape::SupplyLECount
int SupplyLECount(void)
Definition: Landscape.cpp:3562
Landscape::UMarginTest
bool UMarginTest(int a_fieldpoly, int a_borderpoly, int a_x, int a_y, int a_width)
Definition: Landscape.cpp:2669
cfg_PermanentVegGrowthMaxScaler
CfgFloat cfg_PermanentVegGrowthMaxScaler("VEG_GROWTHSCALERMAX", CFG_CUSTOM, 1.0)
Scales the growth of vegetation - max value.
cfg_B6H
CfgStr cfg_B6H
LE::SetPoison
void SetPoison(bool a_poison)
Definition: elements.h:181
RodenticidePredators_Population_Manager::m_sim_w
int m_sim_w
Definition: RodenticidePredators.h:68
cfg_VoleCatastrophe_mortality
static CfgInt cfg_VoleCatastrophe_mortality("VOLE_CATASTROPHE_M", CFG_CUSTOM, 90)
Landscape::SupplyVegHeightVector
double SupplyVegHeightVector(unsigned int a_index)
Definition: landscape.h:931
LE::m_running
long m_running
Definition: elements.h:446
Population_Manager::m_population_type
TTypesOfPopulation m_population_type
Definition: PopulationManager.h:580
TALMaSSObject::~TALMaSSObject
virtual ~TALMaSSObject()
The destructor for TALMaSSObject.
Definition: PopulationManager.cpp:1393
cfg_dumpvegjunefile
CfgStr cfg_dumpvegjunefile
Population_Manager::Population_Manager
Population_Manager(Landscape *L)
Definition: PopulationManager.cpp:221
Landscape::SupplySnowDepth
double SupplySnowDepth(void)
Definition: landscape.h:1444
UrbanVeg::UrbanVeg
UrbanVeg(void)
Definition: elements.cpp:2911
LE::m_PesticideGridCell
int m_PesticideGridCell
Definition: elements.h:457
cfg_dumpvegjan
CfgBool cfg_dumpvegjan
Population_Manager::Probe
virtual float Probe(int ListIndex, probe_data *p_TheProbe)
Definition: PopulationManager.cpp:680
cfg_VoleCatastrophe_on
static CfgBool cfg_VoleCatastrophe_on("VOLE_CATASTROPHE_ON", CFG_CUSTOM, false)
Landscape::BorderStep
bool BorderStep(int a_fieldpoly, int a_borderpoly, int *a_x, int *a_y)
Definition: Landscape.cpp:2479
VegElement::Set_taken
void Set_taken(bool a_taken, int index)
Definition: elements.h:637
LE::SetMinY
void SetMinY(int y)
Definition: elements.h:340
Landscape::hb_FindBoundingBox
bool hb_FindBoundingBox(int a_poly_num)
LE::GetStubble
bool GetStubble()
Return the in stubble flag.
Definition: elements.h:392
cfg_ReallyBigOutput_day2
static CfgInt cfg_ReallyBigOutput_day2("G_REALLYBIGOUTPUT_DAY_TWO", CFG_CUSTOM, 91)
VegElement::m_force_LAtotal
double m_force_LAtotal
Definition: elements.h:703
Landscape::m_height
int m_height
Definition: landscape.h:139
MovementMap16::GetMapValue
int GetMapValue(unsigned x, unsigned y)
Definition: MovementMap.cpp:486
cfg_rodenticide_reporting_enable
CfgBool cfg_rodenticide_reporting_enable("RODENTICIDE_REPORTING_ENABLE", CFG_CUSTOM, false)
Landscape::SupplyLAGreen
double SupplyLAGreen(int a_polyref)
Definition: landscape.h:1041
Landscape::SupplySkScrapes
bool SupplySkScrapes(int a_polyref)
Definition: landscape.h:981
LE::m_gooseNos
int m_gooseNos[366]
The number of geese each day.
Definition: elements.h:491
Landscape::SupplyWind
double SupplyWind(void)
Definition: landscape.h:1417
Population_Manager::Run
virtual void Run(int NoTSteps)
Definition: PopulationManager.cpp:337
VegElement::m_LAgreen
double m_LAgreen
Definition: elements.h:684
Fence::Fence
Fence(void)
Definition: elements.cpp:2749
VegElement::GetDeadBiomass
virtual double GetDeadBiomass(void)
Definition: elements.h:579
Landscape::GetActualGooseGrazingForage
double GetActualGooseGrazingForage(int a_polygon, GooseSpecies a_goose)
Returns the leaf forage resource as seen from a goose standpoint at a polygon referenced by x,...
Definition: landscape.h:607
cfg_G6H
CfgStr cfg_G6H
Saltmarsh::Saltmarsh
Saltmarsh(void)
Definition: elements.cpp:2397
LE::GetMaxX
int GetMaxX(void)
Definition: elements.h:333
Landscape::SupplyWindDirection
int SupplyWindDirection(void)
Definition: landscape.h:1423
LE::m_squares_in_map
int m_squares_in_map
Definition: elements.h:86
IntArray100
A struct of 100 ints.
Definition: PopulationManager.h:87
g_uni_dist3
boost::uniform_int g_uni_dist3(0, 999)
Landscape::RecordGooseNumbersTimed
void RecordGooseNumbersTimed(int a_poly, int a_number)
This records the number of geese on the polygon the day before at a predefined time....
Definition: Landscape.cpp:3341
Landscape::hb_AddNewHedgebanks
void hb_AddNewHedgebanks(int a_orig_poly_num)
Population_Manager::TheBreedingFemalesProbe
virtual int TheBreedingFemalesProbe(int)
Definition: PopulationManager.h:643
LE::StoreLAItotal
virtual void StoreLAItotal()
Definition: elements.h:169
Landscape::SupplyOsmiaNest
bool SupplyOsmiaNest(int a_x, int a_y)
Find out whether an osmia nest can be made here.
Definition: landscape.h:861
Field::Field
Field(void)
Definition: elements.cpp:2122
PopulationManagerList
A small class to hold the pointers to active population managers.
Definition: PopulationManager.h:668
Landscape::DumpAllSymbolsAndExit
void DumpAllSymbolsAndExit(const char *a_dumpfile)
Definition: landscape.h:785
cfg_calc_pond_pesticide
CfgBool cfg_calc_pond_pesticide("POND_PEST_CALC_ON", CFG_CUSTOM, false)
Flag to determine whether to calculate pond pesticide concentration.
LE::GetDayDegrees
virtual double GetDayDegrees(void)
Variable used to record the current grazing pressure by e.g. voles *‍/ double m_volegrazing; /**.
Definition: elements.h:149
l_map_dump_event_x2
static CfgInt l_map_dump_event_x2("MAP_DUMP_EVENT_XB", CFG_CUSTOM, 4333)
direction_sw
Definition: landscape.h:60
Pond::CalcLarvalFood
void CalcLarvalFood()
Calculates the amount of larval food present
Definition: elements.cpp:2822
Landscape::hb_MaxUnpaintedNegNeighbour
int hb_MaxUnpaintedNegNeighbour(int a_x, int a_y)
Landscape::RemoveMissingValues
void RemoveMissingValues()
A method for replacing missing values in the map with corrected ones - slow.
Definition: Landscape.cpp:2090
LE::GetHigh
bool GetHigh(void)
Definition: elements.h:182
Landscape::SupplyCentroidY
int SupplyCentroidY(int a_polyref)
Definition: landscape.h:473
Landscape::SupplyFarmArea
int SupplyFarmArea(int a_polyref)
Definition: landscape.h:1206
cfg_WriteCurve
CfgBool cfg_WriteCurve
Suburban::Suburban
Suburban(void)
RodenticideManager::SetMapTwinP
void SetMapTwinP(int a_x, int a_y, double a_p)
Add to poisoned mice at x,y on twin map.
Definition: Rodenticide.h:139
GooseFieldListItem::previouscrop
std::string previouscrop
Definition: landscape.h:97
Landscape::SetMaleNewtPresent
void SetMaleNewtPresent(int a_InPondIndex)
Sets a male as being present in a pond.
Definition: landscape.h:349
cfg_greg_app_prop
CfgFloat cfg_greg_app_prop("CROPS_GROWTHREGULATOR_APPLIC_PROPORTION", CFG_CUSTOM, 1.0)
BaitLocation::SetMass
void SetMass(int a_mass)
Set bait mass.
Definition: Rodenticide.h:60
Landscape::VegDump
void VegDump(int x, int y)
Definition: Landscape.cpp:1644
July
const int July
Definition: landscape.h:42
l_el_growth_phase_shift_level
static CfgFloat l_el_growth_phase_shift_level("ELEM_GROWTH_PHASE_SHIFT_LEVEL", CFG_PRIVATE, 0.5)
g_letype
class LE_TypeClass * g_letype
Definition: elements.cpp:277
Landscape::GISASCII_Output
void GISASCII_Output(string outpfile, int UTMX, int UTMY)
Write ASCII file of the ALMaSS map.
Definition: Landscape.cpp:3507
Pond
Ponds are defined as freshwater bodies between 25m2 and 5000m2. For newts the effective size is limit...
Definition: elements.h:1183
Parkland
Definition: elements.h:1082
Landscape::SupplyFarmPtr
Farm * SupplyFarmPtr(int a_owner)
Definition: landscape.h:352
LE::GetPoly
int GetPoly(void)
Returns the polyref number for this polygon.
Definition: elements.h:189
LE::SetGooseNosTimed
void SetGooseNosTimed(int a_number, int a_day)
Definition: elements.h:358
l_el_rv_cut_height
static CfgFloat l_el_rv_cut_height("ELEM_RV_CUT_HEIGHT", CFG_PRIVATE, 10.0)
g_nectarpollen
PollenNectarDevelopmentData * g_nectarpollen
Definition: Landscape.cpp:241
TALMaSSObject
The base class of all ALMaSS objects requiring Step code.
Definition: PopulationManager.h:113
VegElement::m_total_biomass_old
double m_total_biomass_old
Definition: elements.h:688
UnsprayedFieldMargin
Definition: elements.h:894
cfg_rodenticide_BLwoodland_Length
CfgInt cfg_rodenticide_BLwoodland_Length("RODENTICIDE_BLTYPE_WOODLAND_LENGTH", CFG_CUSTOM, 82)
RodenticidePredators_Population_Manager::m_hash_size
int m_hash_size
Definition: RodenticidePredators.h:72
VegElement::Add_no_herb_app
void Add_no_herb_app()
Definition: elements.h:647
LE::m_pindex
int m_pindex
Definition: elements.h:443
VegElement::m_ifile
ifstream m_ifile
Definition: elements.h:706
cfg_rodenticide_dumppolystartyear
CfgInt cfg_rodenticide_dumppolystartyear("RODENTICIDE_DUMPPOLYSTARTYEAR", CFG_CUSTOM, 99999)
probe_data::OpenFile
ofstream * OpenFile(char *Nme)
Definition: PopulationManager.cpp:1490
l_el_weed_slope
static CfgFloat l_el_weed_slope("ELEM_WEED_SLOPE", CFG_PRIVATE, 0.15)
cfg_VoleCatastrophe_interval
static CfgInt cfg_VoleCatastrophe_interval("VOLE_CATASTROPHE_I", CFG_CUSTOM, 365 *5)
Landscape::CorrectCoords
void CorrectCoords(int &x, int &y)
Function to prevent wrap around errors with co-ordinates using x/y pair.
Definition: landscape.h:1535
EL_BUG_PERCENT_SB_C
#define EL_BUG_PERCENT_SB_C
Definition: elements.cpp:40
Landscape::SupplyOpenness
int SupplyOpenness(int a_poly)
Get openness for a polygon.
Definition: landscape.h:451
probe_data::m_Rect
rectangle m_Rect[10]
Definition: PopulationManager.h:293
VegElement::Get_taken
bool Get_taken(int index)
Definition: elements.h:638
VegElement::m_force_veg_height
double m_force_veg_height
Definition: elements.h:704
LE::m_currentOsmiaNests
int m_currentOsmiaNests
to record the number of actual osmia nests
Definition: elements.h:538
distribution_type
boost::uniform_int distribution_type
Definition: BoostRandomGenerators.h:31
Heath::Heath
Heath(void)
Definition: elements.cpp:2403
ttop_NoPesticide
Definition: landscape.h:67
CropActualValues::missed_fi_app
int missed_fi_app
Definition: elements.h:564
Landscape::SupplyGrazingPressure
int SupplyGrazingPressure(int a_polyref)
Definition: landscape.h:1227
RP_Territory::m_range
int m_range
Definition: RodenticidePredators.h:46
LE::ForceGrowthTest
virtual void ForceGrowthTest(void)
Definition: elements.h:172
VegElement::m_green_biomass
double m_green_biomass
Definition: elements.h:689
Landscape::SupplyDaylightProp
double SupplyDaylightProp()
Definition: landscape.h:825
Landscape::SupplyBirdMaizeForage
double SupplyBirdMaizeForage(int a_polyref)
Returns the maize forage resource.
Definition: landscape.h:628
VegElement::ForceGrowthTest
virtual void ForceGrowthTest(void)
Definition: elements.cpp:1904
LE::m_pollencurve
PollenNectarDevelopmentCurve * m_pollencurve
pointer to the correct pollen curve set
Definition: elements.h:546
Landscape::HowManyPonds
int HowManyPonds()
Returns the number of ponds in the landscape.
Definition: landscape.h:336
LE::SetGooseSpNos
void SetGooseSpNos(int a_number, int a_day, GooseSpecies a_goose)
Definition: elements.h:354
ProbeReport
void ProbeReport(int a_time)
Population_Manager::TheRipleysOutputProbe
virtual void TheRipleysOutputProbe(FILE *a_prb)
Definition: PopulationManager.cpp:918
Wasteland
Definition: elements.h:881
Landscape::SupplyPollen
PollenNectarQuality SupplyPollen(int a_polyref)
Definition: landscape.h:377
l_map_dump_veg_enable
static CfgBool l_map_dump_veg_enable("MAP_DUMP_VEG_ENABLE", CFG_CUSTOM, true)
VegElement::m_force_LAgreen
double m_force_LAgreen
Definition: elements.h:702
ChameleonLE
Definition: elements.h:1034
LE::GetPesticideCell
int GetPesticideCell()
Definition: elements.h:324
LE::SetSoilType
void SetSoilType(int a_st)
Definition: elements.h:287
Landscape::m_width
int m_width
Definition: landscape.h:138
LE::SetCropData
virtual void SetCropData(double, double, double, TTypesOfVegetation, double, int)
Definition: elements.h:167
Building::Building
Building(void)
Definition: elements.cpp:2737
Population_Manager::AOROutputPrb
ofstream * AOROutputPrb
Definition: PopulationManager.h:581
VegElement::m_veg_cover
double m_veg_cover
Definition: elements.h:695
LE::SetBorder
void SetBorder(LE *a_border)
Definition: elements.h:320
Population_Manager::ReallyBigOutputPrb
FILE * ReallyBigOutputPrb
Definition: PopulationManager.h:595
April
const int April
Definition: landscape.h:39
Orchard::DoDevelopment
virtual void DoDevelopment(void)
Definition: elements.cpp:2433
Landscape::hb_core_pixels
int hb_core_pixels
Definition: landscape.h:275
Landscape::DumpCentroids
void DumpCentroids(void)
Definition: Landscape.cpp:3275
VegElement::SetGrowthPhase
virtual void SetGrowthPhase(int a_phase)
Definition: elements.cpp:1851
Variate_gen
boost::variate_generator< Mersenne_Twister, NormalDistDouble > Variate_gen
Definition: BoostRandomGenerators.h:38
ConiferousForest::ConiferousForest
ConiferousForest(void)
Definition: elements.cpp:2690
LE::SetCountryDesignation
void SetCountryDesignation(int a_designation)
Definition: elements.h:217
LE::m_totalNectar
double m_totalNectar
Definition: elements.h:542
Landscape::SupplyJustMownVector
bool SupplyJustMownVector(unsigned int a_index)
Definition: landscape.h:1258
Population_Manager::SimWH
unsigned SimWH
Definition: PopulationManager.h:512
cfg_P1F
CfgFloat cfg_P1F
LE::m_openness
int m_openness
The openness metric for a field (if any)
Definition: elements.h:509
LE::GetGooseNos
int GetGooseNos()
For goose model functionality, returns the number of geese yesterday.
Definition: elements.cpp:542
Coast
Definition: elements.h:1245
probe_data::m_MyFile
ofstream * m_MyFile
Definition: PopulationManager.h:286
RV_CUT_TOTAL
#define RV_CUT_TOTAL
Definition: elements.cpp:219
WaterBufferZone::ResetingVeg
void ResetingVeg(int a_today)
Definition: elements.cpp:2365
NaturalGrassDry::NaturalGrassDry
NaturalGrassDry(void)
Definition: elements.cpp:2562
LE::m_maxy
int m_maxy
Definition: elements.h:464
Landscape::BackTranslateVegTypes
int BackTranslateVegTypes(TTypesOfVegetation VegReference)
Definition: landscape.h:1669
Landscape::SupplyPolyRefCC
int SupplyPolyRefCC(int a_x, int a_y)
Definition: landscape.h:1500
LE::SetTramlinesDecay
void SetTramlinesDecay(int a_decaytime_days)
Definition: elements.h:310
RodenticideManager::m_BaitList
vector< BaitLocation > m_BaitList
List of bait locations.
Definition: Rodenticide.h:76
Pond::IsMaleNewtPresent
bool IsMaleNewtPresent()
Gets whether there is a male newt as present.
Definition: elements.h:1212
Field::GetPreviousCrop
TTypesOfVegetation GetPreviousCrop(int a_index)
Definition: elements.cpp:2176
PermPastureTussocky
Definition: elements.h:754
BaitLocation::m_x
int m_x
x-coordinate
Definition: Rodenticide.h:24
Population_Manager::SupplyCovPosy
virtual int SupplyCovPosy(int)
Definition: PopulationManager.h:629
Landscape::hb_DownPolyNumbers
void hb_DownPolyNumbers(void)
TAnimal::m_OurLandscape
Landscape * m_OurLandscape
Definition: PopulationManager.h:229
Landscape::SupplyOptFarmType
TTypesOfOptFarms SupplyOptFarmType(int a_x, int a_y)
Definition: landscape.h:1191
CompareStateAlive
Function to compare to TAnimal's m_CurrentStateNo to anything but -1.
Definition: PopulationManager.cpp:205
Freshwater
Definition: elements.h:1160
probe_data::SetFile
void SetFile(ofstream *F)
Definition: PopulationManager.cpp:1504
RodenticidePredators_Population_Manager::m_Territories
vector< RP_Territory > m_Territories
Definition: RodenticidePredators.h:80
l_el_bug_slope
static CfgFloat l_el_bug_slope("ELEM_BUG_SLOPE", CFG_PRIVATE, 0.2)
g_VegHeightForageReduction
double g_VegHeightForageReduction
LE::GetInsectPop
virtual double GetInsectPop(void)
Definition: elements.h:156
IndividualTree
Definition: elements.h:954
LE::GetValidX
int GetValidX(void)
Definition: elements.h:330
Population_Manager::FindClosest
TAnimal * FindClosest(int x, int y, unsigned Type)
Definition: PopulationManager.cpp:937
l_map_art_hedgebanks
static CfgBool l_map_art_hedgebanks("MAP_ART_HEDGEBANKS", CFG_CUSTOM, false)
cfg_HedgeSubtypeMaximum
CfgInt cfg_HedgeSubtypeMaximum("HEDGE_SUBTYPEMAXIMUM", CFG_CUSTOM, 3)
LE::m_soiltype
int m_soiltype
Definition: elements.h:513
WoodlandMargin::WoodlandMargin
WoodlandMargin(void)
Definition: elements.cpp:2707
Landscape::SupplyCentroidY
int SupplyCentroidY(int a_x, int a_y)
Definition: landscape.h:475
LE::MDates
int MDates[2][25]
Definition: elements.h:530
probe_data::CloseFile
void CloseFile()
Definition: PopulationManager.cpp:135
LE::IsMaleNewtPresent
virtual bool IsMaleNewtPresent()
Sets a male newt as present/absent in descendent classes - here only to prevent need for dynamic cast...
Definition: elements.h:388
RuralResidential::RuralResidential
RuralResidential(void)
RV_CUT_HEIGHT
#define RV_CUT_HEIGHT
Definition: elements.cpp:215
Population_Manager::TheProbe
probe_data * TheProbe[100]
Definition: PopulationManager.h:510
cfg_UMPatchyChance
static CfgInt cfg_UMPatchyChance("UMPATCHYCHANCE", CFG_CUSTOM, 0)
VegElement::ResetDigestability
virtual void ResetDigestability()
sets growth record to zero
Definition: elements.h:668
SandDune
Definition: elements.h:1124
cfg_pest_productapplic_startdate2
CfgInt cfg_pest_productapplic_startdate2
RV_CUT_AUG
#define RV_CUT_AUG
Definition: elements.cpp:203
Landscape::SupplySnowcover
bool SupplySnowcover(void)
Definition: landscape.h:1437
RodenticidePredators_Population_Manager::NewTerritory
void NewTerritory(int a_x, int a_y, int a_range, double a_qual)
Create a new territory and claim the grid.
Definition: RodenticidePredators.cpp:308
uint64
unsigned long long uint64
Definition: ALMaSS_Setup.h:35
cfg_RodenticidePredatoryMinTerr
CfgInt cfg_RodenticidePredatoryMinTerr("RODPREDATOR_MINTERR", CFG_CUSTOM, 100)
Minimum territory width.
cfg_RipleysOutput_interval
static CfgInt cfg_RipleysOutput_interval("G_RIPLEYSOUTPUT_INTERVAL", CFG_CUSTOM, 1)
LE::ReduceVeg_Extended
virtual void ReduceVeg_Extended(double)
Definition: elements.h:176
HedgeBank
Definition: elements.h:779
RodenticidePredators_Population_Manager::m_occupancy_grid
bool * m_occupancy_grid
Definition: RodenticidePredators.h:75
BaitLocation::GetstartDay
int GetstartDay(void)
Get start day.
Definition: Rodenticide.h:48
cfg_ins_app_prop2
CfgFloat cfg_ins_app_prop2("CROPS_INSECTICIDE_APPLIC_TWO_PROPORTION", CFG_CUSTOM, 1.0)
RoeDeerInfo::m_OldRange_x
unsigned m_OldRange_x
Definition: PopulationManager.h:193
Population_Manager::SupplyCovPosx
virtual int SupplyCovPosx(int)
Definition: PopulationManager.h:626
GooseFieldListItem::polyref
int polyref
Definition: landscape.h:82
Population_Manager::BreedingSuccessProbeOutput
virtual void BreedingSuccessProbeOutput(double, int, int, int, int, int, int, int)
Definition: PopulationManager.h:649
cfg_BBPatchyChance
static CfgFloat cfg_BBPatchyChance("BEETLEBANKBPATCHYCHANCE", CFG_CUSTOM, 0.5)
The chance that a beetlebank being created is patchy or not.
Landscape::SkylarkEvaluation
void SkylarkEvaluation(SkTerritories *a_skt)
Definition: Landscape.cpp:3025
LE::SetMinX
void SetMinX(int x)
Definition: elements.h:339
VegElement::GrazeVegetationTotal
virtual void GrazeVegetationTotal(double a_grams)
Definition: elements.cpp:2056
cfg_pest_productapplic_startdate
CfgInt cfg_pest_productapplic_startdate
Definition: elements.cpp:120
uint32
unsigned int uint32
Definition: ALMaSS_Setup.h:34
LE::GetOldDays
long GetOldDays(void)
Definition: elements.h:218
MownGrass
Definition: elements.h:1015
LE::m_valid_y
int m_valid_y
Definition: elements.h:453
fungicide
Definition: landscape.h:63
VegElement::Set_area_in_crop_data
void Set_area_in_crop_data(double a_area)
Definition: elements.h:641
l_el_rv_cut_green
static CfgFloat l_el_rv_cut_green("ELEM_RV_CUT_GREEN", CFG_PRIVATE, 1.5)
VegElement::GetVegType
virtual TTypesOfVegetation GetVegType(void)
Definition: elements.h:588
Population_Manager::TestFile
FILE * TestFile
Definition: PopulationManager.h:539
LargeRoad::LargeRoad
LargeRoad(void)
Definition: elements.cpp:2934
Population_Manager::OpenTheRipleysOutputProbe
bool OpenTheRipleysOutputProbe(string a_NWordFilename)
Definition: PopulationManager.cpp:757
Landscape::SupplySoilTypeR
int SupplySoilTypeR(int a_x, int a_y)
Returns the soil type in rabbit warren reference numbers.
Definition: landscape.h:464
Population_Manager::CloseTheRipleysOutputProbe
virtual void CloseTheRipleysOutputProbe()
Definition: PopulationManager.cpp:874
VegElement::GetInsectPop
virtual double GetInsectPop(void)
Definition: elements.h:586
NaturalGrassWet::NaturalGrassWet
NaturalGrassWet(void)
Definition: elements.cpp:2570
Landscape::SupplyPollen
PollenNectarQuality SupplyPollen(int a_x, int a_y)
Definition: landscape.h:378
g_Hunter_Population_Manager
Hunter_Population_Manager * g_Hunter_Population_Manager
Definition: ALMaSS_CmdLine.cpp:123
l_el_rv_cut_jul
static CfgInt l_el_rv_cut_jul("ELEM_RV_CUT_JUL", CFG_PRIVATE, 35)
RV_CUT_SEP
#define RV_CUT_SEP
Definition: elements.cpp:206
SpeciesSpecificActions
void SpeciesSpecificActions()
Landscape::SupplyMonth
int SupplyMonth(void)
Definition: landscape.h:1601
Landscape::BorderNeed
bool BorderNeed(TTypesOfLandscapeElement a_letype)
Definition: Landscape.cpp:4529
MovementMap::m_TheMap
uint32 * m_TheMap
Definition: MovementMap.h:53
RodenticideManager::RodenticideManager
RodenticideManager(string fname, Landscape *a_land)
RodenticideManager constructor.
Definition: Rodenticide.cpp:123
Saltmarsh
Definition: elements.h:849
cfg_rodenticide_BLwoodland_AnnFreq
CfgFloat cfg_rodenticide_BLwoodland_AnnFreq("RODENTICIDE_BLTYPE_WOODLAND_ANNFREQ", CFG_CUSTOM, 0.01)
BaitLocation::~BaitLocation
virtual ~BaitLocation(void)
BaitLocation destructor.
Definition: Rodenticide.cpp:117
VegElement::m_forced_phase_shift
bool m_forced_phase_shift
Definition: elements.h:696
ForestElement::ForestElement
ForestElement(void)
Definition: elements.cpp:2675
Landscape::SupplyNectar
PollenNectarQuality SupplyNectar(int a_polyref)
Definition: landscape.h:381
Landscape::SupplyOverspray
bool SupplyOverspray(int a_x, int a_y)
Gets the overspray flag.
Definition: Landscape.cpp:599
Landscape::SupplyTotalPollen
double SupplyTotalPollen(int a_polyref)
Definition: landscape.h:379
Pond::m_LarvalFood
double m_LarvalFood
The amount of larval food present
Definition: elements.h:1186
cfg_pesticidetesttype
CfgInt cfg_pesticidetesttype("PESTICIDETESTYPE", CFG_CUSTOM, -1)
SimpleStatistics::m_K
double m_K
Definition: PopulationManager.h:330
MovementMap::~MovementMap
~MovementMap()
Definition: MovementMap.cpp:62
l_map_write_ascii
static CfgBool l_map_write_ascii("MAP_WRITE_ASCII", CFG_CUSTOM, false)
Used if an ASCII file for use in GIS applications should be written.
TOP_Goose
Definition: PopulationManager.h:66
LE::m_largeroad_load
static double m_largeroad_load[]
Definition: elements.h:528
LE::m_maxx
int m_maxx
Definition: elements.h:462
PlantNursery
Definition: elements.h:1064
cfg_OptimisingFarms
CfgBool cfg_OptimisingFarms
cfg_BeetleBankType
static CfgInt cfg_BeetleBankType("BBANK_TYPE", CFG_CUSTOM,(int) tole_BeetleBank)
VegElement::RandomVegStartValues
void RandomVegStartValues(double *a_LAtotal, double *a_LAgreen, double *a_veg_height, double *a_weed_biomass)
Definition: elements.cpp:1843
Population_Manager::m_StepSize
int m_StepSize
Definition: PopulationManager.h:533
WoodyEnergyCrop::WoodyEnergyCrop
WoodyEnergyCrop(void)
Definition: elements.cpp:2715
g_AManager
Population_Manager * g_AManager
Definition: ALMaSS_CmdLine.cpp:122
Landscape::SupplyTreeHeight
int SupplyTreeHeight(int)
Definition: landscape.h:816
Population_Manager::m_SimulationName
char m_SimulationName[255]
Definition: PopulationManager.h:513
BaitLocation::m_mass
int m_mass
bait mass
Definition: Rodenticide.h:28
cfg_P1D
CfgFloat cfg_P1D
Suburban
Definition: elements.h:1106
AnimalPosition::m_x
unsigned m_x
Definition: PopulationManager.h:172
VegElement::m_insect_pop
double m_insect_pop
Definition: elements.h:685
Population_Manager::SimHH
unsigned SimHH
Definition: PopulationManager.h:512
BaitLocation::ReduceMass
void ReduceMass(int a_mass)
Set bait mass.
Definition: Rodenticide.h:62
Landscape::GetPolymapping
int GetPolymapping(int a_index)
Definition: landscape.h:183
VegElement::m_vege_type
TTypesOfVegetation m_vege_type
Definition: elements.h:676
l_el_rv_cut_aug
static CfgInt l_el_rv_cut_aug("ELEM_RV_CUT_AUG", CFG_PRIVATE, 42)
HedgeBank::HedgeBank
HedgeBank(void)
Definition: elements.cpp:2260
TOP_Hare
Definition: PopulationManager.h:64
Hedges::DoDevelopment
virtual void DoDevelopment(void)
Definition: elements.h:772
RodenticideManager::SetMapTwin
void SetMapTwin(int a_x, int a_y, double a_p)
Set poisoned mice at x,y on twin map.
Definition: Rodenticide.h:135
Saltwater::Saltwater
Saltwater(void)
Definition: elements.cpp:2761
Field::DoDevelopment
virtual void DoDevelopment(void)
Definition: elements.cpp:2160
rectangle::m_y1
unsigned m_y1
Definition: PopulationManager.h:101
GooseFieldListItem::geesesp
int geesesp[gs_foobar]
Definition: landscape.h:84
cfg_DayInMonth
static CfgInt cfg_DayInMonth("PRB_DAYINMONTH", CFG_CUSTOM, 1)
insecticide
Definition: landscape.h:63
cfg_dumpvegjunefile
CfgStr cfg_dumpvegjunefile("G_VEGAREASJUNE_FILENAME", CFG_CUSTOM, "DUMPVEG_JUNE.TXT")
PermanentSetaside::PermanentSetaside
PermanentSetaside(void)
Definition: elements.cpp:2238
RoadsideSlope::RoadsideSlope
RoadsideSlope(void)
Definition: elements.cpp:2333
l_map_ascii_utm_y
static CfgInt l_map_ascii_utm_y("MAP_ASCII_UTM_Y", CFG_CUSTOM, 0)
If we write an ASCII file provide UTM-y of lower lefthand corner.
l_pest_productOrchard_amount
static CfgFloat l_pest_productOrchard_amount("PEST_PRODUCTORCHARD_AMOUNT", CFG_CUSTOM, 0.0)
Population_Manager::GetLiveArraySize
unsigned GetLiveArraySize(int a_listindex)
Gets the number of 'live' objects for a list index in the TheArray.
Definition: PopulationManager.h:433
MovementMap16::ClearMapValue
void ClearMapValue(unsigned x, unsigned y)
Definition: MovementMap.cpp:476
cfg_rodenticide_BLgrass_Length
CfgInt cfg_rodenticide_BLgrass_Length("RODENTICIDE_BLTYPE_GRASS_LENGTH", CFG_CUSTOM, 82)
Population_Manager::CheckXY
bool CheckXY(int l, int i)
Debug method to test for out of bounds coordinates.
Definition: PopulationManager.cpp:1518
LE::SetInsectPop
virtual void SetInsectPop(double)
Definition: elements.h:157
l_el_plant_biomass_proport
static CfgFloat l_el_plant_biomass_proport("ELEM_PLANT_BIOMASS_PROPORT", CFG_PRIVATE, 41.45)
Population_Manager::SupplyListName
const char * SupplyListName(int i)
Definition: PopulationManager.h:478
CompareY
Function to compare to TAnimal's m_Location_y.
Definition: PopulationManager.cpp:157
DumpVegAreaData
void DumpVegAreaData(int a_day)
LE::SetUnsprayedMarginPolyRef
void SetUnsprayedMarginPolyRef(int a_unsprayedmargin)
Definition: elements.h:322
SimpleStatistics::get_Total
double get_Total()
Returns the mean.
Definition: PopulationManager.h:362
TAnimal::Supply_m_Location_x
int Supply_m_Location_x()
Definition: PopulationManager.h:213
cfg_ReallyBigOutput_filename
static CfgStr cfg_ReallyBigOutput_filename("G_REALLYBIGOUTPUT_FILENAME", CFG_CUSTOM, "ReallyBigOutput.txt")
l_map_map_file
static CfgStr l_map_map_file("MAP_MAP_FILE", CFG_CUSTOM, "map.lsb")
cfg_pest_productapplic_startdate3
CfgInt cfg_pest_productapplic_startdate3
Population_Manager::m_AlleleFreqsFile
FILE * m_AlleleFreqsFile
Definition: PopulationManager.h:528
Landscape::FillVegAreaData
void FillVegAreaData()
Definition: Landscape.cpp:3641
FloatToDouble
void FloatToDouble(double &, float)
Definition: ALMaSS_CmdLine.cpp:174
ttop_ModelinkPesticide21TWA
Definition: landscape.h:72
cfg_G6B
CfgFloat cfg_G6B
VegElement::m_veg_phase
int m_veg_phase
Definition: elements.h:679
Population_Manager::SupplyStepSize
int SupplyStepSize()
Definition: PopulationManager.h:449
LE::GetMinY
int GetMinY(void)
Definition: elements.h:336
VegElement::ResetGeese
void ResetGeese(void)
Reset geese numbers to zero in case this was not done by the population manager (the normal situation...
Definition: elements.cpp:2048
Landscape::m_polymapping
vector< int > m_polymapping
Definition: landscape.h:130
GreenElement::DoDevelopment
virtual void DoDevelopment(void)
Definition: elements.cpp:2379
Landscape::SupplyUnderGrowthWidth
int SupplyUnderGrowthWidth(int)
Definition: landscape.h:817
cfg_RipleysOutput_used
CfgBool cfg_RipleysOutput_used("G_RIPLEYSOUTPUT_USED", CFG_CUSTOM, false)
EL_BUG_PERCENT_Edges_A
#define EL_BUG_PERCENT_Edges_A
Definition: elements.cpp:68
LE::m_minx
int m_minx
Definition: elements.h:463
VegElement::GetVegDensity
virtual int GetVegDensity(void)
Definition: elements.h:582
AmenityGrass::AmenityGrass
AmenityGrass(void)
Definition: elements.cpp:2896
VegElement::Add_missed_herb_app
void Add_missed_herb_app()
Definition: elements.h:657
Landscape::SupplyTrafficLoad
double SupplyTrafficLoad(int a_x, int a_y)
Definition: landscape.h:1293
RiverBed::RiverBed
RiverBed(void)
Definition: elements.cpp:2860
MetalledPath
Definition: elements.h:1280
RodenticideManager::m_pmouse_map_twin
vector< double > m_pmouse_map_twin
Temporary map for calculation poisoned mouse diffusion.
Definition: Rodenticide.h:80
LE::SetMaxY
void SetMaxY(int y)
Definition: elements.h:338
LE::GetOsmiaNest
bool GetOsmiaNest()
Test to see if a nest is found.
Definition: elements.h:395
g_el_strigling_delaytime_days
CfgInt g_el_strigling_delaytime_days
RodenticidePredators_Population_Manager::CreatHabitatQualGrid
void CreatHabitatQualGrid(void)
Evaluate the landscape and create the habitat quality grid.
Definition: RodenticidePredators.cpp:99
VegElement::GetVegCover
virtual double GetVegCover(void)
Definition: elements.h:576
Landscape::SupplyIsGrass
bool SupplyIsGrass(int a_polyref)
Definition: landscape.h:1310
Landscape::hb_FindHedges
void hb_FindHedges(void)
LE::GetVegBiomass
virtual double GetVegBiomass(void)
Definition: elements.h:154
Landscape::WriteOpenness
void WriteOpenness(void)
Stores openness for all polygons to a standard file.
EL_MAX_USERSPACE
#define EL_MAX_USERSPACE
Definition: elements.h:54
TAnimal::Dying
virtual void Dying()
Definition: PopulationManager.h:266
probe_data::m_NoVegTypes
unsigned m_NoVegTypes
Definition: PopulationManager.h:295
cfg_rodenticide_deathRate
CfgFloat cfg_rodenticide_deathRate("RODENTICIDE_DEATHRATE", CFG_CUSTOM, 0.048307)
UrbanPark::UrbanPark
UrbanPark(void)
Definition: elements.cpp:2917
MovementMap::SetMapValue
void SetMapValue(unsigned x, unsigned y, unsigned value)
Definition: MovementMap.cpp:341
g_randmaxp
const double g_randmaxp
Definition: ALMaSS_CmdLine.cpp:87
Landscape::PolytypeToString
std::string PolytypeToString(TTypesOfLandscapeElement a_le_type)
Definition: Landscape.cpp:4087
Saltwater
Definition: elements.h:1152
August
const int August
Definition: landscape.h:43
Wasteland::Wasteland
Wasteland(void)
Definition: elements.cpp:2578
VegElement::Get_harvested
bool Get_harvested(int index)
Definition: elements.h:645
probe_data::~probe_data
~probe_data()
Definition: PopulationManager.cpp:1513
l_map_dump_map_file
CfgStr l_map_dump_map_file("MAP_DUMP_MAP_FILE", CFG_CUSTOM, "dump.lsb")
Landscape::ReleaseOsmiaNest
void ReleaseOsmiaNest(int a_x, int a_y)
Reopen the osmia nest here
Definition: landscape.h:871
tbl_woodland
Definition: Rodenticide.h:12
FloatToDouble
void FloatToDouble(double &d, float f)
Definition: ALMaSS_CmdLine.cpp:174
IDMap< TAnimal * >::m_TheMap
vector< TAnimal * > m_TheMap
Definition: MovementMap.h:99
Population_Manager::IndexArrayX
int IndexArrayX[5][10000]
Definition: PopulationManager.h:509
Population_Manager::SortXIndex
void SortXIndex(unsigned Type)
Definition: PopulationManager.cpp:1027
Carpark
Definition: elements.h:1286
Landscape::SupplyJustSprayedVector
int SupplyJustSprayedVector(unsigned int a_index)
Definition: landscape.h:1270
RiversideTrees
Definition: elements.h:908
RodenticideManager::RecordRodenticidePolyData
void RecordRodenticidePolyData(string a_fname)
Records rodenticide loads per polygon.
Definition: Rodenticide.cpp:462
Landscape::m_PesticideMap
PesticideMap * m_PesticideMap
For specialised pesticide recording.
Definition: landscape.h:133
BareRock::BareRock
BareRock(void)
Definition: elements.cpp:2886
LE::IsRecentlySprayed
int IsRecentlySprayed(void)
Definition: elements.h:187
RodenticidePredators_Population_Manager::m_predator_minHR
int m_predator_minHR
Definition: RodenticidePredators.h:77
LE::SetVegHeight
virtual void SetVegHeight(double)
Definition: elements.h:165
cfg_DumpFarmAreas
CfgBool cfg_DumpFarmAreas
tbl_grass
Definition: Rodenticide.h:14
TOP_RoeDeer
Definition: PopulationManager.h:67
Population_Manager::m_GeneticsFile
FILE * m_GeneticsFile
Definition: PopulationManager.h:527
Landscape::SupplyVegDensity
int SupplyVegDensity(int a_polyref)
Definition: landscape.h:975
Landscape::SupplyWeedBiomass
double SupplyWeedBiomass(int a_polyref)
Definition: landscape.h:964
cfg_mintownbuildingdistance
static CfgInt cfg_mintownbuildingdistance("MAP_MINTOWNBUILDINGDISTANCE", CFG_CUSTOM, 100)
BaitLocation::m_BLtype
TTypesBaitLocation m_BLtype
bait replenishment frequency
Definition: Rodenticide.h:30
LE::GetDeadBiomass
virtual double GetDeadBiomass(void)
Definition: elements.h:153
LE::m_herbicidedelay
int m_herbicidedelay
Definition: elements.h:486
Landscape::AxisLoopLtd
void AxisLoopLtd(int a_poly, APoint *a_cor, int a_axis, int a_limit)
Definition: Landscape.cpp:2917
probe_data::m_MyFileName
char m_MyFileName[255]
Definition: PopulationManager.h:288
Landscape::SupplyLastSownVeg
TTypesOfVegetation SupplyLastSownVeg(int a_polyref)
Definition: landscape.h:1068
herbicide
Definition: landscape.h:63
LE::TogglePigGrazing
virtual void TogglePigGrazing(void)
Definition: elements.h:162
Landscape::GetGooseNumbers
int GetGooseNumbers(int a_poly)
This returns the number of geese on the polygon the day before.
Definition: Landscape.cpp:3383
g_ResultsDir
char g_ResultsDir[255]
Definition: ALMaSS_CmdLine.cpp:129
MovementMap16::Init
void Init()
Definition: MovementMap.cpp:442
LE::m_poison
bool m_poison
Definition: elements.h:516
LE::SetOpenness
void SetOpenness(int a_openness)
Records the openness statistic for this polygon.
Definition: elements.h:380
MovementMap::SetMapValue0
void SetMapValue0(unsigned x, unsigned y)
Definition: MovementMap.cpp:361
Population_Manager::ImpactProbeReport
void ImpactProbeReport(int a_Time)
Definition: PopulationManager.cpp:1321
VegElement::m_weed_curve_num
int m_weed_curve_num
Definition: elements.h:678
l_map_dump_poly_file
CfgStr l_map_dump_poly_file("MAP_DUMP_POLY_FILE", CFG_CUSTOM, "dump_polyrefs.txt")
g_rand_uni
boost::variate_generator< base_generator_type &, boost::uniform_real<> > g_rand_uni(g_generator, g_uni_dist)
Landscape::InitOsmiaBeeNesting
void InitOsmiaBeeNesting()
Read in the Osmia nest density files and allocate to each LE object.
Definition: Landscape.cpp:4697
Orchard::Cutting
void Cutting(int a_today)
Definition: elements.cpp:2475
YoungForest::YoungForest
YoungForest(void)
Definition: elements.cpp:2699
Landscape::SupplyDeadBiomass
double SupplyDeadBiomass(int a_polyref)
Definition: landscape.h:1029
cfg_beetlebankinsectscaler
static CfgFloat cfg_beetlebankinsectscaler("ELE_BBINSECTSCALER", CFG_CUSTOM, 1.0)
rectangle::m_x2
unsigned m_x2
Definition: PopulationManager.h:102
Population_Manager::SimW
int SimW
Definition: PopulationManager.h:511
Population_Manager::OpenTheFledgelingProbe
virtual bool OpenTheFledgelingProbe()
Definition: PopulationManager.h:632
cfg_CatastropheEventStartYear
CfgInt cfg_CatastropheEventStartYear("PM_CATASTROPHEEVENTSTARTYEAR", CFG_CUSTOM, 99999)
SimpleStatistics::m_SumX2
double m_SumX2
Definition: PopulationManager.h:334
VegElement::m_nutrient_status
int m_nutrient_status
Definition: elements.h:681
EL_BUG_PERCENT_SB_B
#define EL_BUG_PERCENT_SB_B
Definition: elements.cpp:39
l_map_check_polygon_xref
static CfgBool l_map_check_polygon_xref("MAP_CHECK_POLYGON_XREF", CFG_CUSTOM, true)
RunTheSim
void RunTheSim()
Definition: ALMaSS_CmdLine.cpp:491
VegElement::IsMaize
virtual bool IsMaize()
Definition: elements.cpp:1591
LE::m_centroidx
int m_centroidx
Definition: elements.h:454
VegElement::ForceGrowthSpringTest
void ForceGrowthSpringTest(void)
Definition: elements.cpp:1915
PitDisused
Definition: elements.h:1144
l_map_dump_veg_y
static CfgInt l_map_dump_veg_y("MAP_DUMP_VEG_Y", CFG_CUSTOM, 100)
l_map_dump_margin_file
static CfgStr l_map_dump_margin_file("MAP_DUMP_MARGIN_FILE", CFG_CUSTOM, "dumpunsprayedmargins.txt")
PitDisused::PitDisused
PitDisused(void)
Definition: elements.cpp:2755
cfg_rodenticide_diffusionRate
CfgFloat cfg_rodenticide_diffusionRate("RODENTICIDE_DIFFUSIONRATE", CFG_CUSTOM, 0.5)
g_rand_uni
boost::variate_generator< base_generator_type &, boost::uniform_real<> > g_rand_uni
Landscape::SetBirdMaizeForage
void SetBirdMaizeForage(int a_polyref, double a_fooddensity)
Sets the maize forage resource as seen from a goose standpoint at a polygon.
Definition: landscape.h:535
BaitLocation::SetUseFlag
void SetUseFlag(bool a_flag)
Set use flag.
Definition: Rodenticide.h:68
Population_Manager::SortState
void SortState(unsigned Type)
Definition: PopulationManager.cpp:999
LE::m_birdmaizeforage
double m_birdmaizeforage
The maize forage present in KJ/m2.
Definition: elements.h:503
cfg_HedgeSubtypeMinimum
CfgInt cfg_HedgeSubtypeMinimum("HEDGE_SUBTYPEMINIMUM", CFG_CUSTOM, 0)
BaitLocation::m_startDay
int m_startDay
date for placement of first bait
Definition: Rodenticide.h:34
TOP_OliveMoth
Definition: PopulationManager.h:72
LE::m_management_loop_detect_date
long m_management_loop_detect_date
Definition: elements.h:467
cfg_MaxPondSize
static CfgInt cfg_MaxPondSize("MAP_MAXPONDSIZE", CFG_CUSTOM, 5000)
If freshwater area is below this it is designated a pond.
TAnimal::SupplyPolygonRef
int SupplyPolygonRef()
Definition: PopulationManager.h:210
Pylon
Definition: elements.h:1052
cfg_rodenticide_gridsize
CfgInt cfg_rodenticide_gridsize("RODENTICIDE_GRIDSIZE", CFG_CUSTOM, 5)
Pond::m_pondpesticide
double m_pondpesticide
Holds the pesticide content per unit pond water.
Definition: elements.h:1190
Population_Manager::RipleysOutputPrb6
FILE * RipleysOutputPrb6
Definition: PopulationManager.h:588
Landscape::TurnTheWorld
void TurnTheWorld(void)
Definition: landscape.h:905
RV_CUT_JUL
#define RV_CUT_JUL
Definition: elements.cpp:200
probe_data::OpenForAppendToFile
bool OpenForAppendToFile()
Definition: PopulationManager.h:308
direction_s
Definition: landscape.h:60
cfg_RodenticidePredatoryMaxTerr
CfgInt cfg_RodenticidePredatoryMaxTerr("RODPREDATOR_MAXTERR", CFG_CUSTOM, 500)
Maximum territory width.
LE::m_lastindex
unsigned int m_lastindex
Definition: elements.h:525
g_bug_percent_c
static double g_bug_percent_c[tov_Undefined]
Definition: elements.cpp:134
Pond::SetMaleNewtPresent
virtual void SetMaleNewtPresent(bool a_ispresent)
Sets a male as present/absent.
Definition: elements.h:1210
TOP_MarshFritillary
Definition: PopulationManager.h:74
DrainageDitch::DrainageDitch
DrainageDitch(void)
Definition: elements.cpp:2872
cfg_ReallyBigOutput_interval
static CfgInt cfg_ReallyBigOutput_interval("G_REALLYBIGOUTPUT_INTERVAL", CFG_CUSTOM, 1)
LE::GetWeedBiomass
virtual double GetWeedBiomass(void)
Definition: elements.h:155
Landscape::m_FarmManager
FarmManager * m_FarmManager
List of all the farms.
Definition: landscape.h:119
Landscape::SetPolyMaxMinExtents
void SetPolyMaxMinExtents(void)
Definition: Landscape.cpp:1622
TOP_Hunters
Definition: PopulationManager.h:77
cfg_rodenticide_BLcountry_Length
CfgInt cfg_rodenticide_BLcountry_Length("RODENTICIDE_BLTYPE_COUNTRY_LENGTH", CFG_CUSTOM, 34)
Landscape::SupplyTreeAge
int SupplyTreeAge(int a_Polyref)
Definition: landscape.h:1315
TOP_Predators
Definition: PopulationManager.h:76
l_map_exit_on_zero_area
static CfgBool l_map_exit_on_zero_area("MAP_EXIT_ON_ZERO_AREA", CFG_CUSTOM, true)
TAnimal::TAnimal
TAnimal(int x, int y, Landscape *L)
Definition: PopulationManager.cpp:1367
PlantNursery::PlantNursery
PlantNursery(void)
Definition: elements.cpp:2666
cfg_G6F
CfgFloat cfg_G6F
l_pest_insecticide_amount
CfgFloat l_pest_insecticide_amount
LE::GetSprayedToday
bool GetSprayedToday()
Definition: elements.h:304
cfg_B6D
CfgFloat cfg_B6D
ttop_Vinclozolin
Definition: landscape.h:70
Landscape::SupplyBirdSeedForage
double SupplyBirdSeedForage(int a_x, int a_y)
Returns the grain forage resource as seen from a goose standpoint at an x,y location.
Definition: landscape.h:621
Population_Manager::GetSeasonNumber
int GetSeasonNumber()
Get the season number.
Definition: PopulationManager.h:578
Orchard::Orchard
Orchard(void)
Definition: elements.cpp:2411
GooseFieldListItem::vegtype
TTypesOfVegetation vegtype
Definition: landscape.h:92
IDMap< TAnimal * >::maxx
int maxx
Definition: MovementMap.h:100
VegElement::Insecticide
virtual void Insecticide(double a_fraction)
Definition: elements.h:589
Landscape::SupplyHour
int SupplyHour(void)
Get the hour of the day.
Definition: landscape.h:1586
Landscape::RebuildPolyMapping
void RebuildPolyMapping()
Definition: landscape.h:213
Landscape::SupplyVegTypeVector
TTypesOfVegetation SupplyVegTypeVector(unsigned int a_index)
Definition: landscape.h:1220
GooseFieldListItem::roostdists
int roostdists[gs_foobar]
Definition: landscape.h:87
EL_BUG_PERCENT_A
#define EL_BUG_PERCENT_A
Definition: elements.cpp:32
tbl_town
Definition: Rodenticide.h:10
PointerInt
uint64 PointerInt
Definition: ALMaSS_Setup.h:43
VegElement::m_veg_patchy
bool m_veg_patchy
Definition: elements.h:694
cfg_rodenticide_immigrationRate
CfgFloat cfg_rodenticide_immigrationRate("RODENTICIDE_IMMIGRATIONRATE", CFG_CUSTOM, 1.0)
Population_Manager::m_AOR_Probe
AOR_Probe * m_AOR_Probe
Definition: PopulationManager.h:526
WoodlandMargin
Definition: elements.h:967
RodenticidePredators_Population_Manager::RodenticidePredators_Population_Manager
RodenticidePredators_Population_Manager(Landscape *L)
Definition: RodenticidePredators.cpp:71
LE_TypeClass::TranslateEleTypes
TTypesOfLandscapeElement TranslateEleTypes(int EleReference)
Definition: elements.cpp:2995
Population_Manager::SupplyAnimalPtr
TAnimal * SupplyAnimalPtr(int a_index, int a_animal)
Returns the pointer indexed by a_index and a_animal. Note NO RANGE CHECK.
Definition: PopulationManager.h:465
Landscape::BorderAdd
void BorderAdd(LE *a_field, TTypesOfLandscapeElement a_type)
Definition: Landscape.cpp:2347
TAnimal::SupplyPoint
APoint SupplyPoint()
Definition: PopulationManager.h:209
probe_data::m_ReportInterval
unsigned m_ReportInterval
Definition: PopulationManager.h:291
Landscape::Tick
void Tick(void)
Definition: Landscape.cpp:1467
RP_Territory::m_y
int m_y
Definition: RodenticidePredators.h:45
LE::m_valid_x
int m_valid_x
Definition: elements.h:452
TALMaSSObject::EndStep
virtual void EndStep(void)
EndStep behaviour - must be implemented in descendent classes.
Definition: PopulationManager.h:141
LE::m_smallroad_load
static double m_smallroad_load[]
Definition: elements.h:529
Pylon::Pylon
Pylon(void)
Definition: elements.cpp:2978
testpesticide
Definition: landscape.h:63
LE::SetSprayedToday
void SetSprayedToday(bool a_didit)
Definition: elements.h:303
BuiltUpWithParkland::BuiltUpWithParkland
BuiltUpWithParkland(void)
Definition: elements.cpp:2922
WindTurbine::WindTurbine
WindTurbine(void)
Definition: elements.cpp:2984
VegElement::PollenNectarPhenologyCalculation
void PollenNectarPhenologyCalculation()
This methods calculates the daily availability of pollen and nectar per square meter and in total.
Definition: elements.cpp:1790
Landscape::TestCropManagement
void TestCropManagement(void)
probe_data::FileOutput
void FileOutput(int No, int time, int ProbeNo)
Definition: PopulationManager.cpp:1447
cfg_l_treatment_x
CfgInt cfg_l_treatment_x("LAND_TREATMENTX", CFG_CUSTOM, 0)
probe_data::m_RefEle
TTypesOfLandscapeElement m_RefEle[25]
Definition: PopulationManager.h:298
LE::m_vegage
int m_vegage
Definition: elements.h:512
l_map_dump_enable
static CfgBool l_map_dump_enable("MAP_DUMP_ENABLE", CFG_CUSTOM, false)
VegElement::IsGooseGrass
virtual bool IsGooseGrass()
Definition: elements.cpp:1644
Landscape
The landscape class containing all environmental and topographical data.
Definition: landscape.h:112
Population_Manager::LamdaClear
void LamdaClear()
Definition: PopulationManager.h:609
l_el_bug_glue
static CfgFloat l_el_bug_glue("ELEM_BUG_GLUE", CFG_PRIVATE, 0.50)
cfg_B6G
CfgFloat cfg_B6G
cfg_AddBeetleBanks
static CfgBool cfg_AddBeetleBanks("BBANKS_ADD", CFG_CUSTOM, false)
LE::AddArea
void AddArea(double a_area_diff)
Definition: elements.h:316
ReadBatchINI
bool ReadBatchINI()
Definition: ALMaSS_CmdLine.cpp:377
LE::m_almass_le_type
int m_almass_le_type
This holds the ALMaSS element type reference number.
Definition: elements.h:482
Landscape::UnsprayedMarginAdd
void UnsprayedMarginAdd(LE *a_field)
Definition: Landscape.cpp:2617
VegElement::m_weed_biomass
double m_weed_biomass
Definition: elements.h:691
g_map
Landscape * g_map
Population_Manager::LamdaBirth
void LamdaBirth(int x, int y)
Definition: PopulationManager.h:603
Parkland::Parkland
Parkland(void)
Definition: elements.cpp:2901
LE::GetLAGreen
virtual double GetLAGreen(void)
Definition: elements.h:150
RiverBed
Definition: elements.h:1215
cfg_BeetleBankMinX
CfgInt cfg_BeetleBankMinX("BBANK_MINX", CFG_CUSTOM, 0)
Landscape::m_maxextent
int m_maxextent
Definition: landscape.h:143
MownGrass::DoDevelopment
virtual void DoDevelopment(void)
Definition: elements.cpp:2485
cfg_AOROutput_day
static CfgInt cfg_AOROutput_day("G_AOROUTPUT_DAY", CFG_CUSTOM, 60)
Pond::Pond
Pond(void)
Definition: elements.cpp:2776
SimpleStatistics::get_SE
double get_SE()
Returns the sample standard error.
Definition: PopulationManager.h:395
VegElement::VegElement
VegElement(void)
Definition: elements.cpp:615
October
const int October
Definition: landscape.h:45
ForestElement::DoDevelopment
virtual void DoDevelopment(void)
Definition: elements.h:933
LE::m_lasttreat
vector< int > m_lasttreat
Definition: elements.h:524
TALMaSSObject::Step
virtual void Step(void)
Step behaviour - must be implemented in descendent classes.
Definition: PopulationManager.h:139
Landscape::SupplyGrazingPressureVector
int SupplyGrazingPressureVector(unsigned int a_index)
Definition: landscape.h:1232
Landscape::m_RodenticideManager
RodenticideManager * m_RodenticideManager
Definition: landscape.h:157
g_uni_dist2
boost::uniform_int g_uni_dist2(0, 9999)
Landscape::GetActualGooseGrazingForage
double GetActualGooseGrazingForage(int a_x, int a_y, GooseSpecies a_goose)
Returns the leaf forage resource as seen from a goose standpoint at a polygon referenced by x,...
Definition: landscape.h:596
RodenticideManager::DoDeath
void DoDeath(void)
Reduce each cell in twin map by m_deathRate.
Definition: Rodenticide.h:120
TAnimal::SetX
void SetX(int a_x)
Definition: PopulationManager.h:240
LE::m_birdseedforage
double m_birdseedforage
The grain forage present in KJ/m2.
Definition: elements.h:501
cfg_BeetleBankMaxX
CfgInt cfg_BeetleBankMaxX("BBANK_MAXX", CFG_CUSTOM, 100000)
probe_data::FileAppendOutput
void FileAppendOutput(int No, int time)
Definition: PopulationManager.cpp:1462
RodenticideManager::InitiateRodenticidePolyData
void InitiateRodenticidePolyData(string a_fname)
Opens and initiates the output file for polygon rodenticide information.
Definition: Rodenticide.cpp:428
MixedForest
Definition: elements.h:974
LE::GetOpenness
int GetOpenness(void)
For goose model functionality, openness score for the polygon.
Definition: elements.h:350
VegElement
Definition: elements.h:568
cfg_OrchardSprayDay
static CfgInt cfg_OrchardSprayDay("TOX_ORCHARDSPRAYDAY", CFG_CUSTOM, 150)
cfg_ReallyBigOutput_used
CfgBool cfg_ReallyBigOutput_used("G_REALLYBIGOUTPUT_USED", CFG_CUSTOM, false)
Population_Manager::RipleysOutputPrb8
FILE * RipleysOutputPrb8
Definition: PopulationManager.h:590
IDMapScaled
Used to map locations of animals in space.
Definition: MovementMap.h:132
Landscape::ReadPolys2
void ReadPolys2(const char *a_polyfile)
reads in polygon information. Version 2 including centroid and openness information
Definition: Landscape.cpp:1892
EL_BUG_PERCENT_D
#define EL_BUG_PERCENT_D
Definition: elements.cpp:71
SpeciesSpecificReporting
void SpeciesSpecificReporting()
MovementMap::SetMapValue3
void SetMapValue3(unsigned x, unsigned y)
Definition: MovementMap.cpp:397
Landscape::SupplyIsCereal
bool SupplyIsCereal(int a_polyref)
Definition: landscape.h:1300
BaitLocation
Class used for describing the rodenticide bait location.
Definition: Rodenticide.h:19
IDMap::SetMapValue
void SetMapValue(unsigned x, unsigned y, a_type p)
Definition: MovementMap.h:105
Landscape::SupplySoilType
int SupplySoilType(int a_x, int a_y)
Returns the soil type in ALMaSS types reference numbers.
Definition: landscape.h:460
cfg_G6G
CfgFloat cfg_G6G
LE::SetRotIndex
void SetRotIndex(int a_index)
Definition: elements.h:307
ttop_ModelinkPesticide
Definition: landscape.h:71
Landscape::PolysRenumber
void PolysRenumber(void)
Definition: Landscape.cpp:2057
l_el_o_cut_height
CfgFloat l_el_o_cut_height("ELEM_RV_CUT_HEIGHT", CFG_PRIVATE, 10.0)
Landscape::SupplySimAreaMinExtent
int SupplySimAreaMinExtent(void)
IDMapScaled::~IDMapScaled
~IDMapScaled()
Definition: MovementMap.cpp:513
Landscape::SupplyCentroid
APoint SupplyCentroid(int a_polyref)
Definition: Landscape.cpp:766
LE_TypeClass
Definition: elements.h:70
LE::m_default_grazing_level
int m_default_grazing_level
Definition: elements.h:518
BaitLocation::GetMass
int GetMass(void)
Get bait mass.
Definition: Rodenticide.h:46
cfg_RipleysOutputMonthly_used
CfgBool cfg_RipleysOutputMonthly_used("G_RIPLEYSOUTPUTMONTHLY_USED", CFG_CUSTOM, false)
Landscape::SupplyFarmManagerPtr
FarmManager * SupplyFarmManagerPtr()
Definition: landscape.h:353
Landscape::UnsprayedMarginScan
void UnsprayedMarginScan(LE *a_field, int a_width)
Definition: Landscape.cpp:2638
RoeDeerInfo
Part of the basic ALMaSS system (obselete)
Definition: PopulationManager.h:186
LE::m_pig_grazing
bool m_pig_grazing
Definition: elements.h:519
Landscape::SupplyPesticide
double SupplyPesticide(int a_x, int a_y, PlantProtectionProducts a_ppp)
Gets total pesticide for a location.
Definition: Landscape.cpp:586
IDMap::GetMapValue
a_type GetMapValue(unsigned x, unsigned y)
Definition: MovementMap.h:102
Landscape::SupplyDayInMonth
int SupplyDayInMonth(void)
Definition: landscape.h:1606
rectangle
A struct defining two x,y coordinate sets of positive co-ords only.
Definition: PopulationManager.h:98
EL_BUG_PERCENT_WRy_B
#define EL_BUG_PERCENT_WRy_B
Definition: elements.cpp:51
LE::IncOsmiaNesting
void IncOsmiaNesting()
Add an occupied nest.
Definition: elements.h:415
Landscape::SupplyIsMatureCereal
bool SupplyIsMatureCereal(int a_polyref)
Definition: landscape.h:1305
AmenityGrass
Definition: elements.h:1076
EL_GROWTH_DAYDEG_MAGIC
#define EL_GROWTH_DAYDEG_MAGIC
Definition: elements.cpp:158
probe_data::m_RefVeg
TTypesOfVegetation m_RefVeg[25]
Definition: PopulationManager.h:297
cfg_rodenticide_BLcountry_AnnFreq
CfgFloat cfg_rodenticide_BLcountry_AnnFreq("RODENTICIDE_BLTYPE_COUNTRY_ANNFREQ", CFG_CUSTOM, 0.33)
g_weed_percent
static double g_weed_percent[tov_Undefined]
Definition: elements.cpp:131
BeetleBank
Definition: elements.h:787
Landscape::SupplySimAreaHeight
int SupplySimAreaHeight(void)
Definition: landscape.h:1637
MownGrass::Cutting
void Cutting(int a_today)
Definition: elements.cpp:2522
RodenticidePredators_Population_Manager::m_summeddays
double m_summeddays
Keeps track of the number of days we have rodenticide exposure summation for.
Definition: RodenticidePredators.h:85
Landscape::SupplyFarmOwner
int SupplyFarmOwner(int a_x, int a_y)
Definition: landscape.h:1152
LE::m_skylarkscrapes
bool m_skylarkscrapes
For management testing of skylark scrapes.
Definition: elements.h:88
GreenElement::GreenElement
GreenElement(void)
Definition: elements.cpp:2374
Landscape::DumpPublicSymbols
void DumpPublicSymbols(const char *a_dumpfile, CfgSecureLevel a_level)
Definition: landscape.h:781
CropActualValues::no_herb_app
int no_herb_app
Definition: elements.h:561
VegElement::~VegElement
virtual ~VegElement(void)
Definition: elements.h:571
Landscape::SupplySimAreaWidth
int SupplySimAreaWidth(void)
Definition: landscape.h:1632
Landscape::m_GooseIntakeRateVSVegetationHeight_GL
Polynomial2CurveClass * m_GooseIntakeRateVSVegetationHeight_GL
Definition: landscape.h:162
TOP_Spider
Definition: PopulationManager.h:62
Landscape::SupplyTotalNectar
double SupplyTotalNectar(int a_x, int a_y)
Definition: landscape.h:384
cfg_G6A
CfgFloat cfg_G6A
TAnimal::m_Location_y
int m_Location_y
Definition: PopulationManager.h:228
l_map_print_version_info
static CfgBool l_map_print_version_info("MAP_PRINT_VERSION_INFO", CFG_CUSTOM, true)
MixedForest::MixedForest
MixedForest(void)
Definition: elements.cpp:2695
TListOfAnimals
vector< TAnimal * > TListOfAnimals
Definition: PopulationManager.h:50
Landscape::IncOsmiaNest
void IncOsmiaNest(int a_x, int a_y)
Reopen the osmia nest here
Definition: landscape.h:866
Landscape::TranslateEleTypes
TTypesOfLandscapeElement TranslateEleTypes(int EleReference)
Definition: landscape.h:1648
main
int main()
Definition: ALMaSS_CmdLine.cpp:191
LE::m_OsmiaNestProb
double m_OsmiaNestProb
to record the chance of osmia nesting
Definition: elements.h:534
BaitLocation::GetY
int GetY(void)
Get y-coordinate.
Definition: Rodenticide.h:44
Population_Manager::TheReallyBigOutputProbe
virtual void TheReallyBigOutputProbe()
Definition: PopulationManager.cpp:913
LE::SetCropDataAll
virtual void SetCropDataAll(double, double, double, double, TTypesOfVegetation, double, double, int, double, bool, double)
Definition: elements.h:168
Landscape::m_DoMissingPolygonsManipulations
bool m_DoMissingPolygonsManipulations
Definition: landscape.h:150
APoint
A simple class defining an x,y coordinate set.
Definition: ALMaSS_Setup.h:52
River::River
River(void)
Definition: elements.cpp:2864
Landscape::SupplyCentroidX
int SupplyCentroidX(int a_x, int a_y)
Definition: landscape.h:474
September
const int September
Definition: landscape.h:44
direction_n
Definition: landscape.h:60
Population_Manager::DoBefore
virtual void DoBefore()
Definition: PopulationManager.cpp:328
Population_Manager::RipleysOutputPrb10
FILE * RipleysOutputPrb10
Definition: PopulationManager.h:592
Population_Manager::LamdaBirth
void LamdaBirth(int x, int y, int z)
Definition: PopulationManager.h:606
Landscape::CorrectCoordsPt
APoint CorrectCoordsPt(int x, int y)
Function to prevent wrap around errors with co-ordinates using x/y pair.
Definition: landscape.h:1544
Landscape::IsFieldType
bool IsFieldType(TTypesOfLandscapeElement a_tole)
Definition: landscape.h:727
cfg_P1A
CfgFloat cfg_P1A
VegElement::InsectMortality
virtual void InsectMortality(double a_fraction)
Definition: elements.cpp:2206
Landscape::ReadSymbols
bool ReadSymbols(const char *a_cfgfile)
Definition: landscape.h:788
MownGrass::m_DateCut
long m_DateCut
Definition: elements.h:1018
l_map_weather_file
static CfgStr l_map_weather_file("MAP_WEATHER_FILE", CFG_CUSTOM, "weather.pre")
LE::GetSoilType
int GetSoilType()
Definition: elements.h:241
direction_e
Definition: landscape.h:60
CloseDownSim
void CloseDownSim()
Definition: ALMaSS_CmdLine.cpp:472
VegElement::Clean_CropDataStorage
void Clean_CropDataStorage(int index)
Definition: elements.cpp:2129
Landscape::hb_first_free_poly_num
int hb_first_free_poly_num
Definition: landscape.h:274
WaterBufferZone
Definition: elements.h:808
g_PredResultsDir
char g_PredResultsDir[255]
Definition: ALMaSS_CmdLine.cpp:130
LE::GetGooseNosTodayTimed
int GetGooseNosTodayTimed()
For goose model functionality, returns the number of geese today at a predefined time.
Definition: elements.cpp:580
cfg_rodenticide_dumppolyendyear
CfgInt cfg_rodenticide_dumppolyendyear("RODENTICIDE_DUMPPOLYENDYEAR", CFG_CUSTOM,-1)
Population_Manager::SupplyLocXY
virtual void SupplyLocXY(unsigned listindex, unsigned j, int &x, int &y)
Definition: PopulationManager.h:493
LE::m_olddays
long m_olddays
Definition: elements.h:466
l_map_dump_treatcounts_file
static CfgStr l_map_dump_treatcounts_file("MAP_DUMP_TREATCOUNTS_FILE", CFG_CUSTOM, "treatment_counts.txt")
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
RodenticidePredators_Population_Manager::m_predator_maxHR
int m_predator_maxHR
Definition: RodenticidePredators.h:78
LE::m_maxOsmiaNests
int m_maxOsmiaNests
to record the number of possible osmia nests
Definition: elements.h:536
Landscape::SupplyNightProp
double SupplyNightProp()
Definition: landscape.h:826
Landscape::m_PondIndexList
vector< int > m_PondIndexList
List of pond indexes.
Definition: landscape.h:197
Landscape::AddBeetleBanks
void AddBeetleBanks(TTypesOfLandscapeElement a_tole)
Definition: Landscape.cpp:2723
Landscape::BorderScan
void BorderScan(LE *a_field, int a_width)
Definition: Landscape.cpp:2365
TAnimal::OnFarmEvent
virtual bool OnFarmEvent(FarmToDo)
Definition: PopulationManager.h:271
g_landscape_p
class Landscape * g_landscape_p
Definition: Landscape.cpp:258
MetalledPath::MetalledPath
MetalledPath(void)
Definition: elements.cpp:2974
l_map_calc_openness
static CfgBool l_map_calc_openness("MAP_CALC_OPENNESS", CFG_CUSTOM, false)
LE::SetMownDecay
void SetMownDecay(int a_decaytime_days)
Definition: elements.h:314
LE::m_map_index
int m_map_index
Definition: elements.h:480
UrbanNoVeg::UrbanNoVeg
UrbanNoVeg(void)
Definition: elements.cpp:2906
LE::ReduceVeg
virtual void ReduceVeg(double)
Definition: elements.h:175
Landscape::SupplyTotalNectar
double SupplyTotalNectar(int a_polyref)
Definition: landscape.h:383
Population_Manager::SupplyListIndexSize
unsigned SupplyListIndexSize()
Definition: PopulationManager.h:468
FishFarm
Definition: elements.h:1166
TTypeOfDirections
TTypeOfDirections
ALMaSS 8 standard directions
Definition: landscape.h:59
cfg_VoleCatastrophe_on
static CfgBool cfg_VoleCatastrophe_on("VOLE_CATASTROPHE_ON", CFG_CUSTOM, false)
Population_Manager::LamdaDumpOutput
void LamdaDumpOutput()
Definition: PopulationManager.cpp:657
Pond::m_pondquality
double m_pondquality
a factor used to alter the pond qualities (default behaviour is random 0.0-1.0)
Definition: elements.h:1194
TAnimal
The base class for all ALMaSS animal classes.
Definition: PopulationManager.h:205
RodenticideManager::~RodenticideManager
virtual ~RodenticideManager(void)
RodenticideManager destructor.
Definition: Rodenticide.cpp:209
FieldBoundary::FieldBoundary
FieldBoundary(void)
Definition: elements.cpp:2612
l_map_ascii_map_entity
static CfgInt l_map_ascii_map_entity("MAP_ASCII_MAP_ENTITY", CFG_CUSTOM, 1)
If we write an ASCII file what should be the mapped entity? 1 = polyref, 2 = elementype.
m_polymapping
vector< int > * m_polymapping
m_polymapping is a mapping from polygon numbers into the list of landscape elements,...
Definition: Landscape.cpp:257
MovementMap16::~MovementMap16
~MovementMap16()
Definition: MovementMap.cpp:435
Population_Manager::m_SeasonNumber
int m_SeasonNumber
Holds the season number. Used when running goose and hunter sims.
Definition: PopulationManager.h:544
CompareX
Function to compare to TAnimal's m_Location_x.
Definition: PopulationManager.cpp:146
SmallRoad::GetTrafficLoad
virtual double GetTrafficLoad(void)
Definition: elements.cpp:2949
cfg_ReallyBigOutputFirstYear
static CfgInt cfg_ReallyBigOutputFirstYear("G_REALLYBIGOUTPUT_FIRSTYEAR", CFG_CUSTOM, 1)
RodenticideManager::Tick
void Tick(void)
Advance one day.
Definition: Rodenticide.cpp:214
Landscape::SupplyGooseGrazingForageH
double SupplyGooseGrazingForageH(double a_height, GooseSpecies a_goose)
Returns the leaf forage resource as seen from a goose standpoint at a polygon based on the height onl...
Definition: landscape.h:541
l_map_CIPEmaker_enable
static CfgBool l_map_CIPEmaker_enable("MAP_CIPEMAKER_ENABLE", CFG_CUSTOM, false)
cfg_B6A
CfgFloat cfg_B6A
LE::m_NectarM2
double m_NectarM2
Definition: elements.h:544
cfg_B6E
CfgBool cfg_B6E
LE::GetGooseNosToday
int GetGooseNosToday()
For goose model functionality, returns the number of geese today.
Definition: elements.cpp:569
LE::SetMaxX
void SetMaxX(int x)
Definition: elements.h:337
LE::GetGooseRoostDist
int GetGooseRoostDist(GooseSpecies a_goose)
For goose model functionality, returns the distance to closest roost.
Definition: elements.cpp:601
BeetleBank::BeetleBank
BeetleBank(void)
Definition: elements.cpp:2268
MovementMap16::m_TheMap
uint32 * m_TheMap
Definition: MovementMap.h:77
RodenticideManager::m_deathRate
double m_deathRate
poisoned mice death rate
Definition: Rodenticide.h:92
UnsprayedFieldMargin::DoDevelopment
virtual void DoDevelopment(void)
Definition: elements.cpp:2626
cfg_PermanentVegGrowthMinScaler
CfgFloat cfg_PermanentVegGrowthMinScaler("VEG_GROWTHSCALERMIN", CFG_CUSTOM, 1.0)
Scales the growth of vegetation - min value.
Hedges
Definition: elements.h:768
Landscape::SupplyLESignal
LE_Signal SupplyLESignal(int a_polyref)
Definition: Landscape.cpp:3566
Landscape::SupplyVegPatchy
bool SupplyVegPatchy(int a_polyref)
Definition: landscape.h:986
g_el_herbicide_delaytime_days
CfgInt g_el_herbicide_delaytime_days
cfg_rodenticide_BLchristmasstrees_Length
CfgInt cfg_rodenticide_BLchristmasstrees_Length("RODENTICIDE_BLTYPE_CTREE_LENGTH", CFG_CUSTOM, 82)
BuiltUpWithParkland
Definition: elements.h:1118
VegElement::GetVegHeight
virtual double GetVegHeight(void)
Definition: elements.h:577
cfg_AOROutput_interval
static CfgInt cfg_AOROutput_interval("G_AORSOUTPUT_INTERVAL", CFG_CUSTOM, 1)
AnimalPosition
A class defining an animals position.
Definition: PopulationManager.h:168
Landscape::BeetleBankAdd
void BeetleBankAdd(int x, int y, int angle, int length, LE *a_field, TTypesOfLandscapeElement a_tole)
Definition: Landscape.cpp:2971
VegElement::ForceGrowthDevelopment
virtual void ForceGrowthDevelopment(void)
Definition: elements.cpp:1976
UnsprayedFieldMargin::UnsprayedFieldMargin
UnsprayedFieldMargin(void)
Definition: elements.cpp:2618
cfg_BeetleBankMaxArea
static CfgFloat cfg_BeetleBankMaxArea("BBANK_MAXAREA", CFG_CUSTOM, 0.05)
BaitLocation::GetX
int GetX(void)
Get x-coordinate.
Definition: Rodenticide.h:42
MovementMap
Movement maps are used for rapid computing of animal movement.
Definition: MovementMap.h:50
Landscape::GetQuarryNumbers
int GetQuarryNumbers(int a_poly)
This returns the number of geese which are legal quarry on the polygon the day before.
Definition: Landscape.cpp:3390
RiversidePlants::RiversidePlants
RiversidePlants(void)
Definition: elements.cpp:2557
Landscape::ReadOpenness
void ReadOpenness(void)
Reads openness values from a standard input file for all polygons.
GooseFieldListItem::maize
double maize
Definition: landscape.h:90
Pond::SupplyPondPesticide
double SupplyPondPesticide()
supply the current pesticide concentration per litre
Definition: elements.h:1208
LE::m_miny
int m_miny
Definition: elements.h:465
Landscape::SupplyThePopManager
Population_Manager * SupplyThePopManager()
Get the pointer to the current main population manager.
Definition: landscape.h:175
VegElement::m_CropDataStorage
CropActualValues m_CropDataStorage[2]
Keeps data on pesticide applications, biomass at harvest etc. Data for maximum two crops can be store...
Definition: elements.h:722
cfg_rectangularmaps_on
CfgBool cfg_rectangularmaps_on
l_map_poly_file
static CfgStr l_map_poly_file("MAP_POLY_FILE", CFG_CUSTOM, "polygonrefs.txt")
Landscape::CorrectWidth
int CorrectWidth(int x)
Definition: landscape.h:1567
Landscape::hb_StripingDist
int hb_StripingDist(void)
RodenticideManager::m_pmouse_map_main
vector< double > m_pmouse_map_main
Map of probability of encountering a poisoned mouse.
Definition: Rodenticide.h:78
Orchard::m_DateCut
long m_DateCut
Definition: elements.h:995
MovementMap::maxy
uint32 maxy
Definition: MovementMap.h:55
MownGrass::MownGrass
MownGrass(void)
Definition: elements.cpp:2418
RefuseSite
Definition: elements.h:1233
Population_Manager::BeforeStepActions
unsigned BeforeStepActions[12]
Definition: PopulationManager.h:542
PopulationManagerList::PopulationManagerList
PopulationManagerList()
Definition: PopulationManager.h:671
IDMap::~IDMap
~IDMap()
Definition: MovementMap.h:121
Landscape::GetGooseFields
GooseFieldList * GetGooseFields(double)
Gets the list of suitable goose foraging fields today.
Definition: Landscape.cpp:685
cfg_AOROutputFirstYear
static CfgInt cfg_AOROutputFirstYear("G_AOROUTPUT_FIRSTYEAR", CFG_CUSTOM, 1)
Landscape::LineHighTest
int LineHighTest(int a_cx, int a_cy, double a_offsetx, double a_offsety)
Provides a measure of the shortest distance in using a vector from a_cx,a_cy unitl tall obstacles are...
Definition: Landscape.cpp:461
TAnimal::ReinitialiseObject
virtual void ReinitialiseObject(int x, int y, Landscape *L)
Used to re-use an object - must be implemented in descendent classes.
Definition: PopulationManager.h:257
Landscape::m_treatment_counts
int m_treatment_counts[last_treatment]
Definition: landscape.h:193
Population_Manager::SupplySimW
int SupplySimW()
Definition: PopulationManager.h:452
LE::SetPoly
void SetPoly(int a_poly)
Definition: elements.h:226
Landscape::hb_RestoreHedgeCore
void hb_RestoreHedgeCore(int a_orig_poly_number)
Landscape::m_PesticideType
TTypesOfPesticide m_PesticideType
An attribute to hold the pesticide type being tested, if there is one, if not default is -1.
Definition: landscape.h:278
Landscape::m_toxShouldSpray
bool m_toxShouldSpray
Definition: landscape.h:317
cfg_pest_productapplic_period
CfgInt cfg_pest_productapplic_period
Definition: elements.cpp:123
LE::GetLastTreatment
int GetLastTreatment(int *a_index)
Definition: elements.cpp:511
Landscape::hb_HasNeighbourColor
bool hb_HasNeighbourColor(int a_x, int a_y, int a_neighbour_color)
c_SolarConversion
const double c_SolarConversion[2][81]
Definition: elements.cpp:103
Pond::m_LarvalFoodScaler
double m_LarvalFoodScaler
The proportion of larval food per m2
Definition: elements.h:1188
Stream::Stream
Stream(void)
Definition: elements.cpp:2958
Landscape::RodenticidePredatorsEvaluation
void RodenticidePredatorsEvaluation(RodenticidePredators_Population_Manager *a_rppm)
Definition: Landscape.cpp:3032
TAnimal::SetY
void SetY(int a_y)
Definition: PopulationManager.h:243
RodenticidePredators_Population_Manager
Definition: RodenticidePredators.h:50
LE::ResetDigestability
virtual void ResetDigestability()
sets growth record to zero in descendent classes
Definition: elements.h:382
TAnimal::EndStep
virtual void EndStep(void)
EndStep behaviour - must be implemented in descendent classes.
Definition: PopulationManager.h:254
Landscape::SupplyMinute
int SupplyMinute(void)
Get the minute of the hour.
Definition: landscape.h:1592
Population_Manager::ImpactedProbe
virtual void ImpactedProbe()
Definition: PopulationManager.cpp:672
Landscape::SupplyValidY
int SupplyValidY(int a_polyref)
Definition: landscape.h:1481
cfg_VoleCatastrophe_interval
static CfgInt cfg_VoleCatastrophe_interval("VOLE_CATASTROPHE_I", CFG_CUSTOM, 365 *5)
Canal
Definition: elements.h:1227
Landscape::CountMapSquares
void CountMapSquares(void)
Definition: Landscape.cpp:2040
OrchardBand::m_LastSprayed
long m_LastSprayed
Definition: elements.h:1006
cfg_goose_GrainDecayRateWinter
CfgFloat cfg_goose_GrainDecayRateWinter
VegElement::SetInsectPop
virtual void SetInsectPop(double insects)
Definition: elements.h:587
l_map_dump_exit
static CfgBool l_map_dump_exit("MAP_DUMP_EXIT", CFG_CUSTOM, false)
l_map_dump_event_y2
static CfgInt l_map_dump_event_y2("MAP_DUMP_EVENT_YB", CFG_CUSTOM, 2889)
IDMapScaled::GetMapValue
TAnimal * GetMapValue(unsigned a_x, unsigned a_y)
Definition: MovementMap.h:136
VegElement::SetVegType
virtual void SetVegType(TTypesOfVegetation a_vege_type, TTypesOfVegetation a_weed_type)
Definition: elements.cpp:2144
Landscape::hb_PaintWhoHasNeighbourColor
bool hb_PaintWhoHasNeighbourColor(int a_neighbour_color, int a_new_color)
RoadsideVerge
Definition: elements.h:795
TALMaSSObject::SetCurrentStateNo
void SetCurrentStateNo(int a_num)
Sets the current state number.
Definition: PopulationManager.h:125
Stream
Definition: elements.h:1298
Landscape::SupplyPolygonArea
double SupplyPolygonArea(int a_polyref)
Definition: landscape.h:523
Population_Manager::SupplyState
int SupplyState(unsigned listindex, unsigned j)
Definition: PopulationManager.h:490
probe_data
Data structure to hold & output probe data probe data is designed to be used to return the number of ...
Definition: PopulationManager.h:283
Landscape::hb_height
int hb_height
Definition: landscape.h:270
Landscape::SetThePopManager
void SetThePopManager(Population_Manager *a_ptr)
Set the pointer to the current main population manager.
Definition: landscape.h:177
Landscape::SupplyRodenticide
double SupplyRodenticide(int a_x, int a_y)
Gets total rodenticide for a location.
Definition: Landscape.cpp:492
l_map_dump_gfx_enable
static CfgBool l_map_dump_gfx_enable("MAP_DUMP_GFX_ENABLE", CFG_CUSTOM, false)
Landscape::m_y_add
int m_y_add[8]
Definition: landscape.h:267
Population_Manager
Base class for all population managers.
Definition: PopulationManager.h:424
SimpleStatistics::SimpleStatistics
SimpleStatistics()
SimpleStatistics constructor.
Definition: PopulationManager.h:337
cfg_pondpesticiderunoff
CfgFloat cfg_pondpesticiderunoff("POND_PEST_RUNOFFFACTOR", CFG_CUSTOM, 10.0)
The multiplication factor assumed to account for ingress of pesticide from run-off and soil water to ...
LE::ForceGrowthDevelopment
virtual void ForceGrowthDevelopment(void)
Definition: elements.h:173
LE::m_lastsownvegtype
TTypesOfVegetation m_lastsownvegtype
Records the last vegegetation type that was sown on the element.
Definition: elements.h:507
TOP_Beetle
Definition: PopulationManager.h:63
Landscape::CIPELandscapeMaker
bool CIPELandscapeMaker()
Landscape::m_width10
int m_width10
Definition: landscape.h:140
APoint::APoint
APoint(int a_x, int a_y)
Definition: ALMaSS_Setup.h:63
LE::GetCattleGrazing
int GetCattleGrazing(void)
Definition: elements.h:183
LE::GetRotIndex
int GetRotIndex(void)
Definition: elements.h:309
LE::SetPesticideCell
void SetPesticideCell(int a_cell)
Definition: elements.h:323
RodenticidePredators_Population_Manager::m_predator_targetQual
double m_predator_targetQual
Definition: RodenticidePredators.h:79
cfg_BeetleBankInvert
CfgBool cfg_BeetleBankInvert("BBANK_INVERT", CFG_CUSTOM, false)
RodenticidePredators_Population_Manager::PredatorTerritoryInput
void PredatorTerritoryInput()
Output functions for predator territories.
Definition: RodenticidePredators.cpp:358
l_map_ascii_utm_x
static CfgInt l_map_ascii_utm_x("MAP_ASCII_UTM_X", CFG_CUSTOM, 0)
If we write an ASCII file provide UTM-x of lower lefthand corner.
g_Species
int g_Species
Definition: ALMaSS_CmdLine.cpp:125
cfg_RipleysOutputFirstYear
static CfgInt cfg_RipleysOutputFirstYear("G_RIPLEYSOUTPUT_FIRSTYEAR", CFG_CUSTOM, 1)
Landscape::SupplyDayInYear
int SupplyDayInYear(void)
Definition: landscape.h:1596
Landscape::hb_UpPolyNumbers
void hb_UpPolyNumbers(void)
cfg_G6C
CfgFloat cfg_G6C
Landscape::hb_MarkTheBresenhamWay
void hb_MarkTheBresenhamWay(void)
RodenticideManager
Class for management of bait locations.
Definition: Rodenticide.h:72
GooseFieldListItem::debugveg
std::string debugveg
Definition: landscape.h:99
TOP_LaceWing
Definition: PopulationManager.h:78
Landscape::AddGreenElement
void AddGreenElement(LE *a_green)
Landscape::SupplyVegBiomass
double SupplyVegBiomass(int a_polyref)
Definition: landscape.h:953
VegElement::m_newoldgrowthindex
int m_newoldgrowthindex
Definition: elements.h:699
Landscape::DumpTreatCounters
void DumpTreatCounters(const char *a_filename)
Definition: Landscape.cpp:3586
Landscape::GetVegArea
double GetVegArea(int v)
Definition: landscape.h:170
RoeDeerInfo::m_Size
int m_Size
Definition: PopulationManager.h:189
VegElement::m_veg_biomass
double m_veg_biomass
Definition: elements.h:686
EL_VEG_START_LAIT
#define EL_VEG_START_LAIT
Definition: elements.cpp:187
cfg_OsmiaNestByLE_Datafile
static CfgStr cfg_OsmiaNestByLE_Datafile("OSMIA_NESTBYLEDATAFILE", CFG_CUSTOM, "OsmiaNestsByHabitat.txt")
cfg_SetAsidePatchyChance
static CfgFloat cfg_SetAsidePatchyChance("SETASIDEPATCHYCHANCE", CFG_CUSTOM, 1.0)
The chance that a setaside being created is patchy or not.
cfg_pesticidemapon
CfgBool cfg_pesticidemapon("PEST_MAP_ON", CFG_CUSTOM, false)
Flag determining whether we are using the pesticide map.
LE::m_yddegs
double m_yddegs
Definition: elements.h:521
IDMap
Used to map locations of animals in space.
Definition: MovementMap.h:96
l_el_weed_percent
static CfgFloat l_el_weed_percent("ELEM_WEED_PERCENT", CFG_PRIVATE, 0.1)
VegElement::Set_tov_type
void Set_tov_type(TTypesOfVegetation a_tov_type, int index)
Definition: elements.h:639
ImpactProbeReport
void ImpactProbeReport(int a_time)
Landscape::SupplyHasTramlines
bool SupplyHasTramlines(int a_x, int a_y)
Definition: landscape.h:1252
TOP_Dormouse
Definition: PopulationManager.h:75
l_map_consolidatepolys
static CfgBool l_map_consolidatepolys("MAP_CONSOLIDATEPOLYS", CFG_CUSTOM, false)
Used to consolidate polygons with no special behaviour into a single polygon of that type.
Landscape::hb_max_y
int hb_max_y
Definition: landscape.h:273
tbl_foobar
Definition: Rodenticide.h:15
cfg_RipleysOutput_day
static CfgInt cfg_RipleysOutput_day("G_RIPLEYSOUTPUT_DAY", CFG_CUSTOM, 60)
APoint::APoint
APoint()
Definition: ALMaSS_Setup.h:58
Population_Manager::RipleysOutputPrb11
FILE * RipleysOutputPrb11
Definition: PopulationManager.h:593
Population_Manager::lamdagrid
long int lamdagrid[2][257][257]
Definition: PopulationManager.h:597
TALMaSSObject::m_StepDone
bool m_StepDone
Indicates whether the iterative step code is done for this timestep.
Definition: PopulationManager.h:118
direction_ne
Definition: landscape.h:60
TAnimal::CheckManagementXY
void CheckManagementXY(int x, int y)
Definition: PopulationManager.cpp:1417
RodenticideManager::ShouldPlaceBait
bool ShouldPlaceBait(TTypesBaitLocation)
Place bait dependent upon a frequency test.
Definition: Rodenticide.cpp:294
Landscape::SupplyPesticideType
TTypesOfPesticide SupplyPesticideType(void)
Definition: landscape.h:433
EL_BUG_PERCENT_Edges_B
#define EL_BUG_PERCENT_Edges_B
Definition: elements.cpp:69
APoint::m_x
int m_x
Definition: ALMaSS_Setup.h:55
l_el_read_bug_percentage_file
static CfgBool l_el_read_bug_percentage_file("ELEM_READ_BUG_PERCENTAGE_FILE", CFG_CUSTOM, false)
SmallRoad
Definition: elements.h:1266
Population_Manager::SupplyPegPosx
virtual int SupplyPegPosx(int)
Definition: PopulationManager.h:620
Hedges::Hedges
Hedges(void)
Definition: elements.cpp:2250
random
int random(int a_range)
Definition: ALMaSS_CmdLine.cpp:142
Landscape::SupplyBirdSeedForage
double SupplyBirdSeedForage(int a_polyref)
Returns the grain forage resource.
Definition: landscape.h:614
CropActualValues::tov_type
TTypesOfVegetation tov_type
Definition: elements.h:557
cfg_RodenticidePredatoryType
CfgInt cfg_RodenticidePredatoryType("RODPREDATOR_TYPE", CFG_CUSTOM,-1)
Used to set the predator information to read in.
SimpleStatistics::get_varianceS
double get_varianceS()
Returns the sample variance.
Definition: PopulationManager.h:379
rectangle::m_y2
unsigned m_y2
Definition: PopulationManager.h:103
ActivePit
Definition: elements.h:1251
Landscape::FindLongestAxis
int FindLongestAxis(int *x, int *y, int *a_length)
Definition: Landscape.cpp:2851
TAnimal::SupplyPosition
AnimalPosition SupplyPosition()
Definition: PopulationManager.cpp:1345
ttop_eggshellthinning
Definition: landscape.h:75
Landscape::SupplyGooseGrazingForageH
double SupplyGooseGrazingForageH(int a_polygon, GooseSpecies a_goose)
Returns the leaf forage resource as seen from a goose standpoint at a polygon referenced by number ba...
Definition: landscape.h:567
Landscape::CheckForPesticideRecord
void CheckForPesticideRecord(LE *a_field, TTypesOfPesticideCategory a_pcide)
Check if needed and record pesticide application.
Definition: Landscape.cpp:669
cfg_BeetleBankChance
static CfgInt cfg_BeetleBankChance("BBANK_CHANCE", CFG_CUSTOM, 100)
TTypesOfPesticideCategory
TTypesOfPesticideCategory
Definition: landscape.h:63
EL_BUG_PERCENT_C
#define EL_BUG_PERCENT_C
Definition: elements.cpp:34
VegElement::GetLATotal
virtual double GetLATotal(void)
Definition: elements.h:575
Landscape::SupplyYearNumber
int SupplyYearNumber(void)
Definition: landscape.h:1616
Landscape::CorrectCoordsPointNoWrap
void CorrectCoordsPointNoWrap(APoint &a_pt)
Function to prevent wrap around errors with co-ordinates using a APoint.
Definition: landscape.h:1555
VegElement::m_crop_index
int m_crop_index
Definition: elements.h:723
VegElement::GetSkScrapes
virtual bool GetSkScrapes(void)
Definition: elements.h:583
IDMap::ClearMapValue
void ClearMapValue(unsigned x, unsigned y)
Definition: MovementMap.h:108
g_rand_uni
boost::variate_generator< base_generator_type &, boost::uniform_real<> > g_rand_uni
RoadsideSlope
Definition: elements.h:818
Pond::DoDevelopment
virtual void DoDevelopment(void)
Definition: elements.cpp:2783
Landscape::hb_GenerateHBPolys
void hb_GenerateHBPolys(void)
PermPasture
Definition: elements.h:740
LE::m_high
bool m_high
Definition: elements.h:515
Landscape::RecordGooseNumbers
void RecordGooseNumbers(int a_poly, int a_number)
This records the number of geese on the polygon the day before. To prevent lots of unnecessary cleari...
Definition: Landscape.cpp:3328
LE::m_gooseSpNos
int m_gooseSpNos[366][gs_foobar]
The number of geese of each species each day.
Definition: elements.h:493
Field
Definition: elements.h:727
EL_BUG_PERCENT_WRy_C
#define EL_BUG_PERCENT_WRy_C
Definition: elements.cpp:52
l_el_o_cut_total
CfgFloat l_el_o_cut_total("ELEM_RV_CUT_TOTAL", CFG_PRIVATE, 2.0)
RodenticidePredators_Population_Manager::m_NoTerritories
int m_NoTerritories
Definition: RodenticidePredators.h:81
LE::m_days_since_insecticide_spray
int m_days_since_insecticide_spray
Definition: elements.h:514
Scrub::DoDevelopment
virtual void DoDevelopment(void)
Definition: elements.h:837
SimpleStatistics::get_varianceP
double get_varianceP()
Returns the population variance.
Definition: PopulationManager.h:371
Population_Manager::TheFledgelingProbe
virtual int TheFledgelingProbe()
Definition: PopulationManager.h:646
RodenticidePredators_Population_Manager::m_sim_h_div_10
int m_sim_h_div_10
Definition: RodenticidePredators.h:71
VegElement::StoreLAItotal
virtual void StoreLAItotal()
Definition: elements.h:627
LE::GetTrafficLoad
virtual double GetTrafficLoad(void)
Definition: elements.h:178
VegElement::IsMatureCereal
virtual bool IsMatureCereal()
Definition: elements.cpp:1534
Landscape::SupplyVegCover
double SupplyVegCover(int a_polyref)
Definition: landscape.h:1048
RV_CUT_JUN
#define RV_CUT_JUN
Definition: elements.cpp:197
cfg_ReallyBigOutput_day1
static CfgInt cfg_ReallyBigOutput_day1("G_REALLYBIGOUTPUT_DAY_ONE", CFG_CUSTOM, 1)
January
const int January
Definition: landscape.h:36
BaitLocation::m_useThisYear
bool m_useThisYear
flag for bait location use this year
Definition: Rodenticide.h:32
g_biomass_scale
static double g_biomass_scale[tov_Undefined]
Definition: elements.cpp:130
cfg_OrchardNoCutsDay
CfgInt cfg_OrchardNoCutsDay("TOX_ORCHARDNOCUTS", CFG_CUSTOM, -1)
g_uni_dist
boost::uniform_real g_uni_dist(0, 1)
MovementMap::SetMapValue2
void SetMapValue2(unsigned x, unsigned y)
Definition: MovementMap.cpp:384
g_el_tramline_decaytime_days
CfgInt g_el_tramline_decaytime_days
CropActualValues::biomass_at_harvest
double biomass_at_harvest
Definition: elements.h:558
Landscape::hb_hedges
vector< int > hb_hedges
Definition: landscape.h:263
g_files
char * g_files[100]
Definition: ALMaSS_CmdLine.cpp:127
LE_Signal
unsigned int LE_Signal
Definition: elements.h:35
TAnimal::BeginStep
virtual void BeginStep(void)
BeingStep behaviour - must be implemented in descendent classes.
Definition: PopulationManager.h:250
SimpleStatistics::get_meanvalue
double get_meanvalue()
Returns the mean.
Definition: PopulationManager.h:366
l_pest_enable_pesticide_engine
CfgBool l_pest_enable_pesticide_engine
AnimalPosition::m_EleType
TTypesOfLandscapeElement m_EleType
Definition: PopulationManager.h:174
g_SpeedyDivides
double g_SpeedyDivides[2001]
A generally useful array of fast divide calculators by multiplication.
Definition: Landscape.cpp:250
SandDune::SandDune
SandDune(void)
Definition: elements.cpp:2891
Population_Manager::SupplyStateNamesLength
unsigned SupplyStateNamesLength()
Definition: PopulationManager.h:500
NonVegElement
Definition: elements.h:1028
SimpleStatistics::m_n
double m_n
Definition: PopulationManager.h:331
PopulationManagerList::SetPopulation
void SetPopulation(Population_Manager *p_pm, TTypesOfPopulation a_pt)
Definition: PopulationManager.h:672
cfg_pesticidemaptype
CfgBool cfg_pesticidemaptype("PEST_MAP_TYPE", CFG_CUSTOM, false)
True for specific pesticide, false for general pesticides.
LE::m_farmfunc_tried_to_do
int m_farmfunc_tried_to_do
Definition: elements.h:483
Landscape::ChangeMapMapping
void ChangeMapMapping(void)
Definition: Landscape.cpp:2130
Population_Manager::ProbeReportTimed
char * ProbeReportTimed(int a_time)
Definition: PopulationManager.cpp:1300
cfg_ins_app_prop1
CfgFloat cfg_ins_app_prop1("CROPS_INSECTICIDE_APPLIC_ONE_PROPORTION", CFG_CUSTOM, 1.0)
OrchardBand::OrchardBand
OrchardBand(void)
Definition: elements.cpp:2425
cfg_fungi_app_prop1
CfgFloat cfg_fungi_app_prop1("CROPS_FUNGICIDE_APPLIC_ONE_PROPORTION", CFG_CUSTOM, 1.0)
CropActualValues::area
double area
Definition: elements.h:560
cfg_pesticidemapcellsize
CfgInt cfg_pesticidemapcellsize("PEST_MAP_CELLSIZE", CFG_CUSTOM, 10)
The output cell size for pesticides - a performance penalty if this does not match the pesticide cell...
LE::InsectMortality
virtual void InsectMortality(double)
Definition: elements.h:159
Population_Manager::RipleysOutputPrb3
FILE * RipleysOutputPrb3
Definition: PopulationManager.h:585
VegElement::Get_CropDataStorage
CropActualValues Get_CropDataStorage(int index)
Definition: elements.h:663
MovementMap16::maxy
uint32 maxy
Definition: MovementMap.h:79
RiversideTrees::RiversideTrees
RiversideTrees(void)
Definition: elements.cpp:2649
Churchyard
Definition: elements.h:1292
cfg_CalculateCentroids
static CfgBool cfg_CalculateCentroids("MAP_CALCULATE_CENTROIDS", CFG_CUSTOM, false)
Landscape::SupplyPolyRefVector
int SupplyPolyRefVector(unsigned int a_index)
Definition: landscape.h:1451
TTypesOfPopulation
TTypesOfPopulation
An enum to hold all the possible types of population handled by a Population_Manager class.
Definition: PopulationManager.h:58
LE::MConsts
int MConsts[10]
Definition: elements.h:531
RuralResidential
Definition: elements.h:1112
RV_CUT_OCT
#define RV_CUT_OCT
Definition: elements.cpp:209
LE::m_countrydesignation
int m_countrydesignation
Definition: elements.h:470
UrbanPark
Definition: elements.h:1100
AnimalPosition::m_y
unsigned m_y
Definition: PopulationManager.h:173
Population_Manager::SupplyPegPosy
virtual int SupplyPegPosy(int)
Definition: PopulationManager.h:623
LE::ToggleCattleGrazing
virtual void ToggleCattleGrazing(void)
Definition: elements.h:161
cfg_P1B
CfgFloat cfg_P1B
RodenticidePredators_Population_Manager::PredatorTerritoryOutput
void PredatorTerritoryOutput(bool a_initial)
Output functions for predator territories.
Definition: RodenticidePredators.cpp:333
Landscape::SupplyUnderGrowthWidth
int SupplyUnderGrowthWidth(int, int)
Definition: landscape.h:815
Landscape::hb_ClearPolygon
void hb_ClearPolygon(int a_poly_num)
Population_Manager::DoFirst
virtual void DoFirst()
Definition: PopulationManager.cpp:320
l_map_removesmallpolygons
static CfgBool l_map_removesmallpolygons("MAP_REMOVESMALLPOLYGONS", CFG_CUSTOM, false)
BeetleBank::DoDevelopment
virtual void DoDevelopment(void)
Definition: elements.cpp:3708
cfg_rodenticide_enable
CfgBool cfg_rodenticide_enable("RODENTICIDE_ENABLE", CFG_CUSTOM, false)
vector< TAnimal * >
LE::SetValidXY
void SetValidXY(int a_valid_x, int a_valid_y)
Definition: elements.h:325
EL_BUG_PERCENT_WR_C
#define EL_BUG_PERCENT_WR_C
Definition: elements.cpp:58
SimpleStatistics::m_SumX
double m_SumX
Definition: PopulationManager.h:333
Landscape::SupplyVersion
const char * SupplyVersion(void)
Definition: landscape.h:778
MovementMap::SetMapValue1
void SetMapValue1(unsigned x, unsigned y)
Definition: MovementMap.cpp:372
PermanentSetaside
Definition: elements.h:761
Landscape::m_land
RasterMap * m_land
The big map.
Definition: landscape.h:125
Landscape::FindFieldCenter
bool FindFieldCenter(LE *a_field, int *x, int *y)
Definition: Landscape.cpp:2799
Landscape::ReadPolys
void ReadPolys(const char *a_polyfile)
LE::SetMapValid
void SetMapValid(bool a_valid)
Definition: elements.h:227
l_el_weed_glue
static CfgFloat l_el_weed_glue("ELEM_WEED_GLUE", CFG_PRIVATE, 0.99)
VegElement::m_dead_biomass
double m_dead_biomass
Definition: elements.h:690
Population_Manager::RipleysOutputPrb4
FILE * RipleysOutputPrb4
Definition: PopulationManager.h:586
LE_TypeClass::TranslateVegTypes
TTypesOfVegetation TranslateVegTypes(int VegReference)
Definition: elements.cpp:3088
LargeRoad
Definition: elements.h:1257
Landscape::SupplyElementTypeFromVector
TTypesOfLandscapeElement SupplyElementTypeFromVector(unsigned int a_index)
Definition: landscape.h:1104
Population_Manager::SupplySimH
int SupplySimH()
Definition: PopulationManager.h:455
Landscape::EventtypeToString
std::string EventtypeToString(int a_event)
Definition: Landscape.cpp:3918
AnsiString
char * AnsiString
Definition: PopulationManager.h:46
g_PopulationManagerList
PopulationManagerList g_PopulationManagerList
Definition: ALMaSS_CmdLine.cpp:136
LE::GetGreenBiomass
virtual double GetGreenBiomass(void)
Definition: elements.h:152
LE::m_owner_index
int m_owner_index
Definition: elements.h:472
GooseFieldListItem
A list item entry of field polygon reference numbers with associated openness and goose food scores.
Definition: landscape.h:80
SimpleStatistics::remove_variable
void remove_variable(double x)
Remove a value.
Definition: PopulationManager.h:351
GreenElement::~GreenElement
virtual ~GreenElement(void)
Definition: elements.h:829
Landscape::SupplyTreeAge
int SupplyTreeAge(int, int)
Definition: landscape.h:509
TAnimal::CopyMyself
virtual void CopyMyself()
Definition: PopulationManager.h:224
Landscape::m_NeedCentroidCalculation
bool m_NeedCentroidCalculation
a flag to ensure centroid calculation on object construction
Definition: landscape.h:146
cfg_l_treatment_size
CfgInt cfg_l_treatment_size("LAND_TREATMENTSIZE", CFG_CUSTOM, -1)
BaitLocation::Reset
void Reset()
Reset all flags and mass.
Definition: Rodenticide.h:66
LE::ReduceWeedBiomass
virtual void ReduceWeedBiomass(double)
Definition: elements.h:160
VegElement::m_oldLAtotal
double m_oldLAtotal
Definition: elements.h:683
BaitLocation::SetBLtype
void SetBLtype(TTypesBaitLocation a_BLt)
Set bait location type.
Definition: Rodenticide.h:64
Population_Manager::SupplyListNameLength
int SupplyListNameLength()
Definition: PopulationManager.h:461
g_Year
int g_Year
Definition: ALMaSS_CmdLine.cpp:132
LE::m_totalPollen
double m_totalPollen
Definition: elements.h:541
Landscape::SupplyInStubble
bool SupplyInStubble(int a_polyref)
Returns whether its cereal.
Definition: landscape.h:634
RoadsideVerge::Cutting
void Cutting(int a_today)
Definition: elements.cpp:2323
VegElement::SetVegHeight
virtual void SetVegHeight(double a_veg_height)
Definition: elements.h:618
Landscape::hb_min_x
int hb_min_x
Definition: landscape.h:272
Landscape::ForceArea
void ForceArea(void)
Definition: Landscape.cpp:2072
LE::SetGooseSpNosTimed
void SetGooseSpNosTimed(int a_number, int a_day, GooseSpecies a_goose)
Definition: elements.h:360
Population_Manager::StateNames
const char * StateNames[100]
Definition: PopulationManager.h:531
Population_Manager::FarmAnimalCensus
unsigned int FarmAnimalCensus(unsigned int a_farm, unsigned int a_typeofanimal)
Definition: PopulationManager.cpp:1261
cfg_fixed_random_sequence
CfgBool cfg_fixed_random_sequence
cfg_P1E
CfgBool cfg_P1E
g_bug_percent_d
static double g_bug_percent_d[tov_Undefined]
Definition: elements.cpp:135
TTypesBaitLocation
TTypesBaitLocation
An enumeration listing the types of bait locations possible.
Definition: Rodenticide.h:8
Population_Manager::TheBreedingSuccessProbe
virtual int TheBreedingSuccessProbe(int &, int &, int &, int &, int &, int &)
Definition: PopulationManager.h:651
Wasteland::DoDevelopment
virtual void DoDevelopment()
Definition: elements.cpp:2603
LE::SetStubble
void SetStubble(bool a_flag)
Sets the in stubble flag.
Definition: elements.h:390
LE::SetPollenNectarData
void SetPollenNectarData(int a_almasstype)
sets the pollen and nectar information
Definition: elements.cpp:605
BareRock
Definition: elements.h:1130
LE::GetGooseSpNosTodayTimed
int GetGooseSpNosTodayTimed(GooseSpecies a_goose)
For goose model functionality, returns the number of geese per species yesterday at a predefined time...
Definition: elements.cpp:597
WindTurbine
Definition: elements.h:1058
VegElement::m_LAtotal
double m_LAtotal
Definition: elements.h:682
Landscape::CreatePondList
void CreatePondList()
Creates a list of pond polygon refs/indexes for easy look up.
Definition: Landscape.cpp:2594
IDMap::IDMap
IDMap(Landscape *L)
Definition: MovementMap.h:111
l_el_veg_start_lait
static CfgFloat l_el_veg_start_lait("ELEM_VEG_START_LAIT", CFG_PRIVATE, 1.08)
BaitLocation::SetY
void SetY(int a_y)
Set y-coordinate.
Definition: Rodenticide.h:56
VegElement::TogglePigGrazing
virtual void TogglePigGrazing(void)
Definition: elements.h:605
l_map_cropcurves_file
static CfgStr l_map_cropcurves_file("MAP_CROPCURVES_FILE", CFG_CUSTOM, "curves.pre")
cfg_rodenticide_read_predators
CfgBool cfg_rodenticide_read_predators("RODENTICIDE_READ_PREDATORS", CFG_CUSTOM, false)
Used to flag whether we calculate or read in territory values.
Landscape::SupplyInsects
double SupplyInsects(int a_polyref)
Definition: landscape.h:1088
Landscape::SupplyRain
double SupplyRain(void)
Definition: landscape.h:1365
RoeDeerInfo::m_Range_y
unsigned m_Range_y
Definition: PopulationManager.h:192
RiversidePlants
Definition: elements.h:861
Landscape::m_GooseIntakeRateVSVegetationHeight_BG
Polynomial2CurveClass * m_GooseIntakeRateVSVegetationHeight_BG
Definition: landscape.h:161
River
Definition: elements.h:1221
probe_data::m_FileRecord
bool m_FileRecord
Definition: PopulationManager.h:290
Landscape::SupplyPondIndex
int SupplyPondIndex(int a_pondref)
Returns the index of a pond based on pondref or -1 if not found.
Definition: landscape.h:342
Landscape::BorderRemoval
void BorderRemoval(void)
Definition: Landscape.cpp:2271
LE::m_border
LE * m_border
Definition: elements.h:447
Landscape::hb_size
int hb_size
Definition: landscape.h:271
LE::SetGooseNos
void SetGooseNos(int a_number, int a_day)
Definition: elements.h:352
Landscape::SupplyPesticideP
double SupplyPesticideP(int a_x, int a_y, PlantProtectionProducts a_ppp)
Gets plant pesticide for a location.
Definition: Landscape.cpp:605
LE::GetMapValid
bool GetMapValid(void)
Definition: elements.h:228
Population_Manager::m_TheLandscape
Landscape * m_TheLandscape
Definition: PopulationManager.h:515
LE::GetTotalPollen
virtual double GetTotalPollen()
Definition: elements.h:432
Landscape::SupplyGlobalRadiation
double SupplyGlobalRadiation()
Definition: landscape.h:1341
LE::GrazeVeg_Extended
virtual void GrazeVeg_Extended(double)
Definition: elements.h:177
cfg_map_usesoiltypes
static CfgBool cfg_map_usesoiltypes("MAP_USESOILTYPES", CFG_CUSTOM, false)
Landscape::BeetleBankPossible
bool BeetleBankPossible(LE *a_field, TTypesOfLandscapeElement a_tole)
Definition: Landscape.cpp:2772
LE
Definition: elements.h:81
LE::m_tramlinesdecay
int m_tramlinesdecay
Definition: elements.h:484
June
const int June
Definition: landscape.h:41
Landscape::CalculateOpenness
void CalculateOpenness(bool a_realcalc)
Causes openness to be calulated and stored for all polygons.
Definition: Landscape.cpp:322
MovementMap16
Movement maps are used for rapid computing of animal movement.
Definition: MovementMap.h:74
l_el_rv_cut_total
static CfgFloat l_el_rv_cut_total("ELEM_RV_CUT_TOTAL", CFG_PRIVATE, 2.0)
Population_Manager::GetPopulationType
TTypesOfPopulation GetPopulationType()
Definition: PopulationManager.h:576
RodenticidePredators_Population_Manager::m_sim_w_div_10
int m_sim_w_div_10
Definition: RodenticidePredators.h:70
g_el_herbicide_delaytime_days
CfgInt g_el_herbicide_delaytime_days("ELEM_HERBICIDE_DELAYTIME_DAYS", CFG_PRIVATE, 35)
Landscape::SupplyVegAge
int SupplyVegAge(int a_Polyref)
Definition: landscape.h:1078
Landscape::Landscape
Landscape(void)
Definition: Landscape.cpp:814
g_NoProbes
int g_NoProbes
Definition: ALMaSS_CmdLine.cpp:134
Population_Manager::FledgelingProbeOutput
virtual void FledgelingProbeOutput(int, int)
Definition: PopulationManager.h:654
cfg_ReallyBigOutput_day4
static CfgInt cfg_ReallyBigOutput_day4("G_REALLYBIGOUTPUT_DAY_FOUR", CFG_CUSTOM, 274)
Population_Manager::ProbeReport
char * ProbeReport(int a_time)
Definition: PopulationManager.cpp:1273
RodenticideManager::m_width
int m_width
Landscape dimensions.
Definition: Rodenticide.h:84
cfg_RodenticidePredatoryTerrOverlap
CfgFloat cfg_RodenticidePredatoryTerrOverlap("RODPREDATOR_TERR_OVERLAP", CFG_CUSTOM, 1.0)
Unused.
Vildtager
Definition: elements.h:914
PermPasture::PermPasture
PermPasture(void)
Definition: elements.cpp:2210
MovementMap::MovementMap
MovementMap(Landscape *L, int spref)
Definition: MovementMap.cpp:50
LE::SetBirdMaize
void SetBirdMaize(double a_forage)
Definition: elements.h:213
Track
Definition: elements.h:1274
Population_Manager::OpenTheReallyBigProbe
bool OpenTheReallyBigProbe()
Definition: PopulationManager.cpp:859
TOP_foobar
Definition: PopulationManager.h:79
CompareStateDead
Function to compare to TAnimal's m_CurrentStateNo to -1.
Definition: PopulationManager.cpp:194
Population_Manager::DisplayLocations
virtual void DisplayLocations()
Definition: PopulationManager.cpp:560
CreatePopulationManager
bool CreatePopulationManager()
Definition: ALMaSS_CmdLine.cpp:240
LE::SetHigh
void SetHigh(bool a_high)
Definition: elements.h:225
LE::GetOwnerFile
int GetOwnerFile(void)
Definition: elements.h:192
cfg_goose_grass_to_winter_cereal_scaler
CfgFloat cfg_goose_grass_to_winter_cereal_scaler
Landscape::DumpVegAreaData
void DumpVegAreaData(int a_day)
Definition: Landscape.cpp:4680
Landscape::SupplyVegHeight
double SupplyVegHeight(int a_polyref)
Definition: landscape.h:936
l_map_dump_event_y1
static CfgInt l_map_dump_event_y1("MAP_DUMP_EVENT_YA", CFG_CUSTOM, 2909)
Population_Manager::OpenTheMonthlyRipleysOutputProbe
bool OpenTheMonthlyRipleysOutputProbe()
Definition: PopulationManager.cpp:778
LE::SetCopyTreatment
void SetCopyTreatment(int a_treatment)
Definition: elements.cpp:486
Landscape::SupplyVegDigestabilityVector
double SupplyVegDigestabilityVector(unsigned int a_index)
Definition: landscape.h:914
RodenticidePredators_Population_Manager::~RodenticidePredators_Population_Manager
virtual ~RodenticidePredators_Population_Manager()
Definition: RodenticidePredators.cpp:60
VegElement::m_force_Weed
double m_force_Weed
Definition: elements.h:701
LE::m_cattle_grazing
int m_cattle_grazing
Definition: elements.h:517
TAnimal::SupplyFarmOwnerRef
unsigned SupplyFarmOwnerRef()
Definition: PopulationManager.cpp:1359
g_bug_percent_a
static double g_bug_percent_a[tov_Undefined]
Definition: elements.cpp:132
OrchardBand::DoDevelopment
virtual void DoDevelopment(void)
Definition: elements.cpp:2533
ttop_AcuteEffects
Definition: landscape.h:68
RodenticideManager::Diffuse
void Diffuse(int a_x, int a_y)
Move poisoned mice around to twin map.
Definition: Rodenticide.cpp:255
l_el_rv_cut_may
static CfgInt l_el_rv_cut_may("ELEM_RV_CUT_MAY", CFG_PRIVATE, 142)
NormalDistDouble
boost::random::normal_distribution< double > NormalDistDouble
Definition: BoostRandomGenerators.h:37
PopulationManagerList::m_populationlist
Population_Manager * m_populationlist[TOP_foobar]
Definition: PopulationManager.h:675
Carpark::Carpark
Carpark(void)
Definition: elements.cpp:2966
Population_Manager::RipleysOutputPrb12
FILE * RipleysOutputPrb12
Definition: PopulationManager.h:594
base_generator_type
boost::lagged_fibonacci19937 base_generator_type
Definition: BoostRandomGenerators.h:30
cfg_dumpvegjune
CfgBool cfg_dumpvegjune("G_VEGAREASJUNE_ON", CFG_CUSTOM, false)
Population_Manager::m_EasyPopRes
FILE * m_EasyPopRes
Definition: PopulationManager.h:529
Landscape::GrazeVegetation
void GrazeVegetation(int a_poly, double a_forage)
Removes grazing forage from a poly per m2.
Definition: landscape.h:670
LE::SetPollenNectarCurves
void SetPollenNectarCurves(PollenNectarDevelopmentCurve *a_pollencurnve, PollenNectarDevelopmentCurve *a_nectarcurve)
Set method for pollen and nectar curves.
Definition: elements.h:435
Landscape::SupplyFarmIntensityI
int SupplyFarmIntensityI(int a_polyindex)
Definition: Landscape.cpp:751
distribution_type2
boost::random::uniform_int_distribution distribution_type2
Definition: BoostRandomGenerators.h:32
ForestElement
Definition: elements.h:929
Landscape::SupplyMaleNewtPresent
bool SupplyMaleNewtPresent(int a_InPondIndex)
Determines if a male is present in a pond.
Definition: landscape.h:351
EL_BUG_PERCENT_G_B
#define EL_BUG_PERCENT_G_B
Definition: elements.cpp:63
Population_Manager::GeneticsResultsOutput
virtual void GeneticsResultsOutput(FILE *, unsigned)
Definition: PopulationManager.h:658
Landscape::SupplyRandomPondIndex
int SupplyRandomPondIndex()
Returns random pond index.
Definition: Landscape.cpp:2606
Landscape::le_signal_index
int le_signal_index
Definition: landscape.h:319
TOP_Vole
Definition: PopulationManager.h:61
TALMaSSObject::OnArrayBoundsError
void OnArrayBoundsError()
Used for debugging only, tests basic object properties.
Definition: PopulationManager.cpp:1427
VegElement::GetVegBiomass
virtual double GetVegBiomass(void)
Definition: elements.h:578
EL_BUG_PERCENT_WR_A
#define EL_BUG_PERCENT_WR_A
Definition: elements.cpp:56
GooseFieldListItem::geese
int geese
Definition: landscape.h:83
VegElement::ReduceVeg
virtual void ReduceVeg(double a_reduc)
Definition: elements.cpp:2086
Garden
Definition: elements.h:1040
Landscape::SupplyLEHigh
bool SupplyLEHigh(int a_x, int a_y)
Tests whether the polygon at a_x,a_y is designated as high.
Definition: landscape.h:455
random
int random(int a_range)
Definition: ALMaSS_CmdLine.cpp:142
g_PredatorManager
TPredator_Population_Manager * g_PredatorManager
Definition: ALMaSS_CmdLine.cpp:124
RodenticideManager::DoImmigration
void DoImmigration(void)
Definition: Rodenticide.cpp:240
CreateLandscape
void CreateLandscape()
Definition: ALMaSS_CmdLine.cpp:234
l_el_o_cut_green
CfgFloat l_el_o_cut_green("ELEM_RV_CUT_GREEN", CFG_PRIVATE, 1.5)
RodenticideManager::m_immigrationRate
double m_immigrationRate
poisoned mice immigration rate
Definition: Rodenticide.h:90
GooseFieldListItem::vegtypechr
std::string vegtypechr
Definition: landscape.h:93
Landscape::SupplyCentroidX
int SupplyCentroidX(int a_polyref)
Definition: landscape.h:470
Population_Manager::RipleysOutputPrb1
FILE * RipleysOutputPrb1
Definition: PopulationManager.h:583
cfg_rodenticide_BLtown_AnnFreq
CfgFloat cfg_rodenticide_BLtown_AnnFreq("RODENTICIDE_BLTYPE_TOWN_ANNFREQ", CFG_CUSTOM, 0.05)
LE::SetLastTreatment
void SetLastTreatment(int a_treatment)
Definition: elements.cpp:490
VegElement::Set_harvested
void Set_harvested()
Definition: elements.h:644
Population_Manager::TheGeneticProbe
virtual void TheGeneticProbe(unsigned, int, unsigned &)
Definition: PopulationManager.h:656
Population_Manager::SimH
int SimH
Definition: PopulationManager.h:511
Landscape::SupplyIsCereal2
bool SupplyIsCereal2(TTypesOfVegetation a_vege_type)
Definition: Landscape.cpp:532
GooseFieldListItem::geesespTimed
int geesespTimed[gs_foobar]
Definition: landscape.h:86
Landscape::CalulateFieldOpennessAllCells
int CalulateFieldOpennessAllCells(int a_pref)
Provides a measure of the shortest distance in 360 degree, e-g- looking NE % SW before tall obstacles...
Definition: Landscape.cpp:401
Population_Manager::BreedingPairsOutput
virtual void BreedingPairsOutput(int)
Definition: PopulationManager.h:641
LE::m_owner_file
int m_owner_file
Definition: elements.h:471
LE::GrazeVegetation
virtual void GrazeVegetation(double, bool)
Definition: elements.h:231
LE::m_ddegs
double m_ddegs
Definition: elements.h:522
cfg_silage_prop
CfgFloat cfg_silage_prop("CROPS_SILAGE_PROPORTION", CFG_CUSTOM, 1.0)
Landscape::SupplyPondPesticide
double SupplyPondPesticide(int a_poly_index)
Get the pesticide concentration per liter from a pond (must be a pond index on calling)
Definition: landscape.h:761
rectangle::m_x1
unsigned m_x1
Definition: PopulationManager.h:100
EL_BUG_PERCENT_G_A
#define EL_BUG_PERCENT_G_A
Definition: elements.cpp:62
cfg_MGPatchyChance
static CfgFloat cfg_MGPatchyChance("MOWNGRASSPATCHYCHANCE", CFG_CUSTOM, 0.5)
The chance that a beetlebank being created is patchy or not.
Landscape::SupplyPesticideS
double SupplyPesticideS(int a_x, int a_y, PlantProtectionProducts a_ppp)
Gets soil pesticide for a location.
Definition: Landscape.cpp:616
Landscape::hb_ResetColorBits
void hb_ResetColorBits(void)
PredProbeReportDay0
void PredProbeReportDay0(int a_time)
RP_Territory::m_x
int m_x
Definition: RodenticidePredators.h:44
g_NoOfPredProbes
unsigned g_NoOfPredProbes
Definition: ALMaSS_CmdLine.cpp:135
VegElement::Set_biomass_at_harvest
void Set_biomass_at_harvest(double a_biomass, int index)
Definition: elements.h:642
VegElement::SetVegParameters
virtual void SetVegParameters(double a_veg_height, double a_LAtotal, double a_LAgreen, double a_WeedBiomass)
Definition: elements.h:619
Population_Manager::m_ListNameLength
unsigned m_ListNameLength
Definition: PopulationManager.h:538
LE::m_centroidy
int m_centroidy
Definition: elements.h:455
FishFarm::FishFarm
FishFarm(void)
Definition: elements.cpp:2771
Population_Manager::RipleysOutputPrb5
FILE * RipleysOutputPrb5
Definition: PopulationManager.h:587
Landscape::SupplyPesticideCell
int SupplyPesticideCell(int a_polyref)
Definition: landscape.h:1468
OrchardBand
Definition: elements.h:1004
GetProbeInput_ini
void GetProbeInput_ini()
Definition: ALMaSS_CmdLine.cpp:334
UrbanNoVeg
Definition: elements.h:1088
RoeDeerInfo::m_Age
int m_Age
Definition: PopulationManager.h:190
TALMaSSObject::GetCurrentStateNo
int GetCurrentStateNo()
Returns the current state number.
Definition: PopulationManager.h:121
Population_Manager::SortStateR
void SortStateR(unsigned Type)
Definition: PopulationManager.cpp:1008
TALMaSSObject::BeginStep
virtual void BeginStep(void)
BeingStep behaviour - must be implemented in descendent classes.
Definition: PopulationManager.h:137
Population_Manager::BeginningOfMonth
bool BeginningOfMonth()
Definition: PopulationManager.cpp:1102
direction_w
Definition: landscape.h:60
Landscape::SetPolymapping
void SetPolymapping(int a_index, int a_val)
Definition: landscape.h:182
LE::SetVegBiomass
virtual void SetVegBiomass(int)
Definition: elements.h:163
Landscape::SupplyVegPhase
int SupplyVegPhase(int a_poly)
Definition: landscape.h:179
VegElement::SetVegPatchy
virtual void SetVegPatchy(bool p)
Definition: elements.h:585
version_revision
static const int version_revision
Definition: Landscape.cpp:51
LargeRoad::GetTrafficLoad
virtual double GetTrafficLoad(void)
Definition: elements.cpp:2939
RodenticidePredators_Population_Manager::PreCachePoly
void PreCachePoly(int a_poly)
Definition: RodenticidePredators.h:60
VegElement::m_curve_num
int m_curve_num
Definition: elements.h:677
PermPastureLowYield::PermPastureLowYield
PermPastureLowYield(void)
Definition: elements.cpp:2218
g_ALandscape
Landscape * g_ALandscape
Definition: ALMaSS_CmdLine.cpp:121
Vildtager::Vildtager
Vildtager(void)
Definition: elements.cpp:2659
Population_Manager::SortX
void SortX(unsigned Type)
Definition: PopulationManager.cpp:979
LE::GetGooseSpNosToday
int GetGooseSpNosToday(GooseSpecies a_goose)
For goose model functionality, returns the number of geese per species yesterday.
Definition: elements.cpp:592
RodenticidePredators_Population_Manager::EvaluateHabitat
double EvaluateHabitat(int a_x, int a_y, int a_range)
Gets the total habitat score for a square UL x,y diameter of range.
Definition: RodenticidePredators.cpp:288
RodenticidePredators_Population_Manager::m_habquals
double m_habquals[tole_Foobar]
Definition: RodenticidePredators.h:76
LE::DoCopy
void DoCopy(const LE *a_Le)
a copy function to be used because a copy constuctor won't work
Definition: elements.cpp:372
Landscape::SupplyWindPeriod
double SupplyWindPeriod(long a_date, int a_period)
Definition: landscape.h:1405
Marsh
Definition: elements.h:843
Landscape::RecordGooseSpNumbersTimed
void RecordGooseSpNumbersTimed(int a_poly, int a_number, GooseSpecies a_goose)
This records the number of geese of each species on the polygon the day before at a predefined time....
Definition: Landscape.cpp:3363
Urban
Definition: elements.h:1070
cfg_pesticidemapstartyear
CfgInt cfg_pesticidemapstartyear("PEST_MAP_STARTYEAR", CFG_CUSTOM, 0)
The first simulation year the pesticide is mapped.
TAnimal::CheckManagement
void CheckManagement(void)
Definition: PopulationManager.cpp:1404
RodenticideManager::m_gridsize
int m_gridsize
rodenticide grid size - also affect diffusion rate
Definition: Rodenticide.h:86
VegElement::RecalculateBugsNStuff
virtual void RecalculateBugsNStuff(void)
This method is responsible for.
Definition: elements.cpp:1678
Landscape::SupplyValidX
int SupplyValidX(int a_polyref)
Definition: landscape.h:1474
probe_data::m_NoEleTypes
unsigned m_NoEleTypes
Definition: PopulationManager.h:294
CompareState
Function to compare to TAnimal's Current behavioural state.
Definition: PopulationManager.cpp:171
Landscape::SupplyFarmAnimalCensus
int SupplyFarmAnimalCensus(int a_farm_ref, int a_LifeStage)
Definition: Landscape.cpp:745
ActivePit::ActivePit
ActivePit(void)
Definition: elements.cpp:2928
Landscape::BorderTest
bool BorderTest(int a_fieldpoly, int a_borderpoly, int a_x, int a_y)
Definition: Landscape.cpp:2452
TAnimal::Supply_m_Location_y
int Supply_m_Location_y()
Definition: PopulationManager.h:216
RoadsideSlope::DoDevelopment
virtual void DoDevelopment(void)
Definition: elements.cpp:2339
VegElement::m_digestability
double m_digestability
Definition: elements.h:697
NaturalGrassWet::DoDevelopment
virtual void DoDevelopment()
Definition: elements.cpp:2594
cfg_AOROutput_used
CfgBool cfg_AOROutput_used("G_AOROUTPUT_USED", CFG_CUSTOM, false)
probe_data::m_NoFarms
unsigned m_NoFarms
Definition: PopulationManager.h:296
MovementMap::GetMapValue
int GetMapValue(unsigned x, unsigned y)
Definition: MovementMap.cpp:409
RodenticidePredators_Population_Manager::HowManyTerritoriesHere
int HowManyTerritoriesHere(int a_x, int a_y)
Definition: RodenticidePredators.cpp:410
RoadsideVerge::RoadsideVerge
RoadsideVerge(void)
Definition: elements.cpp:2276
Landscape::m_GooseIntakeRateVSVegetationHeight_PF
Polynomial2CurveClass * m_GooseIntakeRateVSVegetationHeight_PF
Curve relatning goose intake rates in KJ/min to vegetation height.
Definition: landscape.h:160
cfg_PondLarvalFoodBiomassConst
CfgFloat cfg_PondLarvalFoodBiomassConst("POND_LARVALFOODBIOMASSCONST", CFG_CUSTOM, 215.0)
A constant relating the proportion of food units per m2. The value is calibrated to estimates of newt...
RodenticideManager::GetBaitStartDate
int GetBaitStartDate(TTypesBaitLocation)
Determines when the bait will be placed within a season.
Definition: Rodenticide.cpp:327
LE::m_gooseNosTimed
int m_gooseNosTimed[366]
The number of geese at a predefined time per day.
Definition: elements.h:495
Population_Manager::PartitionLiveDead
unsigned PartitionLiveDead(unsigned Type)
Definition: PopulationManager.cpp:1015
Landscape::hb_border_pixels
int hb_border_pixels
Definition: landscape.h:276
Scrub
Definition: elements.h:833
Landscape::SupplyRoadWidth
int SupplyRoadWidth(int, int)
Definition: landscape.h:811
l_map_chameleon_replace_num
static CfgInt l_map_chameleon_replace_num("MAP_CHAMELEON_REPLACE_NUM", CFG_CUSTOM, 58)
VegElement::SetCropDataAll
virtual void SetCropDataAll(double, double, double, double, TTypesOfVegetation, double, double, int, double, bool, double)
Definition: elements.cpp:2191
Population_Manager::Catastrophe
virtual void Catastrophe(int)
Definition: PopulationManager.h:440
LE::m_owner
Farm * m_owner
Definition: elements.h:469
Scrub::Scrub
Scrub(void)
Definition: elements.cpp:2384
LE::m_vegddegs
double m_vegddegs
Definition: elements.h:520
l_el_bug_percentage_file
static CfgStr l_el_bug_percentage_file("ELEM_BUG_PERCENTAGE_FILE", CFG_CUSTOM,"bugpercents.txt")
LE::m_tried_to_do
int m_tried_to_do
Definition: elements.h:85
MovementMap16::maxx
uint32 maxx
Definition: MovementMap.h:78
Garden::Garden
Garden(void)
Definition: elements.cpp:2731
cfg_rodenticide_BLchristmastrees_AnnFreq
CfgFloat cfg_rodenticide_BLchristmastrees_AnnFreq("RODENTICIDE_BLTYPE_CTREES_ANNFREQ", CFG_CUSTOM, 0.05 *(5/9))
MovementMap16::SetMapValue
void SetMapValue(unsigned x, unsigned y, unsigned value)
Definition: MovementMap.cpp:456
DeciduousForest
Definition: elements.h:940
Landscape::SupplyLastSownVegVector
TTypesOfVegetation SupplyLastSownVegVector(unsigned int a_index)
Definition: landscape.h:1063
LE::SetBirdSeed
void SetBirdSeed(double a_forage)
Definition: elements.h:201
Landscape::RecordGooseRoostDist
void RecordGooseRoostDist(int a_polyref, int a_dist, GooseSpecies a_goose)
Records the distance to the closest roost of goose species.
Definition: Landscape.cpp:3373
Heath
Definition: elements.h:855
CropActualValues::harvested
bool harvested
Definition: elements.h:559
Population_Manager::RipleysOutputPrb2
FILE * RipleysOutputPrb2
Definition: PopulationManager.h:584
GooseFieldListItem::digestability
double digestability
Definition: landscape.h:95
Landscape::SupplyDayDegrees
double SupplyDayDegrees(int a_polyref)
Definition: landscape.h:1326
cfg_PondLarvalFoodR
CfgFloat cfg_PondLarvalFoodR("POND_LARVALFOODFOODR", CFG_CUSTOM, 0.15)
The instanteous rate of growth for larval food (r from logistic equation)
RodenticidePredators_Population_Manager::m_qual_grid
double * m_qual_grid
Definition: RodenticidePredators.h:74
Landscape::DegreesDump
void DegreesDump()
Prints the sum of day degrees. See #FarmManager::daydegrees.
Definition: Landscape.cpp:1687
l_map_print_git_version_info
CfgBool l_map_print_git_version_info("MAP_PRINT_GIT_VERSION_INFO", CFG_CUSTOM, false)
Should git version info be printed to file and console?
Population_Manager::m_NoProbes
int m_NoProbes
Definition: PopulationManager.h:525
cfg_productapplicendyear
CfgInt cfg_productapplicendyear("PEST_PROCTAPPLICENDYEAR", CFG_CUSTOM,-1)
Landscape::NewElement
LE * NewElement(TTypesOfLandscapeElement a_type)
Definition: Landscape.cpp:3688
LE::GetCountryDesignation
int GetCountryDesignation(void)
Definition: elements.h:216
Population_Manager::SupplyListSize
unsigned SupplyListSize(unsigned listindex)
Definition: PopulationManager.h:471
Copse::Copse
Copse(void)
Definition: elements.cpp:2680
Landscape::SupplyRodenticidePredatoryManager
RodenticidePredators_Population_Manager * SupplyRodenticidePredatoryManager()
Definition: landscape.h:432
BeginningOfMonth
bool BeginningOfMonth()
VegElement::m_veg_density
int m_veg_density
Definition: elements.h:693
Landscape::PolysRemoveInvalid
bool PolysRemoveInvalid(void)
Definition: Landscape.cpp:1772
GooseFieldListItem::openness
double openness
Definition: landscape.h:88
Landscape::SupplyIsGrass2
bool SupplyIsGrass2(TTypesOfVegetation a_vege_type)
Definition: Landscape.cpp:503
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
StoneWall
Definition: elements.h:1136
RoeDeerInfo::m_OldRange_y
unsigned m_OldRange_y
Definition: PopulationManager.h:194
g_AlmassMathFuncs
ALMaSS_MathFuncs g_AlmassMathFuncs
Definition: ALMaSS_CmdLine.cpp:137
LE::SetGrowthPhase
virtual void SetGrowthPhase(int)
Definition: elements.h:170
EL_BUG_PERCENT_Edges_C
#define EL_BUG_PERCENT_Edges_C
Definition: elements.cpp:70
Landscape::m_LargestPolyNumUsed
int m_LargestPolyNumUsed
Definition: landscape.h:194
Landscape::SupplyLEReset
void SupplyLEReset(void)
Definition: Landscape.cpp:3551
Landscape::AxisLoop
void AxisLoop(int a_poly, int *a_x, int *a_y, int a_axis)
Definition: Landscape.cpp:2938
RodenticideManager::m_diffusionRate
double m_diffusionRate
poisoned mice diffusion rate
Definition: Rodenticide.h:88
CropActualValues::no_fi_app
int no_fi_app
Definition: elements.h:563
cfg_RodenticidePredatoryTargetQual
CfgInt cfg_RodenticidePredatoryTargetQual("RODPREDATOR_TARGETQUAL", CFG_CUSTOM, 100)
Territory minimum quality.
WoodyEnergyCrop
Definition: elements.h:986
IDMapScaled::ClearMapValue
void ClearMapValue(unsigned a_x, unsigned a_y)
Definition: MovementMap.h:148
cfg_P1C
CfgFloat cfg_P1C
VegElement::m_total_biomass
double m_total_biomass
Definition: elements.h:687
Population_Manager::RipleysOutputPrb7
FILE * RipleysOutputPrb7
Definition: PopulationManager.h:589
SimpleStatistics::add_variable
void add_variable(double x)
Add a value.
Definition: PopulationManager.h:342
Population_Manager::~Population_Manager
virtual ~Population_Manager(void)
Definition: PopulationManager.cpp:266
Landscape::DumpMapGraphics
void DumpMapGraphics(const char *a_filename)
Definition: Landscape.cpp:3599
Landscape::CentroidSpiralOut
void CentroidSpiralOut(int a_polyref, int &a_x, int &a_y)
Definition: Landscape.cpp:3073
cfg_dumpvegjanfile
CfgStr cfg_dumpvegjanfile
Landscape::SupplyFarmOwnerIndex
int SupplyFarmOwnerIndex(int a_x, int a_y)
Definition: landscape.h:1165
l_map_dump_veg_x
static CfgInt l_map_dump_veg_x("MAP_DUMP_VEG_X", CFG_CUSTOM, 100)
LE::GetUnsprayedMarginPolyRef
int GetUnsprayedMarginPolyRef(void)
Definition: elements.h:319
g_time
int g_time
Definition: ALMaSS_CmdLine.cpp:131
cfg_randompondquality
CfgBool cfg_randompondquality("POND_RANDOMQUALITY", CFG_CUSTOM, false)
Controls whether random pond quality is used.
cfg_dumpvegjanfile
CfgStr cfg_dumpvegjanfile("G_VEGAREASJAN_FILENAME", CFG_CUSTOM, "DUMPVEG_JAN.TXT")
cfg_BeetleBankWidth
static CfgInt cfg_BeetleBankWidth("BBANK_WIDTH", CFG_CUSTOM, 4)
VegElement::GetDigestability
virtual double GetDigestability(void)
Definition: elements.h:573
MovementMap::Init
void Init(int spref)
Definition: MovementMap.cpp:69
NaturalGrassDry
Definition: elements.h:867
ttop_MultipleEffects
Definition: landscape.h:74
Landscape::UpdateOsmiaNesting
void UpdateOsmiaNesting()
Tesll all LE objects to update their osmia nest status.
Definition: landscape.h:856
VegElement::IsGrass
virtual bool IsGrass()
Definition: elements.cpp:1610
FieldBoundary
Definition: elements.h:888
LE::m_nectarcurve
PollenNectarDevelopmentCurve * m_nectarcurve
pointer to the correct nectar curve set
Definition: elements.h:548
Population_Manager::StepFinished
virtual bool StepFinished()
Overrides the population manager StepFinished - there is no chance that hunters do not finish a step ...
Definition: PopulationManager.cpp:498
YoungForest
Definition: elements.h:980
g_nectarpollen
class PollenNectarDevelopmentData * g_nectarpollen
Definition: Landscape.cpp:241
VegElement::m_growth_scaler
double m_growth_scaler
Definition: elements.h:680
RodenticideManager::GetMapTwin
double GetMapTwin(int a_x, int a_y)
Get poisoned mice at x,y on twin map.
Definition: Rodenticide.h:131
TAnimal::CorrectWrapRound
void CorrectWrapRound()
Corrects wrap around co-ordinate problems.
Definition: PopulationManager.h:231
l_map_dump_gfx_file
static CfgStr l_map_dump_gfx_file("MAP_DUMP_GFX_FILE", CFG_CUSTOM, "dump.ppm")
Population_Manager::ProbesSet
bool ProbesSet
Definition: PopulationManager.h:514
IDMapScaled::SetMapValue
void SetMapValue(unsigned a_x, unsigned a_y, TAnimal *p)
Definition: MovementMap.h:142
Population_Manager::DoAlmostLast
virtual void DoAlmostLast()
Definition: PopulationManager.cpp:522
IDMapScaled::IDMapScaled
IDMapScaled(Landscape *L, int a_gridsize)
Definition: MovementMap.cpp:497
RV_CUT_GREEN
#define RV_CUT_GREEN
Definition: elements.cpp:217
LE::GetSoilTypeR
int GetSoilTypeR()
Definition: elements.h:262
Landscape::SupplyBirdMaizeForage
double SupplyBirdMaizeForage(int a_x, int a_y)
Returns the maize forage resource as seen from a goose standpoint at an x,y location.
Definition: landscape.h:640
LE::SetArea
void SetArea(double a_area)
Definition: elements.h:229
PermPastureTussocky::PermPastureTussocky
PermPastureTussocky(void)
Definition: elements.cpp:2227
LE::GetOwner
Farm * GetOwner(void)
Definition: elements.h:195
LE::SetGooseRoostDist
void SetGooseRoostDist(int a_dist, GooseSpecies a_goose)
Definition: elements.h:364
LE::GetGooseGrazingForage
double GetGooseGrazingForage(GooseSpecies a_goose)
Definition: elements.h:197
Landscape::SupplyRainPeriod
double SupplyRainPeriod(long a_date, int a_period)
Definition: landscape.h:1351
VegElement::ZeroVeg
virtual void ZeroVeg(void)
Definition: elements.cpp:1989
BaitLocation::GetBLtype
TTypesBaitLocation GetBLtype(void)
Get bait location type.
Definition: Rodenticide.h:50
Population_Manager::CloseTheReallyBigOutputProbe
virtual void CloseTheReallyBigOutputProbe()
Definition: PopulationManager.cpp:904
RodenticideManager::SetMap
void SetMap(int a_x, int a_y, double a_p)
Set poisoned mice at x,y.
Definition: Rodenticide.h:133
TALMaSSObject::ReinitialiseObject
virtual void ReinitialiseObject()
Used to re-use an object - must be implemented in descendent classes.
Definition: PopulationManager.h:143
LE::ZeroVeg
virtual void ZeroVeg(void)
Definition: elements.h:174
Population_Manager::Shuffle
void Shuffle(unsigned Type)
Definition: PopulationManager.cpp:1055
Landscape::GrazeVegetationTotal
void GrazeVegetationTotal(int a_poly, double a_forage)
Removes grazing forage from a poly and divides this out per m2.
Definition: landscape.h:676
VegElement::GetWeedBiomass
virtual double GetWeedBiomass(void)
Definition: elements.h:581
cfg_G6E
CfgBool cfg_G6E
probe_data::m_Time
int m_Time
Definition: PopulationManager.h:287
LE::SetHerbicideDelay
void SetHerbicideDelay(int a_decaytime_days)
Definition: elements.h:312
Landscape::BuildingDesignationCalc
void BuildingDesignationCalc()
used to calculate whether a building is rural or town - for rodenticide use
Definition: Landscape.cpp:3287
LE_TypeClass::BackTranslateVegTypes
int BackTranslateVegTypes(TTypesOfVegetation VegReference)
Definition: elements.cpp:3345
Landscape::m_minmaxextent
int m_minmaxextent
Definition: landscape.h:142
Landscape::RecordGooseSpNumbers
void RecordGooseSpNumbers(int a_poly, int a_number, GooseSpecies a_goose)
This records the number of geese of each species on the polygon the day before. To prevent lots of un...
Definition: Landscape.cpp:3352
cfg_fixed_random_sequence
CfgBool cfg_fixed_random_sequence("G_FIXEDRANDOMSEQUENCE", CFG_CUSTOM, false)
TOP_Osmia
Definition: PopulationManager.h:70
MovementMap::m_ALandscape
Landscape * m_ALandscape
Definition: MovementMap.h:65
Landscape::SupplyYear
int SupplyYear(void)
Definition: landscape.h:1611
g_FarmIntensivenessH
double g_FarmIntensivenessH
PermPastureLowYield
Definition: elements.h:747
Landscape::SupplyTempPeriod
double SupplyTempPeriod(long a_date, int a_period)
Definition: landscape.h:1410
l_map_dump_event_enable
static CfgBool l_map_dump_event_enable("MAP_DUMP_EVENT_ENABLE", CFG_CUSTOM, false)
RV_CUT_MAY
#define RV_CUT_MAY
Definition: elements.cpp:194
RP_Territory::m_exposure
double m_exposure
Definition: RodenticidePredators.h:47
LE::GetPollen
virtual PollenNectarQuality GetPollen()
Definition: elements.h:430
IntArray100::n
int n[100]
Definition: PopulationManager.h:89
Landscape::hb_map
int * hb_map
Definition: landscape.h:268
TALMaSSObject::m_CurrentStateNo
int m_CurrentStateNo
The basic state number for all objects - '-1' indicates death.
Definition: PopulationManager.h:116
RodenticideManager::SetMapTwinMult
void SetMapTwinMult(int a_x, int a_y, double a_p)
Multiply poisoned mice at x,y on twin map by constant.
Definition: Rodenticide.h:137
GooseFieldList
std::vector< GooseFieldListItem > GooseFieldList
A list of GooseFieldListItem s.
Definition: landscape.h:103
LE::m_PollenM2
double m_PollenM2
Definition: elements.h:543
WaterBufferZone::DoDevelopment
virtual void DoDevelopment(void)
Definition: elements.cpp:2354
GreenElement
Definition: elements.h:825
cfg_RipleysOutput_filename
static CfgStr cfg_RipleysOutput_filename("G_RIPLEYSOUTPUT_FILENAME", CFG_CUSTOM, "RipleysOutput.txt")
LE::GetLATotal
virtual double GetLATotal(void)
Definition: elements.h:151
EL_GROWTH_DATE_MAGIC
#define EL_GROWTH_DATE_MAGIC
Definition: elements.cpp:164
cfg_rodenticide_BLgrass_AnnFreq
CfgFloat cfg_rodenticide_BLgrass_AnnFreq("RODENTICIDE_BLTYPE_GRASS_ANNFREQ", CFG_CUSTOM, 0.05 *(5/9))
version_date
static const char * version_date
Definition: Landscape.cpp:52
LE::GetBorder
LE * GetBorder(void)
Definition: elements.h:317
Landscape::m_x_add
int m_x_add[8]
Definition: landscape.h:266
LE::GetBirdMaize
double GetBirdMaize(void)
Definition: elements.h:204
Landscape::SupplyElementTypeCC
TTypesOfLandscapeElement SupplyElementTypeCC(int a_x, int a_y)
Definition: landscape.h:1139
Landscape::CorrectHeight
int CorrectHeight(int y)
Definition: landscape.h:1573
Landscape::SupplyPolygonAreaVector
double SupplyPolygonAreaVector(int a_polyref)
Returns the area of a polygon using the vector index as a reference.
Definition: landscape.h:1200
Landscape::hb_Add
void hb_Add(void)
Landscape::m_ThePopManager
Population_Manager * m_ThePopManager
a pointer to the current main population manager
Definition: landscape.h:155
Landscape::EventDumpPesticides
void EventDumpPesticides(int x1, int y1)
Definition: Landscape.cpp:1720
RoadsideVerge::m_DateCut
long m_DateCut
Definition: elements.h:799
VegElement::m_oldnewgrowth
double m_oldnewgrowth[32]
Definition: elements.h:698
LE::GetTotalNectar
virtual double GetTotalNectar()
Definition: elements.h:433
Landscape::SupplyLastTreatment
int SupplyLastTreatment(int a_polyref, int *a_index)
Definition: landscape.h:1331
RodenticideManager::m_land
Landscape * m_land
Landscape pointer.
Definition: Rodenticide.h:82
LE::m_sprayedtoday
bool m_sprayedtoday
flag to indicate an overspray situation
Definition: elements.h:475
Marsh::Marsh
Marsh(void)
Definition: elements.cpp:2390
l_map_dump_event_x1
static CfgInt l_map_dump_event_x1("MAP_DUMP_EVENT_XA", CFG_CUSTOM, 4287)
CompareStateR
Function to compare to TAnimal's m_CurrentStateNo.
Definition: PopulationManager.cpp:183
TAnimal::Step
virtual void Step(void)
Step behaviour - must be implemented in descendent classes.
Definition: PopulationManager.h:252
Landscape::hb_min_y
int hb_min_y
Definition: landscape.h:273
Landscape::SupplyPolyRefIndex
int SupplyPolyRefIndex(int a_x, int a_y)
Definition: landscape.h:1493
TOP_Skylark
Definition: PopulationManager.h:60
Landscape::SupplyLargestPolyNumUsed
int SupplyLargestPolyNumUsed()
Definition: landscape.h:355
RodenticidePredators_Population_Manager::IsGridPositionValid
bool IsGridPositionValid(int &x, int &y, int range)
Tests whether a square has any occupied cells.
Definition: RodenticidePredators.cpp:259
RodenticidePredators_Population_Manager::CreateTerritories
void CreateTerritories()
Populates the landscape with predatory territories.
Definition: RodenticidePredators.cpp:194
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
g_letype
class LE_TypeClass * g_letype
Definition: elements.cpp:277
Landscape::hb_Cleanup
void hb_Cleanup(void)
Population_Manager::OpenTheBreedingSuccessProbe
virtual bool OpenTheBreedingSuccessProbe()
Definition: PopulationManager.h:638
Landscape::PolysValidate
void PolysValidate(bool a_exit_on_invalid)
Definition: Landscape.cpp:1746
cfg_rodenticide_dumpmapstartyear
CfgInt cfg_rodenticide_dumpmapstartyear("RODENTICIDE_DUMPMAPSTARTYEAR", CFG_CUSTOM, 99999)
l_el_growth_daydeg_magic
static CfgInt l_el_growth_daydeg_magic("ELEM_GROWTH_DAYDEG_MAGIC", CFG_PRIVATE, 100)
VegElement::GrazeVegetation
virtual void GrazeVegetation(double a_grams, bool a_force)
Definition: elements.cpp:2061
Landscape::SupplyLENext
int SupplyLENext(void)
Definition: Landscape.cpp:3555
Landscape::SupplyTotalPollen
double SupplyTotalPollen(int a_x, int a_y)
Definition: landscape.h:380
version_minor
static const int version_minor
Definition: Landscape.cpp:50
GooseFieldListItem::grain
double grain
Definition: landscape.h:89
CropActualValues::missed_herb_app
int missed_herb_app
Definition: elements.h:562
IDMap< TAnimal * >::maxy
int maxy
Definition: MovementMap.h:101
g_torun
int g_torun
Definition: ALMaSS_CmdLine.cpp:126
Population_Manager::OpenTheAOROutputProbe
void OpenTheAOROutputProbe(string a_AORFilename)
Definition: PopulationManager.cpp:771
LE::Insecticide
virtual void Insecticide(double)
Definition: elements.h:158
Population_Manager::m_ListNames
const char * m_ListNames[32]
Definition: PopulationManager.h:537
MovementMap16::m_ALandscape
Landscape * m_ALandscape
Definition: MovementMap.h:86
ttop_GeneticDemo
Definition: landscape.h:73
HeritageSite::HeritageSite
HeritageSite(void)
Definition: elements.cpp:2970
Landscape::FindValidXY
bool FindValidXY(int a_field, int &a_x, int &a_y)
Definition: Landscape.cpp:2688
LE::m_rot_index
int m_rot_index
Definition: elements.h:473
LE::GetVegDDegs
double GetVegDDegs()
Get the total of day degrees for the crop/veg on this element.
Definition: elements.h:346
Landscape::Warn
void Warn(std::string a_msg1, std::string a_msg2)
Definition: landscape.h:1579
EL_BUG_PERCENT_B
#define EL_BUG_PERCENT_B
Definition: elements.cpp:33
March
const int March
Definition: landscape.h:38
LE::ReleaseOsmiaNest
void ReleaseOsmiaNest()
Test to see if a nest is found.
Definition: elements.h:401
LE::SetMConstants
void SetMConstants(int a, int c)
Definition: elements.h:344
Canal::Canal
Canal(void)
Definition: elements.cpp:2868
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
EL_BUG_PERCENT_WW_C
#define EL_BUG_PERCENT_WW_C
Definition: elements.cpp:46
cfg_G6D
CfgFloat cfg_G6D
Fence
Definition: elements.h:1171
Landscape::m_elems
vector< LE * > m_elems
List of all landscape elements. The index is a sequential number, to get the polynum look this number...
Definition: landscape.h:122
Population_Manager::SetNoProbes
void SetNoProbes(int a_pn)
Definition: PopulationManager.h:431
Population_Manager::OpenTheBreedingPairsProbe
virtual bool OpenTheBreedingPairsProbe()
Definition: PopulationManager.h:635
RoeDeerInfo::m_Range_x
unsigned m_Range_x
Definition: PopulationManager.h:191
GooseFieldListItem::vegphase
int vegphase
Definition: landscape.h:96
TAnimal::m_Location_x
int m_Location_x
Definition: PopulationManager.h:225
LE::GetMaxY
int GetMaxY(void)
Definition: elements.h:334
RodenticideManager::DoDiffuse
void DoDiffuse(void)
Definition: Rodenticide.h:114
cfg_B6C
CfgFloat cfg_B6C
Landscape::SupplyMagicMapP
int * SupplyMagicMapP(int a_x, int a_y)
Definition: landscape.h:1509
Coast::Coast
Coast(void)
Definition: elements.cpp:2881
Landscape::StepOneValid
bool StepOneValid(int a_polyindex, int a_x, int a_y, int step)
Definition: Landscape.cpp:2429
VegElement::m_force_growth
bool m_force_growth
Definition: elements.h:705
LE::m_ptrace
int m_ptrace[256]
Definition: elements.h:441
Track::Track
Track(void)
Definition: elements.cpp:2954
l_el_veg_heightscale
static CfgInt l_el_veg_heightscale("ELEM_VEG_HEIGHTSCALE", CFG_PRIVATE, 16)
Population_Manager::LOG
void LOG(const char *fname)
Definition: PopulationManager.cpp:294
TTypesOfPesticide
TTypesOfPesticide
Definition: landscape.h:65
cfg_rodenticide_dumpmapday
CfgInt cfg_rodenticide_dumpmapday("RODENTICIDE_DUMPMAPDAY", CFG_CUSTOM, 180)
RodenticidePredators_Population_Manager::SupplyTerritories
vector< RP_Territory > * SupplyTerritories()
Definition: RodenticidePredators.h:64
g_rand_uni
boost::variate_generator< base_generator_type &, boost::uniform_real<> > g_rand_uni
LE::GetPigGrazing
bool GetPigGrazing(void)
Definition: elements.h:184
cfg_productapplicstartyear
CfgInt cfg_productapplicstartyear("PEST_PROCTAPPLICSTARTYEAR", CFG_CUSTOM, 9999999)
cfg_herbi_app_prop
CfgFloat cfg_herbi_app_prop("CROPS_HERBICIDE_APPLIC_PROPORTION", CFG_CUSTOM, 1.0)
Landscape::m_height10
int m_height10
Definition: landscape.h:141
cfg_ReallyBigOutput_day3
static CfgInt cfg_ReallyBigOutput_day3("G_REALLYBIGOUTPUT_DAY_THREE", CFG_CUSTOM, 182)
LE::m_vege_danger_store
int m_vege_danger_store
Definition: elements.h:456
Population_Manager::TheAOROutputProbe
virtual void TheAOROutputProbe()
Definition: PopulationManager.cpp:924
Landscape::SupplyDaylength
int SupplyDaylength(void)
Definition: landscape.h:1530
Landscape::m_NeedOpennessCalculation
bool m_NeedOpennessCalculation
a flag to ensure openness calculation on object construction
Definition: landscape.h:148
Landscape::SupplyPolyRef
int SupplyPolyRef(int a_x, int a_y)
Definition: landscape.h:1488
cfg_goose_GrainDecayRateSpring
CfgFloat cfg_goose_GrainDecayRateSpring
VegElement::Add_missed_fi_app
void Add_missed_fi_app()
Definition: elements.h:658
cfg_BeetleBankMaxY
CfgInt cfg_BeetleBankMaxY("BBANK_MAXY", CFG_CUSTOM, 100000)
LE::HasTramlines
bool HasTramlines(void)
Definition: elements.h:185
Landscape::EventDump
void EventDump(int x, int y, int x2, int y2)
Definition: Landscape.cpp:1697
cfg_OrchardSprayDay2
static CfgInt cfg_OrchardSprayDay2("TOX_ORCHARDSPRAYDAYTWO", CFG_CUSTOM, 200000)
VegElement::ToggleCattleGrazing
virtual void ToggleCattleGrazing(void)
Definition: elements.h:604
EL_BUG_PERCENT_WR_B
#define EL_BUG_PERCENT_WR_B
Definition: elements.cpp:57
Landscape::SupplyFarmIntensity
int SupplyFarmIntensity(int a_x, int a_y)
Definition: Landscape.cpp:756
TALMaSSObject::GetStepDone
bool GetStepDone()
Returns the step done indicator flag.
Definition: PopulationManager.h:129
BaitLocation::SetstartDay
void SetstartDay(int a_startDay)
Set start day.
Definition: Rodenticide.h:58
g_rand_uni
boost::variate_generator< base_generator_type &, boost::uniform_real<> > g_rand_uni
LE::SetMaleNewtPresent
virtual void SetMaleNewtPresent(bool)
Sets a male newt as present/absent in descendent classes - here only to prevent need for dynamic cast...
Definition: elements.h:386
TAnimal::WhatState
virtual int WhatState()
Definition: PopulationManager.h:263
VegElement::CalcGooseForageResources
void CalcGooseForageResources()
Calculates spilled grain and grazing forage resources for geese.
Definition: elements.cpp:1805
LE::m_mowndecay
int m_mowndecay
Definition: elements.h:485
LE::GetValidY
int GetValidY(void)
Definition: elements.h:331
HedgeBank::DoDevelopment
virtual void DoDevelopment(void)
Definition: elements.cpp:3703
cfg_UseEasyPop
static CfgBool cfg_UseEasyPop("VOLE_USEEASYPOP", CFG_CUSTOM, false)
g_Predfiles
char * g_Predfiles[100]
Definition: ALMaSS_CmdLine.cpp:128
Population_Manager::SortY
void SortY(unsigned Type)
Definition: PopulationManager.cpp:989
EL_BUG_PERCENT_G_C
#define EL_BUG_PERCENT_G_C
Definition: elements.cpp:64
cfg_rodenticide_dumpmapendyear
CfgInt cfg_rodenticide_dumpmapendyear("RODENTICIDE_DUMPMAPENDYEAR", CFG_CUSTOM,-1)
VegElement::ForceGrowthInitialize
virtual void ForceGrowthInitialize(void)
Definition: elements.cpp:1930
SimpleStatistics::ClearData
void ClearData()
Clears the data.
Definition: PopulationManager.h:403
Freshwater::Freshwater
Freshwater(void)
Definition: elements.cpp:2766
VegElement::m_veg_height
double m_veg_height
Definition: elements.h:692
NonVegElement::NonVegElement
NonVegElement(void)
Definition: elements.cpp:2722
LE_TypeClass::VegTypeToCurveNum
int VegTypeToCurveNum(TTypesOfVegetation VegReference)
cfg_pm_eventfrequency
CfgInt cfg_pm_eventfrequency("PM_EVENTFREQUENCY", CFG_CUSTOM, 0)
Landscape::SupplyCentroidIndex
APoint SupplyCentroidIndex(int a_polyrefindex)
Definition: Landscape.cpp:771
RodenticidePredators_Population_Manager::m_qual_cache
double * m_qual_cache
Definition: RodenticidePredators.h:73
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::SetMapIndex
void SetMapIndex(int a_map_index)
Definition: elements.h:191
cfg_OptimiseBedriftsmodelCrops
CfgBool cfg_OptimiseBedriftsmodelCrops
LE::LE
LE(void)
Definition: elements.cpp:279
Pond::CalcPondPesticide
void CalcPondPesticide()
Calculates the amount of pesticide per unit pond water
Definition: elements.cpp:2791
VegElement::GetLAGreen
virtual double GetLAGreen(void)
Definition: elements.h:574
LE::SetVegType
virtual void SetVegType(TTypesOfVegetation, TTypesOfVegetation)
Definition: elements.h:164
cfg_rodenticide_BLtown_Length
CfgInt cfg_rodenticide_BLtown_Length("RODENTICIDE_BLTYPE_TOWN_LENGTH", CFG_CUSTOM, 34)
Landscape::SetBirdSeedForage
void SetBirdSeedForage(int a_polyref, double a_fooddensity)
Sets the grain forage resource as seen from a goose standpoint at a polygon.
Definition: landscape.h:528
PopulationManagerList::GetPopulation
Population_Manager * GetPopulation(TTypesOfPopulation a_pt)
Definition: PopulationManager.h:673
Landscape::SupplyNectar
PollenNectarQuality SupplyNectar(int a_x, int a_y)
Definition: landscape.h:382
VegElement::ReduceWeedBiomass
virtual void ReduceWeedBiomass(double a_fraction)
Definition: elements.h:600
cfg_P1G
CfgFloat cfg_P1G
tbl_country
Definition: Rodenticide.h:11
l_el_rv_may_1st
static CfgInt l_el_rv_may_1st("ELEM_RV_MAY_1ST", CFG_PRIVATE, 121)
Landscape::l_vegtype_areas
double * l_vegtype_areas
Definition: landscape.h:153
RP_Territory
A data struct to hold RodenticidePredatory territory details.
Definition: RodenticidePredators.h:42
APoint::m_y
int m_y
Definition: ALMaSS_Setup.h:56
VegElement::ReadBugPercentageFile
void ReadBugPercentageFile(void)
Definition: elements.cpp:1439
Landscape::SupplyGlobalDate
long SupplyGlobalDate(void)
Definition: landscape.h:1621
Landscape::SupplyTreeHeight
int SupplyTreeHeight(int, int)
Definition: landscape.h:814
TOP_Partridge
Definition: PopulationManager.h:65
LE::GetOwnerIndex
int GetOwnerIndex(void)
Definition: elements.h:193
LE::GetPreviousCrop
virtual TTypesOfVegetation GetPreviousCrop(int)
Definition: elements.h:179
l_map_umargin_width
static CfgInt l_map_umargin_width("MAP_UMARGINWIDTH", CFG_CUSTOM, 12)
cfg_strigling_prop
CfgFloat cfg_strigling_prop("CROPS_STRIGLING_PROPORTION", CFG_CUSTOM, 1.0)
TALMaSSObject::TALMaSSObject
TALMaSSObject()
The constructor for TALMaSSObject.
Definition: PopulationManager.cpp:1379
Landscape::SupplyLargeOpenFieldsNearXY
polylist * SupplyLargeOpenFieldsNearXY(int x, int y, int range, int a_openness)
Returns a pointer to a list of polygonrefs to large open fields within a range of location x,...
Definition: Landscape.cpp:782
Population_Manager::m_LiveArraySize
vector< unsigned > m_LiveArraySize
Definition: PopulationManager.h:524
Landscape::SimulationClosingActions
void SimulationClosingActions()
Definition: Landscape.cpp:1455
UrbanVeg
Definition: elements.h:1094
Building
Definition: elements.h:1046
LE::GetQuarryNos
int GetQuarryNos()
For goose model functionality, returns the number of geese yesterday which can be hunted as legal qua...
Definition: elements.cpp:555
ALMaSS_Setup.h
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
MovementMap::maxx
uint32 maxx
Definition: MovementMap.h:54
TOP_Newt
Definition: PopulationManager.h:69
NaturalGrassDry::DoDevelopment
virtual void DoDevelopment()
Definition: elements.cpp:2585
Landscape::GetHareFoodQuality
double GetHareFoodQuality(int a_polygon)
Definition: Landscape.cpp:3403
Landscape::hb_HasOtherNeighbour
bool hb_HasOtherNeighbour(int a_x, int a_y)
distribution_type3
boost::random::uniform_real_distribution< double > distribution_type3
Definition: BoostRandomGenerators.h:33
SmallRoad::SmallRoad
SmallRoad(void)
Definition: elements.cpp:2944
g_bug_percent_b
static double g_bug_percent_b[tov_Undefined]
Definition: elements.cpp:133
Landscape::SupplyElementSubType
int SupplyElementSubType(int a_polyref)
Definition: landscape.h:1121
RoadsideVerge::DoDevelopment
virtual void DoDevelopment(void)
Definition: elements.cpp:2284
Landscape::SetLESignal
void SetLESignal(int a_polyref, LE_Signal a_signal)
Definition: Landscape.cpp:3570
LE::GetPoison
bool GetPoison(void)
Definition: elements.h:180
Population_Manager::LamdaDeath
void LamdaDeath(int x, int y)
Definition: PopulationManager.h:599
g_el_tramline_decaytime_days
CfgInt g_el_tramline_decaytime_days("ELEM_TRAMLINE_DECAYTIME_DAYS", CFG_PRIVATE, 21)
LE::SetVegParameters
virtual void SetVegParameters(double, double, double, double)
Definition: elements.h:166
Population_Manager::Catastrophe
virtual void Catastrophe()
Definition: PopulationManager.cpp:1109
RodenticideManager::GetRodenticide
double GetRodenticide(unsigned a_x, int a_y)
Return the poisoned mice value at x,y.
Definition: Rodenticide.h:141
LE::IsRecentlyMown
bool IsRecentlyMown(void)
Definition: elements.h:186
Population_Manager::IsLast
bool IsLast(unsigned listindex)
Definition: PopulationManager.h:481
int
direction_se
Definition: landscape.h:60
EL_VEG_HEIGHTSCALE
#define EL_VEG_HEIGHTSCALE
Definition: elements.cpp:191
LE::m_nectarquality
PollenNectarQuality m_nectarquality
Definition: elements.h:540
BaitLocation::m_y
int m_y
y-coordinate
Definition: Rodenticide.h:26
Landscape::ConsolidatePolys
void ConsolidatePolys(void)
Definition: Landscape.cpp:1329
Landscape::BackTranslateEleTypes
int BackTranslateEleTypes(TTypesOfLandscapeElement EleReference)
Definition: landscape.h:1662
LE::m_is_in_map
bool m_is_in_map
Definition: elements.h:459
cfg_BeetleBankMinY
CfgInt cfg_BeetleBankMinY("BBANK_MINY", CFG_CUSTOM, 0)
Landscape::IncTreatCounter
void IncTreatCounter(int a_treat)
Definition: Landscape.cpp:3575
g_el_strigling_delaytime_days
CfgInt g_el_strigling_delaytime_days("ELEM_STRIGLING_DELAYTIME_DAYS", CFG_PRIVATE, 28)
LE::GetMapIndex
int GetMapIndex(void)
Definition: elements.h:190
Population_Manager::DoAfter
virtual void DoAfter()
Definition: PopulationManager.cpp:513
AnimalPosition::m_VegType
TTypesOfVegetation m_VegType
Definition: PopulationManager.h:175
November
const int November
Definition: landscape.h:46
RefuseSite::RefuseSite
RefuseSite(void)
Definition: elements.cpp:2876
LE::m_type
TTypesOfLandscapeElement m_type
Definition: elements.h:487
IndividualTree::IndividualTree
IndividualTree(void)
Definition: elements.cpp:2711
Population_Manager::IncLiveArraySize
void IncLiveArraySize(int a_listindex)
Increments the number of 'live' objects for a list index in the TheArray.
Definition: PopulationManager.h:437