-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathcongest.h
More file actions
56 lines (43 loc) · 1.1 KB
/
congest.h
File metadata and controls
56 lines (43 loc) · 1.1 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
/*******************************************************************
*
* DESCRIPTION: class Congestion
*
* AUTHOR: Andrea D�az && Ver�nica Vazquez
*
* EMAIL: mailto://rodiaz@dc.uba.ar
* mailto://vvazqu@dc.uba.ar
*
* DATE: 24/01/2000
*
*******************************************************************/
#ifndef __CONGESTION_H
#define __CONGESTION_H
/** include files **/
#include <map>
#include "atomic.h" // class Atomic
#include "except.h" // class InvalidMessageException
class Congestion: public Atomic
{
public:
Congestion( const std::string &name = "Congestion"); // Default Constructor
virtual std::string className() const;
protected:
Model &initFunction();
Model &externalFunction(const ExternalMessage & );
Model &internalFunction(const InternalMessage &);
Model &outputFunction(const InternalMessage & );
private:
const Port &IngresaAuto;
const Port &SaleAuto;
const Port &peso;
const Port &stop;
int cant_autos;
}; // class Congestion
// ** inline ** //
inline
string Congestion::className() const
{
return "Congestion" ;
}
inline
#endif //__CONGESTION_H