FERS 1.0.0
The Flexible Extensible Radar Simulator
Loading...
Searching...
No Matches
fers_context Struct Reference
+ Inheritance diagram for fers_context:
+ Collaboration diagram for fers_context:

Public Member Functions

core::WorldgetWorld () const noexcept
 Retrieves a pointer to the simulation world.
 
std::mt19937 & getMasterSeeder () noexcept
 Retrieves a mutable reference to the master random number seeder.
 

Detailed Description

Definition at line 34 of file api.cpp.

Member Function Documentation

◆ getMasterSeeder()

std::mt19937 & FersContext::getMasterSeeder ( )
noexceptinherited

Retrieves a mutable reference to the master random number seeder.

A single master generator is used to seed all other random number generators within the simulation (e.g., for noise models, RCS fluctuations). This design is crucial for ensuring that a simulation can be made fully deterministic and reproducible by controlling a single seed value at the top level.

Returns
A reference to the std::mt19937 engine.

Definition at line 64 of file fers_context.h.

64{ return _master_seeder; }

◆ getWorld()

core::World * FersContext::getWorld ( ) const
noexceptinherited

Retrieves a pointer to the simulation world.

This provides direct, mutable access to the in-memory representation of the scenario, allowing API functions to modify it.

Returns
A non-owning pointer to the core::World object.

Definition at line 52 of file fers_context.h.

52{ return _world.get(); }

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