summaryrefslogtreecommitdiff
path: root/TAO/CIAO/examples/UAV/descriptors/two_component.cad
blob: 76a4561fbdc9f8e7103b731feaa37e1eeb4257e6 (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
<?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 "http://www.dre.vanderbilt.edu/CIAO/DTD/componentassembly.dtd">

<componentassembly id="Collocated component test">
  <componentfiles>
    <componentfile id="com-Satellite">
      <fileinarchive name="Satellite.csd"/>
    </componentfile>
    <componentfile id="com-CAOC">
      <fileinarchive name="CAOC.csd"/>
    </componentfile>
  </componentfiles>

  <partitioning>

      <homeplacement id="a_SatelliteHome">
        <componentfileref idref="com-Satellite"/>
          <componentinstantiation id="a_Satellite">
          <registercomponent>
            <!-- writeiortofile is a non-standard CIAO extension.  -->
            <writeiortofile name="sat.ior"/>
          </registercomponent>
        </componentinstantiation>
      </homeplacement>

    <processcollocation>  
      <homeplacement id="a_CAOCHome">
        <componentfileref idref="com-CAOC"/>
          <componentinstantiation id="a_CAOC">
        </componentinstantiation>
      </homeplacement>
     <destination>CAOCHost</destination>
    </processcollocation> 

  </partitioning>
	
  <connections>

    <connectevent>
      <consumesport>
        <consumesidentifier>target_located</consumesidentifier>
        <componentinstantiationref idref="a_CAOC"/>
      </consumesport>
      <publishesport>
        <publishesidentifier>target_located</publishesidentifier>
        <componentinstantiationref idref="a_Satellite"/>
      </publishesport>
    </connectevent>

  </connections>

</componentassembly>