$darkmode
engine::Simulation Class Reference

Public Member Functions

 Simulation (const Simulation &)=default
 
 Simulation (Simulation &&)=delete
 
Simulationoperator= (const Simulation &)=default
 
Simulationoperator= (Simulation &&)=delete
 
 Simulation (cloe::Stack &&config, sol::state_view lua, const std::string &uuid)
 
cloe::Logger logger () const
 
SimulationResult run ()
 
SimulationProbe probe ()
 
size_t write_output (const SimulationResult &) const
 
bool write_output_file (const std::filesystem::path &filepath, const cloe::Json &j) const
 
bool is_writable (const std::filesystem::path &filepath) const
 
void set_report_progress (bool value)
 
void signal_abort ()
 

Member Function Documentation

◆ is_writable()

bool engine::Simulation::is_writable ( const std::filesystem::path &  filepath) const

Check if the given filepath may be opened, respecting clobber options.

◆ logger()

cloe::Logger engine::Simulation::logger ( ) const
inline

Return simulation logger.

◆ probe()

SimulationProbe engine::Simulation::probe ( )

Probe a simulation.

This connects and enrolls, but does not start the simulation.

◆ run()

SimulationResult engine::Simulation::run ( )

Run a simulation to completion.

Requires the entire engine to be configured first. This will throw an exception on failure.

◆ set_report_progress()

void engine::Simulation::set_report_progress ( bool  value)
inline

Set whether simulation progress should be reported.

◆ signal_abort()

void engine::Simulation::signal_abort ( )

Abort the simulation from a separate thread.

This is used exclusively for handling signals.

◆ write_output()

size_t engine::Simulation::write_output ( const SimulationResult r) const

Write simulation output into files and return number of files written.

◆ write_output_file()

bool engine::Simulation::write_output_file ( const std::filesystem::path &  filepath,
const cloe::Json &  j 
) const

Write the given JSON output into the file. Return true if successful.


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