arXivDaily arXiv每日学术速递 周一至周五更新
arXiv周末暂无论文更新,休息一下吧,周末愉快~~
arXiv 1708.01796cs.SE
收藏

从用例规范自动生成分析类图

Automatic generation of analysis class diagrams from use case specifications

Jitendra Singh Thakur, Atul Gupta

摘要:

在面向对象的软件开发中,分析建模涉及从软件需求中识别问题级对象以及它们之间的关系的任务。软件需求通常用某种自然语言编写,分析建模通常由有经验的分析人员执行。软件需求是非结构化的文本,而分析模型通常是结构化的UML图,两者之间存在巨大的差距,加上人为的疏忽,不可避免地使转换过程容易出错。此过程的自动化可以帮助减少转换中的错误。在本文中,我们提出了一个工具支持的方法,自动转换的用例规格说明书的英文语言到分析类图。该方法分为四个步骤。它首先将用例的文本规范作为输入,然后使用自然语言解析器为规范中的每个句子生成类型依赖和词性标记。然后,使用一组全面的句子结构规则来识别每个句子的句子结构。接着,它应用一组转换规则的类型依赖和词性标记的句子,发现问题级对象和它们之间的关系。最后,它生成并可视化分析类图。我们进行了一个对照实验,比较的正确性,完整性和冗余的分析类图所产生的方法与现有的自动化方法。实验结果表明,该方法生成的分析类图比其他方法生成的分析类图更正确、更完整、冗余度更低。

英文摘要:

In object oriented software development, the analysis modeling is concerned with the task of identifying problem level objects along with the relationships between them from software requirements. The software requirements are usually written in some natural language, and the analysis modeling is normally performed by experienced human analysts. The huge gap between the software requirements which are unstructured texts and analysis models which are usually structured UML diagrams, along with human slip-ups inevitably makes the transformation process error prone. The automation of this process can help in reducing the errors in the transformation. In this paper we propose a tool supported approach for automated transformation of use case specifications documented in English language into analysis class diagrams. The approach works in four steps. It first takes the textual specification of a use case as input, and then using a natural language parser generates type dependencies and parts of speech tags for each sentence in the specification. Then, it identifies the sentence structure of each sentence using a set of comprehensive sentence structure rules. Next, it applies a set of transformation rules on the type dependencies and parts of speech tags of the sentences to discover the problem level objects and the relationships between them. Finally, it generates and visualizes the analysis class diagram. We conducted a controlled experiment to compare the correctness, completeness and redundancy of the analysis class diagrams generated by our approach with those generated by the existing automated approaches. The results showed that the analysis class diagrams generated by our approach were more correct, more complete, and less redundant than those generated by the other approaches.

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

↑