Font Size: a A A

Research On Automatic Generation Of Requirement Documents Based On Mode

Posted on:2023-05-13Degree:MasterType:Thesis
Country:ChinaCandidate:T S BaoFull Text:PDF
GTID:2568306785964409Subject:Computer Science and Technology
Abstract/Summary:PDF Full Text Request
Requirements documentation is an important artifact throughout the software life cycle.As a common agreement between customers and developers,requirements documents are used for customer review and validation of requirements.Faced with the lack of requirements documentation in model-driven development,requirements documentation generation from models has been widely studied.The main problems currently faced are the difficulty of interpreting OCL constraints attached to models and the insufficient information of requirements documents generated from individual model diagrams.In this paper,we study model-based requirements document generation,and the specific work are as follows.(1)To address the difficulty of interpreting OCL constraints incidental to models,this paper proposes a method OCL2 NL for generating natural language interpretations from OCL contracts.First,OCL expressions are divided into 15 basic operations according to their different roles in contracts,and different transformation rules are formulated for each basic operation.By applying these transformation rules,the OCL expressions are mapped to natural language that interprets their semantics.Secondly,based on the information of input parameters and return types in the signature part of the OCL contract,the expressions that interpret this information are found in the contract,and the transformation rules are applied to map the expressions to natural language,thus generating parameter descriptions and result descriptions.Experiments were conducted in four cases,and the results show that 97.06% of OCL expressions and 87.68% of OCL contract signatures can be successfully generated into natural language,and the generated natural language can effectively interpret OCL according to the manual evaluation.(2)To address the problem of insufficient information of requirements documents generated by a single model diagram,this paper proposes the RM2 Doc method.Firstly,RM2 Doc takes multiple UML diagrams of conceptual class diagram,use case diagram and system sequence diagram as input,and closely links the natural language requirements generated by each model diagram to form a requirements document that generates a clear structure.Second,as part of RM2 Doc,OCL2NL generates natural language based on the system operation contract,and these natural language requirements are organized into requirements documents to refine the requirements information in the documents.A case study of four cases shows that all parts of the system operation description can be generated successfully except for 19.57% of the system operation descriptions where the generation of parts fails.
Keywords/Search Tags:UML, OCL, Requirements Model, Requirements Documents, Automatic Documentation
PDF Full Text Request
Related items