Gadget
lengthprey.h
Go to the documentation of this file.
1 #ifndef lengthprey_h
2 #define lengthprey_h
3 
4 #include "prey.h"
5 
11 class LengthPrey : public Prey {
12 public:
21  LengthPrey(CommentStream& infile, const char* givenname,
22  const IntVector& areas, const TimeClass* const TimeInfo, Keeper* const keeper);
32  virtual void Sum(const PopInfoVector& NumberInArea, int area);
33 };
34 
35 #endif
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 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 a simple length based prey.
Definition: lengthprey.h:11
LengthPrey(CommentStream &infile, const char *givenname, const IntVector &areas, const TimeClass *const TimeInfo, Keeper *const keeper)
This is the LengthPrey constructor.
Definition: lengthprey.cc:3
~LengthPrey()
This is the default LengthPrey destructor.
Definition: lengthprey.h:26
virtual void Sum(const PopInfoVector &NumberInArea, int area)
This will calculate the amount of prey that is consumed for a given area and timestep.
Definition: lengthprey.cc:12
IntVector areas
This is the IntVector of internal areas that the object is defined on.
Definition: livesonareas.h:51
This class implements a dynamic vector of PopInfo values.
Definition: popinfovector.h:11
This is the base class used to model the consumption of a prey.
Definition: prey.h:27
This is the class used to store information about the timesteps used for the current model.
Definition: areatime.h:87