summaryrefslogtreecommitdiff
path: root/TAO/CIAO/examples/Hello/descriptors/remote.cad
blob: 55872bd8d84acc8cb4a7bb7a7af6a39a7c92f25d (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
<?xml version="1.0"?> <!-- -*- SGML -*-  -->

<!-- This file must be pre-processed for final location based on $CIAO_ROOT -->
<!DOCTYPE componentassembly SYSTEM "../../../docs/XML/componentassembly.dtd">


<componentassembly id="componentized assembly">
  <componentfiles>

    <componentfile id="com-Sender">
      <fileinarchive name="Sender.csd"/>
    </componentfile>

    <componentfile id="com-Receiver">
      <fileinarchive name="Receiver.csd"/>
    </componentfile>

  </componentfiles>

  <partitioning>

      <homeplacement id="a_SenderHome">
        <componentfileref idref="com-Sender"/>
        <componentinstantiation id="a_Sender">
         <registercomponent>
            <!-- writeiortofile is a non-standard CIAO extension.  -->
            <writeiortofile name="sender.ior"/>
          </registercomponent>
        </componentinstantiation>
      </homeplacement>

    <processcollocation>
      <homeplacement id="a_ReceiverHome">
        <componentfileref idref="com-Receiver"/>
        <componentinstantiation id="a_Receiver"/>
      </homeplacement>
      <destination>Remote</destination>
    </processcollocation>
  </partitioning>

  <connections>

    <connectevent>
      <consumesport>
        <consumesidentifier>click_in</consumesidentifier>
        <componentinstantiationref idref="a_Receiver"/>
      </consumesport>
      <publishesport>
        <publishesidentifier>click_out</publishesidentifier>
        <componentinstantiationref idref="a_Sender"/>
      </publishesport>
    </connectevent>

    <connectinterface>
      <usesport>
        <usesidentifier>read_message</usesidentifier>
        <componentinstantiationref idref="a_Receiver"/>
      </usesport>
      <providesport>
        <providesidentifier>push_message</providesidentifier>
        <componentinstantiationref idref="a_Sender"/>
      </providesport>
    </connectinterface>

  </connections>

</componentassembly>