SEDynamicStabilizationLedger.h
1/* Distributed under the Apache License, Version 2.0.
2 See accompanying NOTICE file for details.*/
3
4#pragma once
7
8// Book keeping class that tracks all the properties and if their convergent state
10{
11public:
12 SEDynamicStabilizationLedger(double timeStep_s, const SEDynamicStabilizationEngineConvergence& convergence, Logger* logger);
14
15 virtual void TestConvergence();
16 virtual bool HasConverged() { return m_converged; }
17 virtual bool HasConvergedOptional() { return m_convergedOptional; }
18 virtual bool HasExceededTime() { return m_exceededTime; }
19
20protected:
21
26 double m_dT_s;
27 double m_totTime_s;// Total time we have been converging
28 double m_covTime_s;// Convergence Window Length
29 double m_minTime_s;// Minimum amount of time to run before testing
30 double m_maxTime_s;// Maximum amount of time to run before we quit
33
34 const std::vector<SEDynamicStabilizationPropertyConvergence*>& m_properties;
35};
Definition: Logger.h:23
Definition: Logger.h:71
Definition: SEDynamicStabilizationEngineConvergence.h:10
Definition: SEDynamicStabilizationLedger.h:10
virtual ~SEDynamicStabilizationLedger()
Definition: SEDynamicStabilizationLedger.h:13
double m_optsPassTime_s
Definition: SEDynamicStabilizationLedger.h:32
virtual bool HasExceededTime()
Definition: SEDynamicStabilizationLedger.h:18
double m_minTime_s
Definition: SEDynamicStabilizationLedger.h:29
bool m_converged
Definition: SEDynamicStabilizationLedger.h:22
const std::vector< SEDynamicStabilizationPropertyConvergence * > & m_properties
Definition: SEDynamicStabilizationLedger.h:34
double m_dT_s
Definition: SEDynamicStabilizationLedger.h:26
bool m_exceededTime
Definition: SEDynamicStabilizationLedger.h:24
virtual bool HasConverged()
Definition: SEDynamicStabilizationLedger.h:16
double m_covTime_s
Definition: SEDynamicStabilizationLedger.h:28
virtual bool HasConvergedOptional()
Definition: SEDynamicStabilizationLedger.h:17
double m_totTime_s
Definition: SEDynamicStabilizationLedger.h:27
bool m_convergedOptional
Definition: SEDynamicStabilizationLedger.h:23
bool m_hasOptionalProperties
Definition: SEDynamicStabilizationLedger.h:25
double m_passTime_s
Definition: SEDynamicStabilizationLedger.h:31
double m_maxTime_s
Definition: SEDynamicStabilizationLedger.h:30
Definition: SEDynamicStabilizationPropertyConvergence.h:9

Distributed under the Apache License, Version 2.0.

See accompanying NOTICE file for details.