ALMaSS Rodenticide Model ODdox  1.0
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 "../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"

Macros

#define _CRT_SECURE_NO_DEPRECATE
 

Functions

bool BeginningOfMonth ()
 
static CfgInt cfg_DayInMonth ("PRB_DAYINMONTH", CFG_CUSTOM, 1)
 
static CfgBool cfg_UseEasyPop ("VOLE_USEEASYPOP", 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)
 
static CfgBool cfg_VoleCatastrophe_on ("VOLE_CATASTROPHE_ON", CFG_CUSTOM, false)
 
void CloseDownSim ()
 
void CreateLandscape ()
 
bool CreatePopulationManager ()
 
void delay (int secs)
 
void DumpVegAreaData (int a_day)
 
void FloatToDouble (double &d, float f)
 
void GetProbeInput_ini ()
 
void ImpactProbeReport (int a_time)
 
int main ()
 
void PredProbeReportDay0 (int a_time)
 
void ProbeReport (int a_time)
 
int random (int a_range)
 
bool ReadBatchINI ()
 
void RunTheSim ()
 
void SpeciesSpecificActions ()
 
void SpeciesSpecificReporting ()
 

Variables

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

Macro Definition Documentation

#define _CRT_SECURE_NO_DEPRECATE

Function Documentation

static CfgInt cfg_DayInMonth ( "PRB_DAYINMONTH"  ,
CFG_CUSTOM  ,
 
)
static
static CfgBool cfg_UseEasyPop ( "VOLE_USEEASYPOP"  ,
CFG_CUSTOM  ,
false   
)
static
static CfgInt cfg_VoleCatastrophe_interval ( "VOLE_CATASTROPHE_I"  ,
CFG_CUSTOM  ,
365 *  5 
)
static
static CfgInt cfg_VoleCatastrophe_mortality ( "VOLE_CATASTROPHE_M"  ,
CFG_CUSTOM  ,
90   
)
static
static CfgBool cfg_VoleCatastrophe_on ( "VOLE_CATASTROPHE_ON"  ,
CFG_CUSTOM  ,
false   
)
static
void CloseDownSim ( )

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

Referenced by main().

453  {
454  if ( g_AManager )
455  {
457  // Close the probe file
458  if ( g_AManager->TheProbe[ 0 ] != NULL ) g_AManager->TheProbe[ 0 ]->CloseFile();
459  // delete all probes
460  for ( int i = 0; i < g_NoProbes; i++ ) delete g_AManager->TheProbe[ i ];
461  delete g_AManager;
462  if ( g_Species == 1 ) {
463  delete g_PredatorManager;
464  }
465  }
466  delete g_ALandscape;
467  delete g_cfg;
468 }
void SimulationClosingActions()
Definition: Landscape.cpp:1276
TPredator_Population_Manager * g_PredatorManager
Definition: ALMaSS_CmdLine.cpp:115
void CloseFile()
Definition: PopulationManager.cpp:136
Population_Manager * g_AManager
Definition: ALMaSS_CmdLine.cpp:113
probe_data * TheProbe[100]
Definition: PopulationManager.h:481
int g_NoProbes
Definition: ALMaSS_CmdLine.cpp:125
int g_Species
Definition: ALMaSS_CmdLine.cpp:116
Landscape * g_ALandscape
Definition: ALMaSS_CmdLine.cpp:112
void CreateLandscape ( )

Referenced by main().

218  {
219  // Create the landscape
220  g_ALandscape = new Landscape( "TIALMaSSConfig.cfg", "ErrorFile.txt" );
221 }
The landscape class containing all environmental and topographical data.
Definition: landscape.h:109
Landscape * g_ALandscape
Definition: ALMaSS_CmdLine.cpp:112
bool CreatePopulationManager ( )

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

Referenced by main().

224  {
225  // SET UP THE ANIMAL POPULATION
226  // THE LANDSCAPE MUST BE SETUP BEFORE THE CALL HERE
227  if ( g_Species == 0 ) {
228  Skylark_Population_Manager * skMan = new Skylark_Population_Manager( g_ALandscape );
229  g_AManager = skMan;
234  }
235 
236  if ( g_Species == 1 ) {
237  Vole_Population_Manager * vMan = new Vole_Population_Manager( g_ALandscape );
238  g_AManager = vMan;
240  g_PredatorManager = new TPredator_Population_Manager( g_ALandscape, vMan );
241  g_PredatorManager->SetNoProbes( g_NoOfPredProbes);
243  }
244  if ( g_Species == 2 ) {
245  Spider_Population_Manager * spMan = new Spider_Population_Manager( g_ALandscape );
247  g_AManager = spMan;
248  }
249 
250  if ( g_Species == 3 ) {
251  Bembidion_Population_Manager * bMan = new Bembidion_Population_Manager( g_ALandscape );
253  g_AManager = bMan;
254  }
255 
256  if ( g_Species == 4 ) { // Hare
257  THare_Population_Manager * hMan = new THare_Population_Manager( g_ALandscape );
259  g_AManager = hMan;
260  }
261 
262  if ( g_Species == 5 ) {
263  Partridge_Population_Manager * pMan = new Partridge_Population_Manager( g_ALandscape );
264  g_AManager = pMan;
266  }
267 
268  if ( g_Species == 6 ) {
269  Goose_Population_Manager * gMan = new Goose_Population_Manager( g_ALandscape );
270  g_AManager = gMan;
272  g_Hunter_Population_Manager = new Hunter_Population_Manager( g_ALandscape );
274  }
275 
276  if ( g_Species == 7 ) {
277  MarshFritillary_Population_Manager * mMan = new MarshFritillary_Population_Manager( g_ALandscape );
278  g_AManager = mMan;
280  }
281 #ifdef __dormouse //LADA
282  if (g_Species == 8) {
283  Dormouse_Population_Manager * dMan = new Dormouse_Population_Manager(g_ALandscape);
284  g_AManager = dMan;
286  }
287 #endif // __dormouse
288  if (g_Species == 9)
289  {
290  RoeDeer_Population_Manager * rMan = new RoeDeer_Population_Manager( g_ALandscape );
291  g_AManager = rMan;
293  }
294 
295  if (g_Species == 10)
296  {
297  Rabbit_Population_Manager * rMan = new Rabbit_Population_Manager(g_ALandscape);
298  g_AManager = rMan;
300  }
301 
302  if (g_Species == 11)
303  {
304  Newt_Population_Manager * rMan = new Newt_Population_Manager(g_ALandscape);
305  g_AManager = rMan;
307  }
308 
310  return true;
311 }
Definition: PopulationManager.h:64
Definition: PopulationManager.h:69
virtual bool OpenTheFledgelingProbe()
Definition: PopulationManager.h:613
TPredator_Population_Manager * g_PredatorManager
Definition: ALMaSS_CmdLine.cpp:115
Definition: PopulationManager.h:71
Population_Manager * g_AManager
Definition: ALMaSS_CmdLine.cpp:113
Definition: PopulationManager.h:63
void SetPopulation(Population_Manager *p_pm, TTypesOfPopulation a_pt)
Definition: PopulationManager.h:655
Definition: PopulationManager.h:62
Definition: PopulationManager.h:70
void SetNoProbes(int a_pn)
Definition: PopulationManager.h:406
int g_NoProbes
Definition: ALMaSS_CmdLine.cpp:125
unsigned g_NoOfPredProbes
Definition: ALMaSS_CmdLine.cpp:126
virtual bool OpenTheBreedingSuccessProbe()
Definition: PopulationManager.h:619
Definition: PopulationManager.h:61
Definition: PopulationManager.h:65
Definition: PopulationManager.h:68
int g_Species
Definition: ALMaSS_CmdLine.cpp:116
PopulationManagerList g_PopulationManagerList
Definition: ALMaSS_CmdLine.cpp:127
virtual bool OpenTheBreedingPairsProbe()
Definition: PopulationManager.h:616
Definition: PopulationManager.h:67
Definition: PopulationManager.h:59
Landscape * g_ALandscape
Definition: ALMaSS_CmdLine.cpp:112
Hunter_Population_Manager * g_Hunter_Population_Manager
Definition: ALMaSS_CmdLine.cpp:114
Definition: PopulationManager.h:60
Definition: PopulationManager.h:66
void delay ( int  secs)

References FloatToDouble().

153  {
154  time_t start_time, cur_time;
155  time(&start_time);
156  do
157  {
158  time(&cur_time);
159  } while((cur_time - start_time) < secs);
160 }
void DumpVegAreaData ( int  a_day)

Referenced by Landscape::GetVegArea().

void FloatToDouble ( double &  d,
float  f 
)

Referenced by delay(), and VegElement::ReadBugPercentageFile().

169  {
170  char * num = 0;
171  num = new char[_CVTBUFSIZE];
172  errno_t err = _gcvt_s(num, _CVTBUFSIZE,f,8);
173  if (err!=0) {
174  assert(0);
175  }
176  d = atof(num);
177  delete [] num;
178 }
void GetProbeInput_ini ( )

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

Referenced by main().

