#include <mossdisturbancemodule.h>
◆ EventMap
◆ EventVector
◆ MossDisturbanceModule()
◆ ~MossDisturbanceModule()
◆ configure()
void configure |
( |
const DynamicObject & |
config | ) |
|
|
override |
Configuration function
- Parameters
-
config | const DynamicObject& |
- Returns
- void
◆ doDisturbanceEvent()
void doDisturbanceEvent |
( |
DynamicVar |
n | ) |
|
|
overridevirtual |
If MossDisturbanceModule.runMoss is false, return.
Else, get the disturbance type for either historical or last disturbance event from "disturbance" in parameter n, and check if it is fire disturbance, MossDisturbanceModule::fireEvent
If it is a fire disturbance and runMoss is true, for every source and sink pool pairs, in _sourcePools and _destPools, obtain th transfer rates from _transferRates.
Instantiate an object of CBMDistEventTransfer with *_landUnitData, sourcePoolName, sinkPoolName, transferRate and append it to "transfers" in parameter n
- Parameters
-
- Returns
- void
Reimplemented from CBMModuleBase.
◆ doLocalDomainInit()
void doLocalDomainInit |
( |
| ) |
|
|
overridevirtual |
Invoke MossDisturbanceModule.recordMossTransfers() on the value of variable "moss_fire_parameters" in _landUnitData
- Returns
- void
Reimplemented from CBMModuleBase.
◆ doTimingInit()
If variable "enable_moss" exists in _landUnitData and it has a value, invoke Helper.runMoss() with arguments as value of variables "growth_curve_id", "moss_leading_species" and "leading_species" in _landUnitData
Assign MossDisturbanceModule.runMoss to true if variable "peatland_class" in _landUnitData is empty, variable "growth_curve_id" in _landUnitData is not empty, and Helper.runMoss() returns true
- Returns
- void
Reimplemented from CBMModuleBase.
◆ fetchMossDistMatrices()
void fetchMossDistMatrices |
( |
| ) |
|
|
private |
◆ fetchMossDMAssociations()
void fetchMossDMAssociations |
( |
| ) |
|
|
private |
◆ subscribe()
void subscribe |
( |
NotificationCenter & |
notificationCenter | ) |
|
|
override |
Subscribe to the signals LocalDomainInit, DisturbanceEvent and TimingInit
- Parameters
-
notificationCenter | NotificationCenter& |
- Returns
- void
◆ _dmAssociations
std::unordered_map<std::string, int> _dmAssociations |
|
private |
◆ _matrices
◆ _runMoss
◆ fireEvent
const std::string fireEvent = "fire" |
The documentation for this class was generated from the following files: