![]() |
ALMaSS
1.2 (after EcoStack, March 2024)
The Animal, Landscape and Man Simulation System
|
Is the list of nests held by a polygon and associated density controls. More...
#include <Osmia_Population_Manager.h>
Public Member Functions | |
OsmiaPolygonEntry () | |
The constructor for OsmiaPolygonEntry. More... | |
OsmiaPolygonEntry (int a_index, int a_area) | |
~OsmiaPolygonEntry () | |
The destructor for OsmiaPolygonEntry. More... | |
bool | IsOsmiaNestPossible () |
Test to see if a nest is found. More... | |
void | ReleaseOsmiaNest (Osmia_Nest *a_nest) |
Test release an Osmia nest that is no longer used. More... | |
void | UpdateOsmiaNesting () |
Recalculate the nest finding probability. More... | |
void | IncOsmiaNesting (Osmia_Nest *a_nest) |
Add an occupied nest. More... | |
void | SetMaxOsmiaNests (double a_noNests) |
Sets the max number of Osmia nests for this LE. More... | |
void | SetAreaAttribute (int a_area) |
Sets the area attrribute. More... | |
void | SetIndexAttribute (int a_index) |
Sets the area attrribute. More... | |
int | GetNoNests () |
Returns the number of current nests. More... | |
int | GetMaxNoNests () |
Returns the max number of nests. More... | |
bool | SanityCheck () |
Returns the number of current nests. More... | |
bool | SanityCheck2 () |
Checks for zero cell nests. More... | |
Protected Attributes | |
std::forward_list< Osmia_Nest * > | m_NestList |
double | m_OsmiaNestProb |
to record the chance of osmia nesting More... | |
double | m_MaxOsmiaNests |
to record the number of possible osmia nests More... | |
int | m_CurrentOsmiaNests |
to record the number of actual osmia nests (only used for speed - it is the same as the size of the vector m_NestList More... | |
int | m_Area |
The polygon area. More... | |
int | m_Polyindex |
The polygon reference used by the Landscape and Osmia_Nest_Manager. More... | |
Is the list of nests held by a polygon and associated density controls.
|
inline |
The constructor for OsmiaPolygonEntry.
References m_Area, m_CurrentOsmiaNests, m_MaxOsmiaNests, m_OsmiaNestProb, and m_Polyindex.
|
inline |
References m_Area, m_CurrentOsmiaNests, m_MaxOsmiaNests, m_OsmiaNestProb, and m_Polyindex.
|
inline |
The destructor for OsmiaPolygonEntry.
References m_NestList.
|
inline |
|
inline |
|
inline |
Add an occupied nest.
References m_CurrentOsmiaNests, and m_NestList.
|
inline |
Test to see if a nest is found.
References g_rand_uni_fnc(), m_CurrentOsmiaNests, m_MaxOsmiaNests, and m_OsmiaNestProb.
|
inline |
|
inline |
|
inline |
|
inline |
Sets the area attrribute.
References m_Area.
Referenced by Osmia_Nest_Manager::InitOsmiaBeeNesting().
|
inline |
Sets the area attrribute.
References m_Polyindex.
Referenced by Osmia_Nest_Manager::InitOsmiaBeeNesting().
|
inline |
|
inline |
Recalculate the nest finding probability.
References m_CurrentOsmiaNests, m_MaxOsmiaNests, and m_OsmiaNestProb.
|
protected |
The polygon area.
Referenced by OsmiaPolygonEntry(), SetAreaAttribute(), and SetMaxOsmiaNests().
|
protected |
to record the number of actual osmia nests (only used for speed - it is the same as the size of the vector m_NestList
Referenced by GetNoNests(), IncOsmiaNesting(), IsOsmiaNestPossible(), OsmiaPolygonEntry(), ReleaseOsmiaNest(), SanityCheck(), and UpdateOsmiaNesting().
|
protected |
to record the number of possible osmia nests
Referenced by GetMaxNoNests(), IsOsmiaNestPossible(), OsmiaPolygonEntry(), SetMaxOsmiaNests(), and UpdateOsmiaNesting().
|
protected |
Referenced by IncOsmiaNesting(), ReleaseOsmiaNest(), SanityCheck(), SanityCheck2(), and ~OsmiaPolygonEntry().
|
protected |
to record the chance of osmia nesting
Referenced by IsOsmiaNestPossible(), OsmiaPolygonEntry(), and UpdateOsmiaNesting().
|
protected |
The polygon reference used by the Landscape and Osmia_Nest_Manager.
Referenced by OsmiaPolygonEntry(), and SetIndexAttribute().