chronon::SimulationApp::Result
Simulation outcome: builder output plus runtime stats and termination state.
#include <SimulationApp.hpp>
Public Functions
| Name | |
|---|---|
| bool | wasTerminated() const |
| int | terminationExitCode() const |
| bool | success() const |
| template <typename UnitT > UnitT * | getUnit(const std::string & name) const |
Public Attributes
| Name | |
|---|---|
| std::chrono::milliseconds | wall_time |
| size_t | units_created |
| std::unordered_map< std::string, sender::Unit * > | unit_map |
| sender::TerminationRequest | termination |
| std::unique_ptr< sender::TickSimulation > | simulation |
| std::unique_ptr< tree::TreeNode > | root_node |
| size_t | ports_registered |
| bool | observation_enabled |
| double | mcycles_per_sec |
| int | exit_code |
| std::string | error_message |
| uint64_t | cycles_executed |
| size_t | connections_made |
| sender::config::SimulationYAMLConfig | config |
Public Functions Documentation
function wasTerminated
inline bool wasTerminated() const
function terminationExitCode
inline int terminationExitCode() const
function success
inline bool success() const
function getUnit
template <typename UnitT >
inline UnitT * getUnit(
const std::string & name
) const
Public Attributes Documentation
variable wall_time
std::chrono::milliseconds wall_time {0};
variable units_created
size_t units_created = 0;
variable unit_map
std::unordered_map< std::string, sender::Unit * > unit_map;
variable termination
sender::TerminationRequest termination;
variable simulation
std::unique_ptr< sender::TickSimulation > simulation;
variable root_node
std::unique_ptr< tree::TreeNode > root_node;
variable ports_registered
size_t ports_registered = 0;
variable observation_enabled
bool observation_enabled = false;
variable mcycles_per_sec
double mcycles_per_sec = 0.0;
variable exit_code
int exit_code = 0;
variable error_message
std::string error_message;
variable cycles_executed
uint64_t cycles_executed = 0;
variable connections_made
size_t connections_made = 0;
variable config
sender::config::SimulationYAMLConfig config;
Updated on 2026-05-26 at 05:42:32 +0000