Gadget
Public Member Functions | Protected Attributes | List of all members
GrowthCalcC Class Reference

This is the class used to calculate the growth of a stock using a weight-based Von Bertalanffy growth function. More...

#include <growthcalc.h>

Inheritance diagram for GrowthCalcC:
Inheritance graph
Collaboration diagram for GrowthCalcC:
Collaboration graph

Public Member Functions

 GrowthCalcC (CommentStream &infile, const IntVector &Areas, const TimeClass *const TimeInfo, const LengthGroupDivision *const LgrpDiv, Keeper *const keeper, const char *refWeightFile)
 This is the default GrowthCalcC constructor. More...
 
 ~GrowthCalcC ()
 This is the default GrowthCalcC destructor. More...
 
virtual void calcGrowth (int area, DoubleVector &Lgrowth, DoubleVector &Wgrowth, const PopInfoVector &numGrow, const AreaClass *const Area, const TimeClass *const TimeInfo, const DoubleVector &Fphi, const DoubleVector &MaxCon, const LengthGroupDivision *const LgrpDiv)
 This is the function that calculates the growth using a weight-based Von Bertalanffy function. More...
 
virtual double getPower ()
 This will return the power term of the length - weight relationship. More...
 
virtual double getMult ()
 This will return the multiplier of the length - weight relationship. More...
 
- Public Member Functions inherited from GrowthCalcBase
 GrowthCalcBase (const IntVector &Areas)
 This is the default GrowthCalcBase constructor. More...
 
 ~GrowthCalcBase ()
 This is the default GrowthCalcBase destructor. More...
 

Protected Attributes

int numWeightGrowthConstants
 This is the number of weight growth parameters (set to 6) More...
 
int numLengthGrowthConstants
 This is the number of length growth parameters (set to 9) More...
 
ModelVariableVector wgrowthPar
 This is the ModelVariableVector of weight growth parameters. More...
 
ModelVariableVector lgrowthPar
 This is the ModelVariableVector of length growth parameters. More...
 
DoubleVector refWeight
 This is the DoubleVector of the reference weight values. More...
 
- Protected Attributes inherited from LivesOnAreas
IntVector areas
 This is the IntVector of internal areas that the object is defined on. More...
 

Additional Inherited Members

- Protected Member Functions inherited from LivesOnAreas
void storeAreas (const IntVector &Areas)
 This function will store the internal areas to be used. More...
 
 LivesOnAreas ()
 This is the default LivesOnAreas constructor. More...
 
virtual ~LivesOnAreas ()
 This is the default LivesOnAreas destructor. More...
 
 LivesOnAreas (const IntVector &Areas)
 This is the LivesOnAreas constructor for a specified vector of areas. More...
 
int isInArea (int area) const
 This function will check whether the object is defined on a specified area. More...
 
IntVectorgetAreas ()
 This function will return the internal areas that the object is defined on. More...
 
int areaNum (int area) const
 This function will return the area associated with an internal area. More...
 

Detailed Description

This is the class used to calculate the growth of a stock using a weight-based Von Bertalanffy growth function.

Constructor & Destructor Documentation

◆ GrowthCalcC()

GrowthCalcC::GrowthCalcC ( CommentStream infile,
const IntVector Areas,
const TimeClass *const  TimeInfo,
const LengthGroupDivision *const  LgrpDiv,
Keeper *const  keeper,
const char *  refWeightFile 
)

This is the default GrowthCalcC constructor.

Parameters
infileis the CommentStream to read the growth parameters from
Areasis the IntVector of areas that the growth calculation can take place on
TimeInfois the TimeClass for the current model
LgrpDivis the LengthGroupDivision of the stock
keeperis the Keeper for the current model
refWeightFileis the name of the file containing the reference weight information for the stock

◆ ~GrowthCalcC()

GrowthCalcC::~GrowthCalcC ( )
inline

This is the default GrowthCalcC destructor.

Member Function Documentation

◆ calcGrowth()

void GrowthCalcC::calcGrowth ( int  area,
DoubleVector Lgrowth,
DoubleVector Wgrowth,
const PopInfoVector numGrow,
const AreaClass *const  Area,
const TimeClass *const  TimeInfo,
const DoubleVector Fphi,
const DoubleVector MaxCon,
const LengthGroupDivision *const  LgrpDiv 
)
virtual

This is the function that calculates the growth using a weight-based Von Bertalanffy function.

Parameters
areais the area that the growth is being calculated on
Lgrowthis the DoubleVector of the mean length increase for each length group of the stock
Wgrowthis the DoubleVector of the mean weight increase for each length group of the stock
numGrowis the PopInfoVector of the current population of the stock
Areais the AreaClass for the current model
TimeInfois the TimeClass for the current model
Fphiis the DoubleVector of the feeding level of the stock
MaxConis the DoubleVector of the maximum consumption of the stock
LgrpDivis the LengthGroupDivision of the stock

Implements GrowthCalcBase.

◆ getMult()

virtual double GrowthCalcC::getMult ( )
inlinevirtual

This will return the multiplier of the length - weight relationship.

Returns
lgrowthPar[6]

Reimplemented from GrowthCalcBase.

◆ getPower()

virtual double GrowthCalcC::getPower ( )
inlinevirtual

This will return the power term of the length - weight relationship.

Returns
lgrowthPar[7]

Reimplemented from GrowthCalcBase.

Member Data Documentation

◆ lgrowthPar

ModelVariableVector GrowthCalcC::lgrowthPar
protected

This is the ModelVariableVector of length growth parameters.

◆ numLengthGrowthConstants

int GrowthCalcC::numLengthGrowthConstants
protected

This is the number of length growth parameters (set to 9)

◆ numWeightGrowthConstants

int GrowthCalcC::numWeightGrowthConstants
protected

This is the number of weight growth parameters (set to 6)

◆ refWeight

DoubleVector GrowthCalcC::refWeight
protected

This is the DoubleVector of the reference weight values.

◆ wgrowthPar

ModelVariableVector GrowthCalcC::wgrowthPar
protected

This is the ModelVariableVector of weight growth parameters.


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