315  {
316  char Nme[ 511 ];
317  ofstream * AFile=NULL;
318  for ( int NProbes = 0; NProbes < g_NoProbes; NProbes++ ) {
319  // Must read the probe from a file
320  g_AManager->TheProbe[ NProbes ] = new probe_data;
321  g_AManager->ProbeFileInput( ( char * ) g_files[ NProbes ], NProbes );
322  char NoProbesString[ 255 ];
323  sprintf( NoProbesString, "%sProbe.res", g_ResultsDir );
324  if ( NProbes == 0 ) {
325  AFile = g_AManager->TheProbe[ NProbes ]->OpenFile( NoProbesString );
326  if ( !AFile ) {
327  g_ALandscape->Warn( "BatchALMSS - cannot open Probe File", NULL );
328  exit( 1 );
329  }
330  } else
331  g_AManager->TheProbe[ NProbes ]->SetFile( AFile );
332  }
333  if ( g_Species == 1 ) {
334  for ( int NProbes = 0; NProbes < ( int )g_NoOfPredProbes; NProbes++ ) {
335  g_PredatorManager->TheProbe[ NProbes ] = new probe_data;
336  g_PredatorManager->ProbeFileInput( ( char * ) g_Predfiles[ NProbes ], NProbes );
337  sprintf( Nme, "%sPredProbe%d.res", g_ResultsDir, NProbes + 1 );
338  // strcpy( Nme, g_PredResultsDir );
339  if ( NProbes == 0 ) {
340  AFile = g_PredatorManager->TheProbe[ NProbes ]->OpenFile( Nme );
341  if ( !AFile ) {
342  g_ALandscape->Warn( "BatchALMSS - cannot open Probe File", Nme );
343  exit( 1 );
344  }
345  } else
346  g_PredatorManager->TheProbe[ NProbes ]->SetFile( AFile );
347  }
348  }
349  for ( int NProbes = 0; NProbes < g_NoProbes; NProbes++ ) {
350  delete [] g_files[NProbes];
351  }
352  for ( int NProbes = 0; NProbes < ( int )g_NoOfPredProbes; NProbes++ ) {
353  delete [] g_Predfiles[NProbes];
354  }
355 }
char * g_files[100]
Definition: ALMaSS_CmdLine.cpp:118
TPredator_Population_Manager * g_PredatorManager
Definition: ALMaSS_CmdLine.cpp:115
Population_Manager * g_AManager
Definition: ALMaSS_CmdLine.cpp:113
ofstream * OpenFile(char *Nme)
Definition: PopulationManager.cpp:1559
void SetFile(ofstream *F)
Definition: PopulationManager.cpp:1573
probe_data * TheProbe[100]
Definition: PopulationManager.h:481
char g_ResultsDir[255]
Definition: ALMaSS_CmdLine.cpp:120
int g_NoProbes
Definition: ALMaSS_CmdLine.cpp:125
char * g_Predfiles[100]
Definition: ALMaSS_CmdLine.cpp:119
unsigned g_NoOfPredProbes
Definition: ALMaSS_CmdLine.cpp:126
int g_Species
Definition: ALMaSS_CmdLine.cpp:116
void Warn(std::string a_msg1, std::string a_msg2)
Definition: landscape.h:1503
int ProbeFileInput(char *p_Filename, int p_ProbeNo)
Definition: PopulationManager.cpp:584
Landscape * g_ALandscape
Definition: ALMaSS_CmdLine.cpp:112
Data structure to hold & output probe data probe data is designed to be used to return the number of ...
Definition: PopulationManager.h:279
void ImpactProbeReport ( int  a_time)
int main ( )

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

