#include <SEScenarioExec.h>

Public Member Functions

 SEScenarioExec ()
 
virtual ~SEScenarioExec ()
 
virtual void Clear ()
 
eSwitch GetLogToConsole () const
 
void SetLogToConsole (eSwitch s)
 
std::string GetLogFilename () const
 
void SetLogFilename (const std::string &fn)
 
std::string GetDataRequestCSVFilename () const
 
void SetDataRequestCSVFilename (const std::string &fn)
 
std::string GetDataRootDirectory () const
 
void SetDataRootDirectory (const std::string &fn)
 
std::string GetEngineConfigurationContent () const
 
void SetEngineConfigurationContent (const std::string &ecc)
 
std::string GetEngineConfigurationFilename () const
 
void SetEngineConfigurationFilename (const std::string &fn)
 
std::string GetScenarioContent () const
 
void SetScenarioContent (const std::string &sc)
 
std::string GetScenarioFilename () const
 
void SetScenarioFilename (const std::string &fn)
 
eSerializationFormat GetContentFormat () const
 
void SetContentFormat (eSerializationFormat s)
 
std::string GetSerializationDirectory () const
 
void SetSerializationDirectory (const std::string &d)
 
std::string GetAutoSerializeFilename () const
 
void SetAutoSerializeFilename (const std::string &fn)
 
eSwitch GetAutoSerializeAfterActions () const
 
void SetAutoSerializeAfterActions (eSwitch s)
 
double GetAutoSerializePeriod_s () const
 
void SetAutoSerializePeriod_s (double s)
 
eSwitch GetTimeStampSerializedStates () const
 
void SetTimeStampSerializedStates (eSwitch s)
 
eSwitch GetReloadSerializedState () const
 
void SetReloadSerializedState (eSwitch s)
 
bool SerializeToString (std::string &output, eSerializationFormat m, Logger *logger=nullptr) const
 
bool SerializeFromString (const std::string &src, eSerializationFormat m, Logger *logger=nullptr)
 
bool Execute (PhysiologyEngine &pe, SEScenario &sce)
 

Protected Member Functions

bool ProcessActions (PhysiologyEngine &pe, SEScenario &sce)
 
bool ProcessAction (PhysiologyEngine &pe, SEAction &action)
 
void AdvanceEngine (PhysiologyEngine &pe)
 

Protected Attributes

eSwitch m_LogToConsole
 
std::string m_LogFilename
 
std::string m_DataRequestCSVFilename
 
std::string m_DataRootDirectory
 
std::string m_EngineConfigurationContent
 
std::string m_EngineConfigurationFilename
 
std::string m_ScenarioContent
 
std::string m_ScenarioFilename
 
eSerializationFormat m_ContentFormat = eSerializationFormat::JSON
 
bool m_SaveNextStep
 
std::string m_SerializationDirectory
 
std::string m_AutoSerializeFilename
 
std::string m_AutoSerializeBaseFilename
 
std::string m_AutoSerializeFilenameExt
 
eSwitch m_AutoSerializeAfterActions
 
double m_AutoSerializePeriod_s
 
double m_AutoSerializeTime_s
 
eSwitch m_TimeStampSerializedStates
 
eSwitch m_ReloadSerializedState
 
std::stringstream m_SerializationOutput
 
std::stringstream m_SerializationActions
 

Constructor & Destructor Documentation

◆ SEScenarioExec()

SEScenarioExec::SEScenarioExec ( )

◆ ~SEScenarioExec()

SEScenarioExec::~SEScenarioExec ( )
virtual

Member Function Documentation

◆ AdvanceEngine()

void SEScenarioExec::AdvanceEngine ( PhysiologyEngine pe)
protected

◆ Clear()

void SEScenarioExec::Clear ( )
virtual

◆ Execute()

bool SEScenarioExec::Execute ( PhysiologyEngine pe,
SEScenario sce 
)

◆ GetAutoSerializeAfterActions()

eSwitch SEScenarioExec::GetAutoSerializeAfterActions ( ) const
inline

◆ GetAutoSerializeFilename()

std::string SEScenarioExec::GetAutoSerializeFilename ( ) const
inline

◆ GetAutoSerializePeriod_s()

double SEScenarioExec::GetAutoSerializePeriod_s ( ) const
inline

◆ GetContentFormat()

eSerializationFormat SEScenarioExec::GetContentFormat ( ) const
inline

◆ GetDataRequestCSVFilename()

std::string SEScenarioExec::GetDataRequestCSVFilename ( ) const
inline

◆ GetDataRootDirectory()

std::string SEScenarioExec::GetDataRootDirectory ( ) const
inline

◆ GetEngineConfigurationContent()

std::string SEScenarioExec::GetEngineConfigurationContent ( ) const
inline

◆ GetEngineConfigurationFilename()

std::string SEScenarioExec::GetEngineConfigurationFilename ( ) const
inline

◆ GetLogFilename()

std::string SEScenarioExec::GetLogFilename ( ) const
inline

◆ GetLogToConsole()

eSwitch SEScenarioExec::GetLogToConsole ( ) const
inline

◆ GetReloadSerializedState()

eSwitch SEScenarioExec::GetReloadSerializedState ( ) const
inline

◆ GetScenarioContent()

std::string SEScenarioExec::GetScenarioContent ( ) const
inline

