Gadget
lengthpredator.h
Go to the documentation of this file.
1 #ifndef lengthpredator_h
2 #define lengthpredator_h
3 
4 #include "poppredator.h"
5 
10 class LengthPredator : public PopPredator {
11 public:
19  LengthPredator(const char* givenname, const IntVector& Areas,
20  const TimeClass* const TimeInfo,Keeper* const keeper,Formula multscaler);
24  virtual ~LengthPredator() {};
30  virtual void Sum(const PopInfoVector& NumberInArea, int area);
35  double getMultScaler() const { return multi; };
36  virtual void setTimeMultiplier(const TimeClass* const TimeInfo, int quotastep,double value); //
41  virtual void Reset(const TimeClass* const TimeInfo);
42 protected:
47  DoubleVector timeMultiplier; //To be set by the quota class
48 };
49 
50 #endif
This class implements a dynamic vector of double values.
Definition: doublevector.h:11
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
LengthPredator(const char *givenname, const IntVector &Areas, const TimeClass *const TimeInfo, Keeper *const keeper, Formula multscaler)
This is the LengthPredator constructor.
Definition: lengthpredator.cc:6
double getMultScaler() const
This will return the multiplicative value used scale the catch.
Definition: lengthpredator.h:35
Formula multi
This is the multiplicative constant that can be used to scale the biomass consumed.
Definition: lengthpredator.h:46
virtual void setTimeMultiplier(const TimeClass *const TimeInfo, int quotastep, double value)
This is a multiplier set in lengthpredator.
Definition: lengthpredator.cc:27
virtual void Sum(const PopInfoVector &NumberInArea, int area)
This will calculate the amount of prey that is consumed by the predator.
Definition: lengthpredator.cc:16
virtual void Reset(const TimeClass *const TimeInfo)
This function will reset the predation information.
Definition: lengthpredator.cc:20
virtual ~LengthPredator()
This is the default LengthPredator destructor.
Definition: lengthpredator.h:24
DoubleVector timeMultiplier
Definition: lengthpredator.h:47
This class implements a dynamic vector of PopInfo values.
Definition: popinfovector.h:11
This is the class used to model the predation of a population.
Definition: poppredator.h:16
This is the class used to store information about the timesteps used for the current model.
Definition: areatime.h:87