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

Diff of /trunk/gadget/growthcalc.h

Parent Directory Parent Directory | Revision Log Revision Log | View Patch Patch

revision 1, Mon Feb 10 17:09:07 2014 UTC revision 4, Thu Apr 30 17:32:47 2015 UTC
# Line 9  Line 9 
9  #include "livesonareas.h"  #include "livesonareas.h"
10  #include "modelvariablevector.h"  #include "modelvariablevector.h"
11  #include "keeper.h"  #include "keeper.h"
12    #include "matrix.h"
13    
14  /**  /**
15   * \class GrowthCalcBase   * \class GrowthCalcBase
# Line 26  Line 27 
27     * \brief This is the default GrowthCalcBase destructor     * \brief This is the default GrowthCalcBase destructor
28     */     */
29    ~GrowthCalcBase() {};    ~GrowthCalcBase() {};
30      //FIXME doc
31    /**    /**
32     * \brief This is the function that calculates the growth     * \brief This is the function that calculates the growth
33     * \param area is the area that the growth is being calculated on     * \param area is the area that the growth is being calculated on
# Line 39  Line 41 
41     * \param LgrpDiv is the LengthGroupDivision of the stock     * \param LgrpDiv is the LengthGroupDivision of the stock
42     * \note This will be overridden by the derived classes that actually calculate the growth     * \note This will be overridden by the derived classes that actually calculate the growth
43     */     */
44    virtual void calcGrowth(int area, DoubleVector& Lgrowth, DoubleVector& Wgrowth,  //  virtual void calcGrowth(int area, DoubleVector& Lgrowth, DoubleVector& Wgrowth,
45    //    const PopInfoVector& numGrow, const AreaClass* const Area,
46    //    const TimeClass* const TimeInfo, const DoubleVector& Fphi,
47    //    const DoubleVector& MaxCon, const LengthGroupDivision* const LgrpDiv) = 0;
48    
49      virtual void calcGrowth(int area, double* Lgrowth, double* Wgrowth,
50      const PopInfoVector& numGrow, const AreaClass* const Area,      const PopInfoVector& numGrow, const AreaClass* const Area,
51      const TimeClass* const TimeInfo, const DoubleVector& Fphi,      const TimeClass* const TimeInfo, const DoubleVector& Fphi,
52      const DoubleVector& MaxCon, const LengthGroupDivision* const LgrpDiv) = 0;        const DoubleVector& MaxCon, const LengthGroupDivision* const LgrpDiv, int size) = 0;
53    /**    /**
54     * \brief This will return the power term of the length - weight relationship     * \brief This will return the power term of the length - weight relationship
55     * \return 0 (will be overridden in derived classes)     * \return 0 (will be overridden in derived classes)
# Line 86  Line 93 
93     * \param MaxCon is the DoubleVector of the maximum consumption of the stock     * \param MaxCon is the DoubleVector of the maximum consumption of the stock
94     * \param LgrpDiv is the LengthGroupDivision of the stock     * \param LgrpDiv is the LengthGroupDivision of the stock
95     */     */
96    virtual void calcGrowth(int area, DoubleVector& Lgrowth, DoubleVector& Wgrowth,  //  virtual void calcGrowth(int area, DoubleVector& Lgrowth, DoubleVector& Wgrowth,
97    //    const PopInfoVector& numGrow, const AreaClass* const Area,
98    //    const TimeClass* const TimeInfo, const DoubleVector& Fphi,
99    //    const DoubleVector& MaxCon, const LengthGroupDivision* const LgrpDiv);
100    
101      virtual void calcGrowth(int area, double* Lgrowth, double* Wgrowth,
102      const PopInfoVector& numGrow, const AreaClass* const Area,      const PopInfoVector& numGrow, const AreaClass* const Area,
103      const TimeClass* const TimeInfo, const DoubleVector& Fphi,      const TimeClass* const TimeInfo, const DoubleVector& Fphi,
104      const DoubleVector& MaxCon, const LengthGroupDivision* const LgrpDiv);            const DoubleVector& MaxCon, const LengthGroupDivision* const LgrpDiv, int size);
105  protected:  protected:
106    /**    /**
107     * \brief This is the number of growth parameters (set to 9)     * \brief This is the number of growth parameters (set to 9)
# Line 134  Line 146 
146     * \param MaxCon is the DoubleVector of the maximum consumption of the stock     * \param MaxCon is the DoubleVector of the maximum consumption of the stock
147     * \param LgrpDiv is the LengthGroupDivision of the stock     * \param LgrpDiv is the LengthGroupDivision of the stock
148     */     */
149    virtual void calcGrowth(int area, DoubleVector& Lgrowth, DoubleVector& Wgrowth,  //  virtual void calcGrowth(int area, DoubleVector& Lgrowth, DoubleVector& Wgrowth,
150    //    const PopInfoVector& numGrow, const AreaClass* const Area,
151    //    const TimeClass* const TimeInfo, const DoubleVector& Fphi,
152    //    const DoubleVector& MaxCon, const LengthGroupDivision* const LgrpDiv);
153    
154      virtual void calcGrowth(int area, double* Lgrowth, double* Wgrowth,
155      const PopInfoVector& numGrow, const AreaClass* const Area,      const PopInfoVector& numGrow, const AreaClass* const Area,
156      const TimeClass* const TimeInfo, const DoubleVector& Fphi,      const TimeClass* const TimeInfo, const DoubleVector& Fphi,
157      const DoubleVector& MaxCon, const LengthGroupDivision* const LgrpDiv);            const DoubleVector& MaxCon, const LengthGroupDivision* const LgrpDiv, int size);
158  protected:  protected:
159    /**    /**
160     * \brief This is the FormulaMatrixPtrVector of increase in length for each length group     * \brief This is the FormulaMatrixPtrVector of increase in length for each length group
# Line 182  Line 199 
199     * \param MaxCon is the DoubleVector of the maximum consumption of the stock     * \param MaxCon is the DoubleVector of the maximum consumption of the stock
200     * \param LgrpDiv is the LengthGroupDivision of the stock     * \param LgrpDiv is the LengthGroupDivision of the stock
201     */     */
202    virtual void calcGrowth(int area, DoubleVector& Lgrowth, DoubleVector& Wgrowth,  //  virtual void calcGrowth(int area, DoubleVector& Lgrowth, DoubleVector& Wgrowth,
203    //    const PopInfoVector& numGrow, const AreaClass* const Area,
204    //    const TimeClass* const TimeInfo, const DoubleVector& Fphi,
205    //    const DoubleVector& MaxCon, const LengthGroupDivision* const LgrpDiv);
206    
207      virtual void calcGrowth(int area, double* Lgrowth, double* Wgrowth,
208      const PopInfoVector& numGrow, const AreaClass* const Area,      const PopInfoVector& numGrow, const AreaClass* const Area,
209      const TimeClass* const TimeInfo, const DoubleVector& Fphi,      const TimeClass* const TimeInfo, const DoubleVector& Fphi,
210      const DoubleVector& MaxCon, const LengthGroupDivision* const LgrpDiv);            const DoubleVector& MaxCon, const LengthGroupDivision* const LgrpDiv, int size);
211    /**    /**
212     * \brief This will return the power term of the length - weight relationship     * \brief This will return the power term of the length - weight relationship
213     * \return lgrowthPar[7]     * \return lgrowthPar[7]
# Line 252  Line 274 
274     * \param MaxCon is the DoubleVector of the maximum consumption of the stock     * \param MaxCon is the DoubleVector of the maximum consumption of the stock
275     * \param LgrpDiv is the LengthGroupDivision of the stock     * \param LgrpDiv is the LengthGroupDivision of the stock
276     */     */
277    virtual void calcGrowth(int area, DoubleVector& Lgrowth, DoubleVector& Wgrowth,  //  virtual void calcGrowth(int area, DoubleVector& Lgrowth, DoubleVector& Wgrowth,
278    //    const PopInfoVector& numGrow, const AreaClass* const Area,
279    //    const TimeClass* const TimeInfo, const DoubleVector& Fphi,
280    //    const DoubleVector& MaxCon, const LengthGroupDivision* const LgrpDiv);
281    
282      virtual void calcGrowth(int area, double* Lgrowth, double* Wgrowth,
283      const PopInfoVector& numGrow, const AreaClass* const Area,      const PopInfoVector& numGrow, const AreaClass* const Area,
284      const TimeClass* const TimeInfo, const DoubleVector& Fphi,      const TimeClass* const TimeInfo, const DoubleVector& Fphi,
285      const DoubleVector& MaxCon, const LengthGroupDivision* const LgrpDiv);            const DoubleVector& MaxCon, const LengthGroupDivision* const LgrpDiv, int size);
286    /**    /**
287     * \brief This will return the power term of the length - weight relationship     * \brief This will return the power term of the length - weight relationship
288     * \return lgrowthPar[7]     * \return lgrowthPar[7]
# Line 322  Line 349 
349     * \param MaxCon is the DoubleVector of the maximum consumption of the stock     * \param MaxCon is the DoubleVector of the maximum consumption of the stock
350     * \param LgrpDiv is the LengthGroupDivision of the stock     * \param LgrpDiv is the LengthGroupDivision of the stock
351     */     */
352    virtual void calcGrowth(int area, DoubleVector& Lgrowth, DoubleVector& Wgrowth,  //  virtual void calcGrowth(int area, DoubleVector& Lgrowth, DoubleVector& Wgrowth,
353    //    const PopInfoVector& numGrow, const AreaClass* const Area,
354    //    const TimeClass* const TimeInfo, const DoubleVector& Fphi,
355    //    const DoubleVector& MaxCon, const LengthGroupDivision* const LgrpDiv);
356    
357      virtual void calcGrowth(int area, double* Lgrowth, double* Wgrowth,
358      const PopInfoVector& numGrow, const AreaClass* const Area,      const PopInfoVector& numGrow, const AreaClass* const Area,
359      const TimeClass* const TimeInfo, const DoubleVector& Fphi,      const TimeClass* const TimeInfo, const DoubleVector& Fphi,
360      const DoubleVector& MaxCon, const LengthGroupDivision* const LgrpDiv);            const DoubleVector& MaxCon, const LengthGroupDivision* const LgrpDiv, int size);
361    /**    /**
362     * \brief This will return the power term of the length - weight relationship     * \brief This will return the power term of the length - weight relationship
363     * \return lgrowthPar[7]     * \return lgrowthPar[7]
# Line 404  Line 436 
436     * \param MaxCon is the DoubleVector of the maximum consumption of the stock     * \param MaxCon is the DoubleVector of the maximum consumption of the stock
437     * \param LgrpDiv is the LengthGroupDivision of the stock     * \param LgrpDiv is the LengthGroupDivision of the stock
438     */     */
439    virtual void calcGrowth(int area, DoubleVector& Lgrowth, DoubleVector& Wgrowth,  //  virtual void calcGrowth(int area, DoubleVector& Lgrowth, DoubleVector& Wgrowth,
440    //    const PopInfoVector& numGrow, const AreaClass* const Area,
441    //    const TimeClass* const TimeInfo, const DoubleVector& Fphi,
442    //    const DoubleVector& MaxCon, const LengthGroupDivision* const LgrpDiv);
443    
444      virtual void calcGrowth(int area, double* Lgrowth, double* Wgrowth,
445      const PopInfoVector& numGrow, const AreaClass* const Area,      const PopInfoVector& numGrow, const AreaClass* const Area,
446      const TimeClass* const TimeInfo, const DoubleVector& Fphi,      const TimeClass* const TimeInfo, const DoubleVector& Fphi,
447      const DoubleVector& MaxCon, const LengthGroupDivision* const LgrpDiv);            const DoubleVector& MaxCon, const LengthGroupDivision* const LgrpDiv, int size);
448  protected:  protected:
449    /**    /**
450     * \brief This is the number of growth parameters (set to 2)     * \brief This is the number of growth parameters (set to 2)
# Line 456  Line 493 
493     * \param MaxCon is the DoubleVector of the maximum consumption of the stock     * \param MaxCon is the DoubleVector of the maximum consumption of the stock
494     * \param LgrpDiv is the LengthGroupDivision of the stock     * \param LgrpDiv is the LengthGroupDivision of the stock
495     */     */
496    virtual void calcGrowth(int area, DoubleVector& Lgrowth, DoubleVector& Wgrowth,  //  virtual void calcGrowth(int area, DoubleVector& Lgrowth, DoubleVector& Wgrowth,
497    //    const PopInfoVector& numGrow, const AreaClass* const Area,
498    //    const TimeClass* const TimeInfo, const DoubleVector& Fphi,
499    //    const DoubleVector& MaxCon, const LengthGroupDivision* const LgrpDiv);
500    
501      virtual void calcGrowth(int area, double* Lgrowth, double* Wgrowth,
502      const PopInfoVector& numGrow, const AreaClass* const Area,      const PopInfoVector& numGrow, const AreaClass* const Area,
503      const TimeClass* const TimeInfo, const DoubleVector& Fphi,      const TimeClass* const TimeInfo, const DoubleVector& Fphi,
504      const DoubleVector& MaxCon, const LengthGroupDivision* const LgrpDiv);            const DoubleVector& MaxCon, const LengthGroupDivision* const LgrpDiv, int size);
505  protected:  protected:
506    /**    /**
507     * \brief This is the number of growth parameters (set to 2)     * \brief This is the number of growth parameters (set to 2)
# Line 506  Line 548 
548     * \param MaxCon is the DoubleVector of the maximum consumption of the stock     * \param MaxCon is the DoubleVector of the maximum consumption of the stock
549     * \param LgrpDiv is the LengthGroupDivision of the stock     * \param LgrpDiv is the LengthGroupDivision of the stock
550     */     */
551    virtual void calcGrowth(int area, DoubleVector& Lgrowth, DoubleVector& Wgrowth,  //  virtual void calcGrowth(int area, DoubleVector& Lgrowth, DoubleVector& Wgrowth,
552    //    const PopInfoVector& numGrow, const AreaClass* const Area,
553    //    const TimeClass* const TimeInfo, const DoubleVector& Fphi,
554    //    const DoubleVector& MaxCon, const LengthGroupDivision* const LgrpDiv);
555    
556    
557      virtual void calcGrowth(int area, double* Lgrowth, double* Wgrowth,
558      const PopInfoVector& numGrow, const AreaClass* const Area,      const PopInfoVector& numGrow, const AreaClass* const Area,
559      const TimeClass* const TimeInfo, const DoubleVector& Fphi,      const TimeClass* const TimeInfo, const DoubleVector& Fphi,
560      const DoubleVector& MaxCon, const LengthGroupDivision* const LgrpDiv);        const DoubleVector& MaxCon, const LengthGroupDivision* const LgrpDiv, int size);
561    
562    /**    /**
563     * \brief This will return the power term of the length - weight relationship     * \brief This will return the power term of the length - weight relationship
564     * \return growthPar[3]     * \return growthPar[3]
# Line 562  Line 611 
611     * \param MaxCon is the DoubleVector of the maximum consumption of the stock     * \param MaxCon is the DoubleVector of the maximum consumption of the stock
612     * \param LgrpDiv is the LengthGroupDivision of the stock     * \param LgrpDiv is the LengthGroupDivision of the stock
613     */     */
614    virtual void calcGrowth(int area, DoubleVector& Lgrowth, DoubleVector& Wgrowth,  //  virtual void calcGrowth(int area, DoubleVector& Lgrowth, DoubleVector& Wgrowth,
615    //    const PopInfoVector& numGrow, const AreaClass* const Area,
616    //    const TimeClass* const TimeInfo, const DoubleVector& Fphi,
617    //    const DoubleVector& MaxCon, const LengthGroupDivision* const LgrpDiv);
618    
619      virtual void calcGrowth(int area, double* Lgrowth, double* Wgrowth,
620      const PopInfoVector& numGrow, const AreaClass* const Area,      const PopInfoVector& numGrow, const AreaClass* const Area,
621      const TimeClass* const TimeInfo, const DoubleVector& Fphi,      const TimeClass* const TimeInfo, const DoubleVector& Fphi,
622      const DoubleVector& MaxCon, const LengthGroupDivision* const LgrpDiv);          const DoubleVector& MaxCon, const LengthGroupDivision* const LgrpDiv, int size);
623    /**    /**
624     * \brief This will return the power term of the length - weight relationship     * \brief This will return the power term of the length - weight relationship
625     * \return growthPar[4]     * \return growthPar[4]
# Line 618  Line 672 
672     * \param MaxCon is the DoubleVector of the maximum consumption of the stock     * \param MaxCon is the DoubleVector of the maximum consumption of the stock
673     * \param LgrpDiv is the LengthGroupDivision of the stock     * \param LgrpDiv is the LengthGroupDivision of the stock
674     */     */
675    virtual void calcGrowth(int area, DoubleVector& Lgrowth, DoubleVector& Wgrowth,  //  virtual void calcGrowth(int area, DoubleVector& Lgrowth, DoubleVector& Wgrowth,
676    //    const PopInfoVector& numGrow, const AreaClass* const Area,
677    //    const TimeClass* const TimeInfo, const DoubleVector& Fphi,
678    //    const DoubleVector& MaxCon, const LengthGroupDivision* const LgrpDiv);
679    
680    
681      virtual void calcGrowth(int area, double* Lgrowth, double* Wgrowth,
682      const PopInfoVector& numGrow, const AreaClass* const Area,      const PopInfoVector& numGrow, const AreaClass* const Area,
683      const TimeClass* const TimeInfo, const DoubleVector& Fphi,      const TimeClass* const TimeInfo, const DoubleVector& Fphi,
684      const DoubleVector& MaxCon, const LengthGroupDivision* const LgrpDiv);            const DoubleVector& MaxCon, const LengthGroupDivision* const LgrpDiv, int size);
685    /**    /**
686     * \brief This will return the power term of the length - weight relationship     * \brief This will return the power term of the length - weight relationship
687     * \return growthPar[4]     * \return growthPar[4]
# Line 674  Line 734 
734     * \param MaxCon is the DoubleVector of the maximum consumption of the stock     * \param MaxCon is the DoubleVector of the maximum consumption of the stock
735     * \param LgrpDiv is the LengthGroupDivision of the stock     * \param LgrpDiv is the LengthGroupDivision of the stock
736     */     */
737    virtual void calcGrowth(int area, DoubleVector& Lgrowth, DoubleVector& Wgrowth,  //  virtual void calcGrowth(int area, DoubleVector& Lgrowth, DoubleVector& Wgrowth,
738    //    const PopInfoVector& numGrow, const AreaClass* const Area,
739    //    const TimeClass* const TimeInfo, const DoubleVector& Fphi,
740    //    const DoubleVector& MaxCon, const LengthGroupDivision* const LgrpDiv);
741    
742      virtual void calcGrowth(int area, double* Lgrowth, double* Wgrowth,
743      const PopInfoVector& numGrow, const AreaClass* const Area,      const PopInfoVector& numGrow, const AreaClass* const Area,
744      const TimeClass* const TimeInfo, const DoubleVector& Fphi,      const TimeClass* const TimeInfo, const DoubleVector& Fphi,
745      const DoubleVector& MaxCon, const LengthGroupDivision* const LgrpDiv);            const DoubleVector& MaxCon, const LengthGroupDivision* const LgrpDiv, int size);
746    /**    /**
747     * \brief This will return the power term of the length - weight relationship     * \brief This will return the power term of the length - weight relationship
748     * \return growthPar[4]     * \return growthPar[4]

Legend:
Removed from v.1  
changed lines
  Added in v.4

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

Powered By FusionForge