-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathdisplayer.h
More file actions
46 lines (34 loc) · 967 Bytes
/
displayer.h
File metadata and controls
46 lines (34 loc) · 967 Bytes
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
#ifndef __DISPLAYER_H
#define __DISPLAYER_H
#include <list>
#include "atomic.h" // class Atomic
//Displayer class
class Displayer : public Atomic
{
public:
// Constructor
Displayer( const string &name = "Displayer" );
virtual string className() const ;
protected:
Model &initFunction();
Model &externalFunction( const ExternalMessage & );
Model &internalFunction( const InternalMessage & );
Model &outputFunction( const InternalMessage & );
private:
// input ports
const Port &day_time; //the current time of the day
const Port &counter_time; //the remaining time of a heating job
// output ports
Port &cur_time; //the current time of the day
Port &rem_time; //the remaining time of a heating job
// the time to be sent (current time or remaining time)
Value out_time;
const Time ten_sec;
}; // end of Displayerer
// ** inline ** //
inline
string Displayer::className() const
{
return "Displayer" ;
}
#endif //__DISPLAYER_H