ALMaSS Partridge ODdox  1.1
The partridge model description following ODdox protocol
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"
#include "AOR_Probe.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, false)
 
CfgBool cfg_AOROutput_used ("G_AOROUTPUT_USED", CFG_CUSTOM, false)
 
CfgBool cfg_ReallyBigOutput_used ("G_REALLYBIGOUTPUT_USED", CFG_CUSTOM, false)
 
CfgBool cfg_fixed_random_sequence ("G_FIXEDRANDOMSEQUENCE", CFG_CUSTOM, false)
 
static CfgInt cfg_AOROutput_interval ("G_AORSOUTPUT_INTERVAL", CFG_CUSTOM, 1)
 
static CfgInt cfg_AOROutput_day ("G_AOROUTPUT_DAY", CFG_CUSTOM, 60)
 
static CfgInt cfg_AOROutputFirstYear ("G_AOROUTPUT_FIRSTYEAR", CFG_CUSTOM, 1)
 
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)
 
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

◆ _CRTDBG_MAP_ALLOC

#define _CRTDBG_MAP_ALLOC

Definition at line 99 of file PopulationManager.cpp.

Variable Documentation

◆ cfg_AOROutput_day

CfgInt cfg_AOROutput_day("G_AOROUTPUT_DAY", CFG_CUSTOM, 60)
static

Referenced by Population_Manager::Run().

◆ cfg_AOROutput_interval

CfgInt cfg_AOROutput_interval("G_AORSOUTPUT_INTERVAL", CFG_CUSTOM, 1)
static

Referenced by Population_Manager::Run().

◆ cfg_AOROutput_used

CfgBool cfg_AOROutput_used("G_AOROUTPUT_USED", CFG_CUSTOM, false)

◆ cfg_AOROutputFirstYear

CfgInt cfg_AOROutputFirstYear("G_AOROUTPUT_FIRSTYEAR", CFG_CUSTOM, 1)
static

Referenced by Population_Manager::Run().

◆ cfg_CatastropheEventStartYear

CfgInt cfg_CatastropheEventStartYear("PM_CATASTROPHEEVENTSTARTYEAR", CFG_CUSTOM, 99999)

Referenced by Population_Manager::Run().

◆ cfg_DayInMonth

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

◆ cfg_fixed_random_sequence

CfgBool cfg_fixed_random_sequence("G_FIXEDRANDOMSEQUENCE", CFG_CUSTOM, false)

◆ cfg_pm_eventfrequency

CfgInt cfg_pm_eventfrequency("PM_EVENTFREQUENCY", CFG_CUSTOM, 0)

◆ cfg_pm_eventsize

CfgInt cfg_pm_eventsize("PM_EVENTSIZE", CFG_CUSTOM, 100)

◆ cfg_ReallyBigOutput_day1

CfgInt cfg_ReallyBigOutput_day1("G_REALLYBIGOUTPUT_DAY_ONE", CFG_CUSTOM, 1)
static

Referenced by Population_Manager::Run().

◆ cfg_ReallyBigOutput_day2

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

Referenced by Population_Manager::Run().

◆ cfg_ReallyBigOutput_day3

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

Referenced by Population_Manager::Run().

◆ cfg_ReallyBigOutput_day4

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

Referenced by Population_Manager::Run().

◆ cfg_ReallyBigOutput_filename

CfgStr cfg_ReallyBigOutput_filename("G_REALLYBIGOUTPUT_FILENAME", CFG_CUSTOM, "ReallyBigOutput.txt")
static

◆ cfg_ReallyBigOutput_interval

CfgInt cfg_ReallyBigOutput_interval("G_REALLYBIGOUTPUT_INTERVAL", CFG_CUSTOM, 1)
static

Referenced by Population_Manager::Run().

◆ cfg_ReallyBigOutput_used

CfgBool cfg_ReallyBigOutput_used("G_REALLYBIGOUTPUT_USED", CFG_CUSTOM, false)

◆ cfg_ReallyBigOutputFirstYear

CfgInt cfg_ReallyBigOutputFirstYear("G_REALLYBIGOUTPUT_FIRSTYEAR", CFG_CUSTOM, 1)
static

Referenced by Population_Manager::Run().

◆ cfg_RipleysOutput_day

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

Referenced by Population_Manager::Run().

◆ cfg_RipleysOutput_filename

CfgStr cfg_RipleysOutput_filename("G_RIPLEYSOUTPUT_FILENAME", CFG_CUSTOM, "RipleysOutput.txt")
static

◆ cfg_RipleysOutput_interval

CfgInt cfg_RipleysOutput_interval("G_RIPLEYSOUTPUT_INTERVAL", CFG_CUSTOM, 1)
static

Referenced by Population_Manager::Run().

◆ cfg_RipleysOutput_used

CfgBool cfg_RipleysOutput_used("G_RIPLEYSOUTPUT_USED", CFG_CUSTOM, false)

◆ cfg_RipleysOutputFirstYear

CfgInt cfg_RipleysOutputFirstYear("G_RIPLEYSOUTPUT_FIRSTYEAR", CFG_CUSTOM, 1)
static

Referenced by Population_Manager::Run().

◆ cfg_RipleysOutputMonthly_used

CfgBool cfg_RipleysOutputMonthly_used("G_RIPLEYSOUTPUTMONTHLY_USED", CFG_CUSTOM, false)

◆ cfg_VoleCatastrophe_interval

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

◆ cfg_VoleCatastrophe_mortality

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

◆ cfg_VoleCatastrophe_on

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

◆ g_rand_uni

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

◆ g_str