This class implements a dynamic vector of char values.
Definition: charptrvector.h:8
int Size() const
This will return the size of the vector.
Definition: charptrvector.h:44
This class implements a dynamic vector of DoubleMatrix values.
Definition: doublematrixptrvector.h:10
This class implements a dynamic vector of DoubleVector values.
Definition: doublematrix.h:11
This is the class used to store information about the variables that are used in model simulation.
Definition: keeper.h:17
This is the base class used to model the consumption by a predator.
Definition: predator.h:25
This class implements a dynamic vector of SuitFunc values.
Definition: suitfuncptrvector.h:12
This is the base class used to calculate the predator prey suitability value.
Definition: suitfunc.h:14
This is the class used to calculate and store the suitability values for all the preys of a single pr...
Definition: suits.h:15
DoubleMatrixPtrVector preCalcSuitability
This is the DoubleMatrixPtrVector of calculated suitability values.
Definition: suits.h:85
void Reset(const Predator *const pred, const TimeClass *const TimeInfo)
This function will reset the suitability information for a given predator.
Definition: suits.cc:37
const DoubleMatrix & getSuitability(int i) const
This function will return the calculated suitability values for a given prey.
Definition: suits.h:65
int didChange(int i, const TimeClass *const TimeInfo)
This function will check to see if the suitability parameters for a given prey have changed on the cu...
Definition: suits.h:59
void addPrey(const char *preyname, SuitFunc *suitf)
This function will add suitability values for a given prey.
Definition: suits.cc:16
void Initialise(const Predator *const pred)
This will initialise the preys that will be consumed by the predator.
Definition: suits.cc:31
int numPreys() const
This function will return the number of preys that have suitability values.
Definition: suits.h:52
const char * getPreyName(int i) const
This function will return the name of a given prey.
Definition: suits.h:42
SuitFuncPtrVector suitFunction
This is the SuitFuncPtrVector of the suitability functions used when calculating the consumption of t...
Definition: suits.h:80
CharPtrVector preynames
This is the CharPtrVector of prey names.
Definition: suits.h:76
Suits()
This is the default Suits constructor.
Definition: suits.h:20
~Suits()
This is the default Suits destructor.
Definition: suits.cc:7
void deletePrey(int i, Keeper *const keeper)
This function will delete suitability values for a given prey.
Definition: suits.cc:23
This is the class used to store information about the timesteps used for the current model.
Definition: areatime.h:87