Rev 440 | Rev 450 | Go to most recent revision | Show entire file | Regard whitespace | Details | Blame | Last modification | View Log | RSS feed
Rev 440 | Rev 449 | ||
---|---|---|---|
Line 13... | Line 13... | ||
13 | {
|
13 | {
|
14 | public: |
14 | public: |
15 | ResourceUnitSpecies() : mLAIfactor(0.), mSpecies(0), mRU(0) {} |
15 | ResourceUnitSpecies() : mLAIfactor(0.), mSpecies(0), mRU(0) {} |
16 | void setup(Species *species, ResourceUnit *ru); |
16 | void setup(Species *species, ResourceUnit *ru); |
17 | 17 | ||
- | 18 | // access
|
|
18 | const SpeciesResponse *speciesResponse() const { return &mResponse; } |
19 | const SpeciesResponse *speciesResponse() const { return &mResponse; } |
19 | const Species *species() const { return mSpecies; } ///< return pointer to species |
20 | const Species *species() const { return mSpecies; } ///< return pointer to species |
20 | const ResourceUnit *ru() const { return mRU; } ///< return pointer to resource unit |
21 | const ResourceUnit *ru() const { return mRU; } ///< return pointer to resource unit |
21 | const Production3PG &prod3PG() const { return m3PG; } ///< the 3pg production model of this speies x resourceunit |
22 | const Production3PG &prod3PG() const { return m3PG; } ///< the 3pg production model of this speies x resourceunit |
22 | StandStatistics &statistics() { return mStatistics; } ///< statistics of this species on the resourceunit |
23 | StandStatistics &statistics() { return mStatistics; } ///< statistics of this species on the resourceunit |
Line 24... | Line 25... | ||
24 | StandStatistics &statisticsMgmt() { return mStatisticsMgmt; } ///< statistics of removed trees |
25 | StandStatistics &statisticsMgmt() { return mStatisticsMgmt; } ///< statistics of removed trees |
25 | const StandStatistics &constStatistics() const { return mStatistics; } ///< const accessor |
26 | const StandStatistics &constStatistics() const { return mStatistics; } ///< const accessor |
26 | const StandStatistics &constStatisticsDead() const { return mStatisticsDead; } ///< const accessor |
27 | const StandStatistics &constStatisticsDead() const { return mStatisticsDead; } ///< const accessor |
27 | const StandStatistics &constStatisticsMgmt() const { return mStatisticsMgmt; } ///< const accessor |
28 | const StandStatistics &constStatisticsMgmt() const { return mStatisticsMgmt; } ///< const accessor |
28 | 29 | ||
- | 30 | // actions
|
|
29 | void updateGWL(); |
31 | void updateGWL(); |
30 | double removedVolume() const { return mRemovedGrowth; } ///< sum of volume with was remvoved because of death/management (m3) |
32 | double removedVolume() const { return mRemovedGrowth; } ///< sum of volume with was remvoved because of death/management (m3) |
31 | double LAIfactor() const { return mLAIfactor; } ///< relative fraction of LAI of this species (0..1) |
33 | double LAIfactor() const { return mLAIfactor; } ///< relative fraction of LAI of this species (0..1) |
32 | void setLAIfactor(const double newLAIfraction) { mLAIfactor=newLAIfraction; if (mLAIfactor<0 || mLAIfactor>1.00001) qDebug() << "invalid LAIfactor"<<mLAIfactor; } |
34 | void setLAIfactor(const double newLAIfraction) { mLAIfactor=newLAIfraction; if (mLAIfactor<0 || mLAIfactor>1.00001) qDebug() << "invalid LAIfactor"<<mLAIfactor; } |
33 | // properties
|
35 | // properties
|