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/tags.h
[mareframe] / trunk / gadget / tags.h Repository:
ViewVC logotype

Annotation of /trunk/gadget/tags.h

Parent Directory Parent Directory | Revision Log Revision Log


Revision 1 - (view) (download)

1 : agomez 1 #ifndef tags_h
2 :     #define tags_h
3 :    
4 :     #include "keeper.h"
5 :     #include "hasname.h"
6 :     #include "commentstream.h"
7 :     #include "areatime.h"
8 :     #include "charptrvector.h"
9 :     #include "stockptrvector.h"
10 :     #include "agebandmatrix.h"
11 :     #include "agebandmatrixptrmatrix.h"
12 :     #include "livesonareas.h"
13 :     #include "doublematrixptrvector.h"
14 :     #include "conversionindexptrvector.h"
15 :     #include "formula.h"
16 :    
17 :     class Tags : public HasName {
18 :     public:
19 :     Tags(CommentStream& infile, const char* givenname, const AreaClass* const Area,
20 :     const TimeClass* const TimeInfo, Keeper* const keeper, StockPtrVector stockvec);
21 :     ~Tags();
22 :     void Update(int timeid);
23 :     void updateTags(int year, int step);
24 :     void deleteStockTags();
25 :     int getEndYear() const { return endyear; };
26 :     int getNumTagTimeSteps() const { return numtagtimesteps; };
27 :     CharPtrVector getStockNames() { return stocknames; };
28 :     void setStock(StockPtrVector& Stocks);
29 :     void updateMatureStock(const TimeClass* const TimeInfo);
30 :     void updateTransitionStock(const TimeClass* const TimeInfo);
31 :     void updateStrayStock(const TimeClass* const TimeInfo);
32 :     void storeConsumptionALK(int area, const char* stockname);
33 :     const AgeBandMatrix& getConsumptionALK(int area, const char* stockname);
34 :     /**
35 :     * \brief This function will print the model tagged population
36 :     * \param outfile is the ofstream that all the model information gets sent to
37 :     */
38 :     void Print(ofstream& outfile) const;
39 :     /**
40 :     * \brief This function will reset the model tagged population
41 :     */
42 :     void Reset();
43 :     int isWithinPeriod(int year, int step);
44 :     int stockIndex(const char* stockname);
45 :     int areaIndex(const char* stockname, int area);
46 :     void addToTagStock(int timeid);
47 :     private:
48 :     void readNumbers(CommentStream& infile, const char* tagname, const TimeClass* const TimeInfo);
49 :     CharPtrVector stocknames;
50 :     //area-age-length distribution of tags by stocks
51 :     AgeBandMatrixPtrMatrix AgeLengthStock;
52 :     AgeBandMatrixPtrMatrix NumBeforeEating;
53 :     Formula tagloss; //percentage of tags that are lost
54 :     int tagarea; //area of tagging
55 :     int tagyear; //year of tagging
56 :     int tagstep; //step of tagging
57 :     int endyear; //year of last recapture
58 :     int numtagtimesteps;
59 :     DoubleMatrixPtrVector NumberByLength;
60 :     LengthGroupDivision* LgrpDiv;
61 :     StockPtrVector tagStocks;
62 :     StockPtrVector matureStocks;
63 :     StockPtrVector transitionStocks;
64 :     StockPtrVector strayStocks;
65 :     ConversionIndexPtrVector CI;
66 :     Stock* taggingstock;
67 :     IntVector preyindex;
68 :     IntVector updated;
69 :     IntVector Years;
70 :     IntVector Steps;
71 :     };
72 :     #endif

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

Powered By FusionForge