File tree Expand file tree Collapse file tree 5 files changed +40
-15
lines changed
java/fr/softeam/toscadesigner/export
resources/fr/softeam/templates Expand file tree Collapse file tree 5 files changed +40
-15
lines changed Original file line number Diff line number Diff line change @@ -16,32 +16,57 @@ topology_template:
1616
1717 properties:
1818 dockerImage: "thebigpotatoe/face-recognition-docker"
19-
20-
21- MyrtusCameraFeed_0:
22- type: example.eu.myrtus.nodetypes.MyrtusCameraFeed
23-
24- properties:
25- dockerImage: "ci.hesi.energy:5000/myrtus/examples/myrtusface/camera_feed:web"
26-
19+ requirements:
20+ - host:
21+ node: Myrtus_Workstation_1
22+ relationship:
23+ capability: host
24+
2725
2826 Myrtus_Proxy_0:
2927 type: example.eu.myrtus.nodetypes.MyrtusProxy
3028
3129 properties:
3230 dockerImage: "nginx:alpine"
3331 port: "443"
32+ requirements:
33+ - egress1:
34+ node: MyrtusCameraFeed_0
35+ relationship:
36+ capability: CameraFeed.WebService
37+
38+ - egress2:
39+ node: MyrtusFaceDetectionService_0
40+ relationship:
41+ capability: FaceDetectionService
42+
43+ - host:
44+ node: Myrtus_Workstation_1
45+ relationship:
46+ capability: host
47+
48+
49+ MyrtusCameraFeed_0:
50+ type: example.eu.myrtus.nodetypes.MyrtusCameraFeed
3451
52+ properties:
53+ dockerImage: "ci.hesi.energy:5000/myrtus/examples/myrtusface/camera_feed:web"
54+ requirements:
55+ - host:
56+ node: Myrtus_Workstation_1
57+ relationship:
58+ capability: host
59+
3560
3661
3762 relationship_templates:
38- hostedOn :
63+ con_HostedOn_2 :
3964 type: hostedOn
40- hostedOn :
65+ con_HostedOn_1 :
4166 type: hostedOn
42- hostedOn :
67+ con_HostedOn_0 :
4368 type: hostedOn
44- connectsOn :
69+ con_ConnectsTo_1 :
4570 type: hostedOn
46- connectsOn :
71+ con_ConnectsTo_0 :
4772 type: hostedOn
Original file line number Diff line number Diff line change @@ -70,7 +70,7 @@ private Handlebars setupHandlebars() {
7070 TRequirement tRequirement = TRequirement .safeInstantiate ((Class ) context );
7171 if (searchedPropertyName .equals ("node" )) {
7272 TNodeTemplate node = tRequirement .getNode ();
73- propertyStringValue = node != null ? node .getName () : "''" ;
73+ propertyStringValue = node != null ? node .getElement (). getName () : "''" ;
7474 } else if (searchedPropertyName .equals ("capability" )) {
7575 CapabilityStereotype capability = tRequirement .getCapability ();
7676 propertyStringValue = capability != null ? capability .getElement ().getName () : "" ;
Original file line number Diff line number Diff line change 1414 node: {{ getProperty ../this " node" }}
1515 relationship: {{ relationship }}
1616 capability: {{ getProperty ../this " capability" }}
17- {{ #unless (noStereotypeApplications this " TPropertyDef" )}} properties:{{ /unless }}
17+ {{ #unless (noStereotypeApplications ../ this " TPropertyDef" )}} properties:{{ /unless }}
1818 {{ #each ../ownedAttribute }}{{ #extension }}{{ #eq name " TPropertyDef" }}
1919 {{ ../name }} : "{{ ../value }} "
2020 {{ /eq }}{{ /extension }}{{ /each }}
You can’t perform that action at this time.
0 commit comments