forked from jacyara/GenESyS-Reborn
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Delay.h
42 lines (36 loc) · 1.03 KB
/
Delay.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
/*
* 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: Delay.h
* Author: cancian
*
* Created on 21 de Junho de 2018, 19:49
*/
#ifndef DELAY_H
#define DELAY_H
#include <string>
#include "ModelComponent.h"
class Delay : public ModelComponent {
public:
Delay(Model* model);
Delay(const Delay& orig);
virtual ~Delay();
void setDelayExpression(std::string _delayExpression);
std::string getDelayExpression() const;
void setDelayTimeUnit(Util::TimeUnit _delayTimeUnit);
Util::TimeUnit getDelayTimeUnit() const;
public:
virtual std::string show();
protected:
virtual void _execute(Entity* entity);
virtual void _loadInstance(std::list<std::string> words);
virtual std::list<std::string>* _saveInstance();
virtual bool _verifySymbols(std::string* errorMessage);
private:
std::string _delayExpression = "1.0";
Util::TimeUnit _delayTimeUnit = Util::TimeUnit::TU_second;
};
#endif /* DELAY_H */