From 4f911f4b9cc30c5c440955aa36a133f631ba7d88 Mon Sep 17 00:00:00 2001 From: larsk21 <57503246+larsk21@users.noreply.github.com> Date: Fri, 5 Jul 2024 17:25:24 +0200 Subject: [PATCH] small fixes in smarthomeuml reactions --- .../applications/smarthomeuml/SmarthomeToUml.reactions | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/bundles/tools.vitruv.applications.smarthomeuml/src/tools/vitruv/applications/smarthomeuml/SmarthomeToUml.reactions b/bundles/tools.vitruv.applications.smarthomeuml/src/tools/vitruv/applications/smarthomeuml/SmarthomeToUml.reactions index 6ab250e5b..bc4cf8e5d 100644 --- a/bundles/tools.vitruv.applications.smarthomeuml/src/tools/vitruv/applications/smarthomeuml/SmarthomeToUml.reactions +++ b/bundles/tools.vitruv.applications.smarthomeuml/src/tools/vitruv/applications/smarthomeuml/SmarthomeToUml.reactions @@ -29,13 +29,13 @@ routine createUmlModel(smarthome::SmartHomeSystem smartHomeSystem) { model.URI = smartHomeSystem.eResource.URI.appendFileExtension("uml").toString var res = smartHomeSystem.eResource.resourceSet.createResource(URI.createURI(model.URI)) res.contents.add(model) - createComponentUmlInterface(smartHomeSystem) - createProtocolUmlInterface() + createComponentUmlInterface() + createProtocolUmlInterface(smartHomeSystem) } } -routine createProtocolUmlInterface() { +routine createProtocolUmlInterface(smarthome::SmartHomeSystem smartHomeSystem) { match { // require absence of uml::Action corresponding to service val model = retrieve uml::Model corresponding to UMLPackage.eINSTANCE @@ -66,7 +66,7 @@ routine createComponentUmlInterface() { } reaction DeviceInserted { - after element smarthome::Device inserted in smarthome::SmartHomeSystem[device] + after element smarthome::Device inserted in smarthome::SmartHomeSystem[components] call { createDeviceUmlClass(newValue) } @@ -87,7 +87,7 @@ routine createDeviceUmlClass(smarthome::Device device) { } reaction ServerInserted { - after element smarthome::Server inserted in smarthome::SmartHomeSystem[server] + after element smarthome::Server inserted in smarthome::SmartHomeSystem[components] call { createServerUmlClass(newValue) }