arXivDaily arXiv每日学术速递 周一至周五更新
arXiv 2406.11002cs.SE
收藏

增强类图动态性:一种使用 ChatGPT 的自然语言方法

Enhancing Class Diagram Dynamics: A Natural Language Approach with ChatGPT

Djaber Rouabhia, Ismail Hadjadj

AI总结:

本文提出利用 ChatGPT 和 NLP 从自然语言用例表中提取方法与交互,动态更新 PlantUML 类图,验证其可提升类图准确性、完整性并契合敏捷开发。

摘要:

将人工智能(AI)融入软件工程,能够通过提升效率、准确性和创新性来变革传统实践。本研究探讨使用 ChatGPT(一种先进的 AI 语言模型)来动态增强 UML 类图,这是一个尚未得到充分研究的领域。传统上,类图的创建和维护是人工、耗时且容易出错的过程。本研究利用自然语言处理(NLP)技术,从详细的用例表中自动提取方法和交互,并将它们集成到类图中。该方法包括以下步骤:(1)由硕士研究生为一个“废物回收平台”开发详细的自然语言用例表;(2)基于这些表创建初始静态类图;(3)通过集成 ChatGPT 迭代丰富类图,以分析用例并建议方法;(4)审查这些方法并将其纳入类图;(5)动态更新 PlantUML 类图,随后进行评估和细化。研究结果表明,AI 驱动的方法显著提高了类图的准确性和完整性。此外,动态增强与敏捷开发实践高度契合,有助于快速迭代和持续改进。主要贡献包括展示了将 AI 融入软件建模任务的可行性和收益,提供了系统行为与交互的全面表示,并凸显了 AI 在简化和改进现有软件工程流程方面的潜力。未来研究应解决已发现的局限性,并探索 AI 在其他软件模型中的应用。

英文摘要:

Integrating artificial intelligence (AI) into software engineering can transform traditional practices by enhancing efficiency, accuracy, and innovation. This study explores using ChatGPT, an advanced AI language model, to enhance UML class diagrams dynamically, an underexplored area. Traditionally, creating and maintaining class diagrams are manual, time-consuming, and error-prone processes. This research leverages natural language processing (NLP) techniques to automate the extraction of methods and interactions from detailed use case tables and integrate them into class diagrams. The methodology involves several steps: (1) developing detailed natural language use case tables by master's degree students for a "Waste Recycling Platform," (2) creating an initial static class diagram based on these tables, (3) iteratively enriching the class diagram through ChatGPT integration to analyze use cases and suggest methods, (4) reviewing and incorporating these methods into the class diagram, and (5) dynamically updating the PlantUML \cite{plantuml} class diagram, followed by evaluation and refinement. Findings indicate that the AI-driven approach significantly improves the accuracy and completeness of the class diagram. Additionally, dynamic enhancement aligns well with Agile development practices, facilitating rapid iterations and continuous improvement. Key contributions include demonstrating the feasibility and benefits of integrating AI into software modeling tasks, providing a comprehensive representation of system behaviors and interactions, and highlighting AI's potential to streamline and improve existing software engineering processes. Future research should address identified limitations and explore AI applications in other software models.

机构、总结、中文摘要均由AI分析而来,可能存在错误,请以论文正文为准。

↑