Go to the documentation of this file. 1 #ifndef MOJA_MODULES_CBM_PEATLAND_DISTURBANCE_H_
2 #define MOJA_MODULES_CBM_PEATLAND_DISTURBANCE_H_
4 #include "moja/modules/cbm/_modules.cbm_exports.h"
21 std::string fireEvent =
"fire";
23 void configure(
const DynamicObject& config)
override;
24 void subscribe(NotificationCenter& notificationCenter)
override;
26 void doDisturbanceEvent(DynamicVar)
override;
27 void doLocalDomainInit()
override;
28 void doTimingInit()
override;
30 void fetchPeatlandDistMatrices();
31 void fetchPeatlandDMAssociations();
32 void fetchPeatlandDistModifiers();
36 typedef std::unordered_map<int, EventVector>
EventMap;
39 std::unordered_map<std::pair<int, std::string>, std::pair<int, int>>
_dmAssociations;
46 int _peatlandId{ -1 };
47 bool _runPeatland{
false };
std::unordered_map< int, modifierVector > _modifiers
Definition: peatlanddisturbancemodule.h:42
virtual ~PeatlandDisturbanceModule()
Definition: peatlanddisturbancemodule.h:19
std::vector< std::string > modifierVector
Definition: peatlanddisturbancemodule.h:41
Definition: ageclasshelper.cpp:12
Definition: cbmmodulebase.h:22
std::vector< CBMDistEventTransfer > EventVector
Definition: peatlanddisturbancemodule.h:35
Definition: peatlanddisturbancemodule.h:16
EventMap _matrices
Definition: peatlanddisturbancemodule.h:38
std::unordered_map< std::pair< int, std::string >, std::pair< int, int > > _dmAssociations
Definition: peatlanddisturbancemodule.h:39
std::unordered_map< int, EventVector > EventMap
Definition: peatlanddisturbancemodule.h:36
PeatlandDisturbanceModule()
Definition: peatlanddisturbancemodule.h:18
Definition: ageclasshelper.cpp:10
flint::IVariable * _wtdModifier
Definition: peatlanddisturbancemodule.h:44