blob: bcfcca9ef93687b18c39e4180a7e42ac1e46bec4 (
plain)
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
64
65
66
67
68
69
|
// $Id$
/**
* @file CIAO_Events.idl
*
* @author George Edwards <g.edwards@vanderbilt.edu>
* @author Gan Deng <dengg@dre.vanderbilt.edu>
*
* @brief Interfaces for configuring CIAO's event mechanism.
*/
#include "ciao/CCM_Event.idl"
module CIAO
{
/// A component's UUID + port name.
typedef string CONNECTION_ID;
enum EventServiceType
{
DIRECT,
EC,
RTEC,
NOTIFY,
RTNOTIFY
};
interface Supplier_Config
{
attribute CONNECTION_ID supplier_id;
readonly attribute EventServiceType service_type;
void destroy ();
};
interface Consumer_Config : Supplier_Config
{
attribute CONNECTION_ID consumer_id;
attribute Components::EventConsumerBase consumer;
void start_conjunction_group (in long size);
void start_disjunction_group (in long size);
void insert_source (in CONNECTION_ID source_id);
void insert_type (in long event_type);
};
interface CIAO_Event_Service : Components::EventConsumerBase
{
Supplier_Config create_supplier_config ();
Consumer_Config create_consumer_config ();
void connect_event_supplier (in Supplier_Config supplier_conf);
void connect_event_consumer (in Consumer_Config consumer_conf);
void disconnect_event_supplier (in CONNECTION_ID conn_id)
raises (Components::InvalidConnection);
void disconnect_event_consumer (in CONNECTION_ID conn_id)
raises (Components::InvalidConnection);
//void push_event (in Components::EventBase ev);
};
};
|