Gadget
predatorpreyprinter.h
Go to the documentation of this file.
1 #ifndef predatorpreyprinter_h
2 #define predatorpreyprinter_h
3 
4 #include "printer.h"
6 #include "gadget.h"
7 
12 class PredatorPreyPrinter : public Printer {
13 public:
19  PredatorPreyPrinter(CommentStream& infile, const TimeClass* const TimeInfo);
23  virtual ~PredatorPreyPrinter();
30  virtual void setPredAndPrey(PredatorPtrVector& predatorvec, PreyPtrVector& preyvec, const AreaClass* const Area);
36  virtual void Print(const TimeClass* const TimeInfo, int printtime);
37 protected:
82 };
83 
84 #endif
This class implements a dynamic vector of AgeBandMatrix values.
Definition: agebandmatrixptrvector.h:12
This is the class used to store information about the areas used for the current model.
Definition: areatime.h:18
This class implements a dynamic vector of char values.
Definition: charptrvector.h:8
This is the class used to strip comments (and whitespace) from any input stream.
Definition: commentstream.h:40
This class implements a dynamic vector of DoubleVector values.
Definition: doublematrix.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
This is the class used to print the predation information for one or more predators consuming one or ...
Definition: predatorpreyprinter.h:12
CharPtrVector areaindex
This is the CharPtrVector of the names of the aggregated areas to print.
Definition: predatorpreyprinter.h:61
virtual void Print(const TimeClass *const TimeInfo, int printtime)
This will print the requested information for the printer class to the ofstream specified.
Definition: predatorpreyprinter.cc:264
CharPtrVector preynames
This is the CharPtrVector of the names of the preys to print.
Definition: predatorpreyprinter.h:45
IntMatrix areas
This is the IntMatrix used to store aggregated area information.
Definition: predatorpreyprinter.h:49
const DoubleMatrix * dptr
This is the DoubleMatrix used to temporarily store the mortality information returned from the aggreg...
Definition: predatorpreyprinter.h:81
CharPtrVector ageindex
This is the CharPtrVector of the names of the aggregated ages to print.
Definition: predatorpreyprinter.h:65
LengthGroupDivision * LgrpDiv
This is the LengthGroupDivision used to store aggregated length information.
Definition: predatorpreyprinter.h:57
virtual void setPredAndPrey(PredatorPtrVector &predatorvec, PreyPtrVector &preyvec, const AreaClass *const Area)
This will select the predators and preys required for the printer class to print the requested inform...
Definition: predatorpreyprinter.cc:145
PredatorPreyPrinter(CommentStream &infile, const TimeClass *const TimeInfo)
This is the default PredatorPreyPrinter constructor.
Definition: predatorpreyprinter.cc:13
const AgeBandMatrixPtrVector * alptr
This is the AgeBandMatrixPtrVector used to temporarily store the population information returned from...
Definition: predatorpreyprinter.h:77
PredatorPreyAggregator * aggregator
This is the PredatorPreyAggregator used to collect information about the predation.
Definition: predatorpreyprinter.h:73
IntMatrix ages
This is the IntMatrix used to store aggregated age information.
Definition: predatorpreyprinter.h:53
CharPtrVector predatornames
This is the CharPtrVector of the names of the predators to print.
Definition: predatorpreyprinter.h:41
CharPtrVector lenindex
This is the CharPtrVector of the names of the lengths to print.
Definition: predatorpreyprinter.h:69
virtual ~PredatorPreyPrinter()
This is the default PredatorPreyPrinter destructor.
Definition: predatorpreyprinter.cc:297
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 base class used to print the modelled population during a model simulation.
Definition: printer.h:26
This is the class used to store information about the timesteps used for the current model.
Definition: areatime.h:87