#include <SEDynamicStabilization.h>

Inherits SEEngineStabilization.

Public Member Functions

 SEDynamicStabilization (Logger *logger)
 
virtual ~SEDynamicStabilization ()
 
void Clear () override
 
bool SerializeToString (std::string &output, eSerializationFormat m) const
 
bool SerializeToFile (const std::string &filename) const
 
bool SerializeFromString (const std::string &src, eSerializationFormat m)
 
bool SerializeFromFile (const std::string &filename)
 
bool Stabilize (Controller &engine, const std::string &criteria) override
 
bool StabilizeConditions (Controller &engine, const SEConditionManager &conditions) override
 
bool HasConvergenceCriteria (const std::string &name) const override
 
void RemoveConvergenceCriteria (const std::string &name) override
 
virtual SEDynamicStabilizationEngineConvergenceGetConvergenceCriteria (const std::string &name)
 
virtual const SEDynamicStabilizationEngineConvergenceGetConvergenceCriteria (const std::string &name) const
 
virtual const std::map< std::string, SEDynamicStabilizationEngineConvergence * > & GetConvergenceCriteria () const
 
- Public Member Functions inherited from SEEngineStabilization
 SEEngineStabilization (Logger *logger)
 
virtual ~SEEngineStabilization ()
 
virtual void Clear ()
 
virtual bool SerializeToString (std::string &output, eSerializationFormat) const =0
 
virtual bool SerializeToFile (const std::string &filename) const =0
 
virtual bool SerializeFromString (const std::string &src, eSerializationFormat)=0
 
virtual bool SerializeFromFile (const std::string &filename)=0
 
virtual bool HasConvergenceCriteria (const std::string &criteria) const =0
 
virtual void RemoveConvergenceCriteria (const std::string &name)=0
 
virtual bool Stabilize (Controller &engine, const std::string &criteria)=0
 
virtual bool StabilizeConditions (Controller &engine, const SEConditionManager &conditions)=0
 
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 (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 bool Stabilize (Controller &engine, const SEDynamicStabilizationEngineConvergence &criteria)
 
bool Merge ()
 

Protected Attributes

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

Friends

class PBEngine
 

Additional Inherited Members

- Static Public Attributes inherited from SEEngineStabilization
static constexpr char const * Resting = "Resting"
 
static constexpr char const * AdvanceUntilStable = "AdvanceUntilStable"
 

Constructor & Destructor Documentation

◆ SEDynamicStabilization()

SEDynamicStabilization::SEDynamicStabilization ( Logger logger)

◆ ~SEDynamicStabilization()

SEDynamicStabilization::~SEDynamicStabilization ( )
virtual

Member Function Documentation

◆ Clear()

void SEDynamicStabilization::Clear ( )
overridevirtual

Reimplemented from SEEngineStabilization.

◆ GetConvergenceCriteria() [1/3]

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

◆ GetConvergenceCriteria() [2/3]

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

◆ GetConvergenceCriteria() [3/3]

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

◆ HasConvergenceCriteria()

bool SEDynamicStabilization::HasConvergenceCriteria ( const std::string &  name) const
overridevirtual

Implements SEEngineStabilization.

◆ Merge()

bool SEDynamicStabilization::Merge ( )
protected

◆ RemoveConvergenceCriteria()

void SEDynamicStabilization::RemoveConvergenceCriteria ( const std::string &  name)
overridevirtual

Implements SEEngineStabilization.

◆ SerializeFromFile()

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

Implements SEEngineStabilization.

◆ SerializeFromString()

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

Implements SEEngineStabilization.

◆ SerializeToFile()

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

Implements SEEngineStabilization.

◆ SerializeToString()

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

Implements SEEngineStabilization.

◆ Stabilize() [1/2]

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

◆ Stabilize() [2/2]

bool SEDynamicStabilization::Stabilize ( Controller engine,
const std::string &  criteria 
)
overridevirtual

Implements SEEngineStabilization.

◆ StabilizeConditions()

bool SEDynamicStabilization::StabilizeConditions ( Controller engine,
const SEConditionManager conditions 
)
overridevirtual

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_ConvergenceCriteria

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

◆ m_MergedConditions

SEDynamicStabilizationEngineConvergence* SEDynamicStabilization::m_MergedConditions
protected

Distributed under the Apache License, Version 2.0.

See accompanying NOTICE file for details.