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

Annotation of /trunk/gadget/sibyfleetonstep.h

Parent Directory Parent Directory | Revision Log Revision Log


Revision 1 - (view) (download)

1 : agomez 1 #ifndef sibyfleetonstep_h
2 :     #define sibyfleetonstep_h
3 :    
4 :     #include "sionstep.h"
5 :     #include "fleetpreyaggregator.h"
6 :    
7 :     /**
8 :     * \class SIByFleetOnStep
9 :     * \brief This is the class used to calculate a likelihood score by fitting the model population to fleet based survey index data
10 :     */
11 :     class SIByFleetOnStep : public SIOnStep {
12 :     public:
13 :     /**
14 :     * \brief This is the SIByFleetOnStep constructor
15 :     * \param infile is the CommentStream to read the survey index data from
16 :     * \param areas is the IntMatrix of areas that the survey index can take place on
17 :     * \param lengths is the DoubleVector of lengths from the survey index data
18 :     * \param areaindex is the CharPtrVector of area identifier text strings
19 :     * \param lenindex is the CharPtrVector of length identifier text strings
20 :     * \param TimeInfo is the TimeClass for the current model
21 :     * \param datafilename is the name of the file containing the survey index data
22 :     * \param givenname is the name of the SIByFleetOnStep likelihood component
23 :     * \param bio is the flag to denote whether the index should be based on the biomass or not
24 :     */
25 :     SIByFleetOnStep(CommentStream& infile, const IntMatrix& areas,
26 :     const DoubleVector& lengths, const CharPtrVector& areaindex,
27 :     const CharPtrVector& lenindex, const TimeClass* const TimeInfo,
28 :     const char* datafilename, const char* givenname, int bio);
29 :     /**
30 :     * \brief This is the default SIByFleetOnStep destructor
31 :     */
32 :     virtual ~SIByFleetOnStep();
33 :     /**
34 :     * \brief This function will sum the survey index by fleet length data
35 :     * \param TimeInfo is the TimeClass for the current model
36 :     */
37 :     virtual void Sum(const TimeClass* const TimeInfo);
38 :     /**
39 :     * \brief This will select the fleets and stocks required to calculate the survey index likelihood score
40 :     * \param Fleets is the FleetPtrVector of all the available fleets
41 :     * \param Stocks is the StockPtrVector of all the available stocks
42 :     */
43 :     virtual void setFleetsAndStocks(FleetPtrVector& Fleets, StockPtrVector& Stocks);
44 :     /**
45 :     * \brief This function will print the SIByFleetOnStep information
46 :     * \param outfile is the ofstream that all the model information gets sent to
47 :     */
48 :     virtual void Print(ofstream& outfile) const { aggregator->Print(outfile); };
49 :     protected:
50 :     /**
51 :     * \brief This is the FleetPreyAggregator used to collect information about the relevant fleets for the survey index data
52 :     */
53 :     FleetPreyAggregator* aggregator;
54 :     };
55 :    
56 :     #endif

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

Powered By FusionForge