-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathkeyboard.h
45 lines (35 loc) · 899 Bytes
/
keyboard.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
/*******************************************************************
*
* DESCRIPTION: Atomic Model Keyboard
*
*******************************************************************/
#ifndef __KEYBOARD_H
#define __KEYBOARD_H
#include <list>
#include "atomic.h" // class Atomic
class Keyboard : public Atomic
{
public:
Keyboard( const string &name = "Keyboard" ); //Default constructor
virtual string className() const ;
double keyvalue;
protected:
Model &initFunction();
Model &externalFunction( const ExternalMessage & );
Model &internalFunction( const InternalMessage & );
Model &outputFunction( const InternalMessage & );
private:
const Port ∈
Port &out;
Time preparationTime;
typedef list<Value> ElementList ;
ElementList elements ;
Time timeLeft;
}; // class Keyboard
// ** inline ** //
inline
string Keyboard::className() const
{
return "Keyboard" ;
}
#endif