Pulse adds COVID-19 Simulation Support
×
SEPatientConfiguration Class Reference

#include <SEPatientConfiguration.h>

Inherits Loggable.

Public Member Functions

 SEPatientConfiguration (Logger *logger=nullptr)
 
virtual ~SEPatientConfiguration ()
 
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)
 
virtual bool IsValid () const
 
virtual std::string GetDataRoot () const
 
virtual void SetDataRoot (const std::string &rootDir)
 
virtual std::string GetPatientFile () const
 
virtual void SetPatientFile (const std::string &patientFile)
 
virtual bool HasPatientFile () const
 
virtual void InvalidatePatientFile ()
 
virtual SEPatientGetPatient ()
 
virtual const SEPatientGetPatient () const
 
virtual bool HasPatient () const
 
virtual void InvalidatePatient ()
 
virtual SEConditionManagerGetConditions ()
 
virtual const SEConditionManagerGetConditions () const
 
virtual bool HasConditions () const
 
virtual void InvalidateConditions ()
 
virtual bool HasOverride () const
 
virtual void AddScalarOverride (const std::string &name, double value)
 
virtual void AddScalarOverride (const std::string &name, double value, std::string unit)
 
virtual void AddScalarOverride (const std::string &name, double value, const CCompoundUnit &unit)
 
virtual std::vector< SEScalarProperty > & GetScalarOverrides ()
 
virtual const std::vector< SEScalarProperty > & GetScalarOverrides () const
 
virtual void RemoveOverrides ()
 
- 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

std::string m_DataRoot
 
SEPatientm_Patient
 
std::string m_PatientFile
 
SEConditionManagerm_Conditions
 
std::vector< SEScalarPropertym_ScalarOverrides
 
- Protected Attributes inherited from Loggable
bool myLogger
 
Loggerm_Logger
 

Friends

class PBEngine
 

Additional Inherited Members

- Static Public Attributes inherited from Loggable
static const std::string empty
 

Constructor & Destructor Documentation

◆ SEPatientConfiguration()

SEPatientConfiguration::SEPatientConfiguration ( Logger logger = nullptr)

◆ ~SEPatientConfiguration()

SEPatientConfiguration::~SEPatientConfiguration ( )
virtual

Member Function Documentation

◆ AddScalarOverride() [1/3]

void SEPatientConfiguration::AddScalarOverride ( const std::string &  name,
double  value 
)
virtual

◆ AddScalarOverride() [2/3]

void SEPatientConfiguration::AddScalarOverride ( const std::string &  name,
double  value,
std::string  unit 
)
virtual

◆ AddScalarOverride() [3/3]

void SEPatientConfiguration::AddScalarOverride ( const std::string &  name,
double  value,
const CCompoundUnit unit 
)
virtual

◆ Clear()

void SEPatientConfiguration::Clear ( )
virtual

◆ GetConditions() [1/2]

SEConditionManager & SEPatientConfiguration::GetConditions ( )
virtual

◆ GetConditions() [2/2]

const SEConditionManager * SEPatientConfiguration::GetConditions ( ) const
virtual

◆ GetDataRoot()

std::string SEPatientConfiguration::GetDataRoot ( ) const
virtual

◆ GetPatient() [1/2]

SEPatient & SEPatientConfiguration::GetPatient ( )
virtual

◆ GetPatient() [2/2]

const SEPatient * SEPatientConfiguration::GetPatient ( ) const
virtual

◆ GetPatientFile()

std::string SEPatientConfiguration::GetPatientFile ( ) const
virtual

◆ GetScalarOverrides() [1/2]

std::vector< SEScalarProperty > & SEPatientConfiguration::GetScalarOverrides ( )
virtual

◆ GetScalarOverrides() [2/2]

const std::vector< SEScalarProperty > & SEPatientConfiguration::GetScalarOverrides ( ) const
virtual

◆ HasConditions()

bool SEPatientConfiguration::HasConditions ( ) const
virtual

◆ HasOverride()

bool SEPatientConfiguration::HasOverride ( ) const
virtual

◆ HasPatient()

bool SEPatientConfiguration::HasPatient ( ) const
virtual

◆ HasPatientFile()

bool SEPatientConfiguration::HasPatientFile ( ) const
virtual

◆ InvalidateConditions()

void SEPatientConfiguration::InvalidateConditions ( )
virtual

◆ InvalidatePatient()

void SEPatientConfiguration::InvalidatePatient ( )
virtual

◆ InvalidatePatientFile()

void SEPatientConfiguration::InvalidatePatientFile ( )
virtual

◆ IsValid()

bool SEPatientConfiguration::IsValid ( ) const
virtual

◆ RemoveOverrides()

void SEPatientConfiguration::RemoveOverrides ( )
virtual

◆ SerializeFromFile()

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

◆ SerializeFromString()

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

◆ SerializeToFile()

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

◆ SerializeToString()

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

◆ SetDataRoot()

void SEPatientConfiguration::SetDataRoot ( const std::string &  rootDir)
virtual

◆ SetPatientFile()

void SEPatientConfiguration::SetPatientFile ( const std::string &  patientFile)
virtual

Friends And Related Function Documentation

◆ PBEngine

friend class PBEngine
friend

Member Data Documentation

◆ m_Conditions

SEConditionManager* SEPatientConfiguration::m_Conditions
protected

◆ m_DataRoot

std::string SEPatientConfiguration::m_DataRoot
protected

◆ m_Patient

SEPatient* SEPatientConfiguration::m_Patient
protected

◆ m_PatientFile

std::string SEPatientConfiguration::m_PatientFile
protected

◆ m_ScalarOverrides

std::vector<SEScalarProperty> SEPatientConfiguration::m_ScalarOverrides
protected

Distributed under the Apache License, Version 2.0.

See accompanying NOTICE file for details.