-
Notifications
You must be signed in to change notification settings - Fork 1
/
WirelessChannel.h
53 lines (40 loc) · 1.15 KB
/
WirelessChannel.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
53
/*******************************************************************
*
* DESCRIPTION: Atomic Model Wireless Channel
*
* AUTHOR: Waqas Muhi
*
*
* DATE: 29/10/2011
*
*******************************************************************/
#ifndef __WIRELESSCHANNEL_H
#define __WIRELESSCHANNEL_H
/** include files **/
#include "atomic.h" // class Atomic
/** forward declarations **/
class Distribution ;
/** declarations **/
class WirelessChannel: public Atomic
{
public:
WirelessChannel( const string &name = "WirelessChannel" ) ; // Default constructor
~WirelessChannel(); // Destructor
virtual string className() const
{return "WirelessChannel";}
protected:
Model &initFunction();
Model &externalFunction( const ExternalMessage & );
Model &internalFunction( const InternalMessage & );
Model &outputFunction( const InternalMessage & );
private:
Port &channel_go;
Port &channel_done;
Port &channel_out;
int start_set, finish_set;
double channel, frequency;
Distribution *dist;
Distribution &distribution()
{return *dist;}
}; // class WirelessChannel
#endif //__WIRELESSCHANNEL_H