> ## Documentation Index
> Fetch the complete documentation index at: https://developer.synopsys.com/llms.txt
> Use this file to discover all available pages before exploring further.

# File predictive_min_ttc_evaluator.h

![][C++]

**Location**: `autonomy/evaluator/predictive_min_ttc_evaluator/predictive_min_ttc_evaluator.h`

## Classes

* [simulation\_framework::evaluator::PredictiveMinTtcEvaluator](https://developer.synopsys.com/docs/avxcelerate/avxcelerate-simulation-framework/reference/classsimulation__framework_1_1evaluator_1_1PredictiveMinTtcEvaluator.md)

## Namespaces

* [simulation\_framework](https://developer.synopsys.com/docs/avxcelerate/avxcelerate-simulation-framework/reference/namespacesimulation__framework.md)
* [evaluator](https://developer.synopsys.com/docs/avxcelerate/avxcelerate-simulation-framework/reference/namespaceevaluator.md)
* [simulation\_framework::evaluator](https://developer.synopsys.com/docs/avxcelerate/avxcelerate-simulation-framework/reference/namespacesimulation__framework_1_1evaluator.md)

## Includes

* [autonomy/evaluator/predictive\_ttc\_calculator/predictive\_ttc\_calculator.h](https://developer.synopsys.com/docs/avxcelerate/avxcelerate-simulation-framework/reference/predictive__ttc__calculator_8h.md)
* [core/kpi/i\_kpi/i\_kpi.h](https://developer.synopsys.com/docs/avxcelerate/avxcelerate-simulation-framework/reference/i__kpi_8h.md)

## Included by

* [predictive\_min\_ttc\_evaluator.cpp](https://developer.synopsys.com/docs/avxcelerate/avxcelerate-simulation-framework/reference/predictive__min__ttc__evaluator_8cpp.md)

## Source

```cpp theme={null}


#ifndef SIMFWK_AUTONOMY_AUTONOMY_EVALUATOR_PREDICTIVEMINTTCEVALUATOR_PREDICTIVEMINTTCEVALUATOR_H
#define SIMFWK_AUTONOMY_AUTONOMY_EVALUATOR_PREDICTIVEMINTTCEVALUATOR_PREDICTIVEMINTTCEVALUATOR_H

#include "autonomy/evaluator/predictive_ttc_calculator/predictive_ttc_calculator.h"
#include "core/kpi/i_kpi/i_kpi.h"

namespace simulation_framework
{

namespace evaluator
{


class PredictiveMinTtcEvaluator : public core::kpi::IKpi<osi3::GroundTruth>
{
  public:
    PredictiveMinTtcEvaluator(const std::string& kpi_name = "predictive_min_ttc");
    ~PredictiveMinTtcEvaluator() = default;

    void Init() override;
    void Reset() override;
    core::kpi::KpiContent CalculateKpi(const osi3::GroundTruth& ground_truth) override;
    core::kpi::Type GetKpiType() const override;

  private:
    std::chrono::milliseconds min_ttc_;
    std::string kpi_name_;
    PredictiveTimeToCollisionCalculator predictive_ttc_calculator_{};
};

}  // namespace evaluator
}  // namespace simulation_framework

#endif  // SIMFWK_AUTONOMY_AUTONOMY_EVALUATOR_PREDICTIVEMINTTCEVALUATOR_PREDICTIVEMINTTCEVALUATOR_H
```

[private]: https://img.shields.io/badge/-private-red "private"

[public]: https://img.shields.io/badge/-public-brightgreen "public"

[const]: https://img.shields.io/badge/-const-lightblue "const"

[C++]: https://img.shields.io/badge/language-C%2B%2B-blue "C++"

[protected]: https://img.shields.io/badge/-protected-yellow "protected"

[static]: https://img.shields.io/badge/-static-lightgrey "static"
