Pulse adds COVID-19 Simulation Support
×
SEAnesthesiaMachine Class Reference

#include <SEAnesthesiaMachine.h>

Inherits SEEquipment.

Inherited by PulseAnesthesiaMachine.

Public Member Functions

 SEAnesthesiaMachine (Logger *logger)
 
virtual ~SEAnesthesiaMachine ()
 
virtual void Clear ()
 
bool SerializeToString (std::string &output, SerializationFormat m) const
 
bool SerializeToFile (const std::string &filename) const
 
bool SerializeFromString (const std::string &src, SerializationFormat m, const SESubstanceManager &subMgr)
 
bool SerializeFromFile (const std::string &filename, const SESubstanceManager &subMgr)
 
- Public Member Functions inherited from SEEquipment
 SEEquipment (Logger *logger)
 
virtual ~SEEquipment ()
 
- Public Member Functions inherited from SESystem
 SESystem (Logger *logger)
 
virtual ~SESystem ()
 
- 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, std::string const &origin=empty) const
 
virtual void Debug (std::stringstream &msg, std::string const &origin=empty) const
 
virtual void Debug (std::ostream &msg, std::string const &origin=empty) const
 
virtual void Info (std::string const &msg, std::string const &origin=empty) const
 
virtual void Info (std::stringstream &msg, std::string const &origin=empty) const
 
virtual void Info (const std::stringstream &msg, std::string const &origin=empty) const
 
virtual void Info (std::ostream &msg, std::string const &origin=empty) const
 
virtual void Warning (std::string const &msg, std::string const &origin=empty) const
 
virtual void Warning (std::stringstream &msg, std::string const &origin=empty) const
 
virtual void Warning (std::ostream &msg, std::string const &origin=empty) const
 
virtual void Error (std::string const &msg, std::string const &origin=empty) const
 
virtual void Error (std::stringstream &msg, std::string const &origin=empty) const
 
virtual void Error (std::ostream &msg, std::string const &origin=empty) const
 
virtual void Fatal (std::string const &msg, std::string const &origin=empty) const
 
virtual void Fatal (std::stringstream &msg, std::string const &origin=empty) const
 
virtual void Fatal (std::ostream &msg, std::string const &origin=empty) const
 
std::string to_string (int i)
 
std::string to_string (unsigned int i)
 
std::string to_string (size_t t)
 
std::string to_string (float f)
 
std::string to_string (double d)
 

Protected Attributes

friend SEAnesthesiaMachineConfiguration
 
- Protected Attributes inherited from SESystem
std::stringstream m_ss
 
- Protected Attributes inherited from Loggable
bool myLogger
 
Loggerm_Logger
 

Friends

class PBAnesthesiaMachine
 

StateChange

- This method is called when ever there is a state change Specically a new file has been loaded, configuration action, or the system reset Engine specific methodology can then update their logic.

eAnesthesiaMachine_Connection m_Connection
 
SEScalarVolumePerTimem_InletFlow
 
SEScalarm_InspiratoryExpiratoryRatio
 
SEScalar0To1m_OxygenFraction
 
eAnesthesiaMachine_OxygenSource m_OxygenSource
 
SEScalarPressurem_PositiveEndExpiredPressure
 
eAnesthesiaMachine_PrimaryGas m_PrimaryGas
 
SEScalarFrequencym_RespiratoryRate
 
SEScalarPressurem_ReliefValvePressure
 
SEScalarPressurem_PeakInspiratoryPressure
 
SEAnesthesiaMachineChamberm_LeftChamber
 
SEAnesthesiaMachineChamberm_RightChamber
 
SEAnesthesiaMachineOxygenBottlem_OxygenBottleOne
 
SEAnesthesiaMachineOxygenBottlem_OxygenBottleTwo
 
virtual const SEScalarGetScalar (const std::string &name)
 
virtual eAnesthesiaMachine_Connection GetConnection () const
 
virtual void SetConnection (eAnesthesiaMachine_Connection c)
 
virtual bool HasInletFlow () const
 
virtual SEScalarVolumePerTimeGetInletFlow ()
 
virtual double GetInletFlow (const VolumePerTimeUnit &unit) const
 
virtual bool HasInspiratoryExpiratoryRatio () const
 
virtual SEScalarGetInspiratoryExpiratoryRatio ()
 
virtual double GetInspiratoryExpiratoryRatio () const
 
virtual bool HasOxygenFraction () const
 
virtual SEScalar0To1GetOxygenFraction ()
 
virtual double GetOxygenFraction () const
 
