-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathconstgenerat.h
More file actions
47 lines (35 loc) · 1.05 KB
/
constgenerat.h
File metadata and controls
47 lines (35 loc) · 1.05 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
/*******************************************************************
*
* DESCRIPTION: class ConstantGenerator
*
* AUTHOR: Amir Barylko & Jorge Beyoglonian
*
* EMAIL: mailto://amir@dc.uba.ar
* mailto://jbeyoglo@dc.uba.ar
*
* DATE: 27/6/1998
*
*******************************************************************/
#ifndef __CONSTGENERATOR_H
#define __CONSTGENERATOR_H
/** include files **/
#include "atomic.h" // class Atomic
#include "except.h" // class InvalidMessageException
/** declarations **/
class ConstGenerator : public Atomic
{
public:
ConstGenerator( const std::string &name = "ConstGenerator" ); // Default constructor
virtual std::string className() const
{return "ConstGenerator";}
protected:
Model &initFunction() ;
Model &externalFunction( const ExternalMessage & )
{throw InvalidMessageException();}
Model &internalFunction( const InternalMessage & );
Model &outputFunction( const CollectMessage & );
private:
Port &out ;
VTime preparationTime;
}; // class ConstGenerator
#endif //__CONSTGENERATOR_H