Go to the documentation of this file.
9 #ifndef MOJA_MODULES_CBM_CBMMODULEBASE_H_
10 #define MOJA_MODULES_CBM_CBMMODULEBASE_H_
12 #include "moja/flint/modulebase.h"
13 #include "moja/flint/flintexceptions.h"
14 #include "moja/exception.h"
16 #include <boost/exception_ptr.hpp>
78 catch (flint::SimulationError&) {
throw; }
85 BOOST_THROW_EXCEPTION(flint::SimulationError()
86 << flint::Details(e.displayText())
87 << flint::LibraryName(
"moja.modules.cbm")
88 << flint::ModuleName(metaData().moduleName)
89 << flint::ErrorCode(0));
93 BOOST_THROW_EXCEPTION(flint::SimulationError()
94 << flint::Details(boost::diagnostic_information(e))
95 << flint::LibraryName(
"moja.modules.cbm")
96 << flint::ModuleName(metaData().moduleName)
97 << flint::ErrorCode(0));
101 BOOST_THROW_EXCEPTION(flint::SimulationError()
102 << flint::Details(e.what())
103 << flint::LibraryName(
"moja.modules.cbm")
104 << flint::ModuleName(metaData().moduleName)
105 << flint::ErrorCode(0));
110 #endif // MOJA_MODULES_CBM_CBMMODULEBASE_H_
virtual void doTimingPreEndStep()
Definition: cbmmodulebase.h:62
virtual void doSystemInit()
Definition: cbmmodulebase.h:49
virtual void doTimingPostInit()
Definition: cbmmodulebase.h:58
Definition: ageclasshelper.cpp:12
void raiseModuleError(moja::Exception &e)
Definition: cbmmodulebase.h:84
virtual void doSystemShutdown()
Definition: cbmmodulebase.h:50
void onTimingInit() override
Definition: cbmmodulebase.h:32
virtual void doLocalDomainShutdown()
Definition: cbmmodulebase.h:52
Definition: cbmmodulebase.h:22
virtual void doLocalDomainInit()
Definition: cbmmodulebase.h:51
void onTimingEndStep() override
Definition: cbmmodulebase.h:39
void onTimingPostStep() override
Definition: cbmmodulebase.h:40
void raiseModuleError(std::exception &e)
Definition: cbmmodulebase.h:100
virtual void doLocalDomainProcessingUnitInit()
Definition: cbmmodulebase.h:53
virtual void doPostDisturbanceEvent2()
Definition: cbmmodulebase.h:70
virtual void doTimingPostInit2()
Definition: cbmmodulebase.h:59
void onError(std::string msg) override
Definition: cbmmodulebase.h:45
virtual ~CBMModuleBase()=default
virtual void doDisturbanceEvent(DynamicVar)
Definition: cbmmodulebase.h:67
virtual void doTimingPrePostInit()
Definition: cbmmodulebase.h:57
virtual void doTimingStep()
Definition: cbmmodulebase.h:61
virtual void doTimingShutdown()
Definition: cbmmodulebase.h:60
void doWithHandling(const std::function< void()> &fn)
Definition: cbmmodulebase.h:74
void onDisturbanceEvent(DynamicVar e) override
Definition: cbmmodulebase.h:46
void onOutputStep() override
Definition: cbmmodulebase.h:41
virtual void doPrePostDisturbanceEvent()
Definition: cbmmodulebase.h:68
virtual void doPreTimingSequence()
Definition: cbmmodulebase.h:55
void onLocalDomainProcessingUnitShutdown() override
Definition: cbmmodulebase.h:30
void onTimingPostInit2() override
Definition: cbmmodulebase.h:35
virtual void doTimingEndStep()
Definition: cbmmodulebase.h:63
void onTimingStep() override
Definition: cbmmodulebase.h:37
void onLocalDomainProcessingUnitInit() override
Definition: cbmmodulebase.h:29
virtual void doTimingPostStep()
Definition: cbmmodulebase.h:64
virtual void doPostNotification(short preMessageSignal)
Definition: cbmmodulebase.h:71
void onPostNotification(short preMessageSignal) override
Definition: cbmmodulebase.h:47
virtual void doLocalDomainProcessingUnitShutdown()
Definition: cbmmodulebase.h:54
void onPrePostDisturbanceEvent() override
Definition: cbmmodulebase.h:42
void raiseModuleError(boost::exception &e)
Definition: cbmmodulebase.h:92
void onLocalDomainShutdown() override
Definition: cbmmodulebase.h:28
void onPostDisturbanceEvent() override
Definition: cbmmodulebase.h:43
void onPreTimingSequence() override
Definition: cbmmodulebase.h:31
void onSystemShutdown() override
Definition: cbmmodulebase.h:26
void onLocalDomainInit() override
Definition: cbmmodulebase.h:27
void onTimingPrePostInit() override
Definition: cbmmodulebase.h:33
virtual void doError(std::string msg)
Definition: cbmmodulebase.h:66
void onTimingPreEndStep() override
Definition: cbmmodulebase.h:38
virtual void doOutputStep()
Definition: cbmmodulebase.h:65
void onTimingShutdown() override
Definition: cbmmodulebase.h:36
void onSystemInit() override
Definition: cbmmodulebase.h:25
void onPostDisturbanceEvent2() override
Definition: cbmmodulebase.h:44
virtual void doPostDisturbanceEvent()
Definition: cbmmodulebase.h:69
virtual void doTimingInit()
Definition: cbmmodulebase.h:56
Definition: ageclasshelper.cpp:10
void onTimingPostInit() override
Definition: cbmmodulebase.h:34