#include <SEDynamicStabilization.h>

Inherits SEEngineStabilization.

Public Member Functions

 SEDynamicStabilization (Logger *logger)
 
virtual ~SEDynamicStabilization ()
 
virtual void Clear ()
 
bool SerializeToString (std::string &output, SerializationFormat m) const
 
bool SerializeToFile (const std::string &filename, SerializationFormat m) const
 
bool SerializeFromString (const std::string &src, SerializationFormat m)
 
bool SerializeFromFile (const std::string &filename, SerializationFormat m)
 
virtual bool StabilizeRestingState (PhysiologyEngine &engine)
 
virtual bool StabilizeFeedbackState (PhysiologyEngine &engine)
 
virtual bool StabilizeConditions (PhysiologyEngine &engine, const SEConditionManager &conditions)
 
virtual SEDynamicStabilizationEngineConvergenceGetRestingConvergence ()
 
virtual const SEDynamicStabilizationEngineConvergenceGetRestingConvergence () const
 
virtual bool HasFeedbackConvergence () const
 
virtual SEDynamicStabilizationEngineConvergenceGetFeedbackConvergence ()
 
virtual const SEDynamicStabilizationEngineConvergenceGetFeedbackConvergence () const
 
virtual bool HasConditionConvergence (const std::string &name) const
 
virtual void RemoveConditionConvergence (const std::string &name)
 
virtual SEDynamicStabilizationEngineConvergenceGetConditionConvergence (const std::string &name)
 
virtual const SEDynamicStabilizationEngineConvergenceGetConditionConvergence (const std::string &name) const
 
virtual const std::map< std::string, SEDynamicStabilizationEngineConvergence * > & GetConditionConvergence () const
 
- Public Member Functions inherited from SEEngineStabilization
 SEEngineStabilization (Logger *logger)
 
virtual ~SEEngineStabilization ()
 
virtual void LogProgress (bool b)
 
virtual void CancelStabilization ()
 
virtual void TrackStabilization (eSwitch state)
 
virtual bool IsTrackingStabilization ()
 
virtual bool HasStabilizationDuration ()
 
virtual SEScalarTimeGetStabilizationDuration ()
 
- 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 Stabilize (PhysiologyEngine &engine, const SEDynamicStabilizationEngineConvergence &criteria)
 
bool Merge ()
 

Protected Attributes

SEDynamicStabilizationEngineConvergencem_RestingConvergence
 
SEDynamicStabilizationEngineConvergencem_FeedbackConvergence
 
std::map< std::string, SEDynamicStabilizationEngineConvergence * > m_ConditionConvergence
 
SEDynamicStabilizationEngineConvergencem_MergedConditions
 
std::map< std::string, SEDynamicStabilizationEngineConvergence * > m_ActiveConditions
 
- Protected Attributes inherited from SEEngineStabilization
bool m_Cancelled
 
bool m_LogProgress
 
eSwitch m_TrackingStabilization
 
double m_currentTime_s
 
std::stringstream m_ss
 
SEScalarTimem_StabilizationDuration
 
std::vector< const SECondition * > m_Conditions
 
- Protected Attributes inherited from Loggable
Loggerm_Logger
 

Friends

class PBEngine
 

Additional Inherited Members

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

Constructor & Destructor Documentation

◆ SEDynamicStabilization()

SEDynamicStabilization::SEDynamicStabilization ( Logger logger)

◆ ~SEDynamicStabilization()

SEDynamicStabilization::~SEDynamicStabilization ( )
virtual

Member Function Documentation

◆ Clear()

void SEDynamicStabilization::Clear ( )
virtual

Reimplemented from SEEngineStabilization.

◆ GetConditionConvergence() [1/3]

SEDynamicStabilizationEngineConvergence & SEDynamicStabilization::GetConditionConvergence ( const std::string &  name)
virtual

◆ GetConditionConvergence() [2/3]

