Skip to main content
This is the implementation of IEvaluator interface and provides users ability to evaluate KPIs that are added by themselves. This class controls all KPIs centrally and fill/reset the KpiMessage accordingly based on each KPI’s calculation result. #include <gt_base_evaluator.h> Inheritance diagram for simulation_framework::evaluator::GtBaseEvaluator: Inheritance graph [legend] Collaboration diagram for simulation_framework::evaluator::GtBaseEvaluator: Collaboration graph [legend]

Public Member Functions

Public Member Functions inherited from simulation_framework::core::IEvaluator< osi3::GroundTruth >

Detailed Description

This is the implementation of IEvaluator interface and provides users ability to evaluate KPIs that are added by themselves. This class controls all KPIs centrally and fill/reset the KpiMessage accordingly based on each KPI’s calculation result. To join the simulation, the evaluator must be injected into an Activity and required KPIs need to be added using AddKpi(std::unique_ptr<core::kpi::IKpi<osi3::GroundTruth>> kpi). Example of creating one customized KpiEvaluatorActivity containing 2 KPIs and publish the KpiMessage into KpiLoggerTopic to have the KPI results in output json

Member Function Documentation

AddKpi()

override Add one KPI into this evaluator Parameters

Evaluate()

virtual Calculate all KPIs (call all kpi->CalculateKpi(gt);) which are added in this evaluator and fill the KpiMessage Implements simulation_framework::core::IEvaluator< osi3::GroundTruth >.

GetKpiMessage()

Get the filled KPI messages based on calculation of all KPIs Returns A kpi::KpiMessage object, the vector of KpiContent represents of all added KPIs into this evaluator

Init()

virtual Initial all KPIs (call all kpi->Init();) which are added in this evaluator Implements simulation_framework::core::IEvaluator< osi3::GroundTruth >.

Reset()

virtual Clear KpiMessage and reset all KPIs (call all kpi->Reset();) which are added in this evaluator Implements simulation_framework::core::IEvaluator< osi3::GroundTruth >.

SetInput()

virtual Set GroundTruth message for KPI calculations Parameters Implements simulation_framework::core::IEvaluator< osi3::GroundTruth >. The documentation for this class was generated from the following file: