Generic ECG machine to assess the heart rhythm. More...
#include <ECG.h>

Static Public Member Functions | |
static size_t | TypeHash () |
static constexpr char const *const | TypeTag () |
![]() | |
static size_t | TypeHash () |
static constexpr char const *const | TypeTag () |
![]() | |
static const SEScalar * | GetScalar (const char *name, std::vector< SESystem * > *systems) |
static const SEScalar * | GetScalar (const std::string &name, std::vector< SESystem * > *systems) |
Protected Member Functions | |
ECG (BioGears &bg) | |
virtual void | Unload (CDM::BioGearsElectroCardioGramData &data) const |
void | SetUp () override |
![]() | |
void | Unload (CDM::ElectroCardioGramData &data) const |
![]() | |
void | Unload (CDM::SystemData &data) const |
![]() | |
virtual void | Debug (const char *msg, const char *origin="") const |
virtual void | Debug (const std::string &msg, const std::string &origin=empty) const |
virtual void | Debug (std::ostream &msg, const std::string &origin=empty) const |
virtual void | Info (const char *msg, const char *origin="") const |
virtual void | Info (const std::string &msg, const std::string &origin=empty) const |
virtual void | Info (std::ostream &msg, const std::string &origin=empty) const |
virtual void | Warning (const char *msg, const char *origin="") const |
virtual void | Warning (const std::string &msg, const std::string &origin=empty) const |
virtual void | Warning (std::ostream &msg, const std::string &origin=empty) const |
virtual void | Error (const char *msg, const char *origin="") const |
virtual void | Error (const std::string msg, const std::string origin=empty) const |
virtual void | Error (std::ostream &msg, const std::string &origin=empty) const |
virtual void | Fatal (const char *msg, const char *origin="") const |
virtual void | Fatal (const std::string &msg, const std::string &origin=empty) const |
virtual void | Fatal (std::ostream &msg, const std::string &origin=empty) const |
![]() | |
virtual void | LoadState () |
Static Protected Member Functions | |
static auto | make_unique (BioGears &bg) -> std::unique_ptr< ECG > |
Friends | |
class | BioGears |
class | BioGearsEngineTest |
Additional Inherited Members | |
![]() | |
static const std::string | empty |
static const char * | empty_cStr |
Detailed Description
Generic ECG machine to assess the heart rhythm.
Constructor & Destructor Documentation
|
protected |
|
overridevirtual |
Member Function Documentation
|
inlineoverridevirtual |
Reimplemented from biogears::SEElectroCardioGram.
|
overridevirtual |
Cleans up any memory this class is responsible for.
Reimplemented from biogears::SEElectroCardioGram.
|
inlineoverridevirtual |
Reimplemented from biogears::SEElectroCardioGram.
|
overridevirtual |
Initializes the ECG specific quantities.
Local member variables used in the ECG class are initialized here. These variables are used to keep track of the heart cycle and to create the ECG machine's output. SEElectrocardioGramInterpolater also loads in the data needed to create the output and interpolates it to match our time step. Placing the variables in this function allows for the system to be easy initialized at the beginning of a simulation or after a crash.
Reimplemented from biogears::BioGearsSystem.
|
virtual |
|
overridevirtual |
Post process updates the math after the circuit calculation are done.
At this time, we do not have a circuit model for the ECG machine so this function is left empty. The PostProcess function is included to preserve our system methodology and as a placeholder for models developed in the future.
Implements biogears::BioGearsSystem.
|
overridevirtual |
Prepares the ECG machine for the circuit solver.
At this time, we do not have a circuit model for the ECG machine so this function is left empty. The PreProcess function is included to preserve our system methodology and as a placeholder for models developed in the future.
Implements biogears::BioGearsSystem.
|
overridevirtual |
Process creates the ECG output.
The process function queries the heart rhythm and heart rate from the cardiovascular system. The time period of the heart beat is determined from the heart rate and a new iterator on the waveform is initialized if the queried rhythm is Normal Sinus. The iterator holds the value of the waveform data at a specific time point on the interpolated waveform data. Process increments the time point and sums up the value of any active iterators. The iterators continue being incremented until they reach the end of the interpolated waveform data. If there are no active iterators, the output defaults to 0 mV.
Implements biogears::BioGearsSystem.
|
overrideprotectedvirtual |
Implements biogears::BioGearsSystem.
|
inlinestatic |
|
inlinestatic |
|
overridevirtual |
Reimplemented from biogears::SEElectroCardioGram.
|
protectedvirtual |
Friends And Related Function Documentation
|
friend |
|
friend |
Member Data Documentation
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |