Goose Management Model ODdox
1.02
|
a data structure to hold goose memory location attributes More...
#include <GooseMemoryMap.h>
Public Member Functions | |
void | CalcScore (int a_dist, double a_flightcost, int a_expectedforagingtime) |
Updates the m_score value. More... | |
GooseMemoryLocation () | |
GooseMemoryLocation default constructor. More... | |
bool | operator< (const GooseMemoryLocation &gml) |
operator definition for comparing polygon id numbers More... | |
bool | ShouldDelete () |
Test to see if a memory is too old to remember any longer. More... | |
Public Attributes | |
int | m_age |
how old the memory is More... | |
double | m_foodresource |
The max food intake rate (kJ/min) at the location. More... | |
double | m_grain |
the grain resource at the location as intake rate kJ/min More... | |
double | m_grazing |
the grazing resource at the location as intake rate kJ/min More... | |
double | m_maize |
the maize resource at the location as intake rate kJ/min More... | |
int | m_polygonid |
the unique polygon identification More... | |
double | m_score |
A score used to assess the location. More... | |
double | m_threat |
the threat-level memory strength More... | |
int | m_x |
x-coordinate More... | |
int | m_y |
y-coordinate More... | |
Static Public Attributes | |
static int | m_infinitememorystop = 0 |
the age at which a memory is removed. More... | |
a data structure to hold goose memory location attributes
Definition at line 41 of file GooseMemoryMap.h.
|
inline |
GooseMemoryLocation default constructor.
Definition at line 69 of file GooseMemoryMap.h.
References m_age, m_foodresource, m_grain, m_grazing, m_infinitememorystop, m_maize, m_polygonid, m_threat, m_x, and m_y.
|
inline |
Updates the m_score value.
Definition at line 78 of file GooseMemoryMap.h.
References m_foodresource, m_score, and m_threat.
|
inline |
operator definition for comparing polygon id numbers
Definition at line 73 of file GooseMemoryMap.h.
References m_polygonid.
|
inline |
Test to see if a memory is too old to remember any longer.
Definition at line 85 of file GooseMemoryMap.h.
References m_age, and m_infinitememorystop.
Referenced by IsMarkedToDelete().
int GooseMemoryLocation::m_age |
how old the memory is
Definition at line 45 of file GooseMemoryMap.h.
Referenced by GooseMemoryLocation(), and ShouldDelete().
double GooseMemoryLocation::m_foodresource |
The max food intake rate (kJ/min) at the location.
Definition at line 59 of file GooseMemoryMap.h.
Referenced by CalcScore(), Goose_Base::EvaluateForageToHopLoc(), GooseMemoryLocation(), GooseMemoryMap::MemAdd(), Goose_Base::On_Bang(), and Goose_Base::st_ChooseForageLocation().
double GooseMemoryLocation::m_grain |
the grain resource at the location as intake rate kJ/min
Definition at line 53 of file GooseMemoryMap.h.
Referenced by Goose_Base::EvaluateForageToHopLoc(), GooseMemoryLocation(), GooseMemoryMap::MemAdd(), and Goose_Base::st_ChooseForageLocation().
double GooseMemoryLocation::m_grazing |
the grazing resource at the location as intake rate kJ/min
Definition at line 57 of file GooseMemoryMap.h.
Referenced by Goose_Base::EvaluateForageToHopLoc(), GooseMemoryLocation(), GooseMemoryMap::MemAdd(), and Goose_Base::st_ChooseForageLocation().
|
static |
the age at which a memory is removed.
Definition at line 65 of file GooseMemoryMap.h.
Referenced by GooseMemoryLocation(), GooseMemoryMap::GooseMemoryMap(), and ShouldDelete().
double GooseMemoryLocation::m_maize |
the maize resource at the location as intake rate kJ/min
Definition at line 55 of file GooseMemoryMap.h.
Referenced by Goose_Base::EvaluateForageToHopLoc(), GooseMemoryLocation(), GooseMemoryMap::MemAdd(), and Goose_Base::st_ChooseForageLocation().
int GooseMemoryLocation::m_polygonid |
the unique polygon identification
Definition at line 51 of file GooseMemoryMap.h.
Referenced by Goose_Base::EvaluateForageToHopLoc(), GooseMemoryLocation(), GooseMemoryMap::MemAdd(), Goose_Base::On_Bang(), operator<(), and Goose_Base::st_ChooseForageLocation().
double GooseMemoryLocation::m_score |
A score used to assess the location.
Definition at line 63 of file GooseMemoryMap.h.
Referenced by CalcScore(), Goose_Base::EvaluateForageToHopLoc(), GooseMemoryMap::GetBestFeedingScore(), Goose_Base::On_Bang(), and Goose_Base::st_ChooseForageLocation().
double GooseMemoryLocation::m_threat |
the threat-level memory strength
Definition at line 61 of file GooseMemoryMap.h.
Referenced by CalcScore(), Goose_Base::EvaluateForageToHopLoc(), GooseMemoryLocation(), Goose_Base::On_Bang(), and Goose_Base::st_ChooseForageLocation().
int GooseMemoryLocation::m_x |
x-coordinate
Definition at line 47 of file GooseMemoryMap.h.
Referenced by Goose_Base::EvaluateForageToHopLoc(), GooseMemoryLocation(), Goose_Base::On_Bang(), and Goose_Base::st_ChooseForageLocation().
int GooseMemoryLocation::m_y |
y-coordinate
Definition at line 49 of file GooseMemoryMap.h.
Referenced by Goose_Base::EvaluateForageToHopLoc(), GooseMemoryLocation(), Goose_Base::On_Bang(), and Goose_Base::st_ChooseForageLocation().