-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathred.h
More file actions
63 lines (52 loc) · 1.3 KB
/
red.h
File metadata and controls
63 lines (52 loc) · 1.3 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
57
58
59
60
61
62
63
/*******************************************************************
*
* DESCRIPTION: Atomic Model Red
*
* AUTHOR: Ariel Gonzalez
*
* EMAIL: mailto://egonzalz@dc.uba.ar
* mailto://agonzalez@tecnet-ibermatica.com.ar
*
* DATE: 28/9/2003
*
*******************************************************************/
#ifndef __RED_H
#define __RED_H
#include "atomic.h" // class Atomic
#include "datos.h" // tipos de datos y conversiones
enum _estado_red { hay_pedido_aux, hay_pedido_pdb, hay_pedido_ws, hay_pedido_eth };
class Red : public Atomic
{
public:
Red( const string &name = "Red" ); //Default constructor
virtual string className() const ;
protected:
Model &initFunction();
Model &externalFunction( const ExternalMessage & );
Model &internalFunction( const InternalMessage & );
Model &outputFunction( const InternalMessage & );
private:
const Port &pdb_in;
const Port &ws_in;
const Port &aux_in;
const Port ð_in;
const Port &nombre_logico;
Port &pdb_out;
Port &ws_out;
Port &aux_out;
Port ð_out;
// parametros
Time tiempo_respuesta;
configuracion_nodo *configuracion;
int mi_nombre_fisico;
// variables de estado
_estado_red estado_red;
Value ultimo_pedido;
}; // class Red
// ** inline ** //
inline
string Red::className() const
{
return "Red" ;
}
#endif //__RED_H