#include <PulseEnginePool.h>

Inherits SEPhysiologyEnginePool.

Public Member Functions

 PulseEnginePool (size_t poolSize=0, const std::string &dataDir="./", Logger *logger=nullptr)
 
 ~PulseEnginePool ()=default
 
virtual SEPhysiologyEnginePoolEngineCreateEngine (int id, eModelType type)
 
- Public Member Functions inherited from SEPhysiologyEnginePool
 SEPhysiologyEnginePool (size_t poolSize=0, const std::string &dataDir="./", Logger *logger=nullptr)
 
 ~SEPhysiologyEnginePool ()
 
const size_t GetWorkerCount () const
 
bool RemoveEngine (int id)
 
const std::map< int, SEPhysiologyEnginePoolEngine * > & GetEngines () const
 
SEPhysiologyEnginePoolEngineGetEngine (int id) const
 
SEPhysiologyEnginePoolEngineCreateEngine (int id)
 
bool InitializeEngines ()
 
bool AdvanceModelTime (double time, const TimeUnit &unit)
 
bool ProcessAction (const SEAction &action)
 
bool ProcessActions ()
 
void ClearDataRequested ()
 
void PullDataRequested (std::vector< SEDataRequested * > &)
 
- 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 Member Functions

virtual void AllocateEngine (SEPhysiologyEnginePoolEngine &pe) override
 
SEPhysiologyEnginePoolEngineCreateEngine (int id)
 
virtual void AllocateEngine (SEPhysiologyEnginePoolEngine &pe)=0
 

Protected Attributes

eModelType m_creationType
 
- Protected Attributes inherited from SEPhysiologyEnginePool
bool m_IsActive
 
SESubstanceManager m_SubMgr
 
std::map< int, SEPhysiologyEnginePoolEngine * > m_Engines
 
ThreadPool m_Pool
 
- Protected Attributes inherited from Loggable
bool myLogger
 
Loggerm_Logger
 

Constructor & Destructor Documentation

◆ PulseEnginePool()

PulseEnginePool::PulseEnginePool ( size_t  poolSize = 0,
const std::string &  dataDir = "./",
Logger logger = nullptr 
)

◆ ~PulseEnginePool()

PulseEnginePool::~PulseEnginePool ( )
default

Member Function Documentation

◆ AllocateEngine()

void PulseEnginePool::AllocateEngine ( SEPhysiologyEnginePoolEngine pe)
overrideprotectedvirtual

◆ CreateEngine() [1/2]

SEPhysiologyEnginePoolEngine * SEPhysiologyEnginePool::CreateEngine ( int  id)
protected

◆ CreateEngine() [2/2]

SEPhysiologyEnginePoolEngine * PulseEnginePool::CreateEngine ( int  id,
eModelType  type 
)
virtual

Member Data Documentation

◆ m_creationType

eModelType PulseEnginePool::m_creationType
protected

Distributed under the Apache License, Version 2.0.

See accompanying NOTICE file for details.