Rev 280 | Rev 287 | Go to most recent revision | Show entire file | Regard whitespace | Details | Blame | Last modification | View Log | RSS feed
Rev 280 | Rev 281 | ||
---|---|---|---|
Line 7... | Line 7... | ||
7 | #include "standstatistics.h"
|
7 | #include "standstatistics.h"
|
8 | 8 | ||
9 | class SpeciesSet; |
9 | class SpeciesSet; |
10 | class Climate; |
10 | class Climate; |
11 | class WaterCycle; |
11 | class WaterCycle; |
- | 12 | struct ResourceUnitVariables
|
|
- | 13 | {
|
|
- | 14 | double nitrogenAvailable; ///< nitrogen content (kg/m2/year) |
|
- | 15 | }; |
|
12 | 16 | ||
13 | class ResourceUnit
|
17 | class ResourceUnit
|
14 | {
|
18 | {
|
15 | public: |
19 | public: |
16 | ResourceUnit(const int index); |
20 | ResourceUnit(const int index); |
Line 22... | Line 26... | ||
22 | SpeciesSet *speciesSet() const { return mSpeciesSet; } ///< get SpeciesSet this RU links to. |
26 | SpeciesSet *speciesSet() const { return mSpeciesSet; } ///< get SpeciesSet this RU links to. |
23 | ResourceUnitSpecies &resourceUnitSpecies(const Species *species); ///< get RU-Species-container of @p species from the RU |
27 | ResourceUnitSpecies &resourceUnitSpecies(const Species *species); ///< get RU-Species-container of @p species from the RU |
24 | const QVector<ResourceUnitSpecies> ruSpecies() const { return mRUSpecies; } |
28 | const QVector<ResourceUnitSpecies> ruSpecies() const { return mRUSpecies; } |
25 | QVector<Tree> &trees() { return mTrees; } ///< reference to the tree list. |
29 | QVector<Tree> &trees() { return mTrees; } ///< reference to the tree list. |
26 | const QVector<Tree> &constTrees() const { return mTrees; } ///< reference to the tree list. |
30 | const QVector<Tree> &constTrees() const { return mTrees; } ///< reference to the tree list. |
- | 31 | const ResourceUnitVariables &resouceUnitVariables() const { return mUnitVariables; } ///< access to variables that are specific to resourceUnit (e.g. nitrogenAvailable) |
|
27 | 32 | ||
28 | // properties
|
33 | // properties
|
29 | int index() const { return mIndex; } |
34 | int index() const { return mIndex; } |
30 | const QRectF &boundingBox() const { return mBoundingBox; } |
35 | const QRectF &boundingBox() const { return mBoundingBox; } |
31 | double area() const { return mPixelCount*100; } ///< get the resuorce unit area in m2 |
36 | double area() const { return mPixelCount*100; } ///< get the resuorce unit area in m2 |
Line 74... | Line 79... | ||
74 | 79 | ||
75 | int mPixelCount; ///< count of (Heightgrid) pixels thare are inside the RU |
80 | int mPixelCount; ///< count of (Heightgrid) pixels thare are inside the RU |
76 | int mStockedPixelCount; ///< count of pixels that are stocked with trees |
81 | int mStockedPixelCount; ///< count of pixels that are stocked with trees |
77 | double mStockedArea; ///< size of stocked area |
82 | double mStockedArea; ///< size of stocked area |
78 | StandStatistics mStatistics; ///< aggregate values on stand value |
83 | StandStatistics mStatistics; ///< aggregate values on stand value |
- | 84 | ResourceUnitVariables mUnitVariables;
|
|
79 | 85 | ||
80 | friend class RUWrapper; |
86 | friend class RUWrapper; |
81 | }; |
87 | }; |
82 | 88 | ||
83 | #endif // RESOURCEUNIT_H
|
89 | #endif // RESOURCEUNIT_H
|