Go to the documentation of this file. 1 #ifndef MOJA_MODULES_CBM_CBMTRANSITIONRULESMODULE_H_
2 #define MOJA_MODULES_CBM_CBMTRANSITIONRULESMODULE_H_
4 #include "moja/flint/modulebase.h"
10 #include <unordered_map>
34 const std::unordered_map<std::string, std::string>
classifiers()
const {
52 CBMTransitionRulesModule(std::shared_ptr<StandGrowthCurveFactory> gcFactory, std::shared_ptr<VolumeToBiomassCarbonGrowth> volumeToBioGrowth)
57 void subscribe(NotificationCenter& notificationCenter)
override;
59 flint::ModuleTypes
moduleType() {
return flint::ModuleTypes::DisturbanceEvent; };
97 #endif // MOJA_MODULES_CBM_CBMTRANSITIONRULESMODULE_H_
int _resetAge
Definition: cbmtransitionrulesmodule.h:45
virtual void doTimingInit() override
Definition: cbmtransitionrulesmodule.cpp:124
int findTransitionRule(const std::string &disturbanceType)
Definition: cbmtransitionrulesmodule.cpp:144
std::shared_ptr< StandGrowthCurveFactory > _gcFactory
Definition: cbmtransitionrulesmodule.h:74
TransitionRule()
Definition: cbmtransitionrulesmodule.h:24
int _id
Definition: cbmtransitionrulesmodule.h:43
const flint::IPool * _softwoodOther
Definition: cbmtransitionrulesmodule.h:76
Definition: ageclasshelper.cpp:12
std::unordered_map< std::string, std::string > _classifiers
Definition: cbmtransitionrulesmodule.h:47
virtual void doDisturbanceEvent(DynamicVar) override
Definition: cbmtransitionrulesmodule.cpp:173
const flint::IPool * _softwoodCoarseRoots
Definition: cbmtransitionrulesmodule.h:78
Int64 _standSpuId
Definition: cbmtransitionrulesmodule.h:87
int id()
Definition: cbmtransitionrulesmodule.h:29
int regenDelay()
Definition: cbmtransitionrulesmodule.h:32
virtual void doTimingShutdown() override
Definition: cbmtransitionrulesmodule.cpp:133
const flint::IPool * _softwoodFineRoots
Definition: cbmtransitionrulesmodule.h:79
Definition: cbmmodulebase.h:22
const std::unordered_map< std::string, std::string > classifiers() const
Definition: cbmtransitionrulesmodule.h:34
const flint::IPool * _hardwoodFoliage
Definition: cbmtransitionrulesmodule.h:82
const flint::IPool * _softwoodFoliage
Definition: cbmtransitionrulesmodule.h:77
double calculateBiomass()
Definition: cbmtransitionrulesmodule.cpp:291
flint::IVariable * _age
Definition: cbmtransitionrulesmodule.h:67
flint::ModuleTypes moduleType()
Definition: cbmtransitionrulesmodule.h:59
void addClassifier(std::string name, std::string value)
Definition: cbmtransitionrulesmodule.h:38
const flint::IPool * _hardwoodOther
Definition: cbmtransitionrulesmodule.h:81
bool _allowMatchingRules
Definition: cbmtransitionrulesmodule.h:72
const flint::IPool * _hardwoodFineRoots
Definition: cbmtransitionrulesmodule.h:84
flint::IVariable * _regenDelay
Definition: cbmtransitionrulesmodule.h:69
flint::IVariable * _transitionRuleMatches
Definition: cbmtransitionrulesmodule.h:70
const flint::IPool * _hardwoodMerch
Definition: cbmtransitionrulesmodule.h:80
virtual void doLocalDomainInit() override
Definition: cbmtransitionrulesmodule.cpp:57
Definition: cbmtransitionrulesmodule.h:50
AgeResetType
Definition: cbmtransitionrulesmodule.h:16
TransitionRule(int id, int resetAge, int regenDelay)
Definition: cbmtransitionrulesmodule.h:26
AgeResetType _resetType
Definition: cbmtransitionrulesmodule.h:44
Definition: cbmtransitionrulesmodule.h:22
flint::IVariable * _cset
Definition: cbmtransitionrulesmodule.h:68
std::shared_ptr< VolumeToBiomassCarbonGrowth > _volumeToBioGrowth
Definition: cbmtransitionrulesmodule.h:73
flint::IVariable * _gcId
Definition: cbmtransitionrulesmodule.h:85
flint::IVariable * _spuId
Definition: cbmtransitionrulesmodule.h:86
virtual ~CBMTransitionRulesModule()=default
const flint::IPool * _softwoodMerch
Definition: cbmtransitionrulesmodule.h:75
int _regenDelay
Definition: cbmtransitionrulesmodule.h:46
int resetAge()
Definition: cbmtransitionrulesmodule.h:31
int findYieldCurveAge()
Definition: cbmtransitionrulesmodule.cpp:253
std::unordered_map< int, TransitionRule > _transitions
Definition: cbmtransitionrulesmodule.h:71
const flint::IPool * _hardwoodCoarseRoots
Definition: cbmtransitionrulesmodule.h:83
void subscribe(NotificationCenter ¬ificationCenter) override
Definition: cbmtransitionrulesmodule.cpp:27
Definition: ageclasshelper.cpp:10
AgeResetType resetType()
Definition: cbmtransitionrulesmodule.h:30
CBMTransitionRulesModule(std::shared_ptr< StandGrowthCurveFactory > gcFactory, std::shared_ptr< VolumeToBiomassCarbonGrowth > volumeToBioGrowth)
Definition: cbmtransitionrulesmodule.h:52