Gadget
|
This is the base class used to print the modelled population during a model simulation. More...
#include <printer.h>
Public Member Functions | |
Printer (PrinterType ptype) | |
This is the default Printer constructor. More... | |
virtual | ~Printer () |
This is the default Printer destructor. More... | |
virtual void | Print (const TimeClass *const TimeInfo, int printtime)=0 |
This will print the requested information for the printer class to the ofstream specified. 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 | 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 | 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 | |
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 base class used to print the modelled population during a model simulation.
|
inline |
This is the default Printer constructor.
ptype | is the PrinterType of the printer |
|
inlinevirtual |
This is the default Printer destructor.
|
inline |
This will return the name of the output file.
|
inline |
This will return the type of printer class.
|
pure virtual |
This will print the requested information for the printer class to the ofstream specified.
TimeInfo | is the TimeClass for the current model |
printtime | is the flag to denote when the printing is taking place |
Implemented in SummaryPrinter, StockStdPrinter, StockPrinter, StockPreyPrinter, StockPreyFullPrinter, StockFullPrinter, PreyOverPrinter, PredatorPrinter, PredatorPreyPrinter, PredatorOverPrinter, and LikelihoodPrinter.
|
inlinevirtual |
This will select the likelihood components required for the printer class to print the requested information.
likevec | is the LikelihoodPtrVector of all the available likelihood components |
Reimplemented in SummaryPrinter, and LikelihoodPrinter.
|
inlinevirtual |
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 in PredatorPrinter, and PredatorPreyPrinter.
|
inlinevirtual |
This will select the predators required for the printer class to print the requested information.
predatorvec | is the PredatorPtrVector of all the available predators |
Area | is the AreaClass for the current model |
Reimplemented in PredatorOverPrinter.
|
inlinevirtual |
This will select the preys required for the printer class to print the requested information.
preyvec | is the PreyPtrVector of all the available preys |
Area | is the AreaClass for the current model |
Reimplemented in StockPreyPrinter, StockPreyFullPrinter, and PreyOverPrinter.
|
inlinevirtual |
This will select the stocks required for the printer class to print the requested information.
stockvec | is the StockPtrVector of all the available stocks |
Area | is the AreaClass for the current model |
Reimplemented in StockStdPrinter, StockPrinter, and StockFullPrinter.
|
protected |
This ActionAtTimes stores information about when the printer output is required in the model.
|
protected |
This is the name of the output file that all the model information will get sent to.
|
protected |
This ofstream is the file that all the model information gets sent to.
|
protected |
This is precision which can be used to override the default values when printing the information to the output file.
|
protected |
This is the flag used to denote whether the printing takes place at the start or the end of the timestep.
|
protected |
This is width used when printing the information to the output file.