Log In | Get Help   
Home My Page Projects Code Snippets Project Openings Mareframe
Summary Activity Forums Tracker Lists Tasks Docs Surveys News SCM Files
[mareframe] View of /trunk/gadget/lengthpredator.h
[mareframe] / trunk / gadget / lengthpredator.h Repository:
ViewVC logotype

View of /trunk/gadget/lengthpredator.h

Parent Directory Parent Directory | Revision Log Revision Log


Revision 1 - (download) (annotate)
Mon Feb 10 17:09:07 2014 UTC (10 years, 4 months ago) by agomez
File size: 1591 byte(s)
Initial version based on Gadget 2.2.00
#ifndef lengthpredator_h
#define lengthpredator_h

#include "poppredator.h"

/**
 * \class LengthPredator
 * \brief This is the class used to model the predation of stocks by a fleet
 */
class LengthPredator : public PopPredator {
public:
  /**
   * \brief This is the LengthPredator constructor
   * \param givenname is the name of the predator
   * \param Areas is the IntVector of areas that the predator lives on
   * \param keeper is the Keeper for the current model
   * \param multscaler is the Formula that can be used to scale the biomass consumed
   */
  LengthPredator(const char* givenname, const IntVector& Areas,
    Keeper* const keeper, Formula multscaler);
  /**
   * \brief This is the default LengthPredator destructor
   */
  virtual ~LengthPredator() {};
  /**
   * \brief This will calculate the amount of prey that is consumed by the predator
   * \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);
  /**
   * \brief This will return the multiplicative value used scale the catch
   * \return multi
   */
  double getMultScaler() const { return multi; };
  /**
   * \brief This function will reset the predation information
   * \param TimeInfo is the TimeClass for the current model
   */
  virtual void Reset(const TimeClass* const TimeInfo);
protected:
  /**
   * \brief This is the multiplicative constant that can be used to scale the biomass consumed
   */
  Formula multi;
};

#endif

root@forge.cesga.es
ViewVC Help
Powered by ViewVC 1.0.0  

Powered By FusionForge