Code Generation from UML State Chart Diagrams

Xingchan Li, Xinquan Wu
{"title":"Code Generation from UML State Chart Diagrams","authors":"Xingchan Li, Xinquan Wu","doi":"10.1109/icmss55574.2022.00010","DOIUrl":null,"url":null,"abstract":"Event-driven systems can be modeled and implemented by Unified Modeling Language (UML) state chart. However, with the increase of complexity of the state chart diagram has a serious effect on code generation and code coupling. This paper presents a pattern-based approach to generate code from the UML state chart diagram. Firstly, a novel design pattern is exploited for the implementation of the state diagram which includes hierarchical, concurrent, and history states. The proposed pattern is an extension of state pattern by using the concept of object composition and delegation. Secondly, the mapping rules are defined for correspondence to the new pattern. Then, the code templates are customized by complying with the mapping rules. Finally, The effectiveness of the method proposed in this paper is analyzed based on the case of a microwave oven control system.","PeriodicalId":338995,"journal":{"name":"2022 International Conference on Management Engineering, Software Engineering and Service Sciences (ICMSS)","volume":"163 1","pages":"0"},"PeriodicalIF":0.0000,"publicationDate":"2022-01-01","publicationTypes":"Journal Article","fieldsOfStudy":null,"isOpenAccess":false,"openAccessPdf":"","citationCount":"1","resultStr":null,"platform":"Semanticscholar","paperid":null,"PeriodicalName":"2022 International Conference on Management Engineering, Software Engineering and Service Sciences (ICMSS)","FirstCategoryId":"1085","ListUrlMain":"https://doi.org/10.1109/icmss55574.2022.00010","RegionNum":0,"RegionCategory":null,"ArticlePicture":[],"TitleCN":null,"AbstractTextCN":null,"PMCID":null,"EPubDate":"","PubModel":"","JCR":"","JCRName":"","Score":null,"Total":0}
引用次数: 1

Abstract

Event-driven systems can be modeled and implemented by Unified Modeling Language (UML) state chart. However, with the increase of complexity of the state chart diagram has a serious effect on code generation and code coupling. This paper presents a pattern-based approach to generate code from the UML state chart diagram. Firstly, a novel design pattern is exploited for the implementation of the state diagram which includes hierarchical, concurrent, and history states. The proposed pattern is an extension of state pattern by using the concept of object composition and delegation. Secondly, the mapping rules are defined for correspondence to the new pattern. Then, the code templates are customized by complying with the mapping rules. Finally, The effectiveness of the method proposed in this paper is analyzed based on the case of a microwave oven control system.
查看原文
分享 分享
微信好友 朋友圈 QQ好友 复制链接
本刊更多论文
从UML状态图生成代码
事件驱动系统可以通过统一建模语言(UML)状态图进行建模和实现。然而,随着状态图复杂性的增加,对代码生成和代码耦合产生了严重的影响。本文提出了一种基于模式的方法来从UML状态图中生成代码。首先,利用一种新的设计模式来实现状态图,其中包括层次状态、并发状态和历史状态。通过使用对象组合和委托的概念,提出的模式是状态模式的扩展。其次,定义与新模式对应的映射规则。然后,通过遵循映射规则来定制代码模板。最后,以某微波炉控制系统为例,对所提方法的有效性进行了分析。
本文章由计算机程序翻译,如有差异,请以英文原文为准。
求助全文
约1分钟内获得全文 去求助
来源期刊
自引率
0.00%
发文量
0
期刊最新文献
Supply Chain Risk Propagation Model Based on Double-Layer Dynamic Evolution Network Evaluation of Energy Conservation and Emission Reduction Efficiency in the Pearl River Delta Region ––Measurement based on Super Efficiency SBM and Malmquist Model Study on Vulnerability Evaluation of Emergency Logistics System Based on DPSIR and Fuzzy Matter-Element Model Code Generation from UML State Chart Diagrams Supplier Partner Dependency from the Perspective of Social Exchange: The Moderating Effect of Partner Power
×
引用
GB/T 7714-2015
复制
MLA
复制
APA
复制
导出至
BibTeX EndNote RefMan NoteFirst NoteExpress
×
×
提示
您的信息不完整,为了账户安全,请先补充。
现在去补充
×
提示
您因"违规操作"
具体请查看互助需知
我知道了
×
提示
现在去查看 取消
×
提示
确定
0
微信
客服QQ
Book学术公众号 扫码关注我们
反馈
×
意见反馈
请填写您的意见或建议
请填写您的手机或邮箱
已复制链接
已复制链接
快去分享给好友吧!
我知道了
×
扫码分享
扫码分享
Book学术官方微信
Book学术文献互助
Book学术文献互助群
群 号:481959085
Book学术
文献互助 智能选刊 最新文献 互助须知 联系我们:info@booksci.cn
Book学术提供免费学术资源搜索服务,方便国内外学者检索中英文文献。致力于提供最便捷和优质的服务体验。
Copyright © 2023 Book学术 All rights reserved.
ghs 京公网安备 11010802042870号 京ICP备2023020795号-1