Revision 1 -
(download)
(annotate)
Mon Feb 10 17:09:07 2014 UTC
(10 years, 5 months ago)
by agomez File size: 1218 byte(s)
Initial version based on Gadget 2.2.00
#ifndef lengthprey_h
#define lengthprey_h
#include "prey.h"
/**
* \class LengthPrey
* \brief This is the class used to model a simple length based prey
* \note This class is only used to model non-dynamic prey (ie the prey from OtherFood)
*/
class LengthPrey : public Prey {
public:
/**
* \brief This is the LengthPrey constructor
* \param infile is the CommentStream to read the Prey data from
* \param givenname is the name of the prey
* \param areas is the IntVector of areas that the prey lives on
* \param TimeInfo is the TimeClass for the current model
* \param keeper is the Keeper for the current model
*/
LengthPrey(CommentStream& infile, const char* givenname,
const IntVector& areas, const TimeClass* const TimeInfo, Keeper* const keeper);
/**
* \brief This is the default LengthPrey destructor
*/
~LengthPrey() {};
/**
* \brief This will calculate the amount of prey that is consumed for a given area and timestep
* \param NumberInArea is the PopInfoVector giving the amount of prey in the area
* \param area is the area that the prey consumption is being calculated on
*/
virtual void Sum(const PopInfoVector& NumberInArea, int area);
};
#endif