27 #ifndef SIMULATOR_SIMULATORFACTORY_H
28 #define SIMULATOR_SIMULATORFACTORY_H
55 if (mapObjectCreator.find(
id) != mapObjectCreator.end()) {
59 mapObjectCreator.insert(std::pair<std::string, CreateSimulatorFunctionPointer>(
id, &createTheSimulator<C>));
60 mapObjectCreator2.insert(std::pair<std::string, CreateSimulatorFunctionPointer2>(
id, &createTheSimulator2<C>));
61 mapInteractive.insert(std::pair<std::string, bool>(
id, isInteractive));
63 interactiveSimulators.push_back(
id);
66 nonInteractiveSimulators.push_back(
id);
73 bool isRegistered(std::string
id);
82 int getNumberOfInteractiveSimulators();
85 int getNumberOfNonInteractiveSimulators();
88 std::string getInteractiveSimulator(
const unsigned int index);
91 std::string getNonInteractiveSimulator(
const unsigned int index);
94 bool isInteractive(std::string
id);
105 std::map<std::string, CreateSimulatorFunctionPointer> mapObjectCreator;
108 std::map<std::string, CreateSimulatorFunctionPointer2> mapObjectCreator2;
121 return new C(monitoringManager);
135 return new C(monitoringManager, file);
139 std::map<std::string, bool> mapInteractive;
142 std::vector<std::string> interactiveSimulators;
145 std::vector<std::string> nonInteractiveSimulators;
#define MML_API
Definition: MMLAPI.h:43
Manager of the benchmark tests.
Definition: MonitoringManager.h:50
A factory to create Simulator.
Definition: SimulatorFactory.h:40
bool registerClass(std::string id, bool isInteractive)
Register a class into the map A registered class can be created using createMonitorDisplay()
Definition: SimulatorFactory.h:54
A simulator engine is used to compute the displacements of all atoms of the model.
Definition: Simulator.h:46