virtual eAnesthesiaMachine_OxygenSource GetOxygenSource () const
 
virtual void SetOxygenSource (eAnesthesiaMachine_OxygenSource name)
 
virtual bool HasPositiveEndExpiredPressure () const
 
virtual SEScalarPressureGetPositiveEndExpiredPressure ()
 
virtual double GetPositiveEndExpiredPressure (const PressureUnit &unit) const
 
virtual eAnesthesiaMachine_PrimaryGas GetPrimaryGas () const
 
virtual void SetPrimaryGas (eAnesthesiaMachine_PrimaryGas name)
 
virtual bool HasRespiratoryRate () const
 
virtual SEScalarFrequencyGetRespiratoryRate ()
 
virtual double GetRespiratoryRate (const FrequencyUnit &unit) const
 
virtual bool HasReliefValvePressure () const
 
virtual SEScalarPressureGetReliefValvePressure ()
 
virtual double GetReliefValvePressure (const PressureUnit &unit) const
 
virtual bool HasPeakInspiratoryPressure () const
 
virtual SEScalarPressureGetPeakInspiratoryPressure ()
 
virtual double GetPeakInspiratoryPressure (const PressureUnit &unit) const
 
virtual bool HasLeftChamber () const
 
virtual SEAnesthesiaMachineChamberGetLeftChamber ()
 
virtual const SEAnesthesiaMachineChamberGetLeftChamber () const
 
virtual void RemoveLeftChamber ()
 
virtual bool HasRightChamber () const
 
virtual SEAnesthesiaMachineChamberGetRightChamber ()
 
virtual const SEAnesthesiaMachineChamberGetRightChamber () const
 
virtual void RemoveRightChamber ()
 
virtual bool HasOxygenBottleOne () const
 
virtual SEAnesthesiaMachineOxygenBottleGetOxygenBottleOne ()
 
virtual const SEAnesthesiaMachineOxygenBottleGetOxygenBottleOne () const
 
virtual void RemoveOxygenBottleOne ()
 
virtual bool HasOxygenBottleTwo () const
 
virtual SEAnesthesiaMachineOxygenBottleGetOxygenBottleTwo ()
 
virtual const SEAnesthesiaMachineOxygenBottleGetOxygenBottleTwo () const
 
virtual void RemoveOxygenBottleTwo ()
 
virtual void StateChange ()
 
virtual void Merge (const SEAnesthesiaMachine &from, SESubstanceManager &subMgr)
 
virtual void ProcessConfiguration (SEAnesthesiaMachineConfiguration &config, SESubstanceManager &subMgr)
 

Additional Inherited Members

- Static Public Member Functions inherited from SESystem
static const SEScalarGetScalar (const std::string &name, std::vector< SESystem *> *systems)
 
- Static Public Attributes inherited from Loggable
static const std::string empty
 

Constructor & Destructor Documentation

◆ SEAnesthesiaMachine()

SEAnesthesiaMachine::SEAnesthesiaMachine ( Logger logger)

◆ ~SEAnesthesiaMachine()

SEAnesthesiaMachine::~SEAnesthesiaMachine ( )
virtual

Member Function Documentation

◆ Clear()

void SEAnesthesiaMachine::Clear ( )
virtual

Reimplemented from SEEquipment.

Reimplemented in AnesthesiaMachine.

◆ GetConnection()

eAnesthesiaMachine_Connection SEAnesthesiaMachine::GetConnection ( ) const
virtual

◆ GetInletFlow() [1/2]

SEScalarVolumePerTime & SEAnesthesiaMachine::GetInletFlow ( )
virtual

◆ GetInletFlow() [2/2]

double SEAnesthesiaMachine::GetInletFlow ( const VolumePerTimeUnit unit) const
virtual

◆ GetInspiratoryExpiratoryRatio() [1/2]

SEScalar & SEAnesthesiaMachine::GetInspiratoryExpiratoryRatio ( )
virtual

◆ GetInspiratoryExpiratoryRatio() [2/2]

double SEAnesthesiaMachine::GetInspiratoryExpiratoryRatio ( ) const
virtual

◆ GetLeftChamber() [1/2]

SEAnesthesiaMachineChamber & SEAnesthesiaMachine::GetLeftChamber ( )
virtual

◆ GetLeftChamber() [2/2]

const SEAnesthesiaMachineChamber * SEAnesthesiaMachine::GetLeftChamber ( ) const
virtual

◆ GetOxygenBottleOne() [1/2]

