On Implementing Open World Semantic Differencing for Class Diagrams

By: Jan Oliver Ringert, Bernhard Rumpe, Max Stachon

Abstract

Semantic difference analyses support engineers in understanding model-changes on the semantic level and thereby assist change management in Model Driven Development (MDD). A semantic differencing operator for Class Diagrams (CDs) compares two input models based on their legal instances and outputs object structures that are permitted by the first but not the second input-CD. Under the closed-world assumption only instances of explicitly-modeled elements are permitted. This closed-world approach may be less suited for semantic refinement checking in early design phases, where new elements are added to a CD in order to refine it. Instead, an open-world approach can be utilized. In this paper, we outline, evaluate and compare two approaches for extending CDDiff, an existing closed-world semantic differencing operator for CDs, to an open-world operator: The first approach reduces the open-world problem to a bounded search via Alloy. The second approach transforms the input-CDs and reduces the open-world problem to closed-world semantic differencing. It also allows for combining open- and closed-world interpretations of model-elements.

Keywords

class diagrams, uml, difference analysis, semantics, model-driven development, cddiff.

Cite as:

Jan Oliver Ringert, Bernhard Rumpe, Max Stachon, “On Implementing Open World Semantic Differencing for Class Diagrams”, Journal of Object Technology, Volume 22, no. 2 (July 2023), pp. 2:1-14, doi:10.5381/jot.2023.22.2.a11.

PDF | DOI | BiBTeX | Tweet this | Post to CiteULike | Share on LinkedIn

The JOT Journal   |   ISSN 1660-1769   |   DOI 10.5381/jot   |   AITO   |   Open Access   |    Contact