首页    期刊浏览 2024年11月26日 星期二
登录注册

文章基本信息

  • 标题:Generating Instance Graphs from Class Diagrams with Adaptive Star Grammars
  • 作者:Berthold Hoffmann ; Mark Minas
  • 期刊名称:Electronic Communications of the EASST
  • 电子版ISSN:1863-2122
  • 出版年度:2011
  • 卷号:39
  • 语种:English
  • 出版社:European Association of Software Science and Technology (EASST)
  • 摘要: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. Object configurations are essentially graphs, so that class diagrams define graph languages. 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 diagram 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 non-unique associations, composition associations, class generalization, association subsetting and redefinition. This is made possible by using adaptive star grammars, a special kind of graph grammars.
Loading...
联系我们|关于我们|网站声明
国家哲学社会科学文献中心版权所有