#include <SEEngineTracker.h>

Inherits Loggable.

Public Member Functions

 SEEngineTracker (SEPatient &, SEActionManager &, SESubstanceManager &, SECompartmentManager &, Logger *logger=nullptr)
 
virtual ~SEEngineTracker ()
 
void Clear ()
 
DataTrackGetDataTrack ()
 
SEActionManagerGetActionManager ()
 
SESubstanceManagerGetSubstanceManager ()
 
SEDataRequestManagerGetDataRequestManager ()
 
void AddSystem (SESystem &system)
 
void ResetFile ()
 
bool ConnectRequest (SEDataRequest &dr, SEDataRequestScalar &ds)
 
virtual bool SetupRequests ()
 
virtual void LogRequestedValues ()
 
virtual void TrackData (double currentTime_s)
 
virtual void PullData (double currentTime_s)
 
virtual bool TrackRequest (SEDataRequest &dr)
 
virtual void ForceConnection ()
 
void SetTrackMode (TrackMode m)
 
TrackMode GetTrackMode ()
 
double GetValue (const SEDataRequest &dr) const
 
- Public Member Functions inherited from Loggable
 Loggable (Logger *logger=nullptr)
 
 Loggable (std::string const &logfile)
 
virtual ~Loggable ()
 
virtual LoggerGetLogger () const
 
virtual void SetLogger (Logger &logger)
 
virtual void Debug (std::string const &msg) const
 
virtual void Debug (std::stringstream &msg) const
 
virtual void Debug (std::ostream &msg) const
 
virtual void Info (std::string const &msg) const
 
virtual void Info (std::stringstream &msg) const
 
virtual void Info (const std::stringstream &msg) const
 
virtual void Info (std::ostream &msg) const
 
virtual void Warning (std::string const &msg) const
 
virtual void Warning (std::stringstream &msg) const
 
virtual void Warning (std::ostream &msg) const
 
virtual void Error (std::string const &msg) const
 
virtual void Error (std::stringstream &msg) const
 
virtual void Error (std::ostream &msg) const
 
virtual void Fatal (std::string const &msg) const
 
virtual void Fatal (std::stringstream &msg) const
 
virtual void Fatal (std::ostream &msg) const
 

Protected Member Functions

const SEDataRequestScalarGetScalar (const SEDataRequest &dr) const
 

Protected Attributes

TrackMode m_Mode = TrackMode::CSV
 
bool m_ForceConnection
 
double m_LastPullTime_s
 
DataTrackm_DataTrack
 
std::stringstream m_ss
 
std::ofstream m_ResultsStream
 
SEDataRequestManagerm_DataRequestMgr
 
SEPatientm_Patient
 
SEActionManagerm_ActionMgr
 
SESubstanceManagerm_SubMgr
 
SECompartmentManagerm_CmptMgr
 
SEEnvironmentm_Environment = nullptr
 
std::vector< SESystem * > m_PhysiologySystems
 
SESystemm_AnesthesiaMachine = nullptr
 
SESystemm_ECG = nullptr
 
SESystemm_Inhaler = nullptr
 
SESystemm_MechanicalVentilator = nullptr
 
std::map< const SEDataRequest *, SEDataRequestScalar * > m_Request2Scalar
 
- Protected Attributes inherited from Loggable
bool myLogger
 
Loggerm_Logger
 

Constructor & Destructor Documentation

◆ SEEngineTracker()

SEEngineTracker::SEEngineTracker ( SEPatient p,
SEActionManager a,
SESubstanceManager s,
SECompartmentManager c,
Logger logger = nullptr 
)

◆ ~SEEngineTracker()

SEEngineTracker::~SEEngineTracker ( )
virtual

Member Function Documentation

◆ AddSystem()

void SEEngineTracker::AddSystem ( SESystem system)

◆ Clear()

void SEEngineTracker::Clear ( )

◆ ConnectRequest()

bool SEEngineTracker::ConnectRequest ( SEDataRequest dr,
SEDataRequestScalar ds 
)

◆ ForceConnection()

virtual void SEEngineTracker::ForceConnection ( )
inlinevirtual

◆ GetActionManager()

SEActionManager & SEEngineTracker::GetActionManager ( )
inline

◆ GetDataRequestManager()

SEDataRequestManager & SEEngineTracker::GetDataRequestManager ( )
inline

◆ GetDataTrack()

DataTrack & SEEngineTracker::GetDataTrack ( )

◆ GetScalar()

const SEDataRequestScalar * SEEngineTracker::GetScalar ( const SEDataRequest dr) const
protected

◆ GetSubstanceManager()

SESubstanceManager & SEEngineTracker::GetSubstanceManager ( )
inline

◆ GetTrackMode()

TrackMode SEEngineTracker::GetTrackMode ( )
inline

◆ GetValue()

double SEEngineTracker::GetValue ( const SEDataRequest dr) const

◆ LogRequestedValues()

void SEEngineTracker::LogRequestedValues ( )
virtual

◆ PullData()

void SEEngineTracker::PullData ( double  currentTime_s)
virtual

◆ ResetFile()

void SEEngineTracker::ResetFile ( )

◆ SetTrackMode()

void SEEngineTracker::SetTrackMode ( TrackMode  m)
inline

◆ SetupRequests()

bool SEEngineTracker::SetupRequests ( )
virtual

◆ TrackData()

void SEEngineTracker::TrackData ( double  currentTime_s)
virtual

◆ TrackRequest()

bool SEEngineTracker::TrackRequest ( SEDataRequest dr)
virtual

Member Data Documentation

◆ m_ActionMgr

SEActionManager& SEEngineTracker::m_ActionMgr
protected

◆ m_AnesthesiaMachine

SESystem* SEEngineTracker::m_AnesthesiaMachine = nullptr
protected

◆ m_CmptMgr

SECompartmentManager& SEEngineTracker::m_CmptMgr
protected

◆ m_DataRequestMgr

SEDataRequestManager* SEEngineTracker::m_DataRequestMgr
protected

◆ m_DataTrack

DataTrack* SEEngineTracker::m_DataTrack
protected

◆ m_ECG

SESystem* SEEngineTracker::m_ECG = nullptr
protected

◆ m_Environment

SEEnvironment* SEEngineTracker::m_Environment = nullptr
protected

◆ m_ForceConnection

bool SEEngineTracker::m_ForceConnection
protected

◆ m_Inhaler

SESystem* SEEngineTracker::m_Inhaler = nullptr
protected

◆ m_LastPullTime_s

double SEEngineTracker::m_LastPullTime_s
protected

◆ m_MechanicalVentilator

SESystem* SEEngineTracker::m_MechanicalVentilator = nullptr
protected

◆ m_Mode

TrackMode SEEngineTracker::m_Mode = TrackMode::CSV
protected

◆ m_Patient

SEPatient& SEEngineTracker::m_Patient
protected

◆ m_PhysiologySystems

std::vector<SESystem*> SEEngineTracker::m_PhysiologySystems
protected

◆ m_Request2Scalar

std::map<const SEDataRequest*, SEDataRequestScalar*> SEEngineTracker::m_Request2Scalar
protected

◆ m_ResultsStream

std::ofstream SEEngineTracker::m_ResultsStream
protected

◆ m_ss

std::stringstream SEEngineTracker::m_ss
protected

◆ m_SubMgr

SESubstanceManager& SEEngineTracker::m_SubMgr
protected

Distributed under the Apache License, Version 2.0.

See accompanying NOTICE file for details.