Skip to main content

AVxcelerate Simulation Framework 2024 R1

base_evaluator

Last update: 16.07.2025
1 
5 
6 #pragma once
7 
8 #include "evaluator/i_evaluator/i_evaluator.h"
9 #include <vector>
10 
11 namespace simulation_framework
12 {
13 namespace evaluator
14 {
121 class BaseEvaluator : public IEvaluator
122 {
123  public:
124  BaseEvaluator();
125  virtual ~BaseEvaluator() = default;
126 
130  void Init();
131 
135  void Reset();
136 
140  void Evaluate();
141 
146  void AddKpi(kpi::IKpiPtr kpi);
147 
152  kpi::KpiMessage GetKpiMessage() const;
153 
158  void SetGroundTruth(const avx_osi3::GroundTruth& ground_truth);
159 
160  private:
162  std::vector<kpi::IKpiPtr> kpis_;
163 
165  avx_osi3::GroundTruth ground_truth_;
166 
168  kpi::KpiMessage kpi_message_{};
169 };
170 
171 using IEvaluatorPtr = std::unique_ptr<IEvaluator>;
172 
173 } // namespace evaluator
174 } // namespace simulation_framework

Connect with Ansys