SEAnesthesiaMachineOxygenBottle & SEAnesthesiaMachine::GetOxygenBottleOne ( )
virtual

◆ GetOxygenBottleOne() [2/2]

const SEAnesthesiaMachineOxygenBottle * SEAnesthesiaMachine::GetOxygenBottleOne ( ) const
virtual

◆ GetOxygenBottleTwo() [1/2]

SEAnesthesiaMachineOxygenBottle & SEAnesthesiaMachine::GetOxygenBottleTwo ( )
virtual

◆ GetOxygenBottleTwo() [2/2]

const SEAnesthesiaMachineOxygenBottle * SEAnesthesiaMachine::GetOxygenBottleTwo ( ) const
virtual

◆ GetOxygenFraction() [1/2]

SEScalar0To1 & SEAnesthesiaMachine::GetOxygenFraction ( )
virtual

◆ GetOxygenFraction() [2/2]

double SEAnesthesiaMachine::GetOxygenFraction ( ) const
virtual

◆ GetOxygenSource()

eAnesthesiaMachine_OxygenSource SEAnesthesiaMachine::GetOxygenSource ( ) const
virtual

◆ GetPeakInspiratoryPressure() [1/2]

SEScalarPressure & SEAnesthesiaMachine::GetPeakInspiratoryPressure ( )
virtual

◆ GetPeakInspiratoryPressure() [2/2]

double SEAnesthesiaMachine::GetPeakInspiratoryPressure ( const PressureUnit unit) const
virtual

◆ GetPositiveEndExpiredPressure() [1/2]

SEScalarPressure & SEAnesthesiaMachine::GetPositiveEndExpiredPressure ( )
virtual

◆ GetPositiveEndExpiredPressure() [2/2]

double SEAnesthesiaMachine::GetPositiveEndExpiredPressure ( const PressureUnit unit) const
virtual

◆ GetPrimaryGas()

eAnesthesiaMachine_PrimaryGas SEAnesthesiaMachine::GetPrimaryGas ( ) const
virtual

◆ GetReliefValvePressure() [1/2]

SEScalarPressure & SEAnesthesiaMachine::GetReliefValvePressure ( )
virtual

◆ GetReliefValvePressure() [2/2]

double SEAnesthesiaMachine::GetReliefValvePressure ( const PressureUnit unit) const
virtual

◆ GetRespiratoryRate() [1/2]

SEScalarFrequency & SEAnesthesiaMachine::GetRespiratoryRate ( )
virtual

◆ GetRespiratoryRate() [2/2]

double SEAnesthesiaMachine::GetRespiratoryRate ( const FrequencyUnit unit) const
virtual

◆ GetRightChamber() [1/2]

SEAnesthesiaMachineChamber & SEAnesthesiaMachine::GetRightChamber ( )
virtual

◆ GetRightChamber() [2/2]

const SEAnesthesiaMachineChamber * SEAnesthesiaMachine::GetRightChamber ( ) const
virtual

◆ GetScalar()

const SEScalar * SEAnesthesiaMachine::GetScalar ( const std::string &  name)
virtual

Implements SESystem.

Reimplemented in PulseAnesthesiaMachine.

◆ HasInletFlow()

bool SEAnesthesiaMachine::HasInletFlow ( ) const
virtual

◆ HasInspiratoryExpiratoryRatio()

bool SEAnesthesiaMachine::HasInspiratoryExpiratoryRatio ( ) const
virtual

◆ HasLeftChamber()

bool SEAnesthesiaMachine::HasLeftChamber ( ) const
virtual

◆ HasOxygenBottleOne()

bool SEAnesthesiaMachine::HasOxygenBottleOne ( ) const
virtual

◆ HasOxygenBottleTwo()

bool SEAnesthesiaMachine::HasOxygenBottleTwo ( ) const
virtual

◆ HasOxygenFraction()

bool SEAnesthesiaMachine::HasOxygenFraction ( ) const
virtual

◆ HasPeakInspiratoryPressure()

bool SEAnesthesiaMachine::HasPeakInspiratoryPressure ( ) const
virtual

◆ HasPositiveEndExpiredPressure()

bool SEAnesthesiaMachine::HasPositiveEndExpiredPressure ( ) const
virtual

◆ HasReliefValvePressure()

bool SEAnesthesiaMachine::HasReliefValvePressure ( ) const
virtual

◆ HasRespiratoryRate()

bool SEAnesthesiaMachine::HasRespiratoryRate ( ) const
virtual

◆ HasRightChamber()

