Gadget
predatorprinter.h
Go to the documentation of this file.
1 #ifndef predatorprinter_h
2 #define predatorprinter_h
3 
4 #include "printer.h"
5 #include "predatoraggregator.h"
6 #include "gadget.h"
7 
12 class PredatorPrinter : public Printer {
13 public:
19  PredatorPrinter(CommentStream& infile, const TimeClass* const TimeInfo);
23  virtual ~PredatorPrinter();
30  virtual void setPredAndPrey(PredatorPtrVector& predatorvec, PreyPtrVector& preyvec, const AreaClass* const Area);
36  virtual void Print(const TimeClass* const TimeInfo, int printtime);
37 protected:
77  int biomass;
82 };
83 
84 #endif
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 predation information.
Definition: predatoraggregator.h:15
This is the class used to print the predation information for one or more predators consuming one or ...
Definition: predatorprinter.h:12
CharPtrVector preynames
This is the CharPtrVector of the names of the prey names to print.
Definition: predatorprinter.h:61
LengthGroupDivision * predLgrpDiv
This is the LengthGroupDivision of the predator.
Definition: predatorprinter.h:65
CharPtrVector predatornames
This is the CharPtrVector of the names of the predator names to print.
Definition: predatorprinter.h:57
IntMatrix areas
This is the IntMatrix used to store aggregated area information.
Definition: predatorprinter.h:41
const DoubleMatrix * dptr
This is the DoubleMatrix used to temporarily store the information returned from the aggregatation fu...
Definition: predatorprinter.h:81
virtual void Print(const TimeClass *const TimeInfo, int printtime)
This will print the requested information for the printer class to the ofstream specified.
Definition: predatorprinter.cc:270
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: predatorprinter.cc:165
CharPtrVector preylenindex
This is the CharPtrVector of the names of the prey lengths to print.
Definition: predatorprinter.h:53
CharPtrVector areaindex
This is the CharPtrVector of the names of the aggregated areas to print.
Definition: predatorprinter.h:45
virtual ~PredatorPrinter()
This is the default PredatorPrinter destructor.
Definition: predatorprinter.cc:302
CharPtrVector predlenindex
This is the CharPtrVector of the names of the predator lengths to print.
Definition: predatorprinter.h:49
LengthGroupDivision * preyLgrpDiv
This is the LengthGroupDivision of the prey.
Definition: predatorprinter.h:69
int biomass
This is the flag used to denote whether the biomass consumed or the numbers consumed is printed to th...
Definition: predatorprinter.h:77
PredatorPrinter(CommentStream &infile, const TimeClass *const TimeInfo)
This is the default PredatorPrinter constructor.
Definition: predatorprinter.cc:15
PredatorAggregator * aggregator
This is the PredatorAggregator used to collect information about the predation.
Definition: predatorprinter.h:73
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