Go to the documentation of this file. 1 #ifndef MOJA_MODULES_CBM_PARTITIONING_MODULE_H_
2 #define MOJA_MODULES_CBM_PARTITIONING_MODULE_H_
6 #include "moja/modules/cbm/_modules.cbm_exports.h"
20 void subscribe(NotificationCenter& notificationCenter)
override;
22 void doLocalDomainInit()
override;
23 void doTimingInit()
override;
24 void doDisturbanceEvent(DynamicVar e)
override;
25 void doTimingStep()
override;
30 double _cumulativeMortality = 0.0;
35 std::map<std::string, std::map<int, std::tuple<std::string, DynamicVar>>>
_recoveryRules;
45 void fetchRecoveryRules();
47 std::shared_ptr<IRecoveryRule> createInitialRecoveryRule(std::string disturbanceType);
48 std::shared_ptr<IRecoveryRule> createRecoveryRule(std::string disturbanceType);
50 void doSmallDisturbanceEvent(std::string disturbanceType,
double mortality);
51 void doLargeDisturbanceEvent(std::string disturbanceType);
std::vector< const flint::IPool * > _agBiomassPools
Definition: cbmpartitioningmodule.h:37
std::vector< const flint::IPool * > _totalEcoPools
Definition: cbmpartitioningmodule.h:39
std::list< std::shared_ptr< IRecoveryRule > > _activeRecoveryRules
Definition: cbmpartitioningmodule.h:28
std::map< std::string, std::map< int, double > > _disturbanceMortality
Definition: cbmpartitioningmodule.h:32
Definition: ageclasshelper.cpp:12
std::map< std::string, std::map< int, std::tuple< std::string, DynamicVar > > > _initialRecoveryRules
Definition: cbmpartitioningmodule.h:34
std::map< std::string, std::map< int, std::tuple< std::string, DynamicVar > > > _recoveryRules
Definition: cbmpartitioningmodule.h:35
Definition: cbmmodulebase.h:22
Definition: cbmpartitioningmodule.h:15
flint::IVariable * _spinupParameters
Definition: cbmpartitioningmodule.h:42
std::list< std::shared_ptr< IRecoveryRule > > _pendingRecoveryRules
Definition: cbmpartitioningmodule.h:29
virtual ~CBMPartitioningModule()
Definition: cbmpartitioningmodule.h:18
CBMPartitioningModule()
Definition: cbmpartitioningmodule.h:17
std::vector< const flint::IPool * > _totalBiomassPools
Definition: cbmpartitioningmodule.h:38
flint::IVariable * _partition
Definition: cbmpartitioningmodule.h:41
int _spuId
Definition: cbmpartitioningmodule.h:31
flint::IVariable * _spu
Definition: cbmpartitioningmodule.h:43
std::map< std::string, std::string > _disturbanceCategories
Definition: cbmpartitioningmodule.h:33
Definition: ageclasshelper.cpp:10