/
BodasFactory.h
30 lines (27 loc) · 1.31 KB
/
BodasFactory.h
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
#pragma once
/** @defgroup simcorefactoryBodas SimCoreFactory.BodasFactory
* Object factories for the Bodas target
* @{
*/
#include <Core/ModelicaDefine.h>
#include <Core/Modelica.h>
class ISimController;
class ISettingsFactory;
class BodasFactory
{
public:
BodasFactory(std::string library_path, std::string modelicasystem_path);
boost::shared_ptr<ISimController> LoadSimController();
boost::shared_ptr<ISettingsFactory> LoadSettingsFactory();
boost::shared_ptr<IAlgLoopSolverFactory> LoadAlgLoopSolverFactory(IGlobalSettings*);
boost::shared_ptr<ISolver> LoadSolver(IMixedSystem* system, string solver_name, boost::shared_ptr<ISolverSettings> solver_settings);
boost::shared_ptr<IMixedSystem> LoadSystem(IGlobalSettings*, boost::shared_ptr<IAlgLoopSolverFactory>, boost::shared_ptr<ISimData>);
boost::shared_ptr<ISimData> LoadSimData();
boost::shared_ptr<ISolverSettings> LoadSolverSettings(string solver_name, boost::shared_ptr<IGlobalSettings>);
boost::shared_ptr<IAlgLoopSolver> LoadAlgLoopSolver(IAlgLoop* algLoop, string solver_name, boost::shared_ptr<INonLinSolverSettings> solver_settings);
boost::shared_ptr<INonLinSolverSettings> LoadAlgLoopSolverSettings(string solver_name);
private:
string _library_path;
string _modelicasystem_path;
};
/** @} */ // end of simcorefactoryBodas