-
Notifications
You must be signed in to change notification settings - Fork 10
/
Simulator.h
54 lines (48 loc) · 1.57 KB
/
Simulator.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
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
/*
* To change this license header, choose License Headers in Project Properties.
* To change this template file, choose Tools | Templates
* and open the template in the editor.
*/
/*
* File: Genesys.h
* Author: cancian
*
* Created on 21 de Junho de 2018, 12:48
*/
#ifndef GENESYS_H
#define GENESYS_H
#include <string>
#include <iostream>
#include "Model.h"
#include "Plugin.h"
#include "List.h"
#include "Traits.h"
#include "Fitter_if.h"
class Simulator {
typedef void (*eventHandler)();
public:
Simulator();
Simulator(const Simulator& orig);
virtual ~Simulator();
public: // get & set
List<Model*>* getModels() const;
List<Plugin*>* getPlugins() const;
public: // only get
std::string getVersion() const;
std::string getLicense() const;
std::string getName() const;
Sampler_if* getSampler() const;
Fitter_if* getFitter() const;
public: // event handlers
private: // attributes 1:n
List<Plugin*>* _plugins;
List<Model*>* _models;
private: // attributes 1:1 objects
Fitter_if* _fitter = new Traits<Fitter_if>::Implementation();
Sampler_if* _sampler = new Traits<Sampler_if>::Implementation();
private: // attributes 1:1 native
std::string _name = "GenESyS - Generic and Expansible System Simulator [REBORN]";
std::string _license = "Academic Mode. In academic mode this software has full functionality and executing training-size simulation models. This software may be duplicated and used for educational purposes only; any commercial application is a violation of the license agreement.";
std::string _version = "2018.08.00.5";
};
#endif /* GENESYS_H */