#include <SEBagValveMask.h>

Inherits SEEquipment.

Public Member Functions

 SEBagValveMask (Logger *logger)
 
virtual ~SEBagValveMask ()
 
virtual void Clear ()
 
bool SerializeToString (std::string &output, eSerializationFormat m) const
 
bool SerializeToFile (const std::string &filename) const
 
bool SerializeFromString (const std::string &src, eSerializationFormat 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
 

Protected Attributes

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

Friends

class PBBagValveMask
 

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.

eSwitch m_Connection
 
SEScalarPressureTimePerVolumem_BagResistance
 
SEScalarPressureTimePerVolumem_FilterResistance
 
SEScalarPressureTimePerVolumem_SealResistance
 
SEScalarVolumem_FilterVolume
 
SEScalarVolumem_ConnectionVolume
 
SEScalarVolumem_ValveVolume
 
SEScalarPressurem_ValvePositiveEndExpiredPressure
 
SEScalarPressureTimePerVolumem_ValveResistance
 
std::vector< SESubstanceFraction * > m_FractionInspiredGases
 
std::vector< const SESubstanceFraction * > m_cFractionInspiredGases
 
std::vector< SESubstanceConcentration * > m_ConcentrationInspiredAerosols
 
std::vector< const SESubstanceConcentration * > m_cConcentrationInspiredAerosols
 
virtual const SEScalarGetScalar (const std::string &name)
 
virtual eSwitch GetConnection () const
 
virtual void SetConnection (eSwitch c)
 
virtual bool HasBagResistance () const
 
virtual SEScalarPressureTimePerVolumeGetBagResistance ()
 
virtual double GetBagResistance (const PressureTimePerVolumeUnit &unit) const
 
virtual bool HasFilterResistance () const
 
virtual SEScalarPressureTimePerVolumeGetFilterResistance ()
 
virtual double GetFilterResistance (const PressureTimePerVolumeUnit &unit) const
 
virtual bool HasSealResistance () const
 
virtual SEScalarPressureTimePerVolumeGetSealResistance ()
 
virtual double GetSealResistance (const PressureTimePerVolumeUnit &unit) const
 
virtual bool HasFilterVolume () const
 
virtual SEScalarVolumeGetFilterVolume ()
 
virtual double GetFilterVolume (const VolumeUnit &unit) const
 
virtual bool HasConnectionVolume () const
 
virtual SEScalarVolumeGetConnectionVolume ()
 
virtual double GetConnectionVolume (const VolumeUnit &unit) const
 
virtual bool HasValveVolume () const
 
virtual SEScalarVolumeGetValveVolume ()
 
virtual double GetValveVolume (const VolumeUnit &unit) const
 
virtual bool HasValveResistance () const
 
virtual SEScalarPressureTimePerVolumeGetValveResistance ()
 
virtual double GetValveResistance (const PressureTimePerVolumeUnit &unit) const
 
virtual bool HasValvePositiveEndExpiredPressure () const
 
virtual SEScalarPressureGetValvePositiveEndExpiredPressure ()
 
virtual double GetValvePositiveEndExpiredPressure (const PressureUnit &unit) const
 
bool HasFractionInspiredGas () const
 
bool HasFractionInspiredGas (const SESubstance &substance) const
 
const std::vector< SESubstanceFraction * > & GetFractionInspiredGases ()
 
const std::vector< const SESubstanceFraction * > & GetFractionInspiredGases () const
 
SESubstanceFractionGetFractionInspiredGas (const SESubstance &substance)
 
const SESubstanceFractionGetFractionInspiredGas (const SESubstance &substance) const
 
void RemoveFractionInspiredGas (const SESubstance &substance)
 
void RemoveFractionInspiredGases ()
 
bool HasConcentrationInspiredAerosol () const
 
bool HasConcentrationInspiredAerosol (const SESubstance &substance) const
 
const std::vector< SESubstanceConcentration * > & GetConcentrationInspiredAerosols ()
 
const std::vector< const SESubstanceConcentration * > & GetConcentrationInspiredAerosols () const
 
SESubstanceConcentrationGetConcentrationInspiredAerosol (const SESubstance &substance)
 
const SESubstanceConcentrationGetConcentrationInspiredAerosol (const SESubstance &substance) const
 
void RemoveConcentrationInspiredAerosol (const SESubstance &substance)
 
void RemoveConcentrationInspiredAerosols ()
 
virtual void StateChange ()
 
virtual void Merge (const SEBagValveMask &from, SESubstanceManager &subMgr)
 
virtual void ProcessConfiguration (SEBagValveMaskConfiguration &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

◆ SEBagValveMask()

SEBagValveMask::SEBagValveMask ( Logger logger)

◆ ~SEBagValveMask()

SEBagValveMask::~SEBagValveMask ( )
virtual

Member Function Documentation

◆ Clear()

void SEBagValveMask::Clear ( )
virtual

Reimplemented from SEEquipment.

◆ GetBagResistance() [1/2]

SEScalarPressureTimePerVolume & SEBagValveMask::GetBagResistance ( )
virtual

◆ GetBagResistance() [2/2]

double SEBagValveMask::GetBagResistance ( const PressureTimePerVolumeUnit unit) const
virtual

◆ GetConcentrationInspiredAerosol() [1/2]

SESubstanceConcentration & SEBagValveMask::GetConcentrationInspiredAerosol ( const SESubstance substance)

◆ GetConcentrationInspiredAerosol() [2/2]

const SESubstanceConcentration * SEBagValveMask::GetConcentrationInspiredAerosol ( const SESubstance substance) const

◆ GetConcentrationInspiredAerosols() [1/2]

const std::vector< SESubstanceConcentration * > & SEBagValveMask::GetConcentrationInspiredAerosols ( )

◆ GetConcentrationInspiredAerosols() [2/2]

const std::vector< const SESubstanceConcentration * > & SEBagValveMask::GetConcentrationInspiredAerosols ( ) const

◆ GetConnection()

eSwitch SEBagValveMask::GetConnection ( ) const
virtual

◆ GetConnectionVolume() [1/2]

SEScalarVolume & SEBagValveMask::GetConnectionVolume ( )
virtual

◆ GetConnectionVolume() [2/2]

double SEBagValveMask::GetConnectionVolume ( const VolumeUnit unit) const
virtual

◆ GetFilterResistance() [1/2]

SEScalarPressureTimePerVolume & SEBagValveMask::GetFilterResistance ( )
virtual

◆ GetFilterResistance() [2/2]

double SEBagValveMask::GetFilterResistance ( const PressureTimePerVolumeUnit unit) const
virtual

◆ GetFilterVolume() [1/2]

SEScalarVolume & SEBagValveMask::GetFilterVolume ( )
virtual

◆ GetFilterVolume() [2/2]

double SEBagValveMask::GetFilterVolume ( const VolumeUnit unit) const
virtual

◆ GetFractionInspiredGas() [1/2]

SESubstanceFraction & SEBagValveMask::GetFractionInspiredGas ( const SESubstance substance)

◆ GetFractionInspiredGas() [2/2]

const SESubstanceFraction * SEBagValveMask::GetFractionInspiredGas ( const SESubstance substance) const

◆ GetFractionInspiredGases() [1/2]

const std::vector< SESubstanceFraction * > & SEBagValveMask::GetFractionInspiredGases ( )

◆ GetFractionInspiredGases() [2/2]

const std::vector< const SESubstanceFraction * > & SEBagValveMask::GetFractionInspiredGases ( ) const

◆ GetScalar()

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

Implements SESystem.

◆ GetSealResistance() [1/2]

SEScalarPressureTimePerVolume & SEBagValveMask::GetSealResistance ( )
virtual

◆ GetSealResistance() [2/2]

double SEBagValveMask::GetSealResistance ( const PressureTimePerVolumeUnit unit) const
virtual

◆ GetValvePositiveEndExpiredPressure() [1/2]

SEScalarPressure & SEBagValveMask::GetValvePositiveEndExpiredPressure ( )
virtual

◆ GetValvePositiveEndExpiredPressure() [2/2]

double SEBagValveMask::GetValvePositiveEndExpiredPressure ( const PressureUnit unit) const
virtual

◆ GetValveResistance() [1/2]

SEScalarPressureTimePerVolume & SEBagValveMask::GetValveResistance ( )
virtual

◆ GetValveResistance() [2/2]

double SEBagValveMask::GetValveResistance ( const PressureTimePerVolumeUnit unit) const
virtual

◆ GetValveVolume() [1/2]

SEScalarVolume & SEBagValveMask::GetValveVolume ( )
virtual

◆ GetValveVolume() [2/2]

double SEBagValveMask::GetValveVolume ( const VolumeUnit unit) const
virtual

◆ HasBagResistance()

bool SEBagValveMask::HasBagResistance ( ) const
virtual

◆ HasConcentrationInspiredAerosol() [1/2]

bool SEBagValveMask::HasConcentrationInspiredAerosol ( ) const

◆ HasConcentrationInspiredAerosol() [2/2]

bool SEBagValveMask::HasConcentrationInspiredAerosol ( const SESubstance substance) const

◆ HasConnectionVolume()

bool SEBagValveMask::HasConnectionVolume ( ) const
virtual

◆ HasFilterResistance()

bool SEBagValveMask::HasFilterResistance ( ) const
virtual

◆ HasFilterVolume()

bool SEBagValveMask::HasFilterVolume ( ) const
virtual

◆ HasFractionInspiredGas() [1/2]

bool SEBagValveMask::HasFractionInspiredGas ( ) const

◆ HasFractionInspiredGas() [2/2]

bool SEBagValveMask::HasFractionInspiredGas ( const SESubstance substance) const

◆ HasSealResistance()

bool SEBagValveMask::HasSealResistance ( ) const
virtual

◆ HasValvePositiveEndExpiredPressure()

bool SEBagValveMask::HasValvePositiveEndExpiredPressure ( ) const
virtual

◆ HasValveResistance()

bool SEBagValveMask::HasValveResistance ( ) const
virtual

◆ HasValveVolume()

bool SEBagValveMask::HasValveVolume ( ) const
virtual

◆ Merge()

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

◆ ProcessConfiguration()

void SEBagValveMask::ProcessConfiguration ( SEBagValveMaskConfiguration config,
SESubstanceManager subMgr 
)
protectedvirtual

◆ RemoveConcentrationInspiredAerosol()

void SEBagValveMask::RemoveConcentrationInspiredAerosol ( const SESubstance substance)

◆ RemoveConcentrationInspiredAerosols()

void SEBagValveMask::RemoveConcentrationInspiredAerosols ( )

◆ RemoveFractionInspiredGas()

void SEBagValveMask::RemoveFractionInspiredGas ( const SESubstance substance)

◆ RemoveFractionInspiredGases()

void SEBagValveMask::RemoveFractionInspiredGases ( )

◆ SerializeFromFile()

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

◆ SerializeFromString()

bool SEBagValveMask::SerializeFromString ( const std::string &  src,
eSerializationFormat  m,
const SESubstanceManager subMgr 
)

◆ SerializeToFile()

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

◆ SerializeToString()

bool SEBagValveMask::SerializeToString ( std::string &  output,
eSerializationFormat  m 
) const

◆ SetConnection()

void SEBagValveMask::SetConnection ( eSwitch  c)
virtual

◆ StateChange()

virtual void SEBagValveMask::StateChange ( )
inlineprotectedvirtual

Friends And Related Function Documentation

◆ PBBagValveMask

friend class PBBagValveMask
friend

Member Data Documentation

◆ m_BagResistance

SEScalarPressureTimePerVolume* SEBagValveMask::m_BagResistance
protected

◆ m_cConcentrationInspiredAerosols

std::vector<const SESubstanceConcentration*> SEBagValveMask::m_cConcentrationInspiredAerosols
protected

◆ m_cFractionInspiredGases

std::vector<const SESubstanceFraction*> SEBagValveMask::m_cFractionInspiredGases
protected

◆ m_ConcentrationInspiredAerosols

std::vector<SESubstanceConcentration*> SEBagValveMask::m_ConcentrationInspiredAerosols
protected

◆ m_Connection

eSwitch SEBagValveMask::m_Connection
protected

◆ m_ConnectionVolume

SEScalarVolume* SEBagValveMask::m_ConnectionVolume
protected

◆ m_FilterResistance

SEScalarPressureTimePerVolume* SEBagValveMask::m_FilterResistance
protected

◆ m_FilterVolume

SEScalarVolume* SEBagValveMask::m_FilterVolume
protected

◆ m_FractionInspiredGases

std::vector<SESubstanceFraction*> SEBagValveMask::m_FractionInspiredGases
protected

◆ m_SealResistance

SEScalarPressureTimePerVolume* SEBagValveMask::m_SealResistance
protected

◆ m_ValvePositiveEndExpiredPressure

SEScalarPressure* SEBagValveMask::m_ValvePositiveEndExpiredPressure
protected

◆ m_ValveResistance

SEScalarPressureTimePerVolume* SEBagValveMask::m_ValveResistance
protected

◆ m_ValveVolume

SEScalarVolume* SEBagValveMask::m_ValveVolume
protected

◆ SEBagValveMaskConfiguration

friend SEBagValveMask::SEBagValveMaskConfiguration
protected

Distributed under the Apache License, Version 2.0.

See accompanying NOTICE file for details.