-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathselec.h
61 lines (50 loc) · 1.29 KB
/
selec.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
54
55
56
57
58
59
60
61
/*******************************************************************
*
* DESCRIPTION: Atomic Model Selector
*
* AUTHOR: Ariel Gonzalez
*
* EMAIL: mailto://egonzalz@dc.uba.ar
* mailto://agonzalez@tecnet-ibermatica.com.ar
*
* DATE: 28/9/2003
*
*******************************************************************/
#ifndef __SELEC_H
#define __SELEC_H
#include "atomic.h" // class Atomic
#include "datos.h" // tipos de datos y conversiones
enum estado_sel { hay_pedido_pdb_local, hay_pedido_pant, hay_pedido_red };
class Selector : public Atomic
{
public:
Selector( const string &name = "Selector" ); //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 &pant_in;
const Port &red_in;
const Port &nombre_logico;
Port &pdb_out;
Port &pant_out;
Port &red_out;
// parametros
Time tiempo_respuesta;
int mi_nombre_fisico;
configuracion_nodo mi_config;
// variables de estado
estado_sel estado_selector;
Value ultimo_pedido;
}; // class Selector
// ** inline ** //
inline
string Selector::className() const
{
return "Selector" ;
}
#endif //__SELEC_H