summaryrefslogtreecommitdiff
path: root/flat/CIAO/DAnCE/bin/PythonDAnCE/generator/artifact.py
blob: dbebad5291d383a0edb9007194d0b582b7656b0e (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):
    """
  <artifact xmi:id="${component_name}_ExecArtifact">
    <name>${component_name}_exec</name>
    <source/>
    <node/>
    <location>${component_name}_exec</location>
  </artifact>
  <artifact xmi:id="${component_name}_SvntArtifact">
    <name>${component_name}_svnt</name>
    <source/>
    <node/>
    <location>${component_name}_svnt</location>
  </artifact>
  <artifact xmi:id="${component_name}_StubArtifact">
    <name>${component_name}_stub</name>
    <source/>
    <node/>
    <location>${component_name}_stub</location>
  </artifact>  
  """