软件工程-第2章-数据流图.ppt_第1页
软件工程-第2章-数据流图.ppt_第2页
软件工程-第2章-数据流图.ppt_第3页
软件工程-第2章-数据流图.ppt_第4页
软件工程-第2章-数据流图.ppt_第5页
已阅读5页,还剩39页未读 继续免费阅读

下载本文档

版权说明:本文档由用户提供并上传,收益归属内容提供方,若内容存在侵权,请进行举报或认领

文档简介

ToolsofSoftwareNeedAnalyzing需求分析工具 NingHong yun2009 8 ToolsofSoftwareNeedAnalyzing需求分析工具 Dataflowdiagram DFD 数据流图 thehierarchicalstructureofDFD 数据流图的层次结构 StructuralanalysismethodBasedonDFD 基于DFD的结构化分析方法 TheprincipleofCheckingDFD 检查和修改数据流图的原则 Datadictionary DD 数据词典 Sometoolswritingthebasicprocessinglogicdescription 基本加工逻辑描述的工具 StructuredEnglishDecisiontableDecisionTree Dataflowdiagram DFD 数据流图 ThemostimportanttoolsofProjectNeedAnalyzingUsedforStageofFeasibilitystudyStageofNeedAnalyzing进行项目需求分析的重要工具适用的软件项目开发阶段 可行性研究阶段软件需求分析阶段 Dataflowdiagramofthemaingraphicelements 主要图形元素 DFDofBankWithdrawalsProcess描述银行取款过程的数据流图 ExampleofDFD DFDofOrderSystem订货系统的数据流图 ExampleofDFD BranchDataflow 分支数据流 thehierarchicalstructureofDFD 数据流图的层次结构 Usingthehierarchicalstructure 层次结构 Method gradualdecomposition 逐步分解 graduallydecomposethesystemintoseveralfunctionalmodels 将系统逐步分解成若干功能模块 分层数据流图 Example Top levelDFD 顶层流图 Containsonlyoneprocessing TheunderlyingDFD 底层流图 itsprocessingwithoutfurtherdecompositionMiddlelayerflowdiagram 中间层流图 isthedetailedprocessingofoneofitsfatherDFD atthesametime itcanbedecomposedintoagroupofsubDFD 顶层流图 仅包含一个加工 它代表被开发系统 它的输入流是该系统的输入数据 输出流是系统所输出数据底层流图 是指其加工不需再做分解的数据流图 它处在最底层中间层流图 则表示对其上层父图的细化 它的每一加工可能继续细化 形成子图 Example BuildinganStorebusinessprocessingsystem 商店业务处理系统 Analyzing Top levelDFD 顶层流图 reflectsthetargetofthesystem 这个数据流图只是一个高层的系统逻辑模型 它反映了目标系统要实现的功能 StructuralanalysismethodBasedonDFD 基于DFD的结构化分析方法 Drawingthetop levelDFD 顶层流图 0层 FindoutinputandoutputofthesystemFindoutthedatasourceandtheend pointofthedataflowDrawthetop levelDFDtoreflectthemostimportantbusinessprocesses首先确定系统的输入和输出确定数据流输入的源点和输出终点是顾客和供应商 根据商店业务 画出顶层数据流图 以反映最主要业务处理流程 DrawingstepsofDFD 数据流图绘制步骤 StructuralanalysismethodBasedonDFD 基于DFD的结构化分析方法 Storebusinessprocessingsystem商店业务处理系统 Drawingthe1 levelDFD 1层流图 Byanalyzing weknowthatstorebusinessprocesseshasthreemainfunctions marketing purchasing accounting Fromtheinputdataflowoftheprocessing 事务处理 drawtheprocessingindetail graduallytotheoutputdataflowoftheprocessing 经过分析 商店业务处理的主要功能应当有销售 采购 会计三大项 然后从输入端开始 根据商店业务工作流程 画出 事务处理 的数据流流经的各加工框 逐步画到输出端 得到第一层数据流图 The1 levelofDFD 第一层数据流图 销售细化 采购细化 TheprincipleofCheckingDFD 检查和修改数据流图的原则 DataflowdiagramofallthegraphicsymbolsislimitedtotheaforementionedfourbasicgraphicelementsDataflowdiagramofthemainchartmustincludetheaforementionedfourbasicelementsDataflowdiagramofthemainchartonthedatastreammustbeclosedintheexternalentitiesEachprocessingatleastoneinputdatastreamandanoutputdatastream数据流图上所有图形符号只限于前述四种基本图形元素数据流图的主图必须包括前述四种基本元素 缺一不可数据流图的主图上的数据流必须封闭在外部实体之间每个加工至少有一个输入数据流和一个输出数据流 Inthedataflowchart accordingtothelayertotheprocessingboxnumber AnysubgraphmustbeconsistentwithoneprocessintheupperDFD DFDcanbeaddedtothematerialflow tohelpusersunderstandtheDFD 在数据流图中 需按层给加工框编号 编号表明该加工所处层次及上下层的亲子关系规定任何一个数据流子图必须与它上一层的一个加工对应 两者的输入数据流和输出数据流必须一致 此即父图与子图的平衡数据流图分层 每个主要处理都细化为一张数数据流图分图 一般每个图中少于9个处理可以在数据流图中加入物质流 帮助用户理解数据流图 EachelementmusthaveanameDFDcannotbeattachedtocontrolflowInthebeginning thetrivialdetailscouldbeignored inordertoconcentrateonthemaindatastream图上每个元素都必须有名字数据流图中不可夹带控制流初画时可以忽略琐碎的细节 以集中精力于主要数据流 NamingforeachelementsofDFDIfitisdifficulttogiveaname itispossiblebecauseDFDdecompositionproblemDataFlow Database UsingdatanounProcessing usingverb objectphrase Datasource usingnormalnoun数据流 或数据存储 有意义且具有代表性如果在为某个数据流 或数据存储 起名字时遇到了困难 则很可能是因为对数据流图分解不恰当造成的 应该试试重新分解 处理 有意义且采用动宾词组 避免用 处理 加工 等空洞词 如果必须用两个动词才能描述整个处理的功能 则把这个处理再分解成两个处理可能更恰当些 数据源点 终点 普通名字 Datadictionary DD 数据词典 Datadictionaryanddataflowdiagramwithaclearexpressionofdata processingrequirementsTermtodescribe inthedataflowdiagramforeachwasnamedthegraphicelementsaredefined itscontentsareasfollows name aliasornumber classification description definition location other etc 数据词典与数据流图配合 能清楚地表达数据处理的要求词条描述 对于在数据流图中每一个被命名的图形元素 均加以定义 其内容有 名字 别名或编号 分类 描述 定义 位置 其它 等 1 DescriptionofDataFlow 数据流描述 DataStreamName Description reasonandresulttheSource thedatacomingfromthedirection thedatacomingtothecomponents datastructureTheamountofdata thevolumeofdata thecirculationofdata数据流名 说明 简要介绍作用即它产生的原因和结果数据流来源 来自何方数据流去向 去向何处数据流组成 数据结构数据量流通量 数据量 流通量 2 thedescriptionofdata 数据元素描述 NameType digitalortextLengthValuerangeRelateddataelementsanddatastructure数据元素名 类型 数字 离散值 连续值 文字 编码类型 长度 取值范围 相关的数据元素及数据结构 DataFileNameBriefly WhatisthedatastoredInputdataOutputdataDatafilescomposition thedatastructureStoragemethods theorder direct keycodeAccessFrequency数据文件名 简述 存放的是什么数据输入数据 输出数据 数据文件组成 数据结构存储方式 顺序 直接 关键码存取频率 3 thedescriptionofdatafile 数据文件描述 ProcessingNameIDNumber toreflectthelevelofprocessingAbriefdescription processinglogicandfunctionintroductionInputdatastreams OutputdatastreamProcessinglogic methodofprocessing加工名 加工编号 反映该加工的层次简要描述 加工逻辑及功能简述输入数据流 输出数据流 加工逻辑 简述加工程序 加工顺序 4 thedescriptionofprocess 处理描述 Name externalentitynameAbriefdescription WhatexternalentitiesThedatastream AboutdataflowsThenumberofthedatasource名称 外部实体名简要描述 什么外部实体有关数据流数目 5 thedescriptionofdatasource 源点及汇 终 点描述 Difficulty1 howtodescribeDatastructure SymbolMeaningForexample符号含义举例 被定义为 与x a b 或 或x a b x a b 或m n重复x a x 3 a 8 可选x a 基本数据元素x a 连结符x 1 9 Example BackPassbookFormat 存折格式 存折 户名 所号 帐号 开户日 性质 印密 1 存取行 50户名 2 字母 24所号 001 999 帐号 00000001 99999999 开户日 年 月 日性质 1 6 注 1 表示普通户 5 表示工资户等印密 0 注 印密在存折上不显示存取行 日期 摘要 支出 存入 余额 操作 复核 EachprocessinDFDmusthaveabasicprocessinglogicdescription Thebasicprocessinglogicdescriptionmustdescribehowtotransforminputdatastreamtotheoutputdatastreamandgivetheprocessingrules对数据流图的每一个加工 必须有一个基本加工逻辑说明基本加工逻辑说明必须描述基本加工如何把输入数据流变换为输出数据流的加工规则 Difficulty2 howtodescribetheprocessinglogic givethestrategyfortherealizationofprocessing ratherthangivedetailsoftherealizedproduct Theinformationcontainedshouldbeadequate comprehensiveanduseful andthereisnoduplicationofredundantinformation 加工逻辑说明必须描述实现加工的策略而不是实现加工的细节加工逻辑说明中包含的信息应是充足的 完备的 有用的 没有重复的多余信息 Difficulty2 howtodescribetheprocessinglogic Sometoolswritingthebasicprocessinglogicdescription StructuredEnglish Decisiontable DecisionTree 结构化英语 判定表 判定树 Sometoolswritingthebasicprocessinglogicdescription StructuredEnglishglossarybyEnglishcommandverbAnynamedefinedinDataDictionarylimitedCustomwordsLogicalrelationshipwords suchas IF THEN ELSE SWITCH CASE WHILE DO REPEAT UNTIL 结构化英语的词汇表由英语命令动词数据词典中定义的名字有限的自定义词逻辑关系词IF THEN ELSE SWITCH CASE WHILE DO REPEAT UNTIL等 Sometoolswritingthebasicprocessinglogicdescription AMid languagebetweennaturallanguageandformallanguageUsestructuredsegmentationandnaturallanguagephraseThreebasicstructure SimpledeclarativesentenceRepeat WHILE DOorREPEAT UNTILstructureJudge IF THEN ELSEorSWTITCH CASEstructure是一种介于自然语言和形式化语言之间的语言正文用基本控制结构进行分割 每个操作可用自然语言短语来表示其基本控制结构有三种 简单陈述句结构 避免复合语句 重复结构 WHILE DO或REPEAT UNTIL结构 判定结构 IF THEN ELSE或SWTITCH CASE结构 Example Storebusinessprocessingsystems Checkinvoice 商店业务处理系统中 检查发货单 IF发货单金额超过 500THENIF欠款超过了60天THEN在偿还欠款前不予批准ELSE 欠款未超期 发批准书 发货单ENDIFELSE 发货单金额未超过 500 IF欠款超过60天THEN发批准书 发货单及赊欠报告ELSE 欠款未超期 发批准书 发货单ENDIFENDIF DecisiontableIfthedataflowdiagramofprocessingneedtorelyontheconditionsinavarietyoflogicvalue usethetabletodeterminemoreappropriatetodescribe如果数据流图的加工需要依赖于多个逻辑条件的取值 使用判定表来描述比较合适 Sometoolswritingthebasicprocessinglogicdescription Example Inspectioninvoice asanexample 以 检查发货单 为例 DecisionTreeDecisiontreeisusedtoexpressforprocessinglogic Sometim

温馨提示

  • 1. 本站所有资源如无特殊说明,都需要本地电脑安装OFFICE2007和PDF阅读器。图纸软件为CAD,CAXA,PROE,UG,SolidWorks等.压缩文件请下载最新的WinRAR软件解压。
  • 2. 本站的文档不包含任何第三方提供的附件图纸等,如果需要附件,请联系上传者。文件的所有权益归上传用户所有。
  • 3. 本站RAR压缩包中若带图纸,网页内容里面会有图纸预览,若没有图纸预览就没有图纸。
  • 4. 未经权益所有人同意不得将文件中的内容挪作商业或盈利用途。
  • 5. 人人文库网仅提供信息存储空间,仅对用户上传内容的表现方式做保护处理,对用户上传分享的文档内容本身不做任何修改或编辑,并不能对任何下载内容负责。
  • 6. 下载文件中如有侵权或不适当内容,请与我们联系,我们立即纠正。
  • 7. 本站不保证下载资源的准确性、安全性和完整性, 同时也不承担用户因使用这些下载资源对自己和他人造成任何形式的伤害或损失。

评论

0/150

提交评论