Gadget
Public Member Functions | List of all members
StraightUnboundedSuitFunc Class Reference

This is the class used to calculate the suitability based on a linear function of the prey length with no upper bound. More...

#include <suitfunc.h>

Inheritance diagram for StraightUnboundedSuitFunc:
Inheritance graph
Collaboration diagram for StraightUnboundedSuitFunc:
Collaboration graph

Public Member Functions

 StraightUnboundedSuitFunc ()
 This is the StraightUnboundedSuitFunc constructor. More...
 
virtual ~StraightUnboundedSuitFunc ()
 This is the default StraightUnboundedSuitFunc destructor. More...
 
virtual int usesPredLength ()
 This will return 1 if the suitability function is based on the predator length, 0 otherwise. More...
 
virtual int usesPreyLength ()
 This will return 1 if the suitability function is based on the prey length, 0 otherwise. More...
 
virtual void setPreyLength (double length)
 This will set the prey length. More...
 
virtual double calculate ()
 This will return the suitability value that has been calculated. More...
 
- Public Member Functions inherited from SuitFunc
 SuitFunc (const char *givenname)
 This is the default SuitFunc constructor. More...
 
virtual ~SuitFunc ()
 This is the default SuitFunc destructor. More...
 
const ModelVariableVectorgetConstants () 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 void setPredLength (double length)
 This will set the predator length. More...
 
int numConstants ()
 This will return the number of constants used to calculate the suitability value. More...
 
- Public Member Functions inherited from HasName
 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...
 

Additional Inherited Members

- Protected Attributes inherited from SuitFunc
ModelVariableVector coeff
 This is the ModelVariableVector of suitability function constants. More...
 

Detailed Description

This is the class used to calculate the suitability based on a linear function of the prey length with no upper bound.

Constructor & Destructor Documentation

◆ StraightUnboundedSuitFunc()

StraightUnboundedSuitFunc::StraightUnboundedSuitFunc ( )

This is the StraightUnboundedSuitFunc constructor.

◆ ~StraightUnboundedSuitFunc()

virtual StraightUnboundedSuitFunc::~StraightUnboundedSuitFunc ( )
inlinevirtual

This is the default StraightUnboundedSuitFunc destructor.

Member Function Documentation

◆ calculate()

double StraightUnboundedSuitFunc::calculate ( )
virtual

This will return the suitability value that has been calculated.

Returns
value

Implements SuitFunc.

◆ setPreyLength()

virtual void StraightUnboundedSuitFunc::setPreyLength ( double  length)
inlinevirtual

This will set the prey length.

Parameters
lengthis the prey length

Reimplemented from SuitFunc.

◆ usesPredLength()

virtual int StraightUnboundedSuitFunc::usesPredLength ( )
inlinevirtual

This will return 1 if the suitability function is based on the predator length, 0 otherwise.

Returns
0

Implements SuitFunc.

◆ usesPreyLength()

virtual int StraightUnboundedSuitFunc::usesPreyLength ( )
inlinevirtual

This will return 1 if the suitability function is based on the prey length, 0 otherwise.

Returns
1

Implements SuitFunc.


The documentation for this class was generated from the following files: