Log In | Get Help   
Home My Page Projects Code Snippets Project Openings Mareframe
Summary Activity Forums Tracker Lists Tasks Docs Surveys News SCM Files
[mareframe] Annotation of /trunk/gadget/predatorpreyprinter.h
[mareframe] / trunk / gadget / predatorpreyprinter.h Repository:
ViewVC logotype

Annotation of /trunk/gadget/predatorpreyprinter.h

Parent Directory Parent Directory | Revision Log Revision Log


Revision 1 - (view) (download)

1 : agomez 1 #ifndef predatorpreyprinter_h
2 :     #define predatorpreyprinter_h
3 :    
4 :     #include "printer.h"
5 :     #include "predatorpreyaggregator.h"
6 :     #include "gadget.h"
7 :    
8 :     /**
9 :     * \class PredatorPreyPrinter
10 :     * \brief This is the class used to print the predation information for one or more predators consuming one or more preys
11 :     */
12 :     class PredatorPreyPrinter : public Printer {
13 :     public:
14 :     /**
15 :     * \brief This is the default PredatorPreyPrinter constructor
16 :     * \param infile is the CommentStream to read the printer parameters from
17 :     * \param TimeInfo is the TimeClass for the current model
18 :     */
19 :     PredatorPreyPrinter(CommentStream& infile, const TimeClass* const TimeInfo);
20 :     /**
21 :     * \brief This is the default PredatorPreyPrinter destructor
22 :     */
23 :     virtual ~PredatorPreyPrinter();
24 :     /**
25 :     * \brief This will select the predators and preys required for the printer class to print the requested information
26 :     * \param predatorvec is the PredatorPtrVector of all the available predators
27 :     * \param preyvec is the PreyPtrVector of all the available preys
28 :     * \param Area is the AreaClass for the current model
29 :     */
30 :     virtual void setPredAndPrey(PredatorPtrVector& predatorvec, PreyPtrVector& preyvec, const AreaClass* const Area);
31 :     /**
32 :     * \brief This will print the requested information for the printer class to the ofstream specified
33 :     * \param TimeInfo is the TimeClass for the current model
34 :     * \param printtime is the flag to denote when the printing is taking place
35 :     */
36 :     virtual void Print(const TimeClass* const TimeInfo, int printtime);
37 :     protected:
38 :     /**
39 :     * \brief This is the CharPtrVector of the names of the predators to print
40 :     */
41 :     CharPtrVector predatornames;
42 :     /**
43 :     * \brief This is the CharPtrVector of the names of the preys to print
44 :     */
45 :     CharPtrVector preynames;
46 :     /**
47 :     * \brief This is the IntMatrix used to store aggregated area information
48 :     */
49 :     IntMatrix areas;
50 :     /**
51 :     * \brief This is the IntMatrix used to store aggregated age information
52 :     */
53 :     IntMatrix ages;
54 :     /**
55 :     * \brief This is the LengthGroupDivision used to store aggregated length information
56 :     */
57 :     LengthGroupDivision* LgrpDiv;
58 :     /**
59 :     * \brief This is the CharPtrVector of the names of the aggregated areas to print
60 :     */
61 :     CharPtrVector areaindex;
62 :     /**
63 :     * \brief This is the CharPtrVector of the names of the aggregated ages to print
64 :     */
65 :     CharPtrVector ageindex;
66 :     /**
67 :     * \brief This is the CharPtrVector of the names of the lengths to print
68 :     */
69 :     CharPtrVector lenindex;
70 :     /**
71 :     * \brief This is the PredatorPreyAggregator used to collect information about the predation
72 :     */
73 :     PredatorPreyAggregator* aggregator;
74 :     /**
75 :     * \brief This is the AgeBandMatrixPtrVector used to temporarily store the population information returned from the aggregatation function
76 :     */
77 :     const AgeBandMatrixPtrVector* alptr;
78 :     /**
79 :     * \brief This is the DoubleMatrix used to temporarily store the mortality information returned from the aggregatation function
80 :     */
81 :     const DoubleMatrix* dptr;
82 :     };
83 :    
84 :     #endif

root@forge.cesga.es
ViewVC Help
Powered by ViewVC 1.0.0  

Powered By FusionForge