|
Gadget
|
This is the class used to calculate the maturity based on the 'constant' maturity function. More...
#include <maturity.h>


Public Member Functions | |
| MaturityC (CommentStream &infile, const TimeClass *const TimeInfo, Keeper *const keeper, int minage, int numage, const IntVector &areas, const char *givenname, const LengthGroupDivision *const LgrpDiv, int numMatConst) | |
| This is the MaturityC constructor. More... | |
| virtual | ~MaturityC () |
| This is the default MaturityC destructor. More... | |
| virtual void | setStock (StockPtrVector &stockvec) |
| This will select the stocks required for the maturation process. More... | |
| virtual void | Reset (const TimeClass *const TimeInfo) |
| This will reset the maturation information for the current model run. More... | |
| virtual int | isMaturationStep (const TimeClass *const TimeInfo) |
| This will check if the maturation process will take place on the current timestep. More... | |
| virtual double | calcMaturation (int age, int length, int growth, double weight) |
| This will calculate the probability of maturation for a given age and length of the immature stock. More... | |
| virtual void | Print (ofstream &outfile) const |
| This function will print the maturation information. More... | |
Public Member Functions inherited from Maturity | |
| Maturity () | |
| This is the default Maturity constructor. More... | |
| Maturity (const IntVector &areas, int minage, int numage, const LengthGroupDivision *const LgrpDiv, const char *givenname) | |
| This is the Maturity constructor. More... | |
| virtual | ~Maturity () |
| This is the default Maturity destructor. More... | |
| void | storeMatureStock (int area, int age, int length, double number, double weight) |
| This will store the calculated mature stock. More... | |
| void | storeMatureTagStock (int area, int age, int length, double number, int id) |
| This will store the calculated mature tagged stock. More... | |
| void | Move (int area, const TimeClass *const TimeInfo) |
| This will move the calculated mature stock into the mature stock age-length cells. More... | |
| const StockPtrVector & | getMatureStocks () |
| This will calculate the mature stocks the immature stock can mature into. More... | |
| void | setTagged () |
| This function will initialise the tagging experiments for the maturation calculations. More... | |
| void | addMaturityTag (const char *tagname) |
| This will add a tagging experiment to the maturation calculations. More... | |
| void | deleteMaturityTag (const char *tagname) |
| This will remove a tagging experiment from the maturation calculations. 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... | |
Protected Attributes | |
| DoubleMatrix | preCalcMaturation |
| This is the DoubleMatrix of maturation parameters. More... | |
| ModelVariableVector | maturityParameters |
| This is the ModelVariableVector of maturation parameters. More... | |
| int | minStockAge |
| This is the minimum age of the maturing stock, used as an index for preCalcMaturation. More... | |
| int | minMatureAge |
| This is the minimum age when maturation will take place. More... | |
| int | minMatureLength |
| This is the minimum length group division when maturation will take place. More... | |
| IntVector | maturitystep |
| This is the IntVector of timesteps when maturation will take place. More... | |
Protected Attributes inherited from Maturity | |
| double | tmpratio |
| This is used to temporarily store the maturation ratio. More... | |
| StockPtrVector | matureStocks |
| This is the StockPtrVector of the mature stocks. More... | |
| CharPtrVector | matureStockNames |
| This is the CharPtrVector of the names of the mature stocks. More... | |
| FormulaVector | matureRatio |
| This is the FormulaVector of the ratio of the immature stock to mature into each mature stock. More... | |
| double | ratioscale |
| This is used to scale the ratios to ensure that they will always sum to 1. More... | |
| IntVector | ratioindex |
| This is the IntVector used as an index for the ratio vector. More... | |
| ConversionIndexPtrVector | CI |
| This is the ConversionIndexPtrVector used to convert from the immature stock lengths to the mature stock lengths. More... | |
| LengthGroupDivision * | LgrpDiv |
| This is the LengthGroupDivision of the stock. 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... | |
| 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 maturity based on the 'constant' maturity function.
| MaturityC::MaturityC | ( | CommentStream & | infile, |
| const TimeClass *const | TimeInfo, | ||
| Keeper *const | keeper, | ||
| int | minage, | ||
| int | numage, | ||
| const IntVector & | areas, | ||
| const char * | givenname, | ||
| const LengthGroupDivision *const | LgrpDiv, | ||
| int | numMatConst | ||
| ) |
This is the MaturityC constructor.
| infile | is the CommentStream to read the maturation parameters from |
| TimeInfo | is the TimeClass for the current model |
| keeper | is the Keeper for the current model |
| minage | is the minimum age of the stock that can mature |
| numage | is the number of age groups for the stock that can mature |
| areas | is the IntVector of areas that the maturity calculation can take place on |
| givenname | is the name of the stock for this MaturityC class |
| LgrpDiv | is the LengthGroupDivision for the stock |
| numMatConst | is the number of maturation parameters (4) |
|
inlinevirtual |
This is the default MaturityC destructor.
|
virtual |
This will calculate the probability of maturation for a given age and length of the immature stock.
| age | is the age of the age-length cell that the maturation is being calculated on |
| length | is the length of the age-length cell that the maturation is being calculated on |
| growth | is the length of the age-length cell that the mature stock will grow into |
| weight | is the weight of the fish of the age-length cell that are maturing |
Implements Maturity.
Reimplemented in MaturityD.
|
virtual |
|
virtual |
|
virtual |
|
virtual |
This will select the stocks required for the maturation process.
| stockvec | is the StockPtrVector of all the available stocks |
Reimplemented from Maturity.
Reimplemented in MaturityD.
|
protected |
This is the ModelVariableVector of maturation parameters.
|
protected |
This is the IntVector of timesteps when maturation will take place.
|
protected |
This is the minimum age when maturation will take place.
|
protected |
This is the minimum length group division when maturation will take place.
|
protected |
This is the minimum age of the maturing stock, used as an index for preCalcMaturation.
|
protected |
This is the DoubleMatrix of maturation parameters.