Gadget
effortpredator.h
Go to the documentation of this file.
1 #ifndef effortpredator_h
2 #define effortpredator_h
3 
4 #include "lengthpredator.h"
5 
11 public:
21  EffortPredator(CommentStream& infile, const char* givenname, const IntVector& Areas,
22  const TimeClass* const TimeInfo, Keeper* const keeper, Formula multscaler);
26  virtual ~EffortPredator() {};
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 model the predation of stocks by a fleet that will catch a proportion of th...
Definition: effortpredator.h:10
EffortPredator(CommentStream &infile, const char *givenname, const IntVector &Areas, const TimeClass *const TimeInfo, Keeper *const keeper, Formula multscaler)
This is the EffortPredator constructor.
Definition: effortpredator.cc:9
virtual ~EffortPredator()
This is the default EffortPredator destructor.
Definition: effortpredator.h:26
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: effortpredator.cc:44
virtual void Print(ofstream &outfile) const
This function will print the predator information.
Definition: effortpredator.cc:115
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: effortpredator.cc:76
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