Subversion Repositories public iLand

Rev

Rev 136 | Rev 139 | Go to most recent revision | Show entire file | Ignore whitespace | Details | Blame | Last modification | View Log | RSS feed

Rev 136 Rev 137
Line 31... Line 31...
31
    const RessourceUnit *ru() const { return mRU; }
31
    const RessourceUnit *ru() const { return mRU; }
32
    void setRU(RessourceUnit *ru) { mRU = ru; }
32
    void setRU(RessourceUnit *ru) { mRU = ru; }
33
33
34
    void setup();
34
    void setup();
35
35
36
    void enableDebugging() { mDebugid = mId; }
-
 
-
 
36
    void enableDebugging(const bool enable=true) { mDebugging = enable; }
37
37
38
38
39
    // grid based light-concurrency functions
39
    // grid based light-concurrency functions
40
    void applyStamp(); ///< apply LightInfluencePattern onto the global grid
40
    void applyStamp(); ///< apply LightInfluencePattern onto the global grid
41
    double readStamp();
41
    double readStamp();
Line 58... Line 58...
58
58
59
    QString dump();
59
    QString dump();
60
60
61
private:
61
private:
62
    // helping functions
62
    // helping functions
63
    void calcBiomassCompartments();
-
 
64
    void partitioning(double npp);
63
    void partitioning(double npp);
65
    // state variables
64
    // state variables
66
    int mId;
65
    int mId;
67
    float mDbh; ///< diameter at breast height [cm]
66
    float mDbh; ///< diameter at breast height [cm]
68
    float mHeight; ///< tree height [m]
67
    float mHeight; ///< tree height [m]
Line 84... Line 83...
84
83
85
    Species *mSpecies;
84
    Species *mSpecies;
86
    RessourceUnit *mRU;
85
    RessourceUnit *mRU;
87
86
88
    // special functions
87
    // special functions
89
    bool isDebugging() { return mId == mDebugid; }
-
 
-
 
88
    bool isDebugging() { return mDebugging; }
90
89
91
    void dumpList(DebugList &rTargetList);
90
    void dumpList(DebugList &rTargetList);
92
    // static data
91
    // static data
93
    static FloatGrid *mGrid;
92
    static FloatGrid *mGrid;
94
    static FloatGrid *mHeightGrid;
93
    static FloatGrid *mHeightGrid;
95
    // debugging
94
    // debugging
96
    static int mDebugid;
-
 
-
 
95
    bool mDebugging;
97
96
98
    // statistics
97
    // statistics
99
    static int m_statPrint;
98
    static int m_statPrint;
100
    static int m_statAboveZ;
99
    static int m_statAboveZ;
101
    static int m_statCreated;
100
    static int m_statCreated;