simulation_framework::evaluator::MinTtcEvaluator Class Reference
Last update: 19.09.2025class MinTtcEvaluator More...
#include <min_ttc_evaluator.h>


Public Member Functions | |
| MinTtcEvaluator (const std::string &kpi_name="min_ttc") | |
| void | Init () override |
| Initializes the KPI logic. | |
| void | Reset () override |
| Resets the KPI logic. | |
| core::kpi::KpiContent | CalculateKpi (const osi3::GroundTruth &ground_truth) override |
| Executes the core KPI calculation logic. | |
| core::kpi::Type | GetKpiType () const override |
| Retrieves the KPI type. | |
Public Member Functions inherited from simulation_framework::core::kpi::IKpi< osi3::GroundTruth > | |
| virtual | ~IKpi ()=default |
| Virtual destructor for proper cleanup of derived classes. | |
Detailed Description
class MinTtcEvaluator
Definition of MinTtcEvaluator class to calculate the minimum time to collision. This will store the lowest value of TTC being observed during one simulation run.
Definition at line 32 of file min_ttc_evaluator.h.
Constructor & Destructor Documentation
◆ MinTtcEvaluator()
| simulation_framework::evaluator::MinTtcEvaluator::MinTtcEvaluator | ( | const std::string & | kpi_name = "min_ttc" | ) |
Definition at line 20 of file min_ttc_evaluator.cpp.
Member Function Documentation
◆ CalculateKpi()
|
overridevirtual |
Executes the core KPI calculation logic.
- Parameters
-
input The input data required for KPI calculation.
- Returns
- The calculated KPI content as a
KpiContentobject.
Implements simulation_framework::core::kpi::IKpi< osi3::GroundTruth >.
Definition at line 32 of file min_ttc_evaluator.cpp.
◆ GetKpiType()
|
overridevirtual |
Retrieves the KPI type.
Indicates the type of KPI, which can be one of the following:
kpi::Type::kScalar: A scalar value with a unit.kpi::Type::kTimeSeries: A time series representation.kpi::Type::kLog: A continuous log.- Returns
- The type of the KPI as a
kpi::Typeenum value.
Implements simulation_framework::core::kpi::IKpi< osi3::GroundTruth >.
Definition at line 54 of file min_ttc_evaluator.cpp.
◆ Init()
|
overridevirtual |
Initializes the KPI logic.
Sets up any necessary state or resources required for KPI calculation.
Implements simulation_framework::core::kpi::IKpi< osi3::GroundTruth >.
Definition at line 25 of file min_ttc_evaluator.cpp.
◆ Reset()
|
overridevirtual |
Resets the KPI logic.
Clears temporary data and prepares the KPI logic for a new calculation, especially if the simulation needs to be restarted.
Implements simulation_framework::core::kpi::IKpi< osi3::GroundTruth >.
Definition at line 27 of file min_ttc_evaluator.cpp.
The documentation for this class was generated from the following files:
Public Member Functions inherited from