ALMaSS  1.2 (after EcoStack, March 2024)
The Animal, Landscape and Man Simulation System
PopulationManager.h File Reference

PopulationManager.h This is the header file for the population manager and associated classes
More...

#include <omp.h>
#include <forward_list>

Go to the source code of this file.

Classes

struct  IntArray100
 A struct of 100 ints. More...
 
struct  rectangle
 A struct defining two x,y coordinate sets of positive co-ords only. More...
 
class  TALMaSSObject
 The base class of all ALMaSS objects requiring Step code. More...
 
class  AnimalPosition
 A class defining an animals position. More...
 
class  RoeDeerInfo
 Part of the basic ALMaSS system (obselete) Communicates the range centre, age and size of animals to other objects. More...
 
class  TAnimal
 The base class for all ALMaSS animal classes. Includes all the functionality required to be handled by classes derived from Population_Manager, hence a number of empty methods that MUST be reimplemented in descendent classes e.g. CopyMyself() More...
 
class  ReturnLessThanX
 Test the given animal's x-coordinate against the given x-coordinate. More...
 
class  ReturnMoreThanX
 Test the given animal's y-coordinate against the given y-coordinate. More...
 
class  Probe_Data
 Data structure to hold & output probe data probe data is designed to be used to return the number of objects in a given area or areas in specific element or vegetation types or farms. More...
 
class  SimpleStatistics
 
class  Population_Manager_Base
 Base class for all population managers. More...
 
class  Population_Manager
 Base class for all population managers for agent based models. More...
 
class  None_Population_Manager
 A class for running simulations without animals. More...
 
class  PopulationManagerList
 A small class to hold the pointers to active population managers. More...
 

Typedefs

using AnsiString = char *
 
using TListOfAnimals = vector< TAnimal * >
 

Enumerations

enum  TTypesOfPopulation : int {
  TOP_NoSpecies = -1, TOP_Skylark = 0, TOP_Vole, TOP_Erigone,
  TOP_Bembidion, TOP_Hare, TOP_Partridge, TOP_Goose,
  TOP_RoeDeer, TOP_Rabbit, TOP_Newt, TOP_Osmia,
  TOP_ApisRAM, TOP_Oedothorax, TOP_OliveMoth, TOP_Bombus,
  TOP_Lacewing, TOP_Aphid, TOP_Ladybird, TOP_PoecilusCupreus,
  TOP_Predators, TOP_Hunters, TOP_OsmiaParasitoids, TOP_Beetle,
  TOP_Disturbers, TOP_foobar
}
 An enum to hold all the possible types of population handled by a Population_Manager class. More...
 
enum  to_BeforeStepActions : unsigned {
  toBSA_Shuffle = 0, toBSA_SortX, toBSA_SortY, toBSA_Nothing,
  toBSA_ShuffleEvery500, toBSA_foobar
}
 

Variables

CfgBool l_pest_enable_pesticide_engine
 Used to turn on or off the PPP functionality of ALMaSS. More...
 

Detailed Description

PopulationManager.h This is the header file for the population manager and associated classes

Modified by Chris J. Topping and Xiaodong Duan
Version of Feb. 2024

Typedef Documentation

◆ AnsiString

using AnsiString = char*

◆ TListOfAnimals

using TListOfAnimals = vector<TAnimal*>

Enumeration Type Documentation

◆ to_BeforeStepActions

enum to_BeforeStepActions : unsigned
Enumerator
toBSA_Shuffle 
toBSA_SortX 
toBSA_SortY 
toBSA_Nothing 
toBSA_ShuffleEvery500 
toBSA_foobar 
90  :unsigned {
91  toBSA_Shuffle = 0,
97 };

◆ TTypesOfPopulation

enum TTypesOfPopulation : int

An enum to hold all the possible types of population handled by a Population_Manager class.

Enumerator
TOP_NoSpecies 
TOP_Skylark 
TOP_Vole 
TOP_Erigone 
TOP_Bembidion 
TOP_Hare 
TOP_Partridge 
TOP_Goose 
TOP_RoeDeer 
TOP_Rabbit 
TOP_Newt 
TOP_Osmia 
TOP_ApisRAM 
TOP_Oedothorax 
TOP_OliveMoth 
TOP_Bombus 
TOP_Lacewing 
TOP_Aphid 
TOP_Ladybird 
TOP_PoecilusCupreus 
TOP_Predators 
TOP_Hunters 
TOP_OsmiaParasitoids 
TOP_Beetle 
TOP_Disturbers 
TOP_foobar 
57  :int {
58  TOP_NoSpecies = -1,
59  TOP_Skylark = 0,
60  TOP_Vole,
63  TOP_Hare,
65  TOP_Goose,
67  TOP_Rabbit,
68  TOP_Newt,
69  TOP_Osmia,
73  TOP_Bombus,
75  TOP_Aphid,
77  //17
79  // Above this line are used for menu items and have to be in this order and present
83  TOP_Beetle,
86 };

Variable Documentation

◆ l_pest_enable_pesticide_engine

CfgBool l_pest_enable_pesticide_engine

Used to turn on or off the PPP functionality of ALMaSS.

Referenced by TAnimal::KillThis().

TOP_Skylark
Definition: PopulationManager.h:59
TOP_Newt
Definition: PopulationManager.h:68
TOP_Hunters
Definition: PopulationManager.h:81
toBSA_Nothing
Definition: PopulationManager.h:94
TOP_Bombus
Definition: PopulationManager.h:73
TOP_Osmia
Definition: PopulationManager.h:69
TOP_ApisRAM
Definition: PopulationManager.h:70
TOP_OsmiaParasitoids
Definition: PopulationManager.h:82
TOP_PoecilusCupreus
Definition: PopulationManager.h:78
TOP_Goose
Definition: PopulationManager.h:65
toBSA_SortX
Definition: PopulationManager.h:92
TOP_Bembidion
Definition: PopulationManager.h:62
TOP_Rabbit
Definition: PopulationManager.h:67
TOP_Aphid
Definition: PopulationManager.h:75
TOP_Partridge
Definition: PopulationManager.h:64
TOP_Disturbers
Definition: PopulationManager.h:84
TOP_Hare
Definition: PopulationManager.h:63
TOP_NoSpecies
Definition: PopulationManager.h:58
TOP_RoeDeer
Definition: PopulationManager.h:66
TOP_Beetle
Definition: PopulationManager.h:83
TOP_foobar
Definition: PopulationManager.h:85
TOP_Predators
Definition: PopulationManager.h:80
toBSA_ShuffleEvery500
Definition: PopulationManager.h:95
toBSA_Shuffle
Definition: PopulationManager.h:91
TOP_Ladybird
Definition: PopulationManager.h:76
TOP_Lacewing
Definition: PopulationManager.h:74
toBSA_foobar
Definition: PopulationManager.h:96
TOP_Vole
Definition: PopulationManager.h:60
TOP_Oedothorax
Definition: PopulationManager.h:71
TOP_OliveMoth
Definition: PopulationManager.h:72
TOP_Erigone
Definition: PopulationManager.h:61
toBSA_SortY
Definition: PopulationManager.h:93