ALMaSS Rabbit ODdox  1.00
The rabbit model description following ODdox protocol
Classes | Macros | Variables
PopulationManager.cpp File Reference

PopulationManager.cpp This is the code file for the population manager and associated classes
More...

#include <vector>
#include <algorithm>
#include <iostream>
#include <fstream>
#include <string.h>
#include <list>
#include "../Landscape/ls.h"
#include "../BatchALMaSS/PopulationManager.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 "../BatchALMaSS/BoostRandomGenerators.h"

Go to the source code of this file.

Classes

class  CompareX
 Function to compare to TAnimal's m_Location_x. More...
 
class  CompareY
 Function to compare to TAnimal's m_Location_y. More...
 
class  CompareState
 Function to compare to TAnimal's Current behavioural state. More...
 
class  CompareStateR
 Function to compare to TAnimal's m_CurrentStateNo. More...
 
class  CompareStateDead
 Function to compare to TAnimal's m_CurrentStateNo to -1. More...
 
class  CompareStateAlive
 Function to compare to TAnimal's m_CurrentStateNo to anything but -1. More...
 

Macros

#define _CRTDBG_MAP_ALLOC
 

Variables

boost::variate_generator< base_generator_type &, boost::uniform_real<> > g_rand_uni
 
static CfgStr cfg_RipleysOutput_filename ("G_RIPLEYSOUTPUT_FILENAME", CFG_CUSTOM,"RipleysOutput.txt")
 
static CfgStr cfg_ReallyBigOutput_filename ("G_REALLYBIGOUTPUT_FILENAME", CFG_CUSTOM,"ReallyBigOutput.txt")
 
CfgBool cfg_RipleysOutputMonthly_used ("G_RIPLEYSOUTPUTMONTHLY_USED", CFG_CUSTOM, false)
 
CfgBool cfg_RipleysOutput_used ("G_RIPLEYSOUTPUT_USED", CFG_CUSTOM, true)
 
CfgBool cfg_ReallyBigOutput_used ("G_REALLYBIGOUTPUT_USED", CFG_CUSTOM, false)
 
CfgBool cfg_fixed_random_sequence ("G_FIXEDRANDOMSEQUENCE", CFG_CUSTOM, false)
 
static CfgInt cfg_RipleysOutput_interval ("G_RIPLEYSOUTPUT_INTERVAL", CFG_CUSTOM, 1)
 
static CfgInt cfg_RipleysOutput_day ("G_RIPLEYSOUTPUT_DAY", CFG_CUSTOM, 60)
 
static CfgInt cfg_RipleysOutputFirstYear ("G_RIPLEYSOUTPUT_FIRSTYEAR", CFG_CUSTOM, 1)
 
static CfgInt cfg_ReallyBigOutput_interval ("G_REALLYBIGOUTPUT_INTERVAL", CFG_CUSTOM, 1)
 
static CfgInt cfg_ReallyBigOutput_day1 ("G_REALLYBIGOUTPUT_DAY_ONE", CFG_CUSTOM, 1)
 
static CfgInt cfg_ReallyBigOutput_day2 ("G_REALLYBIGOUTPUT_DAY_TWO", CFG_CUSTOM, 91)
 
static CfgInt cfg_ReallyBigOutput_day3 ("G_REALLYBIGOUTPUT_DAY_THREE", CFG_CUSTOM, 182)
 
static CfgInt cfg_ReallyBigOutput_day4 ("G_REALLYBIGOUTPUT_DAY_FOUR", CFG_CUSTOM, 274)
 
static CfgInt cfg_ReallyBigOutputFirstYear ("G_REALLYBIGOUTPUT_FIRSTYEAR", CFG_CUSTOM, 1)
 
static CfgInt cfg_CipeGridSize ("G_CIPEGRIDSIZE", CFG_CUSTOM, 500)
 
CfgStr cfg_CIPEGridOutput_filename ("G_CIPEGRIDOUTPUT_FILENAME", CFG_CUSTOM,"CIPEGridOutput.txt")
 
CfgStr cfg_CIPEGridOutput_filenameB ("G_CIPEGRIDOUTPUT_FILENAME_B", CFG_CUSTOM,"CIPEGridOutputB.txt")
 
CfgBool cfg_CIPEGridOutput_used ("G_CIPEGRIDOUTPUT_USED", CFG_CUSTOM, false)
 
CfgInt cfg_CIPEGridOutput_Interval ("G_CIPEGRIDOUTPUT_INTERVAL", CFG_CUSTOM, 1)
 
CfgInt cfg_CIPEGridOutput_day ("G_CIPEGRIDOUTPUT_DAY", CFG_CUSTOM, 1)
 
CfgInt cfg_CIPEGridOutput_day_b ("G_CIPEGRIDOUTPUT_DAY_B", CFG_CUSTOM, 270)
 
CfgInt cfg_CatastropheEventStartYear ("PM_CATASTROPHEEVENTSTARTYEAR", CFG_CUSTOM, 99999)
 
CfgInt cfg_pm_eventfrequency ("PM_EVENTFREQUENCY", CFG_CUSTOM, 0)
 
CfgInt cfg_pm_eventsize ("PM_EVENTSIZE", CFG_CUSTOM, 100)
 
