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

#include <ScenarioExec.h>

Inherits SEScenarioExec.

Public Member Functions

 PulseScenarioExec (PulseEngine &engine)
 
virtual ~PulseScenarioExec ()
 
virtual bool Execute (const std::string &scenarioFile, const std::string &resultsFile)
 
virtual bool Execute (const PulseScenario &scenario, const std::string &resultsFile)
 
- Public Member Functions inherited from SEScenarioExec
 SEScenarioExec (PhysiologyEngine &engine)
 
virtual ~SEScenarioExec ()
 
virtual PhysiologyEngineGetEngine ()
 
virtual void Cancel ()
 
virtual bool Execute (const SEScenario &scenario, const std::string &resultsFile)
 
- Public Member Functions inherited from Loggable
 Loggable ()
 
 Loggable (Logger *log)
 
virtual ~Loggable ()
 
virtual LoggerGetLogger () const
 
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 Member Functions

virtual bool ProcessActions (const SEScenario &scenario)
 
virtual bool ProcessAction (const SEAction &action)
 
virtual void AdvanceEngine ()
 

Protected Attributes

PulseConfiguration m_PulseConfiguration
 
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
 
PhysiologyEnginem_Engine
 
const SEEngineConfigurationm_EngineConfiguration
 
std::stringstream m_ss
 
- Protected Attributes inherited from Loggable
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 ( PulseEngine engine)

◆ ~PulseScenarioExec()

PulseScenarioExec::~PulseScenarioExec ( )
virtual

Member Function Documentation

◆ AdvanceEngine()

void PulseScenarioExec::AdvanceEngine ( )
protectedvirtual

Reimplemented from SEScenarioExec.

◆ Execute() [1/2]

bool PulseScenarioExec::Execute ( const std::string &  scenarioFile,
const std::string &  resultsFile 
)
virtual

Reimplemented from SEScenarioExec.

◆ Execute() [2/2]

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

◆ ProcessAction()

bool PulseScenarioExec::ProcessAction ( const SEAction action)
protectedvirtual

This does not include advance time actions To override default functionality with those actions override the ProcessActions method

Reimplemented from SEScenarioExec.

◆ ProcessActions()

bool PulseScenarioExec::ProcessActions ( const SEScenario scenario)
protectedvirtual

Reimplemented from SEScenarioExec.

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_PulseConfiguration

PulseConfiguration PulseScenarioExec::m_PulseConfiguration
protected