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