Gadget
fleetpreyaggregator.h
Go to the documentation of this file.
1 #ifndef fleetpreyaggregator_h
2 #define fleetpreyaggregator_h
3 
4 #include "areatime.h"
7 #include "lengthgroup.h"
8 #include "fleetptrvector.h"
9 #include "stockptrvector.h"
10 #include "predatorptrvector.h"
11 #include "preyptrvector.h"
12 #include "intmatrix.h"
13 
19 public:
29  FleetPreyAggregator(const FleetPtrVector& Fleets, const StockPtrVector& Stocks,
30  LengthGroupDivision* const Lgrpdiv, const IntMatrix& Areas,
31  const IntMatrix& Ages, int overcons);
39  void Reset();
43  void Sum();
48  int checkCatchData();
53  void Print(ofstream &outfile) const;
58  const AgeBandMatrixPtrVector& getSum() const { return total; };
59 private:
63  PredatorPtrVector predators;
67  PreyPtrVector preys;
71  LengthGroupDivision* LgrpDiv;
75  IntMatrix areas;
79  IntMatrix ages;
83  int overconsumption;
88  IntMatrix doescatch;
100  const DoubleVector* suitptr;
104  const AgeBandMatrix* alptr;
105 };
106 
107 #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 double values.
Definition: doublevector.h:11
This is the class used to aggregate fleet catch information.
Definition: fleetpreyaggregator.h:18
void Print(ofstream &outfile) const
This will print the aggregator information to the ofstream specified.
Definition: fleetpreyaggregator.cc:49
int checkCatchData()
This function will check the fleet catch data.
Definition: fleetpreyaggregator.cc:67
void Reset()
This function will reset the fleet catch information.
Definition: fleetpreyaggregator.cc:61
FleetPreyAggregator(const FleetPtrVector &Fleets, const StockPtrVector &Stocks, LengthGroupDivision *const Lgrpdiv, const IntMatrix &Areas, const IntMatrix &Ages, int overcons)
This is the FleetPreyAggregator constructor.
Definition: fleetpreyaggregator.cc:10
~FleetPreyAggregator()
This is the default FleetPreyAggregator destructor.
Definition: fleetpreyaggregator.cc:43
void Sum()
This function will aggregate the fleet catch data.
Definition: fleetpreyaggregator.cc:81
const AgeBandMatrixPtrVector & getSum() const
This will return the AgeBandMatrixPtrVector containing the aggregated catch information.
Definition: fleetpreyaggregator.h:58
This class implements a dynamic vector of Fleet values.
Definition: fleetptrvector.h:10
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 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 class implements a dynamic vector of Stock values.
Definition: stockptrvector.h:10