72 void setOutputDir(std::string dir) { _output_dir = std::move(dir); }
77 [[nodiscard]]
const std::string&
getOutputDir() const noexcept {
return _output_dir; }
113 std::unique_ptr<core::World> _world;
116 std::mt19937 _master_seeder;
119 std::string _output_dir =
".";
Manages the lifetime and state of a single FERS simulation scenario.
FersContext()
Constructs a new simulation context, initializing an empty world.
void setLastOutputMetadata(core::OutputMetadata metadata)
Stores metadata from the most recent simulation run.
const std::string & getOutputDir() const noexcept
Gets the output directory for simulation results.
void setOutputConfig(core::OutputConfig config)
Sets the runtime output configuration.
std::mt19937 & getMasterSeeder() noexcept
Retrieves a mutable reference to the master random number seeder.
const core::OutputConfig & getOutputConfig() const noexcept
Gets the runtime output configuration.
void setOutputDir(std::string dir)
Sets the output directory for simulation results.
core::World * getWorld() const noexcept
Retrieves a pointer to the simulation world.
std::string getLastOutputMetadataJson() const
Serializes the last simulation output metadata as JSON.
void clearLastOutputMetadata()
Clears any stored simulation output metadata.
The World class manages the simulator environment.
std::string outputMetadataToJsonString(const OutputMetadata &metadata)
Serializes a full simulation output metadata snapshot to JSON.
Header file for the World class in the simulator.