const SEDynamicStabilizationEngineConvergence * SEDynamicStabilization::GetConditionConvergence ( const std::string &  name) const
virtual

◆ GetConditionConvergence() [3/3]

const std::map< std::string, SEDynamicStabilizationEngineConvergence * > & SEDynamicStabilization::GetConditionConvergence ( ) const
virtual

◆ GetFeedbackConvergence() [1/2]

SEDynamicStabilizationEngineConvergence & SEDynamicStabilization::GetFeedbackConvergence ( )
virtual

◆ GetFeedbackConvergence() [2/2]

const SEDynamicStabilizationEngineConvergence * SEDynamicStabilization::GetFeedbackConvergence ( ) const
virtual

◆ GetRestingConvergence() [1/2]

SEDynamicStabilizationEngineConvergence & SEDynamicStabilization::GetRestingConvergence ( )
virtual

◆ GetRestingConvergence() [2/2]

const SEDynamicStabilizationEngineConvergence & SEDynamicStabilization::GetRestingConvergence ( ) const
virtual

◆ HasConditionConvergence()

bool SEDynamicStabilization::HasConditionConvergence ( const std::string &  name) const
virtual

◆ HasFeedbackConvergence()

bool SEDynamicStabilization::HasFeedbackConvergence ( ) const
virtual

◆ Merge()

bool SEDynamicStabilization::Merge ( )
protected

◆ RemoveConditionConvergence()

void SEDynamicStabilization::RemoveConditionConvergence ( const std::string &  name)
virtual

◆ SerializeFromFile()

bool SEDynamicStabilization::SerializeFromFile ( const std::string &  filename,
SerializationFormat  m 
)
virtual

Implements SEEngineStabilization.

◆ SerializeFromString()

bool SEDynamicStabilization::SerializeFromString ( const std::string &  src,
SerializationFormat  m 
)
virtual

Implements SEEngineStabilization.

◆ SerializeToFile()

bool SEDynamicStabilization::SerializeToFile ( const std::string &  filename,
SerializationFormat  m 
) const
virtual

Implements SEEngineStabilization.

◆ SerializeToString()

bool SEDynamicStabilization::SerializeToString ( std::string &  output,
SerializationFormat  m 
) const
virtual

Implements SEEngineStabilization.

◆ Stabilize()

bool SEDynamicStabilization::Stabilize ( PhysiologyEngine engine,
const SEDynamicStabilizationEngineConvergence criteria 
)
protectedvirtual

◆ StabilizeConditions()

bool SEDynamicStabilization::StabilizeConditions ( PhysiologyEngine engine,
const SEConditionManager conditions 
)
virtual

Implements SEEngineStabilization.

◆ StabilizeFeedbackState()

bool SEDynamicStabilization::StabilizeFeedbackState ( PhysiologyEngine engine)
virtual

Implements SEEngineStabilization.

◆ StabilizeRestingState()

bool SEDynamicStabilization::StabilizeRestingState ( PhysiologyEngine engine)
virtual

Implements SEEngineStabilization.

Friends And Related Function Documentation

◆ PBEngine

friend class PBEngine
friend

Member Data Documentation

◆ m_ActiveConditions

std::map<std::string, SEDynamicStabilizationEngineConvergence*> SEDynamicStabilization::m_ActiveConditions
protected

◆ m_ConditionConvergence

std::map<std::string, SEDynamicStabilizationEngineConvergence*> SEDynamicStabilization::m_ConditionConvergence
protected

◆ m_FeedbackConvergence

SEDynamicStabilizationEngineConvergence* SEDynamicStabilization::m_FeedbackConvergence
protected

◆ m_MergedConditions

SEDynamicStabilizationEngineConvergence* SEDynamicStabilization::m_MergedConditions
protected

◆ m_RestingConvergence

SEDynamicStabilizationEngineConvergence* SEDynamicStabilization::m_RestingConvergence
protected