Gadget
|
This is the class used to print the predation information for one or more predators consuming one or more preys. More...
#include <predatorprinter.h>
Public Member Functions | |
PredatorPrinter (CommentStream &infile, const TimeClass *const TimeInfo) | |
This is the default PredatorPrinter constructor. More... | |
virtual | ~PredatorPrinter () |
This is the default PredatorPrinter destructor. More... | |
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 information. More... | |
virtual void | Print (const TimeClass *const TimeInfo, int printtime) |
This will print the requested information for the printer class to the ofstream specified. More... | |
![]() | |
Printer (PrinterType ptype) | |
This is the default Printer constructor. More... | |
virtual | ~Printer () |
This is the default Printer destructor. More... | |
virtual void | setStock (StockPtrVector &stockvec, const AreaClass *const Area) |
This will select the stocks required for the printer class to print the requested information. More... | |
virtual void | setPrey (PreyPtrVector &preyvec, const AreaClass *const Area) |
This will select the preys required for the printer class to print the requested information. More... | |
virtual void | setPredator (PredatorPtrVector &predatorvec, const AreaClass *const Area) |
This will select the predators required for the printer class to print the requested information. More... | |
virtual void | setLikelihood (LikelihoodPtrVector &likevec) |
This will select the likelihood components required for the printer class to print the requested information. More... | |
const char * | getFileName () const |
This will return the name of the output file. More... | |
PrinterType | getType () const |
This will return the type of printer class. More... | |
Protected Attributes | |
IntMatrix | areas |
This is the IntMatrix used to store aggregated area information. More... | |
CharPtrVector | areaindex |
This is the CharPtrVector of the names of the aggregated areas to print. More... | |
CharPtrVector | predlenindex |
This is the CharPtrVector of the names of the predator lengths to print. More... | |
CharPtrVector | preylenindex |
This is the CharPtrVector of the names of the prey lengths to print. More... | |
CharPtrVector | predatornames |
This is the CharPtrVector of the names of the predator names to print. More... | |
CharPtrVector | preynames |
This is the CharPtrVector of the names of the prey names to print. More... | |
LengthGroupDivision * | predLgrpDiv |
This is the LengthGroupDivision of the predator. More... | |
LengthGroupDivision * | preyLgrpDiv |
This is the LengthGroupDivision of the prey. More... | |
PredatorAggregator * | aggregator |
This is the PredatorAggregator used to collect information about the predation. More... | |
int | biomass |
This is the flag used to denote whether the biomass consumed or the numbers consumed is printed to the outfile (default is to print biomass) More... | |
const DoubleMatrix * | dptr |
This is the DoubleMatrix used to temporarily store the information returned from the aggregatation function. More... | |
![]() | |
ActionAtTimes | AAT |
This ActionAtTimes stores information about when the printer output is required in the model. More... | |
char * | filename |
This is the name of the output file that all the model information will get sent to. More... | |
ofstream | outfile |
This ofstream is the file that all the model information gets sent to. More... | |
int | printtimeid |
This is the flag used to denote whether the printing takes place at the start or the end of the timestep. More... | |
int | precision |
This is precision which can be used to override the default values when printing the information to the output file. More... | |
int | width |
This is width used when printing the information to the output file. More... | |
This is the class used to print the predation information for one or more predators consuming one or more preys.
PredatorPrinter::PredatorPrinter | ( | CommentStream & | infile, |
const TimeClass *const | TimeInfo | ||
) |
This is the default PredatorPrinter constructor.
infile | is the CommentStream to read the printer parameters from |
TimeInfo | is the TimeClass for the current model |
|
virtual |
This is the default PredatorPrinter destructor.
|
virtual |
|
virtual |
This will select the predators and preys required for the printer class to print the requested information.
predatorvec | is the PredatorPtrVector of all the available predators |
preyvec | is the PreyPtrVector of all the available preys |
Area | is the AreaClass for the current model |
Reimplemented from Printer.
|
protected |
This is the PredatorAggregator used to collect information about the predation.
|
protected |
This is the CharPtrVector of the names of the aggregated areas to print.
|
protected |
This is the IntMatrix used to store aggregated area information.
|
protected |
This is the flag used to denote whether the biomass consumed or the numbers consumed is printed to the outfile (default is to print biomass)
|
protected |
This is the DoubleMatrix used to temporarily store the information returned from the aggregatation function.
|
protected |
This is the CharPtrVector of the names of the predator names to print.
|
protected |
This is the CharPtrVector of the names of the predator lengths to print.
|
protected |
This is the LengthGroupDivision of the predator.
|
protected |
This is the CharPtrVector of the names of the prey lengths to print.
|
protected |
This is the LengthGroupDivision of the prey.
|
protected |
This is the CharPtrVector of the names of the prey names to print.