summaryrefslogtreecommitdiff
path: root/modules/CIAO/ciaosvcs/Events/CIAO_Events_Base/CIAO_Events.idl
blob: 266f8b472e9706c32d40fb6f1fa6826535de6ad3 (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
70
71
72
73
74
75
76
77
78
79
// $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.
 */

#if !defined (CIAO_EVENTS_IDL)
#define CIAO_EVENTS_IDL

#include "ciao/CCM_EventConsumerBase.idl"
#include "ciao/CCM_Base.idl"

module CIAO
{
  /// A component's UUID + port name.
  typedef string CONNECTION_ID;

  enum EventServiceType
  {
    EC,
    RTEC,
    NOTIFY,
    RTNOTIFY
  };

  interface Supplier_Config
  {
    attribute CONNECTION_ID supplier_id;

    readonly attribute EventServiceType service_type;

    void destroy ();
  };

  interface Consumer_Config
  {
    attribute CONNECTION_ID consumer_id;

    readonly attribute EventServiceType service_type;

    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);

    void destroy ();
  };

  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);
  };
};

#endif /* CIAO_EVENTS_IDL */