Code generation from UML statecharts

Iftikhar Azim Niaz, Jiro Tanaka

研究成果: Conference contribution

17 被引用数 (Scopus)

抄録

The Unified Modeling Language (UML) statechart diagram is a powerful tool for specifying the dynamic behavior of reactive objects. Generating code from statechart diagrams is a challenging task due to its dynamic nature and because many of the statechart concepts are not supported by the object oriented programming languages. Most of the approaches for implementing UML statecharts diagram either suffer from maintenance problems or implement only a subset of UML statecharts. This paper proposes a new approach to generate efficient and compact executable code from the UML statechart diagram in an object-oriented language like Java using design patterns. In our approach, each state in the statechart becomes a class, which encapsulates all the transitions and actions of the state. The events that have transitions are thus made explicit without using any if or case statement, which leads to a readable, compact and efficient code. The resultant code is easy to maintain. By representing states as objects, we extend the state design pattern to implement the sequential substates and concurrent substates using the concept of object composition and delegation. We also propose an approach to implement compound transitions (fork/join) and history nodes. The proposed approach makes elegant handling of most of the statechart features.

本文言語English
ホスト出版物のタイトルProceedings of the Seventh IASTED International Conference on Software Engineering and Applications
編集者M.H. Hamza
ページ315-321
ページ数7
出版ステータスPublished - 2003 12 1
外部発表はい
イベントProceedings of the Seventh IASTED International Conference on Software Engineering and Applications - Marina del Rey, CA, United States
継続期間: 2003 11 32003 11 5

出版物シリーズ

名前Proceedings of the IASTED International Conference on Software Engineering and Applications
7

Conference

ConferenceProceedings of the Seventh IASTED International Conference on Software Engineering and Applications
国/地域United States
CityMarina del Rey, CA
Period03/11/303/11/5

ASJC Scopus subject areas

  • 工学(全般)

フィンガープリント

「Code generation from UML statecharts」の研究トピックを掘り下げます。これらがまとまってユニークなフィンガープリントを構成します。

引用スタイル