> ## 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.

# simulation_framework::autonomy::SimulationCompletionChecker Class Reference

Checks for the completion status of a simulation.

`#include <simulation_completion_checker.h>`

Inheritance diagram for simulation\_framework::autonomy::SimulationCompletionChecker:

![Inheritance graph](https://mintcdn.com/synopsys-00a47cbc/Srh1_f--TdKCLyqD/docs/avxcelerate/avxcelerate-simulation-framework/2025-r1/classsimulation__framework_1_1autonomy_1_1SimulationCompletionChecker__inherit__graph.png?fit=max\&auto=format\&n=Srh1_f--TdKCLyqD\&q=85\&s=398019681c18111209d42d82e15a05ac)

\[[legend](https://developer.synopsys.com/docs/avxcelerate/avxcelerate-simulation-framework/2025-r1/graph_legend)]

Collaboration diagram for simulation\_framework::autonomy::SimulationCompletionChecker:

![Collaboration graph](https://mintcdn.com/synopsys-00a47cbc/Srh1_f--TdKCLyqD/docs/avxcelerate/avxcelerate-simulation-framework/2025-r1/classsimulation__framework_1_1autonomy_1_1SimulationCompletionChecker__coll__graph.png?fit=max\&auto=format\&n=Srh1_f--TdKCLyqD\&q=85\&s=c2acaaabab1c4cbf68c45effdf53608a)

\[[legend](https://developer.synopsys.com/docs/avxcelerate/avxcelerate-simulation-framework/2025-r1/graph_legend)]

## Public Member Functions

| Type | Name |
| - | - |
| | [SimulationCompletionChecker](#a85bd966e1832c48fc6c12667dc5f5e78) (std::shared\_ptr\< [core::time::IClock](https://developer.synopsys.com/docs/avxcelerate/avxcelerate-simulation-framework/2025-r1/classsimulation__framework_1_1core_1_1time_1_1IClock.md) > clock\_ptr) Constructs a [`SimulationCompletionChecker`](https://developer.synopsys.com/docs/avxcelerate/avxcelerate-simulation-framework/2025-r1/classsimulation__framework_1_1autonomy_1_1SimulationCompletionChecker) instance. |
| bool | [IsSimulationFinished](#a0645db7a9eac221d6bb082aa9e17ee40) () const Checks if the simulation has completed. |
| std::chrono::milliseconds | [GetSimulationDuration](#a674728b07de32646b3cb51aa3e24f61f) () const Retrieves the total duration of the simulation. |

> [accordion] Public Member Functions inherited from simulation\_framework::core::time::ISimulationCompletionChecker
>
> Public Member Functions inherited from [simulation\_framework::core::time::ISimulationCompletionChecker](https://developer.synopsys.com/docs/avxcelerate/avxcelerate-simulation-framework/2025-r1/classsimulation__framework_1_1core_1_1time_1_1ISimulationCompletionChecker.md)
>
> | Type | Name |
> | - | - |
> | virtual | [\~ISimulationCompletionChecker](https://developer.synopsys.com/docs/avxcelerate/avxcelerate-simulation-framework/2025-r1/classsimulation__framework_1_1core_1_1time_1_1ISimulationCompletionChecker.md#ac4b8c8898ef46c452ef5631a5c4c62ee) ()=default Virtual destructor for proper cleanup of derived classes. |

## Detailed Description

Checks for the completion status of a simulation.

The [`SimulationCompletionChecker`](https://developer.synopsys.com/docs/avxcelerate/avxcelerate-simulation-framework/2025-r1/classsimulation__framework_1_1autonomy_1_1SimulationCompletionChecker) class implements the `ISimulationCompletionChecker` interface to determine whether a simulation has finished. It uses a clock interface only as duration depends on actual run and shutdown triggers.

The class leverages the clock interface for time-based operations.

**See also**

ISimulationCompletionChecker, [core::time::IClock](https://developer.synopsys.com/docs/avxcelerate/avxcelerate-simulation-framework/2025-r1/classsimulation__framework_1_1core_1_1time_1_1IClock.md)

## Constructor & Destructor Documentation

### SimulationCompletionChecker()

```cpp theme={null}
simulation_framework::autonomy::SimulationCompletionChecker::SimulationCompletionChecker(
    std::shared_ptr< core::time::IClock > clock_ptr
)
```

Constructs a [`SimulationCompletionChecker`](https://developer.synopsys.com/docs/avxcelerate/avxcelerate-simulation-framework/2025-r1/classsimulation__framework_1_1autonomy_1_1SimulationCompletionChecker) instance.

Initializes the checker with a clock interface.

**Parameters**

| Name | Description |
| - | - |
| clock\_ptr | A shared pointer to the clock interface for time management during the simulation. |

## Member Function Documentation

### GetSimulationDuration()

```cpp theme={null}
std::chrono::milliseconds simulation_framework::autonomy::SimulationCompletionChecker::GetSimulationDuration(
) const
```

`virtual`

Retrieves the total duration of the simulation.

Returns the default value of -1 as scenario duration depends on the actual run.

**Returns**

The total simulation duration in milliseconds.

Implements [simulation\_framework::core::time::ISimulationCompletionChecker](https://developer.synopsys.com/docs/avxcelerate/avxcelerate-simulation-framework/2025-r1/classsimulation__framework_1_1core_1_1time_1_1ISimulationCompletionChecker.md#a7c36f8d7309df7770a08208f5157a3a1).

### IsSimulationFinished()

```cpp theme={null}
bool simulation_framework::autonomy::SimulationCompletionChecker::IsSimulationFinished() const
```

`virtual`

Checks if the simulation has completed.

**Returns**

`false` always for interface completion purpose, actual completion depends on the run and shutdown triggers.

Implements [simulation\_framework::core::time::ISimulationCompletionChecker](https://developer.synopsys.com/docs/avxcelerate/avxcelerate-simulation-framework/2025-r1/classsimulation__framework_1_1core_1_1time_1_1ISimulationCompletionChecker.md#a3c2a846e58738327837d794ed4ce6136).

The documentation for this class was generated from the following file:

* [simulation\_completion\_checker.h](https://developer.synopsys.com/docs/avxcelerate/avxcelerate-simulation-framework/2025-r1/simulation__completion__checker_8h_source.md)
