Skip to content

Commit

Permalink
small fixes in smarthomeuml reactions
Browse files Browse the repository at this point in the history
  • Loading branch information
larsk21 committed Jul 5, 2024
1 parent a280277 commit 4f911f4
Showing 1 changed file with 5 additions and 5 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down Expand Up @@ -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)
}
Expand All @@ -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)
}
Expand Down

0 comments on commit 4f911f4

Please sign in to comment.