$darkmode
Public Member Functions | |
| Simulation (const Simulation &)=default | |
| Simulation (Simulation &&)=delete | |
| Simulation & | operator= (const Simulation &)=default |
| Simulation & | operator= (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 () |
| bool engine::Simulation::is_writable | ( | const std::filesystem::path & | filepath | ) | const |
Check if the given filepath may be opened, respecting clobber options.
|
inline |
Return simulation logger.
| SimulationProbe engine::Simulation::probe | ( | ) |
Probe a simulation.
This connects and enrolls, but does not start the simulation.
| SimulationResult engine::Simulation::run | ( | ) |
Run a simulation to completion.
Requires the entire engine to be configured first. This will throw an exception on failure.
|
inline |
Set whether simulation progress should be reported.
| void engine::Simulation::signal_abort | ( | ) |
Abort the simulation from a separate thread.
This is used exclusively for handling signals.
| size_t engine::Simulation::write_output | ( | const SimulationResult & | r | ) | const |
Write simulation output into files and return number of files written.
| 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.