-
Notifications
You must be signed in to change notification settings - Fork 10
/
Copy pathDelay.h
39 lines (33 loc) · 887 Bytes
/
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
/*
* 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);
private:
std::string _delayExpression = "1.0";
Util::TimeUnit _delayTimeUnit = Util::TimeUnit::TU_second;
};
#endif /* DELAY_H */