Rev 262 | Rev 278 | Go to most recent revision | Details | Compare with Previous | Last modification | View Log | RSS feed
Rev | Author | Line No. | Line |
---|---|---|---|
1 | |||
187 | iland | 2 | #ifndef RESOURCEUNITSPECIES_H |
3 | #define RESOURCEUNITSPECIES_H |
||
115 | Werner | 4 | #include "production3pg.h" |
180 | werner | 5 | #include "standstatistics.h" |
193 | werner | 6 | #include "speciesresponse.h" |
111 | Werner | 7 | |
8 | class Species; |
||
187 | iland | 9 | class ResourceUnit; |
111 | Werner | 10 | |
187 | iland | 11 | class ResourceUnitSpecies |
111 | Werner | 12 | { |
13 | public: |
||
187 | iland | 14 | ResourceUnitSpecies() : mSpecies(0), mRU(0) {} |
234 | werner | 15 | void setup(Species *species, ResourceUnit *ru); |
115 | Werner | 16 | |
209 | werner | 17 | const SpeciesResponse *speciesResponse() const { return &mResponse; } |
208 | werner | 18 | const Species *species() const { return mSpecies; } ///< return pointer to species |
19 | const ResourceUnit *ru() const { return mRU; } ///< return pointer to resource unit |
||
228 | werner | 20 | const Production3PG &prod3PG() const { return m3PG; } ///< the 3pg production model of this speies x resourceunit |
208 | werner | 21 | StandStatistics &statistics() { return mStatistics; } ///< statistics of this species on the resourceunit |
262 | werner | 22 | StandStatistics &statisticsDead() { return mStatisticsDead; } ///< statistics of this species on the resourceunit |
23 | const StandStatistics &constStatistics() const { return mStatistics; } ///< const accessor |
||
24 | const StandStatistics &constStatisticsDead() const { return mStatisticsDead; } ///< const accessor |
||
277 | werner | 25 | void updateGWL(); |
26 | double removedVolume() const { return mRemovedGrowth; } ///< sum of volume with was remvoved because of death/management (m3) |
||
115 | Werner | 27 | // action |
226 | werner | 28 | void calculate(); |
115 | Werner | 29 | |
111 | Werner | 30 | private: |
277 | werner | 31 | double mRemovedGrowth; ///< m3 volume of trees removed/managed (to calculate GWL) |
262 | werner | 32 | StandStatistics mStatistics; ///< statistics of a species on this resource unit |
33 | StandStatistics mStatisticsDead; ///< statistics of died trees (this year) of a species on this resource unit |
||
234 | werner | 34 | Production3PG m3PG; ///< NPP prodution unit of this species |
35 | SpeciesResponse mResponse; ///< calculation and storage of species specific respones on this resource unit |
||
36 | Species *mSpecies; ///< speices |
||
37 | ResourceUnit *mRU; ///< resource unit |
||
111 | Werner | 38 | }; |
39 | |||
40 | #endif // RESSOURCEUNITSPECIES_H |