blob: 87c14a68070c49c33296d5afb137c5c5b8540648 (
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
|
from templet import stringfunction
@stringfunction
def template (component_name, namespace) :
"""
<implementation xmi:id="${component_name}HomeImplementation">
<name>${component_name}HomeImplementation</name>
<source/>
<artifact xmi:idref="${component_name}_ExecArtifact" />
<artifact xmi:idref="${component_name}_SvntArtifact" />
<execParameter>
<!-- entrypoint as exec parameter (see 10.6.1) -->
<name>home factory</name>
<value>
<type>
<kind>tk_string</kind>
</type>
<value>
<string>create_${namespace}${component_name}Home_Impl</string>
</value>
</value>
</execParameter>
<execParameter>
<name>edu.vanderbilt.dre.CIAO.ServantEntrypoint</name>
<value>
<type>
<kind>tk_string</kind>
</type>
<value>
<string>create_${namespace}${component_name}Home_Servant</string>
</value>
</value>
</execParameter>
<execParameter>
<name>edu.vanderbilt.dre.CIAO.ServantArtifact</name>
<value>
<type>
<kind>tk_string</kind>
</type>
<value>
<string>${component_name}_svnt</string>
</value>
</value>
</execParameter>
<execParameter>
<name>edu.vanderbilt.dre.CIAO.ExecutorArtifact</name>
<value>
<type>
<kind>tk_string</kind>
</type>
<value>
<string>${component_name}_exec</string>
</value>
</value>
</execParameter>
</implementation>
"""
|