summaryrefslogtreecommitdiff
path: root/modules/CIAO/DAnCE/bin/PythonDAnCE/generator/homed_comp_inst.py
blob: ee1218d45391c53042bdefbbd4adc128db3f8265 (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
from templet import stringfunction

@stringfunction
def template (component_name) :
    """
  <instance xmi:id="${component_name}ComponentInstance">
    <name>${component_name}Component</name>
    <node>NodeOne</node>
    <!-- hostname -->
    <source/>
    <implementation xmi:idref="${component_name}ComponentImplementation" />
    <configProperty>
      <name>edu.vanderbilt.dre.DAnCE.ExplicitHome</name>
      <value>
        <type>
          <kind>tk_string</kind>
        </type>
        <value>
          <string>${component_name}Home</string>
        </value>
      </value>
    </configProperty>
  </instance>
    """