Gadget
fleeteffortaggregator.h
Go to the documentation of this file.
1 #ifndef fleeteffortaggregator_h
2 #define fleeteffortaggregator_h
3 
4 #include "areatime.h"
6 #include "fleetptrvector.h"
7 #include "stockptrvector.h"
8 #include "predatorptrvector.h"
9 #include "preyptrvector.h"
10 #include "intmatrix.h"
11 
17 public:
24  FleetEffortAggregator(const FleetPtrVector& Fleets, const StockPtrVector& Stocks, const IntMatrix& Areas);
32  void Reset();
36  void Sum();
41  void Print(ofstream &outfile) const;
46  const DoubleMatrixPtrVector& getSum() const { return total; };
47 private:
51  PredatorPtrVector predators;
55  PreyPtrVector preys;
59  IntMatrix areas;
64  IntMatrix doescatch;
69 };
70 
71 #endif
This class implements a dynamic vector of DoubleMatrix values.
Definition: doublematrixptrvector.h:10
This is the class used to aggregate fleet catch information.
Definition: fleeteffortaggregator.h:16
FleetEffortAggregator(const FleetPtrVector &Fleets, const StockPtrVector &Stocks, const IntMatrix &Areas)
This is the FleetEffortAggregator constructor.
Definition: fleeteffortaggregator.cc:10
void Sum()
This function will aggregate the fleet catch data.
Definition: fleeteffortaggregator.cc:57
~FleetEffortAggregator()
This is the default FleetEffortAggregator destructor.
Definition: fleeteffortaggregator.cc:31
void Print(ofstream &outfile) const
This will print the aggregator information to the ofstream specified.
Definition: fleeteffortaggregator.cc:37
void Reset()
This function will reset the fleet catch information.
Definition: fleeteffortaggregator.cc:51
const DoubleMatrixPtrVector & getSum() const
This will return the DoubleMatrixPtrVector containing the aggregated catch information.
Definition: fleeteffortaggregator.h:46
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 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