Art der Veröffentlichung: |
Artikel in Konferenzband |
Autor: |
Minas, Mark, Hoffmann, Berthold |
Herausgeber: |
Echahed, Rachid, Habel, Annegret, Mosbah, Mohamed |
Titel: |
Generating Instance Graphs from Class Diagrams with Adaptive Star Grammars} |
Buch / Sammlungs-Titel: |
International Workshop on Graph Computation Models (GCM 10) |
Band: |
39 |
Seite(n): |
20 pages |
Serie / Reihe: |
Electr. Comm. of the EASST |
Erscheinungsjahr: |
2011 |
Verleger: |
European Association of Software and System Science, Potsdam, Germany |
Abstract / Kurzbeschreibung: |
In model-driven software engineering, class diagrams are used to define the structure of object-oriented software and valid object configurations, i.e., what objects may occur in a program and how they are related. Essentially, object configurations are graphs, so that class diagrams define a graph language. Class diagrams are declarative, i.e., it is quite easy to check whether a graph is an instance of a class diagram. Graph grammars, on the other hand, define a graph language by derivation and are thus well suited for constructing instance graphs. % This paper describes how a class diagrams can be translated into a graph grammar that defines the same graph language as the original class diagram. Such a graph grammar may then be used for, e.g., automatically generating valid object configurations as test cases. In contrast to earlier attempts, the presented approach allows to translate class diagrams with arbitrary multiplicities, unique and not-unique associations, composition associations, and class generalization. This is made possible by using adaptive star grammars, a special kind of graph grammars. |
PDF Version: |
http://www.informatik.uni-bremen.de/~hof/papers/icd.pdf |
Schlagworte: |
program models graph grammars class diagrams |
Status: |
Reviewed |
Letzte Aktualisierung: |
21. 09. 2011 |
|
|