首页> 外文会议>Software Engineering >MAPPING UML STATECHARTS TO JAVA CODE
【24h】

MAPPING UML STATECHARTS TO JAVA CODE

机译:将UML状态图映射到JAVA代码

获取原文

摘要

The Unified Modeling Language (UML) statechart diagram is used for modeling the dynamic aspects of systems. The UML statechart diagrams include many concepts that are not present in most popular programming languages, like Java or C++. There exists a gap between high level modeling language and a programming language. There is not a one-to-one mapping between a statechart and its implementation. 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 an approach to generate readable, efficient and compact executable code from the UML statechart diagram in an object-oriented (OO) language like Java using design patterns. By representing states as objects, we extend the state design pattern to implement the hierarchical states using the concept of object composition and delegation. We also propose an approach to implement signal and time events, guards and branches and internal transitions. The proposed approach makes elegant handling of most of the statechart features.
机译:统一建模语言(UML)状态图用于对系统的动态方面进行建模。 UML状态图包含许多在大多数流行的编程语言(例如Java或C ++)中不存在的概念。高级建模语言和编程语言之间存在差距。状态图与其实现之间没有一对一的映射。用于实现UML状态图的大多数方法都遇到维护问题,或者仅实现UML状态图的一个子集。本文提出了一种使用设计模式从面向对象(OO)语言(如Java)从UML状态图生成可读,高效且紧凑的可执行代码的方法。通过将状态表示为对象,我们扩展了状态设计模式,以使用对象组成和委托的概念来实现分层状态。我们还提出了一种实现信号和时间事件,防护和分支以及内部转换的方法。所提出的方法对大多数状态图功能进行了优雅的处理。

著录项

相似文献

  • 外文文献
  • 中文文献
  • 专利
获取原文

客服邮箱:kefu@zhangqiaokeyan.com

京公网安备:11010802029741号 ICP备案号:京ICP备15016152号-6 六维联合信息科技 (北京) 有限公司©版权所有
  • 客服微信

  • 服务号