SEDynamicStabilizationPropertyConvergence.h
1 /* Distributed under the Apache License, Version 2.0.
2  See accompanying NOTICE file for details.*/
3 
4 #pragma once
5 class SEDataRequest;
7 
9 {
10  friend class PBEngine;//friend the serialization class
12 protected:
14 public:
16 
17  bool Test(double time_s);
18 
19  double GetPercentError() const { return m_Error; }
20  double GetLastPercentError() const { return m_LastError; }
21  double GetLastErrorTime_s() const { return m_LastErrorTime_s; }
22  double GetCurrentTarget() const { return m_Target; }
23  SEDataRequest& GetDataRequest() const { return m_DataRequest; }
24  bool IsOptional() const { return m_Optional; }
25  void SetOptional(bool b) { m_Optional = b; }
26 
27  void TrackScalar(const SEScalar& s);
28  SEDataRequestScalar& GetDataRequestScalar();
29 protected:
30 
33 
34  bool m_Optional;
35  double m_Target;
36  double m_Error;
37  double m_LastError;
39  std::stringstream m_ss;
40 };
std::stringstream m_ss
Definition: SEDynamicStabilizationPropertyConvergence.h:39
Definition: SEScalar.h:18
bool m_Optional
Definition: SEDynamicStabilizationPropertyConvergence.h:34
Definition: Logger.h:61
double GetPercentError() const
Definition: SEDynamicStabilizationPropertyConvergence.h:19
void SetOptional(bool b)
Definition: SEDynamicStabilizationPropertyConvergence.h:25
SEDataRequest & m_DataRequest
Definition: SEDynamicStabilizationPropertyConvergence.h:31
double m_LastError
Definition: SEDynamicStabilizationPropertyConvergence.h:37
SEDataRequestScalar * m_DataRequestScalar
Definition: SEDynamicStabilizationPropertyConvergence.h:32
double m_LastErrorTime_s
Definition: SEDynamicStabilizationPropertyConvergence.h:38
bool IsOptional() const
Definition: SEDynamicStabilizationPropertyConvergence.h:24
Definition: Logger.h:11
double m_Error
Definition: SEDynamicStabilizationPropertyConvergence.h:36
double m_Target
Definition: SEDynamicStabilizationPropertyConvergence.h:35
double GetLastPercentError() const
Definition: SEDynamicStabilizationPropertyConvergence.h:20
Definition: PBEngine.h:24
SEDataRequest & GetDataRequest() const
Definition: SEDynamicStabilizationPropertyConvergence.h:23
double GetLastErrorTime_s() const
Definition: SEDynamicStabilizationPropertyConvergence.h:21
double GetCurrentTarget() const
Definition: SEDynamicStabilizationPropertyConvergence.h:22
Definition: SEDataRequest.h:17
Definition: SEEngineTracker.h:30
Definition: SEDynamicStabilizationPropertyConvergence.h:8
Definition: SEDynamicStabilizationEngineConvergence.h:9