A Pulse specific scenario (i.e. holds a Pulse configuration object) More...

#include <PulseScenario.h>

Inherits SEScenario.

Public Member Functions

 PulseScenario (std::string const &dataDir="./")
 
 PulseScenario (Logger *logger, std::string const &dataDir="./")
 
virtual ~PulseScenario ()
 
void Clear () override
 
void Copy (const PulseScenario &src)
 
bool SerializeToString (std::string &output, eSerializationFormat m) const
 
bool SerializeToFile (const std::string &filename) const
 
bool SerializeFromString (const std::string &src, eSerializationFormat m)
 
bool SerializeFromFile (const std::string &filename)
 
virtual PulseConfigurationGetConfiguration ()
 
virtual const PulseConfigurationGetConfiguration () const
 
virtual bool HasConfiguration () const
 
virtual void InvalidateConfiguration ()
 
virtual void Copy (const SEScenario &src)
 
- Public Member Functions inherited from SEScenario
 SEScenario (std::string const &dataDir="./")
 
 SEScenario (Logger *logger, std::string const &dataDir="./")
 
virtual ~SEScenario ()
 
virtual void Clear ()
 
virtual void Copy (const SEScenario &src)
 
bool SerializeToString (std::string &output, eSerializationFormat m) const
 
bool SerializeToFile (const std::string &filename) const
 
bool SerializeFromString (const std::string &src, eSerializationFormat m)
 
bool SerializeFromFile (const std::string &filename)
 
bool IsValid () const
 
virtual std::string GetName () const
 
virtual void SetName (const std::string &name)
 
virtual bool HasName () const
 
virtual std::string GetDescription () const
 
virtual void SetDescription (const std::string &desc)
 
virtual bool HasDescription () const
 
virtual std::string GetEngineStateFile () const
 
virtual void SetEngineStateFile (const std::string &file)
 
virtual bool HasEngineStateFile () const
 
virtual SEPatientConfigurationGetPatientConfiguration ()
 
virtual const SEPatientConfigurationGetPatientConfiguration () const
 
virtual bool HasPatientConfiguration () const
 
virtual void AddAction (const SEAction &action)
 
virtual const std::vector< SEAction * > & GetActions ()
 
virtual const std::vector< const SEAction * > GetActions () const
 
virtual SEDataRequestManagerGetDataRequestManager ()
 
virtual const SEDataRequestManagerGetDataRequestManager () const
 
virtual std::vector< std::string > & GetDataRequestFiles ()
 
virtual const std::vector< std::string > & GetDataRequestFiles () const
 
virtual SESubstanceManagerGetSubstanceManager ()
 
virtual const SESubstanceManagerGetSubstanceManager () const
 
virtual bool ProcessDataRequestFiles (const std::set< std::string > &search)
 
- 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 Attributes

PulseConfigurationm_Configuration
 
- Protected Attributes inherited from SEScenario
SESubstanceManagerm_SubMgr
 
std::string m_Name
 
std::string m_Description
 
std::string m_EngineStateFile
 
SEPatientConfigurationm_PatientConfiguration
 
SEDataRequestManagerm_DataRequestMgr
 
std::vector< std::string > m_DataRequestFiles
 
std::vector< SEAction * > m_Actions
 
- Protected Attributes inherited from Loggable
bool myLogger
 
Loggerm_Logger
 

Private Attributes

friend PBScenario
 

Detailed Description

A Pulse specific scenario (i.e. holds a Pulse configuration object)

Constructor & Destructor Documentation

◆ PulseScenario() [1/2]

PulseScenario::PulseScenario ( std::string const &  dataDir = "./")

◆ PulseScenario() [2/2]

PulseScenario::PulseScenario ( Logger logger,
std::string const &  dataDir = "./" 
)

◆ ~PulseScenario()

PulseScenario::~PulseScenario ( )
virtual

Member Function Documentation

◆ Clear()

void PulseScenario::Clear ( )
overridevirtual

Reimplemented from SEScenario.

◆ Copy() [1/2]

void PulseScenario::Copy ( const PulseScenario src)

◆ Copy() [2/2]

void SEScenario::Copy ( const SEScenario src)
virtual

Reimplemented from SEScenario.

◆ GetConfiguration() [1/2]

PulseConfiguration & PulseScenario::GetConfiguration ( )
virtual

◆ GetConfiguration() [2/2]

const PulseConfiguration * PulseScenario::GetConfiguration ( ) const
virtual

◆ HasConfiguration()

bool PulseScenario::HasConfiguration ( ) const
virtual

◆ InvalidateConfiguration()

void PulseScenario::InvalidateConfiguration ( )
virtual

◆ SerializeFromFile()

bool PulseScenario::SerializeFromFile ( const std::string &  filename)

◆ SerializeFromString()

bool PulseScenario::SerializeFromString ( const std::string &  src,
eSerializationFormat  m 
)

◆ SerializeToFile()

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

◆ SerializeToString()

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

Member Data Documentation

◆ m_Configuration

PulseConfiguration* PulseScenario::m_Configuration
protected

◆ PBScenario

friend PulseScenario::PBScenario
private

Distributed under the Apache License, Version 2.0.

See accompanying NOTICE file for details.