SEDynamicStabilization.h
1/* Distributed under the Apache License, Version 2.0.
2 See accompanying NOTICE file for details.*/
3
4#pragma once
5#include "cdm/engine/SEEngineStabilization.h"
7
9{
10 friend class PBEngine;//friend the serialization class
11public:
14
15 void Clear() override;
16
17 bool SerializeToString(std::string& output, eSerializationFormat m) const;
18 bool SerializeToFile(const std::string& filename) const;
19 bool SerializeFromString(const std::string& src, eSerializationFormat m);
20 bool SerializeFromFile(const std::string& filename);
21
22 bool Stabilize(Controller& engine, const std::string& criteria) override;
23 bool StabilizeConditions(Controller& engine, const SEConditionManager& conditions) override;
24
25 bool HasConvergenceCriteria(const std::string& name) const override;
26 void RemoveConvergenceCriteria(const std::string& name) override;
27 virtual SEDynamicStabilizationEngineConvergence& GetConvergenceCriteria(const std::string& name);
28 virtual const SEDynamicStabilizationEngineConvergence* GetConvergenceCriteria(const std::string& name) const;
29 virtual const std::map<std::string, SEDynamicStabilizationEngineConvergence*>& GetConvergenceCriteria() const;
30
31protected:
32
33 virtual bool Stabilize(Controller& engine, const SEDynamicStabilizationEngineConvergence& criteria);
34
35 std::map<std::string, SEDynamicStabilizationEngineConvergence*> m_ConvergenceCriteria;
36
37 bool Merge();
39 std::map<std::string, SEDynamicStabilizationEngineConvergence*> m_ActiveConditions;
40};
41
Definition: Logger.h:71
Definition: PBEngine.h:31
Definition: SEConditionManager.h:26
Definition: SEDynamicStabilizationEngineConvergence.h:10
Definition: SEDynamicStabilization.h:9
std::map< std::string, SEDynamicStabilizationEngineConvergence * > m_ConvergenceCriteria
Definition: SEDynamicStabilization.h:35
std::map< std::string, SEDynamicStabilizationEngineConvergence * > m_ActiveConditions
Definition: SEDynamicStabilization.h:39
SEDynamicStabilizationEngineConvergence * m_MergedConditions
Definition: SEDynamicStabilization.h:38
Definition: SEEngineStabilization.h:18
Definition: SEEngineStabilization.h:11
virtual bool HasConvergenceCriteria(const std::string &criteria) const =0
virtual bool SerializeFromFile(const std::string &filename)=0
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 void RemoveConvergenceCriteria(const std::string &name)=0
virtual bool StabilizeConditions(Controller &engine, const SEConditionManager &conditions)=0
virtual bool Stabilize(Controller &engine, const std::string &criteria)=0
virtual void Clear()
Definition: SEEngineStabilization.cpp:19

Distributed under the Apache License, Version 2.0.

See accompanying NOTICE file for details.