◆ GetScenarioFilename()

std::string SEScenarioExec::GetScenarioFilename ( ) const
inline

◆ GetSerializationDirectory()

std::string SEScenarioExec::GetSerializationDirectory ( ) const
inline

◆ GetTimeStampSerializedStates()

eSwitch SEScenarioExec::GetTimeStampSerializedStates ( ) const
inline

◆ ProcessAction()

bool SEScenarioExec::ProcessAction ( PhysiologyEngine pe,
SEAction action 
)
protected

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

◆ ProcessActions()

bool SEScenarioExec::ProcessActions ( PhysiologyEngine pe,
SEScenario sce 
)
protected

◆ SerializeFromString()

bool SEScenarioExec::SerializeFromString ( const std::string &  src,
eSerializationFormat  m,
Logger logger = nullptr 
)

◆ SerializeToString()

bool SEScenarioExec::SerializeToString ( std::string &  output,
eSerializationFormat  m,
Logger logger = nullptr 
) const

◆ SetAutoSerializeAfterActions()

void SEScenarioExec::SetAutoSerializeAfterActions ( eSwitch  s)
inline

◆ SetAutoSerializeFilename()

void SEScenarioExec::SetAutoSerializeFilename ( const std::string &  fn)
inline

◆ SetAutoSerializePeriod_s()

void SEScenarioExec::SetAutoSerializePeriod_s ( double  s)
inline

◆ SetContentFormat()

void SEScenarioExec::SetContentFormat ( eSerializationFormat  s)
inline

◆ SetDataRequestCSVFilename()

void SEScenarioExec::SetDataRequestCSVFilename ( const std::string &  fn)
inline

◆ SetDataRootDirectory()

void SEScenarioExec::SetDataRootDirectory ( const std::string &  fn)
inline

◆ SetEngineConfigurationContent()

void SEScenarioExec::SetEngineConfigurationContent ( const std::string &  ecc)
inline

◆ SetEngineConfigurationFilename()

void SEScenarioExec::SetEngineConfigurationFilename ( const std::string &  fn)
inline

◆ SetLogFilename()

void SEScenarioExec::SetLogFilename ( const std::string &  fn)
inline

◆ SetLogToConsole()

void SEScenarioExec::SetLogToConsole ( eSwitch  s)
inline

◆ SetReloadSerializedState()

void SEScenarioExec::SetReloadSerializedState ( eSwitch  s)
inline

◆ SetScenarioContent()

void SEScenarioExec::SetScenarioContent ( const std::string &  sc)
inline

◆ SetScenarioFilename()

void SEScenarioExec::SetScenarioFilename ( const std::string &  fn)
inline

◆ SetSerializationDirectory()

void SEScenarioExec::SetSerializationDirectory ( const std::string &  d)
inline

◆ SetTimeStampSerializedStates()

void SEScenarioExec::SetTimeStampSerializedStates ( eSwitch  s)
inline

Member Data Documentation

◆ m_AutoSerializeAfterActions

eSwitch SEScenarioExec::m_AutoSerializeAfterActions
protected

◆ m_AutoSerializeBaseFilename

std::string SEScenarioExec::m_AutoSerializeBaseFilename
protected

◆ m_AutoSerializeFilename

std::string SEScenarioExec::m_AutoSerializeFilename
protected

◆ m_AutoSerializeFilenameExt

std::string SEScenarioExec::m_AutoSerializeFilenameExt
protected

◆ m_AutoSerializePeriod_s

double SEScenarioExec::m_AutoSerializePeriod_s
protected

◆ m_AutoSerializeTime_s

double SEScenarioExec::m_AutoSerializeTime_s
protected

◆ m_ContentFormat

eSerializationFormat SEScenarioExec::m_ContentFormat = eSerializationFormat::JSON
protected

◆ m_DataRequestCSVFilename

std::string SEScenarioExec::m_DataRequestCSVFilename
protected

◆ m_DataRootDirectory

std::string SEScenarioExec::m_DataRootDirectory
protected

◆ m_EngineConfigurationContent

std::string SEScenarioExec::m_EngineConfigurationContent
protected

◆ m_EngineConfigurationFilename

std::string SEScenarioExec::m_EngineConfigurationFilename
protected

◆ m_LogFilename

std::string SEScenarioExec::m_LogFilename
protected

◆ m_LogToConsole

eSwitch SEScenarioExec::m_LogToConsole
protected

◆ m_ReloadSerializedState

eSwitch SEScenarioExec::m_ReloadSerializedState
protected

◆ m_SaveNextStep

bool SEScenarioExec::m_SaveNextStep
protected

◆ m_ScenarioContent

std::string SEScenarioExec::m_ScenarioContent
protected

◆ m_ScenarioFilename

std::string SEScenarioExec::m_ScenarioFilename
protected

◆ m_SerializationActions

std::stringstream SEScenarioExec::m_SerializationActions
protected

◆ m_SerializationDirectory

std::string SEScenarioExec::m_SerializationDirectory
protected

◆ m_SerializationOutput

std::stringstream SEScenarioExec::m_SerializationOutput
protected

◆ m_TimeStampSerializedStates

eSwitch SEScenarioExec::m_TimeStampSerializedStates
protected

Distributed under the Apache License, Version 2.0.

See accompanying NOTICE file for details.