Gadget
naturalm.h
Go to the documentation of this file.
1 #ifndef naturalm_h
2 #define naturalm_h
3 
4 #include "areatime.h"
5 #include "commentstream.h"
6 #include "selectfunc.h"
7 #include "livesonareas.h"
8 #include "modelvariablevector.h"
9 #include "keeper.h"
10 
19 class NaturalMortality : public HasName, public LivesOnAreas {
20 public:
31  NaturalMortality(CommentStream& infile, int minage, int numage, const char* givenname,
32  const IntVector& Areas, const TimeClass* const TimeInfo, Keeper* const keeper);
42  const DoubleVector& getProportion(int area) const { return proportion[this->areaNum(area)]; };
47  void Reset(const TimeClass* const TimeInfo);
52  void Print(ofstream& outfile);
53 protected:
74 };
75 
76 #endif
This is the class used to strip comments (and whitespace) from any input stream.
Definition: commentstream.h:40
This class implements a dynamic vector of DoubleVector values.
Definition: doublematrix.h:11
This class implements a dynamic vector of double values.
Definition: doublevector.h:11
This is the base class for any object that has a name.
Definition: hasname.h:10
This class implements a dynamic vector of int values.
Definition: intvector.h:11
This is the class used to store information about the variables that are used in model simulation.
Definition: keeper.h:17
This is the class used to store information about the areas an object is defined on for the current m...
Definition: livesonareas.h:10
int areaNum(int area) const
This function will return the area associated with an internal area.
Definition: livesonareas.cc:33
This class implements a dynamic vector of ModelVariable values.
Definition: modelvariablevector.h:10
This is the class used to calculate the affect of natural mortality on the stock.
Definition: naturalm.h:19
~NaturalMortality()
This is the default NaturalMortality destructor.
Definition: naturalm.cc:45
NaturalMortality(CommentStream &infile, int minage, int numage, const char *givenname, const IntVector &Areas, const TimeClass *const TimeInfo, Keeper *const keeper)
This is the NaturalMortality constructor.
Definition: naturalm.cc:10
int readoption
This is the identifier of the function to be used to read the natural mortality data from file.
Definition: naturalm.h:73
void Reset(const TimeClass *const TimeInfo)
This function will reset the NaturalMortality information.
Definition: naturalm.cc:50
SelectFunc * fnMortality
This is the SelectFunc used to calculate of the proportion of each age group of the stock that will d...
Definition: naturalm.h:61
ModelVariableVector mortality
This is the ModelVariableVector used to store the mortality of each age group.
Definition: naturalm.h:57
int minStockAge
This is the minimum age of the stock, used as an index when calculating proportion.
Definition: naturalm.h:69
void Print(ofstream &outfile)
This function will print the summary NaturalMortality information.
Definition: naturalm.cc:92
const DoubleVector & getProportion(int area) const
This function will return the DoubleVector of the proportion of each age group that will survive on t...
Definition: naturalm.h:42
DoubleMatrix proportion
This is the DoubleMatrix used to store the proportion of each age group that will survive (ie....
Definition: naturalm.h:65
This is the base class used to calculate the selection level as a function of length.
Definition: selectfunc.h:14
This is the class used to store information about the timesteps used for the current model.
Definition: areatime.h:87