-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathproduction.h
More file actions
49 lines (39 loc) · 1.01 KB
/
production.h
File metadata and controls
49 lines (39 loc) · 1.01 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
/*******************************************************************
*
* DESCRIPTION: Atomic Model Production
*
* AUTHOR: Abdullah Alfaify
*
* EMAIL: mailto://aalfa064@uottawa.ca
*
* DATE: 14/12/2011
*
*******************************************************************/
#ifndef __PRODUCTION_H
#define __PRODUCTION_H
#include "atomic.h" // class Atomic
class Production : public Atomic
{
public:
Production( const string &name = "Production" ); //Default constructor
virtual string className() const ;
protected:
Model &initFunction();
Model &externalFunction( const ExternalMessage & );
Model &internalFunction( const InternalMessage & );
Model &outputFunction( const InternalMessage & );
private:
const Port ∈
Port &out;
Port &fpCount;
Port &done;
Time preparationTime;
int counter; //to count Finished Product
}; // class Production
// ** inline ** //
inline
string Production::className() const
{
return "Production" ;
}
#endif //__PRODUCTION_H