bool SEAnesthesiaMachine::HasRightChamber ( ) const
virtual

◆ Merge()

void SEAnesthesiaMachine::Merge ( const SEAnesthesiaMachine from,
SESubstanceManager subMgr 
)
protectedvirtual

◆ ProcessConfiguration()

void SEAnesthesiaMachine::ProcessConfiguration ( SEAnesthesiaMachineConfiguration config,
SESubstanceManager subMgr 
)
protectedvirtual

◆ RemoveLeftChamber()

void SEAnesthesiaMachine::RemoveLeftChamber ( )
virtual

◆ RemoveOxygenBottleOne()

void SEAnesthesiaMachine::RemoveOxygenBottleOne ( )
virtual

◆ RemoveOxygenBottleTwo()

void SEAnesthesiaMachine::RemoveOxygenBottleTwo ( )
virtual

◆ RemoveRightChamber()

void SEAnesthesiaMachine::RemoveRightChamber ( )
virtual

◆ SerializeFromFile()

bool SEAnesthesiaMachine::SerializeFromFile ( const std::string &  filename,
const SESubstanceManager subMgr 
)

◆ SerializeFromString()

bool SEAnesthesiaMachine::SerializeFromString ( const std::string &  src,
SerializationFormat  m,
const SESubstanceManager subMgr 
)

◆ SerializeToFile()

bool SEAnesthesiaMachine::SerializeToFile ( const std::string &  filename) const

◆ SerializeToString()

bool SEAnesthesiaMachine::SerializeToString ( std::string &  output,
SerializationFormat  m 
) const

◆ SetConnection()

void SEAnesthesiaMachine::SetConnection ( eAnesthesiaMachine_Connection  c)
virtual

Reimplemented in AnesthesiaMachine.

◆ SetOxygenSource()

void SEAnesthesiaMachine::SetOxygenSource ( eAnesthesiaMachine_OxygenSource  name)
virtual

◆ SetPrimaryGas()

void SEAnesthesiaMachine::SetPrimaryGas ( eAnesthesiaMachine_PrimaryGas  name)
virtual

◆ StateChange()

virtual void SEAnesthesiaMachine::StateChange ( )
inlineprotectedvirtual

Reimplemented in AnesthesiaMachine.

Friends And Related Function Documentation

◆ PBAnesthesiaMachine

friend class PBAnesthesiaMachine
friend

Member Data Documentation

◆ m_Connection

eAnesthesiaMachine_Connection SEAnesthesiaMachine::m_Connection
protected

◆ m_InletFlow

SEScalarVolumePerTime* SEAnesthesiaMachine::m_InletFlow
protected

◆ m_InspiratoryExpiratoryRatio

SEScalar* SEAnesthesiaMachine::m_InspiratoryExpiratoryRatio
protected

◆ m_LeftChamber

SEAnesthesiaMachineChamber* SEAnesthesiaMachine::m_LeftChamber
protected

◆ m_OxygenBottleOne

SEAnesthesiaMachineOxygenBottle* SEAnesthesiaMachine::m_OxygenBottleOne
protected

◆ m_OxygenBottleTwo

SEAnesthesiaMachineOxygenBottle* SEAnesthesiaMachine::m_OxygenBottleTwo
protected

◆ m_OxygenFraction

SEScalar0To1* SEAnesthesiaMachine::m_OxygenFraction
protected

◆ m_OxygenSource

eAnesthesiaMachine_OxygenSource SEAnesthesiaMachine::m_OxygenSource
protected

◆ m_PeakInspiratoryPressure

SEScalarPressure* SEAnesthesiaMachine::m_PeakInspiratoryPressure
protected

◆ m_PositiveEndExpiredPressure

SEScalarPressure* SEAnesthesiaMachine::m_PositiveEndExpiredPressure
protected

◆ m_PrimaryGas

eAnesthesiaMachine_PrimaryGas SEAnesthesiaMachine::m_PrimaryGas
protected

◆ m_ReliefValvePressure

SEScalarPressure* SEAnesthesiaMachine::m_ReliefValvePressure
protected

◆ m_RespiratoryRate

SEScalarFrequency* SEAnesthesiaMachine::m_RespiratoryRate
protected

◆ m_RightChamber

SEAnesthesiaMachineChamber* SEAnesthesiaMachine::m_RightChamber
protected

◆ SEAnesthesiaMachineConfiguration

friend SEAnesthesiaMachine::SEAnesthesiaMachineConfiguration
protected

Distributed under the Apache License, Version 2.0.

See accompanying NOTICE file for details.