Gadget
predatorpreyaggregator.h
Go to the documentation of this file.
1 #ifndef predatorpreyaggregator_h
2 #define predatorpreyaggregator_h
3 
4 #include "areatime.h"
8 #include "lengthgroup.h"
9 #include "predatorptrvector.h"
10 #include "preyptrvector.h"
11 #include "intmatrix.h"
12 
18 public:
27  PredatorPreyAggregator(const PredatorPtrVector& Predators, const PreyPtrVector& Preys,
28  LengthGroupDivision* const Lgrpdiv, const IntMatrix& Areas, const IntMatrix& Ages);
36  void Reset();
41  void Sum(const TimeClass* const TimeInfo);
46  const AgeBandMatrixPtrVector& getConsumption() const { return consume; };
51  const DoubleMatrixPtrVector& getMortality() const { return mortality; };
52 private:
56  PredatorPtrVector predators;
60  PreyPtrVector preys;
64  LengthGroupDivision* LgrpDiv;
68  IntMatrix areas;
72  IntMatrix ages;
77  IntMatrix doeseat;
89  AgeBandMatrixPtrVector consume;
93  DoubleMatrixPtrVector mortality;
97  const DoubleVector* suitptr;
101  const AgeBandMatrix* alptr;
102 };
103 
104 #endif
This class implements a dynamic vector of AgeBandMatrix values.
Definition: agebandmatrixptrvector.h:12
This class implements a vector of PopInfoIndexVector values, indexed from minage not 0.
Definition: agebandmatrix.h:15
This class implements a dynamic vector of ConversionIndex values.
Definition: conversionindexptrvector.h:10
This class implements a dynamic vector of DoubleMatrix values.
Definition: doublematrixptrvector.h:10
This class implements a dynamic vector of double values.
Definition: doublevector.h:11
This class implements a dynamic vector of IntVector values.
Definition: intmatrix.h:10
This is the class used to store information about the length groups of the modelled stock population.
Definition: lengthgroup.h:10
This is the class used to aggregate predator-prey information.
Definition: predatorpreyaggregator.h:17
void Reset()
This function will reset the predation information.
Definition: predatorpreyaggregator.cc:51
const AgeBandMatrixPtrVector & getConsumption() const
This will return the AgeBandMatrixPtrVector containing the aggregated predation information.
Definition: predatorpreyaggregator.h:46
PredatorPreyAggregator(const PredatorPtrVector &Predators, const PreyPtrVector &Preys, LengthGroupDivision *const Lgrpdiv, const IntMatrix &Areas, const IntMatrix &Ages)
This is the PredatorPreyAggregator constructor.
Definition: predatorpreyaggregator.cc:10
~PredatorPreyAggregator()
This is the default PredatorPreyAggregator destructor.
Definition: predatorpreyaggregator.cc:43
void Sum(const TimeClass *const TimeInfo)
This function will aggregate the predation data.
Definition: predatorpreyaggregator.cc:60
const DoubleMatrixPtrVector & getMortality() const
This will return the DoubleMatrixPtrVector containing the aggregated mortality information.
Definition: predatorpreyaggregator.h:51
This class implements a dynamic vector of Predator values.
Definition: predatorptrvector.h:10
This class implements a dynamic vector of Prey values.
Definition: preyptrvector.h:10
This is the class used to store information about the timesteps used for the current model.
Definition: areatime.h:87