-
Notifications
You must be signed in to change notification settings - Fork 0
/
Simulator.cpp
41 lines (30 loc) · 932 Bytes
/
Simulator.cpp
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
31
32
33
34
35
36
37
38
39
40
41
/**
* FIT VUT Brno
* IMS: Projekt "Knihovna pro kombinovanou simulaci"
*
* @author Petr Mejzlik [email protected]
* @author Jiri Petruzelka [email protected]
*
* @filesource
*/
#include <iostream>
#include "Simulator.h"
#include "Simulation.h"
namespace IMSim {
Simulation* Simulator::createSimulation() {
Simulation* simulation = new Simulation();
return this->addSimulation(simulation);
}
Simulation* Simulator::createSimulation(char* name) {
Simulation* simulation = new Simulation(name);
return this->addSimulation(simulation);
}
Simulation* Simulator::createSimulation(STEP minStep, STEP maxStep, PRECISION precision) {
Simulation* simulation = new Simulation(minStep, maxStep, precision);
return this->addSimulation(simulation);
}
Simulation* Simulator::addSimulation(Simulation* simulation) {
this->simulations.push_back(simulation);
return simulation;
}
}