1 #ifndef SIM_SESSION_COUPLED_H_INCLUDED
2 #define SIM_SESSION_COUPLED_H_INCLUDED
32 namespace SimShell{
namespace Ws {
class IWorkspace; }}
56 const std::shared_ptr<MergedPreferences>& prefs,
57 const ptree& project_info,
58 const std::shared_ptr<SimShell::Ws::IWorkspace>& workspaceModel);
82 virtual void RefreshPreferences() {}
97 virtual void ExecuteViewUnit(QString);
100 void ExecuteWorkUnit();
109 std::vector<std::pair<std::string, std::string>>
110 ReadSubprojectList(
const boost::property_tree::ptree&
pt);
120 std::shared_ptr<SimShell::Ws::IProject> OpenSubproject(
121 const std::string& projectName,
122 const std::string& file,
123 const std::shared_ptr<SimShell::Ws::IWorkspace>& workspaceModel);
127 std::shared_ptr<SimShell::Ws::MergedPreferences> m_preferences;
130 std::map<std::string, std::shared_ptr<SimShell::Ws::IProject>> m_projects;
133 std::shared_ptr<SimPT_Sim::CoupledSim> m_sim;
145 std::mutex m_parameters_mutex;
146 std::mutex m_viewers_mutex;
148 QThread* m_sim_thread;
153 } m_parameter_buffer;
160 #endif // end_of_include_guard
virtual void StopSimulation()
virtual void SetParameters(const ptree &)
SimSessionCoupled(const std::shared_ptr< MergedPreferences > &prefs, const ptree &project_info, const std::shared_ptr< SimShell::Ws::IWorkspace > &workspaceModel)
Constructor.
ptree pt
Ptree containing parameters.
Namespace for SimPT shell package.
virtual ~SimSessionCoupled()
Destructor virtual, just in case.
virtual std::shared_ptr< RootViewerType > CreateRootViewer(SimShell::Gui::Controller::AppController *parent=nullptr)
Namespace for the core simulator.
bool updated
Whether parameters were updated and need saving to disk.
Interface/Implementation of Subject.
virtual void ForceExport()
Interfaces for simulator session.
std::string GetStatusMessage() const
Return the status message.
Collection of instances associated with an opened/running coupled project.
virtual Timings GetTimings() const
Get timing information from simulation and viewers.
virtual void StartSimulation(int steps=-1)
virtual const ptree & GetParameters() const
virtual ExportersType GetExporters()
Namespace for generic graphical shell for simulators.
Generic session interface.