-
Notifications
You must be signed in to change notification settings - Fork 0
/
Response.h
52 lines (44 loc) · 1.07 KB
/
Response.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
/*******************************************************************
*
* DESCRIPTION: Response
*
* AUTHOR: Mike
*
* EMAIL: mvschybd@gmail.com
*
* DATE: Nov 2, 2011
*
*******************************************************************/
#ifndef __Response_H
#define __Response_H
#include "atomic.h" // class Atomic
class Response : public Atomic
{
public:
Response ( const string &name = "Response" ); //Default constructor
virtual string className() const ;
protected:
Model &initFunction();
Model &externalFunction( const ExternalMessage & );
Model &internalFunction( const InternalMessage & );
Model &outputFunction( const InternalMessage & );
private:
const Port &priority_in;
Port &time_in;
Port &response_out;
Time preparationTime;
int Outcome;
int Priority;
int Response_Time;
// typedef list<Value> ElementList ;
// ElementList elements ;
Time timeLeft;
Time arrival_time;
}; // class Receiver
// ** inline ** //
inline
string Response::className() const
{
return "Response" ;
}
#endif //__Response_H