summaryrefslogtreecommitdiff
path: root/modules/CIAO/DAnCE/bin/PythonDAnCE/generator/homed_comp_inst.py
diff options
context:
space:
mode:
Diffstat (limited to 'modules/CIAO/DAnCE/bin/PythonDAnCE/generator/homed_comp_inst.py')
-rwxr-xr-xmodules/CIAO/DAnCE/bin/PythonDAnCE/generator/homed_comp_inst.py24
1 files changed, 24 insertions, 0 deletions
diff --git a/modules/CIAO/DAnCE/bin/PythonDAnCE/generator/homed_comp_inst.py b/modules/CIAO/DAnCE/bin/PythonDAnCE/generator/homed_comp_inst.py
new file mode 100755
index 00000000000..ee1218d4539
--- /dev/null
+++ b/modules/CIAO/DAnCE/bin/PythonDAnCE/generator/homed_comp_inst.py
@@ -0,0 +1,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>
+ """