summaryrefslogtreecommitdiff
path: root/TAO/CIAO/examples/OEP/BasicSP/descriptors/BasicSP-rt.cad
blob: 57608362bbecf377be42867a7d4fca11c34c3559 (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
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
<?xml version="1.0"?> <!-- -*- SGML -*-  -->

<!-- If this file is moved to a different directory, make sure to change the
     path to the DTD below. Otherwise the examples won't work. -->
<!DOCTYPE componentassembly SYSTEM "../../../../docs/XML/componentassembly.dtd">

<componentassembly id="Single-process Basic assembly">
  <componentfiles>
    <componentfile id="com-EC">
      <fileinarchive name="EC.csd"/>
    </componentfile>
    <componentfile id="com-BMDevice">
      <fileinarchive name="BMDevice.csd"/>
    </componentfile>
        <componentfile id="com-BMClosedED">
      <fileinarchive name="BMClosedED.csd"/>
    </componentfile>
    <componentfile id="com-BMDisplay">
      <fileinarchive name="BMDisplay.csd"/>
    </componentfile>
  </componentfiles>

  <partitioning>

  <!-- A plain vanilla partition.  We don't even need the processcollocation tag here. -->
    <processcollocation>
      <homeplacement id="a_ECHome">
        <componentfileref idref="com-EC"/>
        <componentinstantiation id="a_EC">
          <registercomponent>
            <!-- writeiortofile is a non-standard CIAO extension.  -->
            <writeiortofile name="ec.ior"/>
          </registercomponent>
        </componentinstantiation>
        <extension class="RT-POLICY-SET"
                   origin="CIAO">POLICY_1</extension>
      </homeplacement>
      <homeplacement id="a_BMDeviceHome">
        <componentfileref idref="com-BMDevice"/>
        <componentinstantiation id="a_BMDevice"/>
        <extension class="RT-POLICY-SET"
                   origin="CIAO">POLICY_1</extension>
      </homeplacement>
      <homeplacement id="a_BMClosedEDHome">
        <componentfileref idref="com-BMClosedED"/>
        <componentinstantiation id="a_BMClosedED"/>
      <extension class="RT-POLICY-SET"
                   origin="CIAO">POLICY_1</extension>
      </homeplacement>
      <homeplacement id="a_BMDisplayHome">
        <componentfileref idref="com-BMDisplay"/>
        <componentinstantiation id="a_BMDisplay"/>
      </homeplacement>
      <destination>Default|RT1</destination>
      <extension class="RT-CAD-EXT" origin="CIAO">test.rtd</extension>
    </processcollocation>
  </partitioning>

  <connections>

    <connectevent>
      <consumesport>
        <consumesidentifier>timeout</consumesidentifier>
        <componentinstantiationref idref="a_BMDevice"/>
      </consumesport>
      <publishesport>
        <publishesidentifier>timeout</publishesidentifier>
        <componentinstantiationref idref="a_EC"/>
      </publishesport>
    </connectevent>

    <connectevent>
      <consumesport>
        <consumesidentifier>in_avail</consumesidentifier>
        <componentinstantiationref idref="a_BMClosedED"/>
      </consumesport>
      <publishesport>
        <publishesidentifier>data_available</publishesidentifier>
        <componentinstantiationref idref="a_BMDevice"/>
      </publishesport>
    </connectevent>

    <connectevent>
      <consumesport>
        <consumesidentifier>data_ready</consumesidentifier>
        <componentinstantiationref idref="a_BMDisplay"/>
      </consumesport>
      <publishesport>
        <publishesidentifier>out_avail</publishesidentifier>
        <componentinstantiationref idref="a_BMClosedED"/>
      </publishesport>
    </connectevent>

    <connectinterface>
      <usesport>
        <usesidentifier>datain</usesidentifier>
        <componentinstantiationref idref="a_BMClosedED"/>
      </usesport>
      <providesport>
        <providesidentifier>data_read</providesidentifier>
        <componentinstantiationref idref="a_BMDevice"/>
      </providesport>
    </connectinterface>

    <connectinterface>
      <usesport>
        <usesidentifier>comp_data</usesidentifier>
        <componentinstantiationref idref="a_BMDisplay"/>
      </usesport>
      <providesport>
        <providesidentifier>dataout</providesidentifier>
        <componentinstantiationref idref="a_BMClosedED"/>
      </providesport>
    </connectinterface>

  </connections>

</componentassembly>