Gadget
recaggregator.h
Go to the documentation of this file.
1 #ifndef recaggregator_h
2 #define recaggregator_h
3 
4 #include "areatime.h"
7 #include "fleetptrvector.h"
8 #include "stockptrvector.h"
9 #include "predatorptrvector.h"
10 #include "preyptrvector.h"
11 #include "intmatrix.h"
12 #include "tags.h"
13 
19 public:
29  RecAggregator(const FleetPtrVector& Fleets, const StockPtrVector& Stocks,
30  LengthGroupDivision* const Lgrpdiv, const IntMatrix& Areas,
31  const IntMatrix& Ages, Tags* tag);
40  LengthGroupDivision* getLengthGroupDiv() const { return LgrpDiv; };
44  void Reset();
48  void Sum();
53  void Print(ofstream &outfile) const;
58  const AgeBandMatrixPtrVector& getSum() const { return total; };
59 private:
63  PredatorPtrVector predators;
67  PreyPtrVector preys;
71  Tags* taggingExp;
75  LengthGroupDivision* LgrpDiv;
79  IntMatrix areas;
83  IntMatrix ages;
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 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 is the class used to aggregate the recaptured tagged stock information.
Definition: recaggregator.h:18
~RecAggregator()
This is the default RecAggregator destructor.
Definition: recaggregator.cc:46
void Print(ofstream &outfile) const
This will print the aggregator information to the ofstream specified.
Definition: recaggregator.cc:52
void Reset()
This function will reset the recapture data.
Definition: recaggregator.cc:64
RecAggregator(const FleetPtrVector &Fleets, const StockPtrVector &Stocks, LengthGroupDivision *const Lgrpdiv, const IntMatrix &Areas, const IntMatrix &Ages, Tags *tag)
This is the RecAggregator constructor.
Definition: recaggregator.cc:13
LengthGroupDivision * getLengthGroupDiv() const
This function will return the LengthGroupDivision of the aggregator.
Definition: recaggregator.h:40
const AgeBandMatrixPtrVector & getSum() const
This will return the AgeBandMatrixPtrVector containing the aggregated recaptures information.
Definition: recaggregator.h:58
void Sum()
This function will aggregate the recapture data.
Definition: recaggregator.cc:70
This class implements a dynamic vector of Stock values.
Definition: stockptrvector.h:10
Definition: tags.h:17