27 #include <boost/property_tree/ptree.hpp> 49 explicit SimRunner(
const boost::property_tree::ptree& configPt, std::shared_ptr<Sim> sim);
67 void Run(
unsigned int numSteps);
const boost::property_tree::ptree & GetConfig() const
Return the run & sim configuration.
SimRunner(const boost::property_tree::ptree &configPt, std::shared_ptr< Sim > sim)
Initialization with property tree.
Definition of Subject/Observer for SimEvents.
std::shared_ptr< Sim > GetSim() const
Return the Simulator.
Provides a stopwatch interface to time: it accumulates time between start/stop pairs.
void Run()
Run simulator for as many steps/days as indicated in config.
std::shared_ptr< Sim > m_sim
Simulator object.
~SimRunner() override=default
Destructor.
const util::Stopwatch & GetClock() const
Return the run & sim configuration.
The simulation runner drive simulator throufgh time steps.
util::Stopwatch m_clock
Stopwatch for timing the computation.
Namespace for the simulator and related classes.
boost::property_tree::ptree m_config
Ptree with configuration.
Template for Subject/Observer (or Publish/Subscribe).