软件需求获取形式化的案例研究
2010-05-13邹盛荣,彭昱静,郭忠伟,刘春秋,周塔,卫丽,顾爱华
邹盛荣,彭昱静,郭忠伟,刘春秋,周 塔,卫 丽,顾爱华
摘 要:软件需求获取是软件建模和分析的基础,传统的软件需求建模方法主要有2个重大的缺陷:一是非形式化的需求描述常导致需求的歧义性和不一致性,因而难以确认和验证;二是易变性。针对此问题,结合实例提出用UML(Unified Modeling Language)的用例驱动获取软件需求,并将得来的需求用形式化B方法的机器来表示需求,实现了软件需求的形式化。实践证明,用例驱动的软件需求获取可以有效地获取正确、合理的软件需求,加上用形式化B方法的需求描述,可以有效地避免上述两大缺陷。
关键词:需求获取;UML;用例驱动;B方法;形式化需求
中图分类号:TP309文献标识码:A
文章编号:1004-373X(2009)12-045-04
Case Study of Acquiring Formal Software Requirement
ZOU Shengrong,PENG Yujing,GUO Zhongwei,LIU Chunqiu,ZHOU Ta,WEI Li,GU Aihua
(Information Engineering College,Yangzhou University,Yangzhou,225009,China)
Abstract:Acquiring software requirement is the basis of software modeling and analysis,traditional software requirement modeling has two important defects:one is informal requirements description often leads toambiguity and inconsistency of requirements,so it is difficult to validate and verificate;and the other is variability.According to the above problems,this paper presents the use case driven analysis method of software requirements by Unitied Modeling Language(UML),and describes it by formal method,relizes formal software requirement.Practice proves that acquiring software requirement of use case driven can obtain effectively correct and reasonable software requirement,in addition to requirement description of formal B method.This method effectively avoids the above problems.
Keywords:requirement acquirement;UML;use case driven;B method;formal requirement
0 引 言
随着计算机技术的发展,软件规模日益庞大,软件开发也日益复杂。随之而来的问题是许多IT系统都无法实现期望,它们要么无法实现业务目标,要么无法有效支持用户任务,要么成本很难控制在预算之内。究其原因,相当多的软件失败是因为需求不明白或者不确定而致。自1991年J.Martin提出“需求工程”[1] 概念后,需求分析作为软件工程的一个重要阶段开始形成一门独立学科,称为需求工程。软件需求的重要性正在不断提高,因为它是用户预先知道将以什么样的成本,获得什么样产品的途径。
需求工程在软件系统开发中的重要性已不容置疑。需求的获取是需求工程的主体,是软件系统开发过程中最为困难,也是最为重要的部分。只有真正满足用户需求的软件产品才能为用户接受,不能满足用户需求的产品,不管采用了多么先进的技术,对用户来说都是毫无用处的。……
