{"id":1081,"date":"2015-08-07T02:41:15","date_gmt":"2015-08-07T02:41:15","guid":{"rendered":"http:\/\/onefact-migrate.zipfish-sites.io\/?p=377"},"modified":"2020-12-16T16:10:25","modified_gmt":"2020-12-16T16:10:25","slug":"semantic-steps","status":"publish","type":"post","link":"https:\/\/onefact.net\/semantic-steps\/","title":{"rendered":"Semantic Steps"},"content":{"rendered":"<p><a href=\"https:\/\/onefact.net\/wp-content\/uploads\/2015\/08\/steps-up.jpg\"><img fetchpriority=\"high\" alt='steps-up-300x300-2175475' class=\" size-medium wp-image-376 alignleft\" src='https:\/\/onefact.net\/wp-content\/uploads\/2015\/08\/steps-up-300x300-2175475.jpg' alt=\"steps-up\" width=\"300\" height=\"300\" \/><\/a>In a previous post we explored three layers of a UML tool: <em>application<\/em> (top), <em>semantic<\/em> (middle) and <em>technology<\/em> (bottom). \u00a0These three layers influence one another but also enjoy a measure of modular independence from one another. \u00a0Changes can be made in one layer without disrupting\u00a0other layers.<\/p>\n<p>The middle semantic layer houses the metamodel. \u00a0Let us explore making modifications to the semantic metamodel without disturbing the modeling application (drawing, organizing, versioning, building, etc.) or changing technology (Eclipse, java, file formats, etc.).<\/p>\n<p>The xtUML (then Shlaer-Mellor) metamodel predates UML. \u00a0In recent years, as new functionality has been added to BridgePoint, conformance to UML has informed the metamodeling choices. \u00a0But is it possible to modify the xtUML metamodel <em>in place<\/em>\u00a0without breaking the tool functionality? \u00a0Can UML (fUML and UML2) compliance be augmented\u00a0in an Incremental, Always Advancing, Never Broken manner?<\/p>\n<figure id=\"attachment_381\" aria-describedby=\"caption-attachment-381\" style=\"width: 381px\" class=\"wp-caption alignleft\"><img alt='function_parameter-300x144-7064889' class=\" wp-image-381\" title=\"xtUML MM Function and Parameter\" src='https:\/\/onefact.net\/wp-content\/uploads\/2015\/08\/function_parameter-300x144-7064889.png' alt=\"function_parameter\" width=\"381\" height=\"183\" \/><figcaption id=\"caption-attachment-381\" class=\"wp-caption-text\">xtUML MM Function and Parameter<\/figcaption><\/figure>\n<p>Let us explore an example. \u00a0A suboptimal subsection\u00a0of the xtUML metamodel involves the model of action body parameters. \u00a0This metamodel fragment is unnecessarily duplicated for each flavor of action body. \u00a0As xtUML \u00a0expanded and grew in functionality,\u00a0such as\u00a0support for class operations and component messaging, the passed argument model\u00a0from functions was simply copied into each new subsystem with some renaming of classes and renumbering of associations. \u00a0The pattern of handling passed parameters is repeated in the metamodel. \u00a0It would be nice to refactor and consolidate these\u00a0fragments of the metamodel.<\/p>\n<figure id=\"attachment_380\" aria-describedby=\"caption-attachment-380\" style=\"width: 228px\" class=\"wp-caption alignright\"><img alt='operation_parameter-208x300-1532009' class=\" wp-image-380\" title=\"xtUML MM Operation and Parameter\" src='https:\/\/onefact.net\/wp-content\/uploads\/2015\/08\/operation_parameter-208x300-1532009.png' alt=\"operation_parameter\" width=\"228\" height=\"329\" \/><figcaption id=\"caption-attachment-380\" class=\"wp-caption-text\">xtUML MM Operation and Parameter (notice similarity\/duplication)<\/figcaption><\/figure>\n<p>Let us think more about making this improvement while simultaneously increasing the compliance and commonality with UML.<\/p>\n<p>To accomplish this, the semantic middle layer can be modified to <em>add<\/em> a segment of the UML metamodel that supports parameter passing. \u00a0The modification involves the following steps&#8230;<\/p>\n<p>outline of steps:<br \/>\n1. \u00a0adding UML segment to overall metamodel<br \/>\n2. \u00a0adding population of UML segment to the model editing and loading operations<br \/>\n3a. \u00a0replacing execution of xtUML segment\u00a0for UML portion\u00a0in Verifier<br \/>\n3b. \u00a0replacing translation of xtUML portions with\u00a0UML bits for model compilers<br \/>\n4. \u00a0obsoleting the xtUML segment<\/p>\n<p>As a model is being edited or loaded, <em>populator<\/em> operations are called. \u00a0These routines validate the input model data and create instances of the metamodel elements. \u00a0The populator functions link the metamodel instances across the class model associations.<\/p>\n<p>The key is to add functionality and test it while existing support remains in place. \u00a0Only when the newly added functionality is as good or better than the existing functionality will\u00a0removal of the existing segment\u00a0be considered.<\/p>\n<p>It is reasonable to author or modify\u00a0concurrent versions of these populators that create and relate the newly added segment of metamodel (e.g. UML support of passed parameters). \u00a0At this point both xtUML and UML representations of the functionality exist concurrently. \u00a0After tool functionality uses the new metamodel segment and stops using the old metamodel segment, the old can be pruned away. \u00a0This approach allows the existing tool to continue operating smoothly while adding, improving and validating updated capability. \u00a0The Semantic Layer can indeed be incrementally advanced in-place without breaking.<\/p>\n<p>&nbsp;<\/p>\n","protected":false},"excerpt":{"rendered":"<p>In a previous post we explored three layers of a UML tool: application (top), semantic (middle) and technology (bottom). \u00a0These three layers influence one another but also enjoy a measure of modular independence from one another. \u00a0Changes can be made in one layer without disrupting\u00a0other layers. The middle semantic layer houses the metamodel. \u00a0Let us [&hellip;]<\/p>\n","protected":false},"author":3,"featured_media":1324,"comment_status":"closed","ping_status":"closed","sticky":false,"template":"","format":"standard","meta":{"_jetpack_memberships_contains_paid_content":false,"footnotes":""},"categories":[5],"tags":[],"class_list":["post-1081","post","type-post","status-publish","format-standard","has-post-thumbnail","hentry","category-announcements"],"jetpack_featured_media_url":"https:\/\/onefact.net\/wp-content\/uploads\/2015\/08\/operation_parameter-208x300-1532009.png","jetpack_sharing_enabled":true,"_links":{"self":[{"href":"https:\/\/onefact.net\/wp-json\/wp\/v2\/posts\/1081","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/onefact.net\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/onefact.net\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/onefact.net\/wp-json\/wp\/v2\/users\/3"}],"replies":[{"embeddable":true,"href":"https:\/\/onefact.net\/wp-json\/wp\/v2\/comments?post=1081"}],"version-history":[{"count":1,"href":"https:\/\/onefact.net\/wp-json\/wp\/v2\/posts\/1081\/revisions"}],"predecessor-version":[{"id":1581,"href":"https:\/\/onefact.net\/wp-json\/wp\/v2\/posts\/1081\/revisions\/1581"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/onefact.net\/wp-json\/wp\/v2\/media\/1324"}],"wp:attachment":[{"href":"https:\/\/onefact.net\/wp-json\/wp\/v2\/media?parent=1081"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/onefact.net\/wp-json\/wp\/v2\/categories?post=1081"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/onefact.net\/wp-json\/wp\/v2\/tags?post=1081"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}