Gadget
totalpredator.h
Go to the documentation of this file.
1 #ifndef totalpredator_h
2 #define totalpredator_h
3 
4 #include "lengthpredator.h"
5 
10 class TotalPredator : public LengthPredator {
11 public:
21  TotalPredator(CommentStream& infile, const char* givenname, const IntVector& Areas,
22  const TimeClass* const TimeInfo, Keeper* const keeper, Formula multscaler);
26  virtual ~TotalPredator() {};
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 };
46 
47 #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 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 store information about the timesteps used for the current model.
Definition: areatime.h:87
This is the class used to model the predation of stocks by a fleet that will catch a given biomass.
Definition: totalpredator.h:10
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: totalpredator.cc:70
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: totalpredator.cc:20
virtual ~TotalPredator()
This is the default TotalPredator destructor.
Definition: totalpredator.h:26
TotalPredator(CommentStream &infile, const char *givenname, const IntVector &Areas, const TimeClass *const TimeInfo, Keeper *const keeper, Formula multscaler)
This is the TotalPredator constructor.
Definition: totalpredator.cc:8
virtual void Print(ofstream &outfile) const
This function will print the predator information.
Definition: totalpredator.cc:118