This is the base class used to calculate the predator prey suitability value. More...
#include <suitfunc.h>
Public Member Functions | |
SuitFunc (const char *givenname) | |
This is the default SuitFunc constructor. More... | |
virtual | ~SuitFunc () |
This is the default SuitFunc destructor. More... | |
const ModelVariableVector & | getConstants () const |
This function will return the value of the selection function parameters. More... | |
void | readConstants (CommentStream &infile, const TimeClass *const TimeInfo, Keeper *const keeper) |
This function will read the value of the suitability function parameters from file. More... | |
void | updateConstants (const TimeClass *const TimeInfo) |
This function will update the suitability function parameters. More... | |
int | didChange (const TimeClass *const TimeInfo) |
This function will check to see if the suitability function parameters have changed. More... | |
virtual int | usesPredLength ()=0 |
This will return 1 if the suitability function is based on the predator length, 0 otherwise. More... | |
virtual int | usesPreyLength ()=0 |
This will return 1 if the suitability function is based on the prey length, 0 otherwise. More... | |
virtual void | setPredLength (double length) |
This will set the predator length. More... | |
virtual void | setPreyLength (double length) |
This will set the prey length. More... | |
virtual double | calculate ()=0 |
This will return the suitability value that has been calculated. More... | |
int | numConstants () |
This will return the number of constants used to calculate the suitability value. More... | |
![]() | |
HasName () | |
This is the default HasName constructor. More... | |
virtual | ~HasName () |
This is the default HasName destructor. More... | |
HasName (const char *givenname) | |
This is the HasName constructor for a specified name. More... | |
const char * | getName () const |
This will return a null terminated text string containing the name of the object. More... | |
Protected Attributes | |
ModelVariableVector | coeff |
This is the ModelVariableVector of suitability function constants. More... | |
This is the base class used to calculate the predator prey suitability value.
|
inline |
|
inlinevirtual |
This is the default SuitFunc destructor.
|
pure virtual |
This will return the suitability value that has been calculated.
Implemented in AndersenFleetSuitFunc, GammaSuitFunc, RichardsSuitFunc, StraightUnboundedSuitFunc, InverseSuitFunc, StraightSuitFunc, ExpSuitFuncL50, AndersenSuitFunc, ConstSuitFunc, and ExpSuitFuncA.
int SuitFunc::didChange | ( | const TimeClass *const | TimeInfo | ) |
This function will check to see if the suitability function parameters have changed.
TimeInfo | is the TimeClass for the current model |
const ModelVariableVector & SuitFunc::getConstants | ( | ) | const |
This function will return the value of the selection function parameters.
|
inline |
This will return the number of constants used to calculate the suitability value.
void SuitFunc::readConstants | ( | CommentStream & | infile, |
const TimeClass *const | TimeInfo, | ||
Keeper *const | keeper | ||
) |
This function will read the value of the suitability function parameters from file.
infile | is the CommentStream to read the parameters from |
TimeInfo | is the TimeClass for the current model |
keeper | is the Keeper for the current model |
|
virtual |
This will set the predator length.
length | is the predator length |
Reimplemented in RichardsSuitFunc, AndersenSuitFunc, and ExpSuitFuncA.
|
virtual |
This will set the prey length.
length | is the prey length |
Reimplemented in AndersenFleetSuitFunc, GammaSuitFunc, RichardsSuitFunc, StraightUnboundedSuitFunc, InverseSuitFunc, StraightSuitFunc, ExpSuitFuncL50, AndersenSuitFunc, and ExpSuitFuncA.
void SuitFunc::updateConstants | ( | const TimeClass *const | TimeInfo | ) |
This function will update the suitability function parameters.
TimeInfo | is the TimeClass for the current model |
|
pure virtual |
This will return 1 if the suitability function is based on the predator length, 0 otherwise.
Implemented in AndersenFleetSuitFunc, GammaSuitFunc, RichardsSuitFunc, StraightUnboundedSuitFunc, InverseSuitFunc, StraightSuitFunc, ExpSuitFuncL50, AndersenSuitFunc, ConstSuitFunc, and ExpSuitFuncA.
|
pure virtual |
This will return 1 if the suitability function is based on the prey length, 0 otherwise.
Implemented in AndersenFleetSuitFunc, GammaSuitFunc, RichardsSuitFunc, StraightUnboundedSuitFunc, InverseSuitFunc, StraightSuitFunc, ExpSuitFuncL50, AndersenSuitFunc, ConstSuitFunc, and ExpSuitFuncA.
|
protected |
This is the ModelVariableVector of suitability function constants.