-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathQuant.h
More file actions
52 lines (38 loc) · 1017 Bytes
/
Quant.h
File metadata and controls
52 lines (38 loc) · 1017 Bytes
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: Simple quantizer for DEVS models
*
* AUTHOR: Gabriel Wainer
*
* EMAIL: mailto://gabrielw@dc.uba.ar
*
* DATE: 21/7/99
*
*******************************************************************/
#ifndef __Quant_H
#define __Quant_H
/** include files **/
#include "atomic.h" // class Atomic
/** forward declarations **/
class Distribution ;
/** declarations **/
class Quant: public Atomic
{
public:
Quant( const std::string &name = "Quant" ) ; // Default constructor
~Quant(); // Destructor
virtual std::string className() const
{return "Quant";}
protected:
Model &initFunction()
{return *this;}
Model &externalFunction( const ExternalMessage & );
Model &internalFunction( const InternalMessage & );
Model &outputFunction( const CollectMessage & );
private:
const Port &in ;
Port &out ;
double quant_value ;
double quantum ;
}; // class Quant
#endif //__Quant_H