static CfgInt cfg_DayInMonth ("PRB_DAYINMONTH", CFG_CUSTOM, 1)
 
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)
 
char g_str [255]
 

Detailed Description

PopulationManager.cpp This is the code file for the population manager and associated classes

by Chris J. Topping
Version of 23rd July 2003
All rights reserved.

With additions as noted in:
January 2008
Doxygen formatted comments in May 2008

Definition in file PopulationManager.cpp.

Macro Definition Documentation

#define _CRTDBG_MAP_ALLOC

Definition at line 97 of file PopulationManager.cpp.

Variable Documentation

CfgInt cfg_CatastropheEventStartYear("PM_CATASTROPHEEVENTSTARTYEAR", CFG_CUSTOM, 99999)

Referenced by Population_Manager::Run().

CfgInt cfg_CIPEGridOutput_day("G_CIPEGRIDOUTPUT_DAY", CFG_CUSTOM, 1)

Referenced by Population_Manager::Run().

CfgInt cfg_CIPEGridOutput_day_b("G_CIPEGRIDOUTPUT_DAY_B", CFG_CUSTOM, 270)
CfgStr cfg_CIPEGridOutput_filename("G_CIPEGRIDOUTPUT_FILENAME", CFG_CUSTOM,"CIPEGridOutput.txt")
CfgStr cfg_CIPEGridOutput_filenameB("G_CIPEGRIDOUTPUT_FILENAME_B", CFG_CUSTOM,"CIPEGridOutputB.txt")
CfgInt cfg_CIPEGridOutput_Interval("G_CIPEGRIDOUTPUT_INTERVAL", CFG_CUSTOM, 1)

Referenced by Population_Manager::Run().

CfgBool cfg_CIPEGridOutput_used("G_CIPEGRIDOUTPUT_USED", CFG_CUSTOM, false)

Referenced by Population_Manager::Run().

CfgInt cfg_CipeGridSize("G_CIPEGRIDSIZE", CFG_CUSTOM, 500)
static
CfgInt cfg_DayInMonth("PRB_DAYINMONTH", CFG_CUSTOM, 1)
static
CfgBool cfg_fixed_random_sequence("G_FIXEDRANDOMSEQUENCE", CFG_CUSTOM, false)
CfgInt cfg_pm_eventfrequency("PM_EVENTFREQUENCY", CFG_CUSTOM, 0)
CfgInt cfg_pm_eventsize("PM_EVENTSIZE", CFG_CUSTOM, 100)
CfgInt cfg_ReallyBigOutput_day1("G_REALLYBIGOUTPUT_DAY_ONE", CFG_CUSTOM, 1)
static

Referenced by Population_Manager::Run().

CfgInt cfg_ReallyBigOutput_day2("G_REALLYBIGOUTPUT_DAY_TWO", CFG_CUSTOM, 91)
static

Referenced by Population_Manager::Run().

CfgInt cfg_ReallyBigOutput_day3("G_REALLYBIGOUTPUT_DAY_THREE", CFG_CUSTOM, 182)
static

Referenced by Population_Manager::Run().

CfgInt cfg_ReallyBigOutput_day4("G_REALLYBIGOUTPUT_DAY_FOUR", CFG_CUSTOM, 274)
static

Referenced by Population_Manager::Run().

CfgStr cfg_ReallyBigOutput_filename("G_REALLYBIGOUTPUT_FILENAME", CFG_CUSTOM,"ReallyBigOutput.txt")
static
CfgInt cfg_ReallyBigOutput_interval("G_REALLYBIGOUTPUT_INTERVAL", CFG_CUSTOM, 1)
static

Referenced by Population_Manager::Run().

CfgBool cfg_ReallyBigOutput_used("G_REALLYBIGOUTPUT_USED", CFG_CUSTOM, false)
CfgInt cfg_ReallyBigOutputFirstYear("G_REALLYBIGOUTPUT_FIRSTYEAR", CFG_CUSTOM, 1)
static

Referenced by Population_Manager::Run().

CfgInt cfg_RipleysOutput_day("G_RIPLEYSOUTPUT_DAY", CFG_CUSTOM, 60)
static

Referenced by Population_Manager::Run().

CfgStr cfg_RipleysOutput_filename("G_RIPLEYSOUTPUT_FILENAME", CFG_CUSTOM,"RipleysOutput.txt")
static
CfgInt cfg_RipleysOutput_interval("G_RIPLEYSOUTPUT_INTERVAL", CFG_CUSTOM, 1)
static

Referenced by Population_Manager::Run().

CfgBool cfg_RipleysOutput_used("G_RIPLEYSOUTPUT_USED", CFG_CUSTOM, true)
CfgInt cfg_RipleysOutputFirstYear("G_RIPLEYSOUTPUT_FIRSTYEAR", CFG_CUSTOM, 1)
static

Referenced by Population_Manager::Run().

CfgBool cfg_RipleysOutputMonthly_used("G_RIPLEYSOUTPUTMONTHLY_USED", CFG_CUSTOM, false)
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)
static
boost::variate_generator<base_generator_type&, boost::uniform_real<> > g_rand_uni
char g_str[255]