版权说明:本文档由用户提供并上传,收益归属内容提供方,若内容存在侵权,请进行举报或认领
文档简介
1、系统的分析与设计系统在存储程序的控制下,计算机把数据处理成信息。对系统的定义略加思考,任何一个已知的计算机应用至少包含三个部分,硬件、软件和数据。仅仅编写程序是不够的,因为程序只是系统中的一部分。系统就是为实现一个目标而共同工作的一组部件。例如,考虑一个工资系统,它的目标是为雇员付工资,应包含哪几个部分呢?每天雇员们把他们工作的时数记录在计时卡上,每周末把计时卡收集起来,送给计算中心,在计算中心把计时卡上的数据读给工资程序。当工资程序执行时,程序存取数据文件。最后,打印出工资单,用来分发。为使系统工作,人、处理过程、输入和输出介质、文件、硬件和软件都必须认真地协调。注意,程序只是系统中的一部分
2、。系统分析 因为人们需要信息,所以要开发基于计算机的系统。被称为用户的那些人常常知道需求什么信息,但是他们可能缺乏得到这些信息的计算机的专门知识。计算机技术方面的专业人员,例如程序设计员有这方面的专门知识,但是可能在用户的专业领域内缺少训练。麻烦的是,用户和程序似乎常常讲不同的语言,导致了两者之间的联系障碍。系统分析员是一个专业人员,他能把用户的需求转换成计算机技术术语因此他是用户和技术人员之间的桥梁。像工程师建筑师一样,系统分析员把扎实的技术技能与见识,想象力和一点艺术结合起来去解决问题。 通常,分析员遵循一个意义明确的有条理的过程,至少包括以下几个步骤:1.问题的定义2.分析3.设计4.实
3、现5.维护在每个步骤结尾,研究的结果都要形成文件,提供给用户和程序设计员。 基本的思想是要尽早地抓住和修正错误以及一些未理解之处。 也许通过一个例子说明该过程是最好的方法。设想一个小服装店,成批的购买货物,所货物摆在货架上, 零售给顾客。 一方面,库存太多会造成不必要的开销;另一方面可供挑选的商品太少会使顾客失去购买的信心。 理想上,希望达到一个平衡,货物既充足但又不太多。麻烦的是,随着顾客的购买库存减少了,还有退货以及追加订货等情况,所以货物的清单经常地发生变化。店主喜欢按货物清单购销,刚好在商店售完某种货物之前,再订购这种货。对一项商品,该任务是容易完成的,只要计算一下手头现存的货物数量就
4、行了。遗憾的是商店要经营几百种不同的货物,始终跟踪每一种货物的销售情况是不实际的,也许计算机可以帮这个忙吧!问题定义在系统分析和设计过程中的第一步,是问题的定义。分析员的目标是确定用户需求什么。注意,当这个过程开始时,用户拥有很重要的资料,分析员必须认真地听和学。用户几乎都不是计算机方面的专家,他们大多数人把计算机看成魔术盒,并不关心它是如何工作的。在该阶段上,分析员不必考虑程序、文件或计算机硬件,但他们必须用用户自己的专业术语与用户对话。目的是确保用户和分析员两者都思考同一件事。因此,一份能表达分析员对问题理解程度的清晰的书面报告是必要的。用户应该反复地阅读和修改这份书面报告。此时是在时间、
5、金钱和精力被浪费之前抓出错误和疏漏的好时机。通常,接着初步的问题定义,分析员要进行可行性研究。该研究是整个系统分析和设计一个简略的方案,应力图回答以下三个问题: 1. 问题能解决吗?2. 在用户的环境下问题能解决吗?3.在一个合适的花费上问题能解决吗?如果这些问题中的任何一个得到的是否定回答,那么该系统就不应开发。有了好的问题定义和肯定的可行性研究, 分析员就能着手计划和研究问题的解了。分析当分析开始时,分析员要理解问题,下一步要决定的是为了解决问题必须做什么。用户清楚必须做什么。在分析阶段得到了这方面知识,并正式地形成文件。大多数用户是按着所要完成的功能和要处理的数据元素去思考的,目的是要区
6、分并联接这些关键的功能和数据元素,随之产生逻辑系统设计。从系统的基本功能入手,关键是始终监视货单中每种商品的现存量。因为顾客购买、换货和退货,所以货单要改变,因此系统必须处理顾客办理的手续。店主希望有选择地查看供应中任意一种短缺商品的清单,如果合理的话,定货补充库存,因此系统必须能和经营管理部门对话。最后,经过经营管理部门的核准,系统应该产生一个重新订货单,准备发送给供应商。已知了系统的基本功能,分析员的下一个任务是分析理解这些功能之间逻辑关系的知识。启动这项工作的一个好方法是描述功能之间的数据如何流动。顾名思义,为了用图解方法描述这些数据流,那么数据流程图就是特别有用的。四种符号:数据的源和
7、目的地用方框表示,输入的数据从源进入系统,而输出的数据流到目的地。数据一进入系统,就被若干进程加工或改变,用圆角的矩形表示这些过程。进程可以是程序、过程以及能够改变或传送数据的任何事件。为了后续处理,数据被存储可以是磁盘文件、磁带文件、数据库、一些笔记或者甚至是人的记忆。最后,数据源、数据目的地、处理过程和数据存储之间的数据流向用箭头表示。货单管理系统的初步的数据流程图。从customer(顾客)开始,由此事务进入系统,在这所办理的手续由processtransaction(事务处理程序)处理。stock保存货单中每项商品的数据。为了对新的事务处理起作用,事务处理程序要改变数据。同时,mana
8、gement(经营部门)可通过communicate(通信)存取系统,检查stock中的数据,如果需要的话,请求重新订货。订货单一经核准,generatereorder(产生再订货单程序)就向supplier(供应商)发出需要的数据,供应商就把货运送到商店。注意,因为订货表现为某种待定的商品或某些商品在清单中的变化,所以把订货作为事务处理。数据流程图描述了逻辑系统。下一步追溯该系统的数据流向了。从数据的目的地supplier开始。例如,重订货单送给了供货商们,商店可能想要25条工作裤,为了填写订货单,供应商需要商品的说明和再订货的数量,那么,这些数据从什么地方来呢?由于数据是generate
9、reorder输出的,所以既要有数据输入给它,还要有数据经过它的处理而产生。数据从stock流入generate reorder,因此商品说明和订货数理必定存放在stock中。另外一些数据,例如购买的货物品种和数理由customer产生。还有一些数据,例如销售价格和订货点由management产生,或者由它提出要求。例如,某种已知货物的现存量就是由某个处理过程中的某种算法产生出来的。分析员逐步地、有条理地区分了系统要求输入、存储、处理、产生或输出的应该分别是哪些数据元素。为了记录数据元素,分析员必须把每个数据列在数据字典内。简单的数据字典可建立在索引卡片上,但计算机化的数据字典已经变得日益流行
10、了。数据字典是描述和定义数据的一个数据集合,不仅在整个系统的分析与设计过程中有用,而且在实现阶段经常被用来建立数据库。分析阶段的目标是定义系统的主要功能和有条理地确定数据元素。记住,它的目标是把用户的需求转换成技术术语。因为系统是由用户提出的,所以首先要确定用户的需求。用户只是从功能和数据出发考虑系统,他们并不具体设计程序、文件、和硬件,并且在这个初始的带有决定性的分析阶段,分析员必须像用户而不像程序设计员一样去思考问题。这是该阶段的基本要求。数据流程图和数据字典是有用的工具。这些工具为记录用户系统的关键信息提供了一种格式。还有,这些工具可帮助唤醒分析员的记忆。例如,如果分析员没有足够的信息使
11、数据字典的条目完整化,那么分析员就可能丢失一些内容。也许,数据流程图和数据字典为分析员理解系统的需求提供了最重要的文件,通过查阅这些文件,用户能改正误解或疏忽大意。最终,这些有用的工具对下一步设计阶段,奠定了一个良好的基础。设计当进入设计阶段的时候,已知道必须做什么事。因此可以开始考虑系统如何完成这些事。目标是研究出解决问题的策略。在该阶段上,对写代码或确定精确的数据结构并不感兴趣,而是希望从整体上确定整个系统所需要的程序、文件、过程和其它一些部分。数据流程图确定了系统的必须具有的功能,如何才能实现这些功能呢?一种可能性是为每个处理过程写一个程序;另一种可能性是把两个或更多的处理过程合并在一个
12、程序里,因而有几十种可能的方案。让我们集中在一种选择上并为它提供一些详细的资料。系统流程图用符号表示程序、过程、硬设备及物理系统中的其它部件。流程图表明,通过终端进入系统的事务数据被数据采集程序处理,然后存放在货单文件上。最后,货物清单文件由一个report and reorder(报告和再订货)程序处理。经营部门用该程序处理数据和核对订货单。请看系统流程图,它指明了若干硬部件,其中包括一台计算机、一个磁盘驱动器、一个数据输入终端、一台打印机和一个显示终端等;还需要两个程序,事务处理程序和报告与再定货程序;除了硬件和程序以外,我们还需要货单文件以及io设备与软件之间数据流的数据结构。注意,本系
13、统的流程图只说明一种可能的方案。一个好的系统分析员在他选定一个方案之前要研究出若干个可行的方案,以备替换。流程图拟订了系统,突出了系统的主要物理部件。因为数据链接了部件,所以接下来的工作就是确定数据结构。以货物清单文件为例,它包含来自stock的所有数据元素,这些数据元素被列在数据字典中。利用这些数据元素能安排文件的数据结构。如何组织文件呢?这取决于如何访问它。例如,在某些应用中数据是在有规律的预定时间内被处理,一般是整段时间收集数据,成批结一起处理。如果可采用批处理的话,那么一个顺序文件结构可能是最好的了。然而,不可能总是等到一批事务都被收集好以后再去处理。例如,设想一个防空预警系统,如果一
14、个不明的飞行物被标定了位置,就必须立即分辨它。因为防空程序下午五时才运行,要等到那时才处理的思想是荒谬的。该种情况要求快速响应,每个事务必须在它发生时得到处理。一般来说,这些事务处理系统要求直接存取文件。我们的货单系统有两个程序,一个事务处理,直接存取货单文件似乎是个合适的方案;另一个为经营部门偶尔分析货物清单数据用,当然批处理就能完成了。货物清单文件应按顺序组织还是直接组织呢?面对着这种选择,一个好的系统分析员应考虑两种方案。一种可能的系统是当事务一发生就接收并处理该事务;另一种可供选择的方案是可整天的收集销售单,商店关门以后,成批地处理。在第一个系统中,这两个程序应处理直接存取文件;在第二
15、个系统中,这两个程序应链接到顺序文件上。处理可直接访问的数据的程序和处理可按顺序一个接一个访问的数据的程序是不同的。数据驱动了系统,所以数据结构的选择决定了程序的结构。注意,程序在系统的意义上被定义和规划。实现系统的主要部分一分析清楚了,就能开始开发这几部分。本系统包括两个程序、若干台设备和大量的数据结构。在实现阶段,每个程序都用在所描述的技术来编排和书写;要建立文件并检查文件的内容;购买、安装和测试新的硬件;另外还要写出操作步骤,并对系统做出评价。所有的部分都准备好了,就调试系统。若用户满意了,系统就交付使用。维护系统交付以后,维护就开始了。当人们使用系统时,他们将提出一些小的改善和提高。有
16、时在调试和检测阶段一些缺陷被忽略了,那么修改程序,例如,政府通过了一个法律,修改了征收所得税的方法,则工资程序就必须修改。维护延续在系统的整个生命期内。维护的费用和初期的研制费用差不多,甚至更高。良好的计划、实用的文件资料和合适的程序结构都有助于减少维护费用。systems analysis and designsystemsworking under control of a stored program, a computer processes data into information. think about that definition for a minute. any giv
17、en computer application involves at least three components: hardware, software, and data. merely writing a program isnt enough, because the program is but one component is in a system.a system is a group of components that work together to accomplish an objective. for example, consider a payroll sys
18、tem. its objective is paying employees. what components are involved? each day, employees record their hours worked on time cards. at the end of each week, the time cards are collected and delivered to the computer center, where they are read into a payroll program. as it runs, the program accesses
19、data files. finally, the paychecks are printed and distributed. for the system to work, people, procedures, input and output media, files, hardware, and software must be carefully coordinated. note that the program is but one component in a system.systems analysiscomputer-based systems are developed
20、 because people need information. those people, called users, generally know what is required, but may lack the expertise to obtain it. technical professionals, such as programmers, have the expertise, but may lack training in the users field. to complicate matters, users and programmers often seem
21、to speak different languages, leading to communication problems. a systems analyst is a professional who translates user needs into technical terms, thus serving as a bridge between users and technical professionals.like an engineer or an architect, a systems analyst solves problems by combining sol
22、id technical skills with insight, imagination, and a touch of art. generally, the analyst follows a well-defined, methodical process that includes at least the following steps:problem definitionanalysisdesignimplementationmaintenanceat the end of each step, results are documented and shared with bot
23、h the user and the programmers. the idea is to catch and correct errors and misunderstandings as early as possible. perhaps the best way to illustrate the process is through example.picture a small clothing store that purchases merchandise at wholesale, displays this stock, and sells it to customers
24、 at retail. on the one hand, too much: stock represents an unnecessary expense. on the other hand, a poor selection discourages shoppers. ideally, a balance can be achieved: enough, but not too much.complicating matters is the fact that inventory is constantly changing, with customer purchases deple
25、ting stock, and returns and reorders adding to it. the owner would like to track inventory levels and reorder any given item just before the store runs out. for a single item, the task is easy-just count the stock-on-hand. unfortunately, the store has hundreds of different items, and keeping track o
26、f each one is impractical. perhaps a computer might help.problem definitionthe first step in the systems analysis and design process is problem definition. the analysts objective is determining what the user needs. note that, as the process begins, the user possesses the critical information, and th
27、e analyst must listen and learn. few users are technical experts. most see the computer as a “magic box,” and are not concerned with how it works. at this stage, the analyst has no business even thinking about programs, files, and computer hardware, but must communicate with the user on his or her o
28、wn terms.the idea is to ensure that both the user and the analyst are thinking about the same thing. thus, a clear, written statement expressing the analysts understanding of the problem is essential. the user should review and correct this written statement. the time to catch misunderstandings and
29、oversights is now, before time, money, and effort are wasted.often, following a preliminary problem definition, the analyst performs a feasibility study. the study, a brief capsule version of the entire systems analysis and design process, attempts to answer three questions:1. can the problem be sol
30、ved?2. can it be solved in the users environment?3. can it be solved at a reasonable cost?if the answer to any one of these questions is no, the system should not be developed. given a good problem definition and a positive feasibility study, the analyst can turn to planning and developing a problem
31、 solution.analysisas analysis begins, the analyst understands the problem. the next step is determining what must be done to solve it. the user knows what must be done; during analysis, this knowledge is extracted and formally documented. most users think in terms of the functions to be performed an
32、d the data elements to be manipulated. the objective is to identify and link these key functions and data elements, yielding a logical system design.start with the systems basic functions. the key is keeping track of the stock-on-hand for each product in inventory. inventory changes because customer
33、s purchase, exchange, and return products, so the system will have to process customer transactions. the stores owner wants to selectively look at the inventory level for any product in short supply and, if appropriate, order replacement stock, so the system must be able to communicate with manageme
34、nt. finally, following management authorization, the system should generate a reorder ready to send to a supplier.given the systems basic functions, the analysts next task is gaining a sense of their logical relation. a good way to start is by describing how data flow between the functions. as the n
35、ame implies, data flow diagrams are particularly useful for graphically describing these data flows. four symbols are used. data sources and destinations are represented by squares; input data enter the system form a source, and output data flow to a destination. once in the system, the data are man
36、ipulated or changed by processes, represented by round-corner rectangles. a process might be a program, a procedure, or anything else that changes or moves data. data can be held for later processing in data stores, symbolized by open-ended rectangles. a data store might be a disk file, a tape file,
37、 a database, written notes, or even a persons memory. finally, data flow between sources, destinations, processes, and data stores over data flows, which are represented by arrows.preliminary data flow diagram for the inventory system. start a customer. transactions flow from a customer into the sys
38、tem, where they are handled by process transaction. a data store, the stock, holds data on each item in inventory. process transaction changes the data to reflect the new transaction. meanwhile, management accesses the system through communicate, evaluating the data in stock and, if necessary, reque
39、sting a recorder. once a reorder is authorized, generate reorder sends necessary data to the supplier, who ships the items to the store. note that, because the reorder represents a change in the inventory level of a particular product or products, it is handled as a transaction.the data flow diagram
40、 describes the logical system. the next step is tracing the data flow. start with the destination supplier. reorders flow to suppliers; for example, the store might want 25 pairs of jeans. to fill the order, the supplier needs the product description and the reorder quantity. where do these data ele
41、ments come from? since they are output by generate reorder, they must either be input to or generated by this process. data flow into generate reorder for stock; thus, product and reorder quantities must be stored in stock.other data elements, such as purchased and the purchase quantity, are generat
42、ed by customer. still others, for example selling price and reorder point, are generated by or needed by management. the current stock on-hand for a given item is an example of a data element generated by an algorithm in one of the procedures. step by step, methodically, the analyst identifies the d
43、ata elements to be input to, stored by, manipulated by, generated by, or output by the system.to keep track of the data elements, the analyst might list each one in a data dictionary. a simple data dictionary can be set up on index cards, but computerized data dictionaries have become increasingly p
44、opular. the data dictionary, a collection of data describing and defining the data, is useful throughout the systems analysis and design process, and is often used to build a database during the implementation stage. the idea of analysis is to define the systems major functions and data elements met
45、hodically. remember that the objective is translating user needs into technical terms. since the system starts with the user, the first step is defining the users needs. users think in terms of functions and data. they do not visualize programs, or files, or hardware, and during this initial, crucia
46、l analysis stage, it is essential that the analyst think like a user, not like a programmer.data flow diagrams and data dictionaries are useful tools. they provide a format for recording key information about the proposed system. also, they jog the analysts memory; for example, if the analyst doesnt
47、 have sufficient information to complete a data dictionary entry, he or she has probably missed something. perhaps most importantly, the data flow diagram and the data dictionary document the analysts understanding of the system requirements. by reviewing these documents, the user can correct misund
48、erstanding or oversights. finally, they represent an excellent starting point for the next step, design.designas we enter the design stage, we know what the system must do, and thus can begin thinking about how to do it. the objective is to develop a strategy for solving the problem. at this stage,
49、we are not interested in writing code or in defining precise data structures; instead, we want to identify, at a black box level, necessary programs, files, procedures, and other components.the data flow diagram defines the systems necessary functions; how might they be implemented? one possibility
50、is writing one program for each process. another is combining two or more processes in a single program; there are dozens of alternative solutions. lets focus on one option and document it.a system flowchart uses symbols to represent programs, procedures, hardware devices, and the other components o
51、f a physical system. our flowchart shows that transaction data enter the system through a terminal, are stored on an inventory by a data collection program, and then are stored on an inventory file. eventually, the inventory file is processed by a report and reorder program. through it, management m
52、anipulates the data and authorizes reorders.look at the system flowchart. it identifies several hardware components, including a computer, a disk drive, a data entry terminal, a printer, and a display terminal. tow programs are needed: process transaction and report and reorder. in addition to the h
53、ardware and the programs, well need data structures for the inventory file and for data flows between the i/o devices and the software. note that system flow chart illustrates one possible solution; a good analyst will develop several feasible alternatives before choosing one.the flowchart maps the
54、system, highlighting its major physical components. since the data link the components, the next task is defining the data structures. consider, for example, the inventory file. it contains all the data elements from the data store stock. the data elements are listed in the data dictionary. using th
55、em, the files data structure can be planned.how should the file be organized? that depends on how it will be accessed. for example, in some applications, data are processed at regular, predictable intervals. typically, the data are collected over time and processed together, as a batch. if batch pro
56、cessing is acceptable, a sequential file organization is probably best.it is not always possible to wait until a batch of transactions is collected, however. for example, consider an air defense early warning system. if an unidentified aircraft is spotted, it must be identified immediately; the idea
57、 of waiting until 5:00 p. m because “thats when the air defense program is run” is absurd. instead, because of the need for quick response, each transaction must be processed as it occurs. generally, such transaction processing systems call for direct access file.our inventory system has tow program
58、s. one processes transactions. a direct access inventory file seems a reasonable choice. the other allows management to study inventory data occasionally; batch processing would certainly do. should the inventory file be organized sequentially or directly? faced with such a choice, a good analyst co
59、nsiders both options. one possible system might accept transactions and process them as they occur. as an alternative, sales slips might be collected throughout the day and programs would deal with direct access files; in the second system, they would be linked to sequential files. a program to process direct access data is different from a program to process sequential data. the
温馨提示
- 1. 本站所有资源如无特殊说明,都需要本地电脑安装OFFICE2007和PDF阅读器。图纸软件为CAD,CAXA,PROE,UG,SolidWorks等.压缩文件请下载最新的WinRAR软件解压。
- 2. 本站的文档不包含任何第三方提供的附件图纸等,如果需要附件,请联系上传者。文件的所有权益归上传用户所有。
- 3. 本站RAR压缩包中若带图纸,网页内容里面会有图纸预览,若没有图纸预览就没有图纸。
- 4. 未经权益所有人同意不得将文件中的内容挪作商业或盈利用途。
- 5. 人人文库网仅提供信息存储空间,仅对用户上传内容的表现方式做保护处理,对用户上传分享的文档内容本身不做任何修改或编辑,并不能对任何下载内容负责。
- 6. 下载文件中如有侵权或不适当内容,请与我们联系,我们立即纠正。
- 7. 本站不保证下载资源的准确性、安全性和完整性, 同时也不承担用户因使用这些下载资源对自己和他人造成任何形式的伤害或损失。
最新文档
- 2024年公共食堂承包管理协议
- 2024年云计算平台使用协议
- 2024年健身俱乐部租赁合同:场地租赁与经营权
- 2024年住宅及商铺租赁合同
- 2024年区块链技术应用开发与合作协议
- 2024年专业咨询服务合同汇编
- 2024年加工承揽合同及制造保密协议
- 2024年产品购销合同
- 2024年临时会议场地租赁合同
- (2024版)大数据分析与应用委托合同
- DBJ∕T13-354-2021 既有房屋结构安全隐患排查技术标准
- 建设工程质量管理手册
- 调机品管理规定
- 园长思想政治鉴定范文(5篇)
- 质量管理体系文件分类与编号规定
- 2022年工程项目技术管理人员批评与自我批评
- 检测公司检验检测工作控制程序
- 社工机构项目管理制度
- 充电桩整体解决方案PPT幻灯片(PPT 27页)
- 维修电工高级技师论文(6篇推荐范文)
- 幼儿园PPT课件:数与运算2
评论
0/150
提交评论