English

CD2Alloy: Class Diagrams Analysis Using Alloy Revisited

Software Engineering 2014-09-09 v1

Abstract

We present CD2Alloy, a novel, powerful translation of UML class diagrams (CDs) to Alloy. Unlike existing translations, which are based on a shallow embedding strategy, and are thus limited to checking consistency and generating conforming object models of a single CD, and support a limited set of CD language features, CD2Alloy uses a deeper embedding strategy. Rather than mapping each CD construct to a semantically equivalent Alloy construct, CD2Alloy defines (some) CD constructs as new concepts within Alloy. This enables solving several analysis problems that involve more than one CD and could not be solved by earlier works, and supporting an extended list of CD language features. The ideas are implemented in a prototype Eclipse plug-in. The work advances the state-of-the-art in CD analysis, and can also be viewed as an interesting case study for the different possible translations of one modeling language to another, their strengths and weaknesses.

Cite

@article{arxiv.1409.2314,
  title  = {CD2Alloy: Class Diagrams Analysis Using Alloy Revisited},
  author = {Shahar Maoz and Jan Oliver Ringert and Bernhard Rumpe},
  journal= {arXiv preprint arXiv:1409.2314},
  year   = {2014}
}

Comments

15 pages, 8 figures

R2 v1 2026-06-22T05:51:11.834Z