GCBM
peatlandgrowthcurvetransform.h
Go to the documentation of this file.
1 #ifndef MOJA_MODULES_CBM_PEATLANDGROWTHCURVETRANSFORM_H_
2 #define MOJA_MODULES_CBM_PEATLANDGROWTHCURVETRANSFORM_H_
3 
4 #include "moja/datarepository/iproviderrelationalinterface.h"
5 #include "moja/flint/ilandunitcontroller.h"
6 #include "moja/flint/itransform.h"
7 
8 namespace moja {
9 namespace modules {
10 namespace cbm {
11 
12 class PeatlandGrowthCurveTransform : public flint::ITransform {
13 public:
14  void configure(DynamicObject config,
15  const flint::ILandUnitController& landUnitController,
16  datarepository::DataRepository& dataRepository) override;
17 
18  void controllerChanged(const flint::ILandUnitController& controller) override;
19  const DynamicVar& value() const override;
20 
21 private:
22  const flint::ILandUnitController* _landUnitController;
23  datarepository::DataRepository* _dataRepository;
24  mutable const flint::IVariable* _gcbmGrowthCurveVar;
25  mutable const flint::IVariable* _blackSpruceGrowthCurveVar;
26  mutable DynamicVar _value;
27 };
28 
29 }}}
30 
31 #endif // MOJA_MODULES_CBM_PEATLANDGROWTHCURVETRANSFORM_H_
moja::modules::cbm
Definition: ageclasshelper.cpp:12
moja::modules::cbm::PeatlandGrowthCurveTransform::_value
DynamicVar _value
Definition: peatlandgrowthcurvetransform.h:26
moja::modules::cbm::PeatlandGrowthCurveTransform::controllerChanged
void controllerChanged(const flint::ILandUnitController &controller) override
Definition: peatlandgrowthcurvetransform.cpp:53
moja::modules::cbm::PeatlandGrowthCurveTransform::_blackSpruceGrowthCurveVar
const flint::IVariable * _blackSpruceGrowthCurveVar
Definition: peatlandgrowthcurvetransform.h:25
moja::modules::cbm::PeatlandGrowthCurveTransform::_dataRepository
datarepository::DataRepository * _dataRepository
Definition: peatlandgrowthcurvetransform.h:23
moja::modules::cbm::PeatlandGrowthCurveTransform::_landUnitController
const flint::ILandUnitController * _landUnitController
Definition: peatlandgrowthcurvetransform.h:22
moja::modules::cbm::PeatlandGrowthCurveTransform
Definition: peatlandgrowthcurvetransform.h:12
moja::modules::cbm::PeatlandGrowthCurveTransform::configure
void configure(DynamicObject config, const flint::ILandUnitController &landUnitController, datarepository::DataRepository &dataRepository) override
Definition: peatlandgrowthcurvetransform.cpp:32
moja::modules::cbm::PeatlandGrowthCurveTransform::value
const DynamicVar & value() const override
Definition: peatlandgrowthcurvetransform.cpp:76
moja
Definition: ageclasshelper.cpp:10
moja::modules::cbm::PeatlandGrowthCurveTransform::_gcbmGrowthCurveVar
const flint::IVariable * _gcbmGrowthCurveVar
Definition: peatlandgrowthcurvetransform.h:24