|
OOFEM 3.0
|
#include <monitormanager.h>
Public Member Functions | |
| MonitorManager (EngngModel *emodel) | |
| virtual | ~MonitorManager () |
| std::unique_ptr< Monitor > | CreateModule (const char *name, int num, EngngModel *emodel) override |
| void | update (TimeStep *tStep, Monitor::MonitorEvent event) |
| const char * | giveClassName () const override |
| Public Member Functions inherited from oofem::ModuleManager< Monitor > | |
| ModuleManager (EngngModel *emodel) | |
| virtual | ~ModuleManager () |
| ModuleManager & | operator= (const ModuleManager &)=delete |
| virtual int | instanciateYourself (DataReader &dr, const std::shared_ptr< InputRecord > &irPtr, InputFieldType ift, const std::string &name, DataReader::InputRecordType irType) |
| virtual void | registerModule (std::unique_ptr< Monitor > &module) |
| Monitor * | giveModule (int num) |
| int | giveNumberOfModules () const |
Additional Inherited Members | |
| Protected Attributes inherited from oofem::ModuleManager< Monitor > | |
| std::vector< std::unique_ptr< Monitor > > | moduleList |
| Module list. | |
| int | numberOfModules |
| Number of modules. | |
| EngngModel * | emodel |
| Associated Engineering model. | |
Class representing and implementing MonitorManager. It is attribute of EngngModel. It manages individual monitors, which perform monitor - specific output operations. Monitors can be called at user specific events, such as time step termination, etc. The event type is preopagated to each monitor.
Definition at line 50 of file monitormanager.h.
| oofem::MonitorManager::MonitorManager | ( | EngngModel * | emodel | ) |
Definition at line 41 of file monitormanager.C.
References oofem::ModuleManager< Monitor >::emodel, and oofem::ModuleManager< Monitor >::ModuleManager().
|
virtual |
Definition at line 44 of file monitormanager.C.
|
overridevirtual |
Creates new instance of module.
| name | Name of module. |
| n | Number associated with module. |
| emodel | Engineering model which receiver belongs to. |
Implements oofem::ModuleManager< Monitor >.
Definition at line 48 of file monitormanager.C.
References oofem::classFactory, and oofem::ModuleManager< Monitor >::emodel.
|
inlineoverridevirtual |
Initializes output manager. The corresponding initialize module services are called. Terminates the receiver, the corresponding terminate module services are called.
Implements oofem::ModuleManager< Monitor >.
Definition at line 72 of file monitormanager.h.
| void oofem::MonitorManager::update | ( | TimeStep * | tStep, |
| Monitor::MonitorEvent | event ) |
Writes the output. Loops over all modules and calls corresponding doOutput module service.
| tStep | Time step. |
| substepFlag | is set to true, only the modules with substepFlag set to true will be processed. |
Definition at line 54 of file monitormanager.C.
References oofem::ModuleManager< Monitor >::moduleList.