GCBM
disturbancemonitormodule.h
Go to the documentation of this file.
1 #ifndef MOJA_MODULES_CBM_DISTURBANCEMONITOR_H_
2 #define MOJA_MODULES_CBM_DISTURBANCEMONITOR_H_
3 
5 
6 namespace moja {
7 namespace modules {
8 namespace cbm {
9 
11  public:
13  virtual ~DisturbanceMonitorModule() = default;
14 
15  void subscribe(NotificationCenter& notificationCenter) override;
16 
17  flint::ModuleTypes moduleType() { return flint::ModuleTypes::DisturbanceEvent; };
18 
19  virtual void doLocalDomainInit() override;
20  virtual void doTimingInit() override;
21  virtual void doOutputStep() override;
22  virtual void doDisturbanceEvent(DynamicVar) override;
23 
24  private:
25  bool _moduleEnabled = true;
26  flint::IVariable* _currentDisturbance;
27  };
28 
29 }}} // namespace moja::modules::cbm
30 #endif // MOJA_MODULES_CBM_DISTURBANCEMONITOR_H_
moja::modules::cbm::DisturbanceMonitorModule::_currentDisturbance
flint::IVariable * _currentDisturbance
Definition: disturbancemonitormodule.h:26
moja::modules::cbm::DisturbanceMonitorModule::~DisturbanceMonitorModule
virtual ~DisturbanceMonitorModule()=default
moja::modules::cbm
Definition: ageclasshelper.cpp:12
moja::modules::cbm::CBMModuleBase
Definition: cbmmodulebase.h:22
moja::modules::cbm::DisturbanceMonitorModule::DisturbanceMonitorModule
DisturbanceMonitorModule()
Definition: disturbancemonitormodule.h:12
moja::modules::cbm::DisturbanceMonitorModule::moduleType
flint::ModuleTypes moduleType()
Definition: disturbancemonitormodule.h:17
moja::modules::cbm::DisturbanceMonitorModule::_moduleEnabled
bool _moduleEnabled
Definition: disturbancemonitormodule.h:25
moja::modules::cbm::DisturbanceMonitorModule::doTimingInit
virtual void doTimingInit() override
Definition: disturbancemonitormodule.cpp:53
moja::modules::cbm::DisturbanceMonitorModule::doOutputStep
virtual void doOutputStep() override
Definition: disturbancemonitormodule.cpp:68
moja::modules::cbm::DisturbanceMonitorModule::doDisturbanceEvent
virtual void doDisturbanceEvent(DynamicVar) override
Definition: disturbancemonitormodule.cpp:85
moja::modules::cbm::DisturbanceMonitorModule::subscribe
void subscribe(NotificationCenter &notificationCenter) override
Definition: disturbancemonitormodule.cpp:23
moja
Definition: ageclasshelper.cpp:10
moja::modules::cbm::DisturbanceMonitorModule
Definition: disturbancemonitormodule.h:10
cbmmodulebase.h
moja::modules::cbm::DisturbanceMonitorModule::doLocalDomainInit
virtual void doLocalDomainInit() override
Definition: disturbancemonitormodule.cpp:37