Gadget
quotapredator.h
Go to the documentation of this file.
1 #ifndef quotapredator_h
2 #define quotapredator_h
3 
4 #include "lengthpredator.h"
5 
10 class QuotaPredator : public LengthPredator {
11 public:
21  QuotaPredator(CommentStream& infile, const char* givenname, const IntVector& Areas,
22  const TimeClass* const TimeInfo, Keeper* const keeper, Formula multscaler);
26  virtual ~QuotaPredator();
33  virtual void Eat(int area, const AreaClass* const Area, const TimeClass* const TimeInfo);
39  virtual void adjustConsumption(int area, const TimeClass* const TimeInfo);
44  virtual void Print(ofstream& outfile) const;
45 protected:
51  double calcQuota(double biomass);
59  char* functionname;
76 };
77 
78 #endif
This is the class used to store information about the areas used for the current model.
Definition: areatime.h:18
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 double values.
Definition: doublevector.h:11
This class implements a dynamic vector of Formula values.
Definition: formulavector.h:10
This is the class used to calculate the value of the variables used in the model simulation.
Definition: formula.h:18
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 model the predation of stocks by a fleet.
Definition: lengthpredator.h:10
This is the class used to model the predation of stocks by a fleet that will catch a proportion of th...
Definition: quotapredator.h:10
int functionnumber
This is the identifier of the function to be used to calculate the fishing quota.
Definition: quotapredator.h:55
double calcQuota(double biomass)
This function will calculate the quota based on the current biomass level of the prey.
Definition: quotapredator.cc:354
char * functionname
This is the name of the function to be used to calculate the fishing quota.
Definition: quotapredator.h:59
DoubleVector biomasslevel
This is the DoubleVector used to store the stock biomass levels.
Definition: quotapredator.h:63
virtual void Print(ofstream &outfile) const
This function will print the predator information.
Definition: quotapredator.cc:349
QuotaPredator(CommentStream &infile, const char *givenname, const IntVector &Areas, const TimeClass *const TimeInfo, Keeper *const keeper, Formula multscaler)
This is the QuotaPredator constructor.
Definition: quotapredator.cc:9
IntVector selectprey
This is the IntVector used to flag which preys are used to calculate the fishing quota levels.
Definition: quotapredator.h:75
virtual ~QuotaPredator()
This is the default QuotaPredator destructor.
Definition: quotapredator.cc:137
virtual void adjustConsumption(int area, const TimeClass *const TimeInfo)
This will adjust the amount the predator consumes on a given area, to take oversconsumption into cons...
Definition: quotapredator.cc:310
virtual void Eat(int area, const AreaClass *const Area, const TimeClass *const TimeInfo)
This will calculate the amount the predator consumes on a given area.
Definition: quotapredator.cc:141
DoubleVector calcquota
This is the DoubleVector used to store the calculated fishing quota.
Definition: quotapredator.h:71
FormulaVector quotalevel
This is the FormulaVector used to store the fishing quota levels.
Definition: quotapredator.h:67
This is the class used to store information about the timesteps used for the current model.
Definition: areatime.h:87