RequirementsLevelClassification(需求的分类)
Todealwiththediversityinrequirementstypes,Sommerville()suggests
organizingthemintothreelevelsofabstraction:
Userrequirements
Systemrequirements
Softwaredesignspecifications
Userrequirements(用户需求)areabstractstatementswritteninnaturallanguagewith
accompanyinginformaldiagrams.Theyspecifywhatservices(userfunctionality)
thesystemisexpectedtoprovideandanyconstraints.Inmanysituationsuserstories
canplaytheroleofuserrequirements.
Systemrequirements(系统需求)aredetaileddescriptionsoftheservicesandconstraints.
Systemrequirementsaresometimesreferredtoasfunctionalspecificationortechnical
annex.Theserequirementsarederivedfromanalysisoftheuserrequirements.
Theyactasacontractbetweenclientandcontractor,sotheyshouldbe
structuredandprecise.Usecasescanplaytheroleofsystemrequirementsin
manysituations.
Softwaredesignspecifications(软件需求)emergefromtheanalysisanddesign
documentationusedasthebasisforimplementationbydevelopers.Thesoftware
specificationisessentiallyderiveddirectlyfromanalysisofthesystemspecification.
Thesoftwarerequirementsspecificationdocument(SRS)isthe“contractual”document
thatwegenerallyrefertowhenwespeakofa“software”or“system”requirements
specification.Inthecaseofahybridhardware/softwaresystem,(考虑软件和硬件系统)theSRSwouldincludebothdetaileddesignelementsforthesoftwareaswellashardware
(e.g.,schematicdiagramsandlogicdiagrams).Inthecaseofapurelymechanical
system,designdrawingstaketheplaceoftheSRS.
要求等级分类(需求的分类)
为了应对在规定类型的多样性,萨默维尔()建议
它们组织成三个层次的抽象:
用户要求
系统要求
软件设计规范
用户要求(用户需求)是抽象的语句写在自然语言与
伴随非正式图。他们指定哪些服务(用户功能)
该系统预计将提供与任何约束。在许多情况下,用户故事
可以播放用户需求的作用。
系统要求(系统需求)是服务和约束的详细说明。
系统的要求,有时被称为功能规范或技术
附件。这些要求都源于的用户需求的分析。
他们作为业主和承包商之间的合同,所以他们应该是
结构化的和精确的。用例可以发挥系统需求的作用
许多情况下。
软件设计规范(软件需求)出现从分析和设计
作为基础,实施开发文档。该软件
说明书中基本上直接从系统规范的分析而得。
软件需求规格文件(SRS)是“契约”的文件
我们一般指的是,当我们谈论“软件”或“系统”的要求
specification.In混合的硬件/软件系统的情况下,(考虑软件和硬件系统)将SRS将包括用于软件既详细设计元素以及硬件
(例如,原理图和逻辑图)。在一个纯粹的机械的情况下
系统,设计图纸取SRS的地方。