182  {
183 #ifdef _DEBUG
184  // Get the current state of the flag
185  // and store it in a temporary variable
186  int tmpFlag = _CrtSetDbgFlag( _CRTDBG_REPORT_FLAG );
187 
188  // Turn On (OR) - Keep freed memory blocks in the
189  // heap's linked list and mark them as freed
190  tmpFlag |= _CRTDBG_DELAY_FREE_MEM_DF;
191 
192  // Turn Off (AND) - prevent _CrtCheckMemory from
193  // being called at every allocation request
194  tmpFlag &= ~_CRTDBG_CHECK_ALWAYS_DF;
195  // Set the new state for the flag
196  _CrtSetDbgFlag( tmpFlag );
197 #endif
198 
199  if (cfg_fixed_random_sequence.value()) srand( 0 ); else srand( (int)time( NULL ) );
200  CreateLandscape();
201  printf( "Landscape Created\n" ); // So now set up a Population Manager
202  if (!ReadBatchINI()) {
203  char ch;
204  cout << "Problem with ini file";
205  cin >> ch;
206  }
207  if (!CreatePopulationManager()) return false; else
208  printf( "Population Created\n" ); // Now got to get the probe files read in
211  // Ready to go
212  RunTheSim();
213  CloseDownSim();
214  return 0;
215 }
void CloseDownSim()
Definition: ALMaSS_CmdLine.cpp:453
CfgBool cfg_fixed_random_sequence
void CreateLandscape()
Definition: ALMaSS_CmdLine.cpp:218
Population_Manager * g_AManager
Definition: ALMaSS_CmdLine.cpp:113
bool CreatePopulationManager()
Definition: ALMaSS_CmdLine.cpp:224
bool ReadBatchINI()
Definition: ALMaSS_CmdLine.cpp:358
void RunTheSim()
Definition: ALMaSS_CmdLine.cpp:472
void SetThePopManager(Population_Manager *a_ptr)
Set the pointer to the current main population manager.
Definition: landscape.h:161
Landscape * g_ALandscape
Definition: ALMaSS_CmdLine.cpp:112
void GetProbeInput_ini()
Definition: ALMaSS_CmdLine.cpp:315
void PredProbeReportDay0 ( int  a_time)
int random ( int  a_range)

References g_rand_uni.

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

133  {
134  /* Want to raise exception on this?
135  if ( a_range <= 0 )
136  return 0;
137  */
138  //int result = (int)(((double) rand() / g_randmaxp ) * a_range);
139  return (int) (g_rand_uni()*a_range);
140  //return result;
141 }
boost::variate_generator< base_generator_type &, boost::uniform_real<> > g_rand_uni
bool ReadBatchINI ( )

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

Referenced by main().

358  {
359  // Must read the TIBatch.INI
360  // Read the INI file
361  FILE * Fi = NULL;
362  char answer = 'X';
363  Fi=fopen("BatchALMaSS.ini", "r" );
364  while ( Fi==NULL ) {
365  // Issue and error warning
366  cout << "INI File Missing: ";
367  cout << "BatchALMaSS.ini" << "\n";
368  cout << "Try Again?";
369  cin >> answer;
370  if ( answer != 'Y' ) exit(0);
371  Fi = fopen("BatchALMaSS.ini", "r" );
372  }
373  char Data[ 255 ];
374  fscanf( Fi, "%d\r", & g_NoProbes );
375  for ( int i = 0; i < g_NoProbes; i++ ) {
376  fscanf( Fi, "%s\r", Data);
377  g_files[ i ] = new char[ 255 ];
378  strcpy( g_files[ i ], Data );
379  }
380  fscanf( Fi, "%s\r", Data );
381  strcpy( g_ResultsDir, Data );
382  // Read the PredBatch.INI file
383  if ( g_Species == 1) {
384  FILE * Fi2 = NULL;
385  answer = 'X';
386  while ( !Fi2 ) {
387  Fi2=fopen("VoleToxPreds.ini", "r" );
388  if ( !Fi2 ) {
389  // Issue and error warning
390  cout << "Predator Batch File Missing: VoleToxPreds.INI";
391  cout << "Try Again (Y/N) ? ";
392  cin >> answer;
393  if ( answer != 'Y' ) return false;
394  }
395  }
396  char Data2[ 255 ];
397  fscanf( Fi2, "%d\r", & g_NoOfPredProbes );
398  for ( int i = 0; i < ( int )g_NoOfPredProbes; i++ ) {
399  fscanf( Fi2, "%s\r", Data2 );
400  g_Predfiles[ i ] = new char[ 255 ];
401  strcpy( g_Predfiles[ i ], Data2 );
402  }
403  fscanf( Fi2, "%s\r", Data2 );
404  strcpy( g_PredResultsDir, Data2 );
405  fclose( Fi2 );
406  }
407  fscanf( Fi, "%d\r", & g_torun );
408  g_torun *= 365; // the number of years and multiplied by 365 to get days
409  fscanf( Fi, "%d\r", & g_Species );
410  fclose( Fi );
411  switch (g_Species) {
412  case 0:
413  printf("Running Skylarks\n");
414  break;
415  case 1:
416  printf("Running Voles\n");
417  break;
418  case 2:
419  printf("Running Spiders\n");
420  break;
421  case 3:
422  printf("Running Beetles\n");
423  break;
424  case 4:
425  printf("Running Hares\n");
426  break;
427  case 5:
428  printf("Running Partridges\n");
429  break;
430  case 6:
431  printf("Running Goose Management\n");
432  break;
433  case 7:
434  printf("Running Marsh Fritillary\n");
435  break;
436  case 8:
437  printf("Running Dormouse\n");
438  break;
439  case 9:
440  printf("Running Roe Deer\n");
441  break;
442  case 10:
443  printf("Running Rabbits\n");
444  break;
445  case 11:
446  printf("Running Newts\n");
447  break;
448  }
449  return true;
450 }
char * g_files[100]
Definition: ALMaSS_CmdLine.cpp:118
char g_ResultsDir[255]
Definition: ALMaSS_CmdLine.cpp:120
char g_PredResultsDir[255]
Definition: ALMaSS_CmdLine.cpp:121
int g_NoProbes
Definition: ALMaSS_CmdLine.cpp:125
char * g_Predfiles[100]
Definition: ALMaSS_CmdLine.cpp:119
unsigned g_NoOfPredProbes
Definition: ALMaSS_CmdLine.cpp:126
int g_Species
Definition: ALMaSS_CmdLine.cpp:116
int g_torun
Definition: ALMaSS_CmdLine.cpp:117
void RunTheSim ( )

