ALMaSS Vole ODDox
1.1
The vole model description following ODdox protocol
|
A class for simulation virtual traplines. More...
#include <VolePopulationManager.h>
Public Member Functions | |
TrapLineMap (unsigned int a_width, unsigned int a_height, unsigned int a_resolution, const char *a_file) | |
TrapLineMap constructor. More... | |
~TrapLineMap () | |
TrapLineMap destructor. More... | |
bool | IsTrap (unsigned a_x, unsigned a_y) |
Is there a trap at this x,y? More... | |
void | Output (InTrapPosition a_tp, int a_day, int a_sex, bool a_terr, int a_age, int a_bx, int a_by, int a_ID) |
Protected Member Functions | |
void | Init (const char *a_inifile) |
Reads in the trap coords, creates the map and sets up the output files. More... | |
Protected Attributes | |
unsigned | m_noTraps |
The total number of traps. More... | |
vector< APoint > | m_TrapCoords |
List of trap co-ordinates. More... | |
FILE * | m_ofile |
A class for simulation virtual traplines.
Definition at line 94 of file VolePopulationManager.h.
TrapLineMap::TrapLineMap | ( | unsigned int | a_width, |
unsigned int | a_height, | ||
unsigned int | a_resolution, | ||
const char * | a_file | ||
) |
TrapLineMap constructor.
Definition at line 3945 of file VolePopulationManager.cpp.
References Init().
TrapLineMap::~TrapLineMap | ( | ) |
TrapLineMap destructor.
Definition at line 3950 of file VolePopulationManager.cpp.
References m_ofile.
|
protected |
Reads in the trap coords, creates the map and sets up the output files.
Clears the map then reads the list of co-ordinates from the text file, saves these in m_TrapList. At the same time this creates the trap map by putting 1s at each co-ordinate.
Definition at line 3959 of file VolePopulationManager.cpp.
References m_noTraps, m_ofile, and m_TrapCoords.
Referenced by TrapLineMap().
|
inline |
Is there a trap at this x,y?
Definition at line 102 of file VolePopulationManager.h.
Referenced by Vole_Population_Manager::IsTrap().
void TrapLineMap::Output | ( | InTrapPosition | a_tp, |
int | a_day, | ||
int | a_sex, | ||
bool | a_terr, | ||
int | a_age, | ||
int | a_bx, | ||
int | a_by, | ||
int | a_ID | ||
) |
Definition at line 3989 of file VolePopulationManager.cpp.
References AnimalPosition::m_EleType, m_ofile, AnimalPosition::m_VegType, AnimalPosition::m_x, and AnimalPosition::m_y.
Referenced by Vole_Population_Manager::DoFirst().
|
protected |
The total number of traps.
Definition at line 111 of file VolePopulationManager.h.
Referenced by Init().
|
protected |
Definition at line 114 of file VolePopulationManager.h.
Referenced by Init(), Output(), and ~TrapLineMap().
|
protected |
List of trap co-ordinates.
Definition at line 113 of file VolePopulationManager.h.
Referenced by Init().