diff options
Diffstat (limited to 'modules/CIAO/DAnCE/bin/PythonDAnCE/generator/comp_inst.py')
-rwxr-xr-x | modules/CIAO/DAnCE/bin/PythonDAnCE/generator/comp_inst.py | 13 |
1 files changed, 13 insertions, 0 deletions
diff --git a/modules/CIAO/DAnCE/bin/PythonDAnCE/generator/comp_inst.py b/modules/CIAO/DAnCE/bin/PythonDAnCE/generator/comp_inst.py new file mode 100755 index 00000000000..7bacf681616 --- /dev/null +++ b/modules/CIAO/DAnCE/bin/PythonDAnCE/generator/comp_inst.py @@ -0,0 +1,13 @@ +from templet import stringfunction + +@stringfunction +def template (component_name) : + """ + <instance xmi:id="${component_name}ComponentInstance"> + <name>${component_name}Component</name> + <node>Node</node> + <!-- hostname --> + <source/> + <implementation xmi:idref="${component_name}ComponentImplementation" /> + </instance> + """ |