Pulse adds COVID-19 Simulation Support
×

Overloaded scenario exector to run a Pulse specific scenario. More...

#include <PulseScenarioExec.h>

Inherits SEScenarioExec.

Public Member Functions

 PulseScenarioExec (Logger *logger)
 
virtual ~PulseScenarioExec ()
 
virtual bool ExecuteFile (PhysiologyEngine &engine, const std::string &scenarioFile, const std::string &resultsFile, std::string const &dataDir="./")
 
virtual bool Execute (PhysiologyEngine &engine, const std::string &scenario, SerializationFormat f, const std::string &resultsFile, std::string const &dataDir="./")
 
virtual bool Execute (PhysiologyEngine &engine, const PulseScenario &scenario, const std::string &resultsFile)
 
- Public Member Functions inherited from SEScenarioExec
 SEScenarioExec (Logger *logger)
 
virtual ~SEScenarioExec ()
 
virtual void Cancel ()
 
virtual bool ExecuteFile (PhysiologyEngine &pe, const std::string &scenarioFile, const std::string &resultsFile, const SEEngineConfiguration *ec=nullptr, std::string const &dataDir="./")
 
virtual bool Execute (PhysiologyEngine &pe, const std::string &scenario, SerializationFormat format, const std::string &resultsFile, const SEEngineConfiguration *ec=nullptr, std::string const &dataDir="./")
 
virtual bool Execute (PhysiologyEngine &pe, const SEScenario &scenario, const std::string &resultsFile, const SEEngineConfiguration *ec=nullptr)
 
- 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)
 

Static Public Member Functions

static void Run (const std::string &scenarioFile)
 

Protected Member Functions

virtual bool ProcessActions (PulseEngine &engine, const SEScenario &scenario)
 
virtual bool ProcessAction (PulseEngine &engine, const SEAction &action)
 
virtual void AdvanceEngine (PulseEngine &engine)
 
- Protected Member Functions inherited from SEScenarioExec
virtual bool ProcessActions (PhysiologyEngine &pe, const SEScenario &scenario)
 
virtual bool ProcessAction (PhysiologyEngine &pe, const SEAction &action)
 
virtual void AdvanceEngine (PhysiologyEngine &pe)
 

Protected Attributes

PulseScenariom_PulseScenario
 
double m_AutoSerializationPeriod_s
 
double m_AutoSerializationTime_s
 
eSwitch m_AutoSerializationTimeStamps
 
eSwitch m_AutoSerializationAfterActions
 
eSwitch m_AutoSerializationReload
 
std::string m_AutoSerializationFileName
 
std::string m_AutoSerializationDirectory
 
std::stringstream m_AutoSerializationOutput
 
std::stringstream m_AutoSerializationActions
 
- Protected Attributes inherited from SEScenarioExec
bool m_Cancel
 
SEScenariom_Scenario
 
std::stringstream m_ss
 
- Protected Attributes inherited from Loggable
bool myLogger
 
Loggerm_Logger
 

Additional Inherited Members

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

Detailed Description

Overloaded scenario exector to run a Pulse specific scenario.

Constructor & Destructor Documentation

◆ PulseScenarioExec()

PulseScenarioExec::PulseScenarioExec ( Logger logger)

◆ ~PulseScenarioExec()

PulseScenarioExec::~PulseScenarioExec ( )
virtual

Member Function Documentation

◆ AdvanceEngine()

void PulseScenarioExec::AdvanceEngine ( PulseEngine engine)
protectedvirtual

◆ Execute() [1/2]

bool PulseScenarioExec::Execute ( PhysiologyEngine engine,
const std::string &  scenario,
SerializationFormat  f,
const std::string &  resultsFile,
std::string const &  dataDir = "./" 
)
virtual

◆ Execute() [2/2]

bool PulseScenarioExec::Execute ( PhysiologyEngine engine,
const PulseScenario scenario,
const std::string &  resultsFile 
)
virtual

◆ ExecuteFile()

bool PulseScenarioExec::ExecuteFile ( PhysiologyEngine engine,
const std::string &  scenarioFile,
const std::string &  resultsFile,
std::string const &  dataDir = "./" 
)
virtual

◆ ProcessAction()

bool PulseScenarioExec::ProcessAction ( PulseEngine engine,
const SEAction action 
)
protectedvirtual

◆ ProcessActions()

bool PulseScenarioExec::ProcessActions ( PulseEngine engine,
const SEScenario scenario 
)
protectedvirtual

◆ Run()

void PulseScenarioExec::Run ( const std::string &  scenarioFile)
static

Member Data Documentation

◆ m_AutoSerializationActions

std::stringstream PulseScenarioExec::m_AutoSerializationActions
protected

◆ m_AutoSerializationAfterActions

eSwitch PulseScenarioExec::m_AutoSerializationAfterActions
protected

◆ m_AutoSerializationDirectory

std::string PulseScenarioExec::m_AutoSerializationDirectory
protected

◆ m_AutoSerializationFileName

std::string PulseScenarioExec::m_AutoSerializationFileName
protected

◆ m_AutoSerializationOutput

std::stringstream PulseScenarioExec::m_AutoSerializationOutput
protected

◆ m_AutoSerializationPeriod_s

double PulseScenarioExec::m_AutoSerializationPeriod_s
protected

◆ m_AutoSerializationReload

eSwitch PulseScenarioExec::m_AutoSerializationReload
protected

◆ m_AutoSerializationTime_s

double PulseScenarioExec::m_AutoSerializationTime_s
protected

◆ m_AutoSerializationTimeStamps

eSwitch PulseScenarioExec::m_AutoSerializationTimeStamps
protected

◆ m_PulseScenario

PulseScenario* PulseScenarioExec::m_PulseScenario
protected

Distributed under the Apache License, Version 2.0.

See accompanying NOTICE file for details.