Subversion Repositories public iLand

Rev

Rev 1007 | Rev 1010 | Go to most recent revision | Details | Compare with Previous | Last modification | View Log | RSS feed

Rev Author Line No. Line
1
 
964 werner 2
#ifndef BBGENERATIONS_H
3
#define BBGENERATIONS_H
4
 
1008 werner 5
#include <QVector>
6
 
7
class ResourceUnit; // forward
8
 
964 werner 9
class BBGenerations
10
{
11
public:
12
    BBGenerations();
1008 werner 13
    double calculateGenerations(const ResourceUnit *ru);
1007 werner 14
private:
15
    void calculateBarkTemperature(const ResourceUnit *ru);
1008 werner 16
    struct BBGeneration {
17
        BBGeneration(): start_day(-1), gen(0), is_filial_generation(false), value(0.) {}
18
        BBGeneration(int start, bool is_filial, int generation) { start_day=start; is_filial_generation=is_filial; value=0.; gen=generation; }
19
        int start_day;
20
        int gen;
21
        bool is_filial_generation;
22
        double value;
23
    };
24
    QVector<BBGeneration> mGenerations;
25
 
26
    double mEffectiveBarkTemp[366];
964 werner 27
};
28
 
29
#endif // BBGENERATIONS_H