Gadget
|
This is the class used to calculate the growth when reading the growth directly from a file. More...
#include <growthcalc.h>
Public Member Functions | |
GrowthCalcB (CommentStream &infile, const IntVector &Areas, const TimeClass *const TimeInfo, Keeper *const keeper, const AreaClass *const Area, const CharPtrVector &lenindex) | |
This is the default GrowthCalcB constructor. More... | |
~GrowthCalcB () | |
This is the default GrowthCalcB 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 read from file. More... | |
![]() | |
GrowthCalcBase (const IntVector &Areas) | |
This is the default GrowthCalcBase constructor. More... | |
~GrowthCalcBase () | |
This is the default GrowthCalcBase destructor. 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... | |
Protected Attributes | |
FormulaMatrixPtrVector | lgrowth |
This is the FormulaMatrixPtrVector of increase in length for each length group. More... | |
FormulaMatrixPtrVector | wgrowth |
This is the FormulaMatrixPtrVector of increase in weight for each length group. More... | |
![]() | |
IntVector | areas |
This is the IntVector of internal areas that the object is defined on. More... | |
Additional Inherited Members | |
![]() | |
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... | |
IntVector & | getAreas () |
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... | |
This is the class used to calculate the growth when reading the growth directly from a file.
GrowthCalcB::GrowthCalcB | ( | CommentStream & | infile, |
const IntVector & | Areas, | ||
const TimeClass *const | TimeInfo, | ||
Keeper *const | keeper, | ||
const AreaClass *const | Area, | ||
const CharPtrVector & | lenindex | ||
) |
This is the default GrowthCalcB constructor.
infile | is the CommentStream to read the growth parameters from |
Areas | is the IntVector of areas that the growth calculation can take place on |
TimeInfo | is the TimeClass for the current model |
keeper | is the Keeper for the current model |
Area | is the AreaClass for the current model |
lenindex | is the CharPtrVector of the lengths used for the growth of the stock |
GrowthCalcB::~GrowthCalcB | ( | ) |
This is the default GrowthCalcB destructor.
|
virtual |
This is the function that calculates the growth read from file.
area | is the area that the growth is being calculated on |
Lgrowth | is the DoubleVector of the mean length increase for each length group of the stock |
Wgrowth | is the DoubleVector of the mean weight increase for each length group of the stock |
numGrow | is the PopInfoVector of the current population of the stock |
Area | is the AreaClass for the current model |
TimeInfo | is the TimeClass for the current model |
Fphi | is the DoubleVector of the feeding level of the stock |
MaxCon | is the DoubleVector of the maximum consumption of the stock |
LgrpDiv | is the LengthGroupDivision of the stock |
Implements GrowthCalcBase.
|
protected |
This is the FormulaMatrixPtrVector of increase in length for each length group.
|
protected |
This is the FormulaMatrixPtrVector of increase in weight for each length group.