References Landscape::DumpVegAreaData(), g_Hunter_Population_Manager, g_PredatorManager, g_torun, Population_Manager::Run(), Population_Manager::SpeciesSpecificReporting(), Landscape::SupplyDayInMonth(), Landscape::SupplyMonth(), and Landscape::TurnTheWorld().

Referenced by main().

472  {
473  for ( int i = 0; i < g_torun; i++ ) {
475  // Update the Date
476  g_time++;
477 
478  printf("%d\r",g_time);
479  int day = g_ALandscape->SupplyDayInMonth();
480  int month = g_ALandscape->SupplyMonth();
481  if ( ( day == 1 ) && ( month == 1 ) ) g_Year++;
482 
483  if (g_Species == 1) g_PredatorManager->Run(1);
484  if (g_Species == 6)
485  {
486  for (int tenmin = 0; tenmin<144; tenmin++)
487  {
488  g_AManager->Run(1); // Goose Model
490  if (g_date->TickMinute10()) g_date->TickHour();
491  }
492  }
493  else g_AManager->Run(1);
494 
495  char str[255];
497 
499  }
500 }
virtual void Run(int NoTSteps)
Definition: PopulationManager.cpp:348
int SupplyMonth(void)
Definition: landscape.h:1525
TPredator_Population_Manager * g_PredatorManager
Definition: ALMaSS_CmdLine.cpp:115
char * SpeciesSpecificReporting(int a_species, int a_time)
Definition: PopulationManager.cpp:1190
Population_Manager * g_AManager
Definition: ALMaSS_CmdLine.cpp:113
void TurnTheWorld(void)
Definition: landscape.h:824
int SupplyDayInMonth(void)
Definition: landscape.h:1530
void DumpVegAreaData(int a_day)
Definition: Landscape.cpp:4289
int g_time
Definition: ALMaSS_CmdLine.cpp:122
int g_Species
Definition: ALMaSS_CmdLine.cpp:116
int g_Year
Definition: ALMaSS_CmdLine.cpp:123
Landscape * g_ALandscape
Definition: ALMaSS_CmdLine.cpp:112
int g_torun
Definition: ALMaSS_CmdLine.cpp:117
Hunter_Population_Manager * g_Hunter_Population_Manager
Definition: ALMaSS_CmdLine.cpp:114
void SpeciesSpecificActions ( )
void SpeciesSpecificReporting ( )

Variable Documentation

CfgBool cfg_dumpvegjan
CfgStr cfg_dumpvegjanfile
CfgBool cfg_dumpvegjune
CfgStr cfg_dumpvegjunefile
CfgBool cfg_fixed_random_sequence

Referenced by main().

Landscape* g_ALandscape

Referenced by CloseDownSim().

ALMaSS_MathFuncs g_AlmassMathFuncs
Population_Manager* g_AManager
char* g_files[100]

Referenced by GetProbeInput_ini(), and ReadBatchINI().

Hunter_Population_Manager* g_Hunter_Population_Manager
unsigned g_NoOfPredProbes
int g_NoProbes
PopulationManagerList g_PopulationManagerList
TPredator_Population_Manager* g_PredatorManager
char* g_Predfiles[100]

Referenced by GetProbeInput_ini(), and ReadBatchINI().

char g_PredResultsDir[255]

Referenced by ReadBatchINI().

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

Referenced by random().

const double g_randmaxp = RAND_MAX + 1.0
char g_ResultsDir[255]

Referenced by GetProbeInput_ini(), and ReadBatchINI().

int g_Species
int g_Steps
int g_time
int g_torun

Referenced by RunTheSim().

int g_Year