Skip to main content

AVxcelerate Simulation Framework 2024 R1

i_kpi

Last update: 16.07.2025
1 
5 
6 #pragma once
7 
8 #include "evaluator/kpi/definition/kpi_definition.h"
9 #include <avx_osi_groundtruth.pb.h>
10 #include <memory>
11 
12 namespace simulation_framework
13 {
18 namespace evaluator
19 {
24 namespace kpi
25 {
26 
28 
33 class IKpi
34 {
35  public:
36  virtual ~IKpi() = default;
37 
41  virtual void Init() = 0;
42 
47  virtual void Reset() = 0;
48 
53  virtual KpiContent CalculateKpi(const avx_osi3::GroundTruth& ground_truth) = 0;
54 
59  virtual kpi::Type GetKpiType() const = 0;
60 };
61 
62 using IKpiPtr = std::unique_ptr<IKpi>;
63 
64 } // namespace kpi
65 } // namespace evaluator
66 } // namespace simulation_framework

Connect with Ansys