首页 | 官方网站   微博 | 高级检索  
     

面向领域驱动设计的逆向建模支持方法
引用本文:钟陈星,李文君,任贵杰,荣国平.面向领域驱动设计的逆向建模支持方法[J].软件学报,2022,33(7):2562-2580.
作者姓名:钟陈星  李文君  任贵杰  荣国平
作者单位:南京大学软件学院, 江苏 南京 210093;计算机软件新技术国家重点实验室(南京大学), 江苏 南京 210023
基金项目:国家自然科学基金(62072227,61802173);国家重点研发计划(2019YFE0105500);江苏省政府间双边创新项目(BZ2020017);南京大学计算机软件新技术国家重点实验室创新项目(ZZKT2019B01)
摘    要:领域驱动设计作为一种应对领域复杂性的软件开发方法,近年来得到了广泛应用.作为其中的关键步骤,领域建模仍然面临着领域模型与程序设计之间松散的逻辑关系带来的种种问题.为了应对此问题,基于模型驱动的逆向工程,提出了一种面向领域驱动设计的代码到模型的转换方法,以更好地支持领域建模,并实现了自动化工具原型.该方法能够实时抽象出程序设计对应的领域模型,一方面有助于通过对比程序设计与领域模型的分歧来避免设计偏离模型,另一方面减少了知识消化过程中对代码实现细节的依赖,从而促进了程序设计对建模过程的反馈.案例研究部分将该方法应用于实际软件项目,结果充分表明了其有效性.

关 键 词:领域驱动设计  代码到模型转换  模型驱动的逆向工程  领域模型  程序设计
收稿时间:2020/9/13 0:00:00
修稿时间:2020/10/26 0:00:00

Reverse Modeling Support Method for Domain-driven Design
ZHONG Chen-Xing,LI Wen-Jun,REN Gui-Jie,RONG Guo-Ping.Reverse Modeling Support Method for Domain-driven Design[J].Journal of Software,2022,33(7):2562-2580.
Authors:ZHONG Chen-Xing  LI Wen-Jun  REN Gui-Jie  RONG Guo-Ping
Affiliation:Software Institute, Nanjing University, Nanjing 210093, China;State Key Laboratory for Novel Software Technology (Nanjing University), Nanjing 210023, China
Abstract:As a software development method to tackling the domain complexity, domain-driven design has been widely applied in recent years. However, as a key activity in domain-driven design, domain modeling is still facing the problems caused by the loose relationship between domain model and programming. To address this issue, this study proposes a code to model transformation method following the model-driven reverse engineering methodology. The method can abstract model designing from code in real-time, thus facilitates domain modeling in two ways. On the one hand, it enables comparing domain model and programs to avoid the deviation of programming from modeling. On the other hand, it reduces the dependence on the code details during the knowledge crunching process, thus promotes the feedback on modeling. A case study is conducted in a real scenario and it proves the validity of the proposed method.
Keywords:domain-driven design|code to model transformation|model-driven reverse engineering|domain model|programming
点击此处可从《软件学报》浏览原始摘要信息
点击此处可从《软件学报》下载全文
设为首页 | 免责声明 | 关于勤云 | 加入收藏

Copyright©北京勤云科技发展有限公司    京ICP备09084417号-23

京公网安备 11010802026262号