27 #include <boost/property_tree/ptree.hpp> 35 SimController::SimController(
const ptree& config,
const string& name)
51 const RnInfo info{
m_config.get<
string>(
"run.rng_seed",
"1,2,3,4"),
"",
52 m_config.get<
unsigned int>(
"run.num_threads")};
void RegisterViewers(std::shared_ptr< SimRunner > runner)
Register the viewers of the SimRunner.
void Control()
Control the execution of the simulation.
boost::property_tree::ptree m_config
Main configuration for run and sim.
void CheckEnv()
Check install environment.
static std::shared_ptr< Population > Create()
Create an empty Population, used in gengeopop.
Utilities for the project.
std::shared_ptr< spdlog::logger > m_stride_logger
General logger.
void LogStartup()
Logs info on setup for cli environment to stride_logger.
std::shared_ptr< Sim > m_simulator
static std::shared_ptr< Sim > Create(const boost::property_tree::ptree &config, std::shared_ptr< Population > pop, util::RnMan rnMan)
Create Sim initialized by the configuration in property tree and population.
Header for the command line controller.
Header file for the core Population class.
Controls a simulation run initiated with the command line interface (cli).
Header for the Simulator class.
Namespace for the simulator and related classes.
Information on random number management state.
void InstallLogger()
Make the appropriate logger for cli environment and register as stride_logger.
Header for the SimRunner class.