Subversion Repositories public iLand

Rev

Rev 193 | Rev 209 | 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) {}
15
    ResourceUnitSpecies(Species *species, ResourceUnit *ru) { mSpecies = species; mRU = ru; }
115 Werner 16
 
208 werner 17
    void calculateResponses() { mResponse.calculate(); } ///< calculate environmental responses per species (vpd, temperature, ...)
18
    const Species *species() const { return mSpecies; } ///< return pointer to species
19
    const ResourceUnit *ru() const { return mRU; } ///< return pointer to resource unit
20
    Production3PG &prod3PG()  { return m3PG; } ///< the 3pg production model of this speies x resourceunit
21
    StandStatistics &statistics() { return mStatistics; } ///< statistics of this species on the resourceunit
182 werner 22
    const StandStatistics &constStatistics() const { return mStatistics; }
115 Werner 23
    // action
24
 
111 Werner 25
private:
180 werner 26
    StandStatistics mStatistics;
115 Werner 27
    Production3PG m3PG;
111 Werner 28
    Species *mSpecies;
193 werner 29
    SpeciesResponse mResponse;
187 iland 30
    ResourceUnit *mRU;
111 Werner 31
};
32
 
33
#endif // RESSOURCEUNITSPECIES_H