summaryrefslogtreecommitdiff
path: root/TAO/CIAO/tests/RTCCM/Priority_Test/descriptors/rt-3rate-rt-low-dec.cad
blob: e09d35204ade5bb82954f0340587c5f3213e04d4 (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
119
120
121
122
123
124
<?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">

<!-- 3 rate test with increasing prio = decreasing rate -->

<componentassembly id="A test assembly for 3 worker running on 3 rates.">
  <componentfiles>
    <componentfile id="com-Controller25">
      <fileinarchive name="Controller25.csd"/>
    </componentfile>
    <componentfile id="com-Controller50">
      <fileinarchive name="Controller50.csd"/>
    </componentfile>
    <componentfile id="com-Controller75">
      <fileinarchive name="Controller75.csd"/>
    </componentfile>
    <componentfile id="com-Worker">
      <fileinarchive name="CB_Worker.csd"/>
    </componentfile>
  </componentfiles>

  <partitioning>
  <!-- Install component on 2 processes without any RT extension -->
     <processcollocation>
      <homeplacement id="a25_WorkerHome">
        <componentfileref idref="com-Worker"/>
        <componentinstantiation id="a_W25"/>
        <extension class="RT-POLICY-SET"
                   origin="CIAO">HIGH_PRIO_LOW_POOL</extension>
      </homeplacement>

      <homeplacement id="a50_WorkerHome">
        <componentfileref idref="com-Worker"/>
        <componentinstantiation id="a_W50"/>
        <extension class="RT-POLICY-SET"
                   origin="CIAO">MID_PRIO_LOW_POOL</extension>
      </homeplacement>

      <homeplacement id="a75_WorkerHome">
        <componentfileref idref="com-Worker"/>
        <componentinstantiation id="a_W75"/>
        <extension class="RT-POLICY-SET"
                   origin="CIAO">LOW_PRIO_LOW_POOL</extension>
      </homeplacement>
      <extension class="RT-CAD-EXT" origin="CIAO">shared_rt.rtd</extension>
     </processcollocation>

     <!-- We will run on server's priority -->
     <processcollocation>
      <homeplacement id="a_C25Home">
        <componentfileref idref="com-Controller25"/>
        <componentinstantiation id="a_C25">
          <registercomponent>
            <!-- writeiortofile is a non-standard CIAO extension.  -->
            <writeiortofile name="c25.ior"/>
          </registercomponent>
        </componentinstantiation>
      </homeplacement>

      <homeplacement id="a_C50Home">
        <componentfileref idref="com-Controller50"/>
        <componentinstantiation id="a_C50">
          <registercomponent>
            <!-- writeiortofile is a non-standard CIAO extension.  -->
            <writeiortofile name="c50.ior"/>
          </registercomponent>
        </componentinstantiation>
      </homeplacement>

      <homeplacement id="a_C75Home">
        <componentfileref idref="com-Controller75"/>
        <componentinstantiation id="a_C75">
          <registercomponent>
            <!-- writeiortofile is a non-standard CIAO extension.  -->
            <writeiortofile name="c75.ior"/>
          </registercomponent>
        </componentinstantiation>
      </homeplacement>
     <destination>Remote</destination>
     </processcollocation>

  </partitioning>

  <connections>

    <connectinterface>
      <usesport>
        <usesidentifier>worker</usesidentifier>
        <componentinstantiationref idref="a_C25"/>
      </usesport>
      <providesport>
        <providesidentifier>some_device</providesidentifier>
        <componentinstantiationref idref="a_W25"/>
      </providesport>
    </connectinterface>

    <connectinterface>
      <usesport>
        <usesidentifier>worker</usesidentifier>
        <componentinstantiationref idref="a_C50"/>
      </usesport>
      <providesport>
        <providesidentifier>some_device</providesidentifier>
        <componentinstantiationref idref="a_W50"/>
      </providesport>
    </connectinterface>

    <connectinterface>
      <usesport>
        <usesidentifier>worker</usesidentifier>
        <componentinstantiationref idref="a_C75"/>
      </usesport>
      <providesport>
        <providesidentifier>some_device</providesidentifier>
        <componentinstantiationref idref="a_W75"/>
      </providesport>
    </connectinterface>

  </connections>

</componentassembly>