-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathtransqueue.h
More file actions
58 lines (49 loc) · 1.17 KB
/
transqueue.h
File metadata and controls
58 lines (49 loc) · 1.17 KB
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
53
54
55
56
57
58
/*******************************************************************
*
* DESCRIPTION: class MobilityModule
*
* AUTHOR: Umar Farooq
*
* EMAIL: ufarooq@sce.carleton.ca
*
* DATE: 17/10/2003
*
*******************************************************************/
#ifndef __TRANSQUEUE_H
#define __TRANSQUEUE_H
#include <list>
#include "atomic.h" // class Atomic
class Transqueue : public Atomic
{
public:
Transqueue( const string &name = "Transqueue" ); //Default constructor
virtual string className() const ;
protected:
Model &initFunction();
Model &externalFunction( const ExternalMessage & );
Model &internalFunction( const InternalMessage & );
Model &outputFunction( const InternalMessage & );
private:
struct jobs{
int objid;
int portid;
};
const Port &inApp;
const Port &inGateway;
const Port &position;
const Port &done;
Port &outCObject;
Port &outSObject;
Port &location;
Time preparationTime;
typedef list<jobs> ElementList ;
ElementList elements ;
jobs j;
}; // class Queue
// ** inline ** //
inline
string Transqueue::className() const
{
return "Transqueue" ;
}
#endif //__TRANSQUEUE_H