Goose Management Model ODdox  1.02
GooseMemoryMap.cpp File Reference

code file for the Goose Memory Map and associated classes. More...

#include <cmath>
#include <vector>
#include <list>
#include <iostream>
#include <fstream>
#include <string>
#include "../Landscape/ls.h"
#include "GooseMemoryMap.h"
#include "../BatchALMaSS/PopulationManager.h"
#include "Goose_Base.h"

Go to the source code of this file.

Functions

bool IsMarkedToDelete (GooseMemoryLocation &o)
 

Variables

static CfgInt cfg_goose_mem_expectedforagingtime ("GOOSE_MEM_EXPECTEDFORAGINGTIME", CFG_CUSTOM, 120)
 
static CfgInt cfg_goose_mem_minmemoryvalue ("GOOSE_MEM_MINMEMVALUE", CFG_CUSTOM, 30)
 
static CfgFloat cfg_goose_mem_threatdecayrate ("GOOSE_MEM_THREATDECAYRATE", CFG_CUSTOM, 0.1)
 
ALMaSS_MathFuncs g_AlmassMathFuncs
 This variable provides access the to the internal ALMaSS math functions. More...
 

Detailed Description

code file for the Goose Memory Map and associated classes.

C++

Definition in file GooseMemoryMap.cpp.

Function Documentation

◆ IsMarkedToDelete()

bool IsMarkedToDelete ( GooseMemoryLocation o)

/brief Function to figure out if a particular memory should be deleted from the goose's memory

Definition at line 32 of file GooseMemoryMap.cpp.

33 {
34  return o.ShouldDelete();
35 }

References GooseMemoryLocation::ShouldDelete().

Referenced by GooseMemoryMap::DecayAllMemory().

Variable Documentation

◆ cfg_goose_mem_expectedforagingtime

CfgInt cfg_goose_mem_expectedforagingtime("GOOSE_MEM_EXPECTEDFORAGINGTIME", CFG_CUSTOM, 120)
static

/brief The expected foraging time when evaluating cost benefit of flying to a location

Referenced by GooseMemoryMap::GooseMemoryMap().

◆ cfg_goose_mem_minmemoryvalue

CfgInt cfg_goose_mem_minmemoryvalue("GOOSE_MEM_MINMEMVALUE", CFG_CUSTOM, 30)
static

/brief Threshold value for when to delete objects stored in the goose's memory, here after 30 days

Referenced by GooseMemoryMap::GooseMemoryMap().

◆ cfg_goose_mem_threatdecayrate

CfgFloat cfg_goose_mem_threatdecayrate("GOOSE_MEM_THREATDECAYRATE", CFG_CUSTOM, 0.1)
static

/brief The rate at which memory of a threat decays

Referenced by GooseMemoryMap::GooseMemoryMap().

◆ g_AlmassMathFuncs

ALMaSS_MathFuncs g_AlmassMathFuncs

This variable provides access the to the internal ALMaSS math functions.

Referenced by GooseMemoryMap::ChangeSetFoodRes(), and GooseMemoryMap::DecayAllMemory().

GooseMemoryLocation::ShouldDelete
bool ShouldDelete()
Test to see if a memory is too old to remember any longer.
Definition: GooseMemoryMap.h:85