从UML状态图生成代码

Xingchan Li, Xinquan Wu
{"title":"从UML状态图生成代码","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":"{\"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}","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

摘要

事件驱动系统可以通过统一建模语言(UML)状态图进行建模和实现。然而,随着状态图复杂性的增加,对代码生成和代码耦合产生了严重的影响。本文提出了一种基于模式的方法来从UML状态图中生成代码。首先,利用一种新的设计模式来实现状态图,其中包括层次状态、并发状态和历史状态。通过使用对象组合和委托的概念,提出的模式是状态模式的扩展。其次,定义与新模式对应的映射规则。然后,通过遵循映射规则来定制代码模板。最后,以某微波炉控制系统为例,对所提方法的有效性进行了分析。
本文章由计算机程序翻译,如有差异,请以英文原文为准。
Code Generation from UML State Chart Diagrams
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.
求助全文
通过发布文献求助,成功后即可免费获取论文全文。 去求助
来源期刊
自引率
0.00%
发文量
0
×
引用
GB/T 7714-2015
复制
MLA
复制
APA
复制
导出至
BibTeX EndNote RefMan NoteFirst NoteExpress
×
提示
您的信息不完整,为了账户安全,请先补充。
现在去补充
×
提示
您因"违规操作"
具体请查看互助需知
我知道了
×
提示
确定
请完成安全验证×
copy
已复制链接
快去分享给好友吧!
我知道了
右上角分享
点击右上角分享
0
联系我们:info@booksci.cn Book学术提供免费学术资源搜索服务,方便国内外学者检索中英文文献。致力于提供最便捷和优质的服务体验。 Copyright © 2023 布克学术 All rights reserved.
京ICP备2023020795号-1
ghs 京公网安备 11010802042870号
Book学术文献互助
Book学术文献互助群
群 号:481959085
Book学术官方微信