摘要
为了发现需求工程中层次目标模型的目标关系,提出了一种利用XML文件存储目标模型的目标关系发现方法.首先从软件系统需求文档中提取目标,使用AND\OR树对目标进行分解,根据目标之间的关系建立层次目标模型,将建立好的目标模型存储为XML文件;然后按照规则文件规范给出目标关系规则文件,使用转换程序将规则文件自动生成目标关系查询文件;最后在XML开发工具中运行查询文件即可得到目标关系查询结果.通过实例机票预订管理系统详细的描述了目标发现方法的过程,在Altova XMLSpy开发环境中给出了父目标和非功能目标的查询实现.实验结果表明将层次目标模型保存在XML文件中有利于目标模型中信息的提取,使用XQuery能实现对目标模型XML文件中目标关系的自动发现.
To discover the relationship between goals in hierarchical goal model in requirements engineering,a method for discovering goal relationship using XML file to store goal model was proposed. First, the goals were extracted from requirements document of a software system and were decomposed using AND / OR tree;hierarchical goal model was established based on the relation among goals. Second, a rule file of goal relation was given according to the specification of rule file and was transformed into a query file using conversion program. Finally, the query result of goal relation was obtained by running the query file in XML development tool. The process of the proposed method was illustrated by a case study of a ticket booking management system. The query realization of father goal and non-functional was got in Altova XMLSpy development environment. The results indicate that storing goal model into XML file is beneficial to get information in goal model, and using XQuery can realize the discovery of goal relationship in goal model.
出处
《武汉工程大学学报》
CAS
2015年第4期51-55,共5页
Journal of Wuhan Institute of Technology
基金
国家自然科学基金项目(61272115
60873024)
湖北省教育厅重点研究项目(D20121508)
湖北省教育厅优秀中青年团队项目(T201206)
关键词
目标模型
规则
目标关系
goal model
XML
rule file
goal relationship