Object Oriented Analysis and Design.ppt
《Object Oriented Analysis and Design.ppt》由会员分享,可在线阅读,更多相关《Object Oriented Analysis and Design.ppt(76页珍藏版)》请在麦多课文档分享上搜索。
1、10/4/2018,1,Object Oriented Analysis and Design,10/4/2018,2,Analysis I,Tuesday 9/7/1999,10/4/2018,3,The Unified Process,10/4/2018,4,The Unified Process,Why a Process? Software projects are large, complex, sophisticated time to market is key many facets involved in getting to the end Common process s
2、hould integrate the many facets provide guidance to the order of activities specify what artifacts need to be developed offer criteria for monitoring and measuring a project,10/4/2018,5,The Unified Process,Component based - meaning the software system is built as a set of software components interco
3、nnected via interfaces Uses the Unified Modeling Language (UML) Use case driven Architecture-centric Iterative and incremental,Component: A physical and replaceable part of a system that conforms to and provides realization of a set of interfaces. Interface: A collection of operations that are used
4、to specify a service of a class or a component,This is what makes the Unified process Unique,10/4/2018,6,The Unified Process,Users requirements,Software Development Process,Software System,10/4/2018,7,The Unified Process,Use Case driven A use case is a piece of functionality in the system that gives
5、 a user a result of value Use cases capture functional requirements Use case answers the question: What is the system supposed to do for the user?,10/4/2018,8,The Unified Process,Architecture centric similar to architecture for building a house Embodies the most significant static and dynamic aspect
6、s of the system Influenced by platform, OS, DBMS etc. Primarily serves the realization of use cases,10/4/2018,9,The Unified Process,Iterative and Incremental commercial projects continue many months and years to be most effective - break the project into iterations Every iteration - identify use cas
7、es,create a design, implement the design Every iteration is a complete development process,10/4/2018,10,The Unified Process,Look at the whole process Life cycle Artifacts Workflows Phases Iterations,10/4/2018,11,The Life of the Unified Process,Unified process repeats over a series of cycles Each cyc
8、le concludes with a product release Each cycle consists of four phases (page 8 T2) inception elaboration construction transition,10/4/2018,12,The Life of the Unified Process,Elaboration,Inception,Construction,Transition,Iteration,Iteration,Iteration,Iteration,Iteration,Iteration,Iteration,Iteration,
9、Release 1,1,1,1,1,Time,A cycle with its phases and its iterations,10/4/2018,13,Intentionally left blank,10/4/2018,14,Analysis I,10/4/2018,15,Introduction to object-oriented analysis and design (all slides from UML, ch. 1, 3,4),10/4/2018,16,Objectives,Compare and Contrast analysis and design Defined
10、object-oriented analysis and design Relate by analogy object-oriented analysis and design to organizing a business,10/4/2018,17,What is Analysis and Design?,Analysis - investigation of the problem (what) Design - logical solution to fulfill the requirements (how),10/4/2018,18,What is OO analysis and
11、 design?,Essence of OO analysis - consider a problem domain from the perspective of objects (real world things, concepts) Essence of OO design - define the solution as a collection of software objects (allocating responsibilities to objects),10/4/2018,19,Examples,OO Analysis - in the case of the lib
12、rary information systems, one would find concepts like book, library, patron OO Design - emphasis on defining the software objects; ultimately these objects implemented in some programming language; Book may have a method print,10/4/2018,20,Example - contd.,Domain concept,Representation in analysis
13、of concepts,Book _ title print(),Public class Book public void print(); private string title; ,Representation in oo programming language,10/4/2018,21,What are the business processes?,First step - consider what the business must do; in the case of a library - lending books, keeping track of due dates
14、, buying new books in oo terms - requirements analysis; represent the business processes in textual narration (Use Cases),10/4/2018,22,Business processes - contd.,Identifying and recording the business processes as use cases is not actually an object oriented activity; however it is a widely accepte
15、d first step (a necessary first step),10/4/2018,23,Roles in the organization,Identify the roles of people who will be involved in the business processes in oo terms - domain analysis examples - customer, library assistant,10/4/2018,24,Who does what? Collaboration,Business processes and people identi
16、fied; time to determine how to fulfill the processes and who does these processes in oo terms - object oriented design; assigning responsibilities to the various software objects often expressed in class diagrams,10/4/2018,25,In Summary.,10/4/2018,26,Simple example to see big picture,Define use case
17、s Define conceptual model Define collaboration diagrams Define design class diagrams,Example: Dice game a player rolls two die. If the total is 7 they win; otherwise they lose,10/4/2018,27,Define use cases,Use cases - narrative descriptions of domain processes in a structured prose format,Use case:
18、Play a game Actors: Player Description: This use case begins when the player picks up and rolls the die.,10/4/2018,28,Define conceptual model,OO Analysis concerns specification of the problem domain identification of concepts (objects) Decomposition of the problem domain includes identification of o
19、bjects, attributes, associations results can be expressed in conceptual model,10/4/2018,29,Conceptual model - dice game,Player _ name,Die _ facevalue,DiceGame,1,2,2,1,1,1,Includes,Plays,Rolls,Conceptual model is not a description of the software components; it represents concepts in the real world p
20、roblem domain,10/4/2018,30,Defining collaboration diagram,OO Design is concerned defining logical software specification that fulfills the requirements Essential step - allocating responsibility to objects and illustrating how they interact with other objects Expressed as Collaboration diagrams,Coll
21、aboration diagrams show the flow of messages between objects,10/4/2018,31,Example - collaboration diagram,10/4/2018,32,Defining class diagrams,Key questions to ask How do objects connect to other objects? What are the behaviors (methods) of these objects? Collaboration diagrams suggests connections;
22、 to support these connections methods are needed Expressed as class diagrams,10/4/2018,33,Example - Class diagram,A line with an arrow at the end may suggest an attribute. For example, DiceGame has an attribute that points to an instance of a Player,10/4/2018,34,Intentionally left blank,10/4/2018,35
23、,Defining Models and Artifacts,Objectives analysis and design models familiarize UML notations and diagrams real world software systems are inherently complex Models provide a mechanism for decomposition and expressing specifications,10/4/2018,36,Analysis and Design models,Analysis model - models re
24、lated to an investigation of the domain and problem space (Use case model qualifies as an example) Design model - models related to the solution (class diagrams qualifies as an example),10/4/2018,37,Introduction to UML,UML is NOT a methodology UML is NOT a process UML is NOT proprietary (Now under t
- 1.请仔细阅读文档,确保文档完整性,对于不预览、不比对内容而直接下载带来的问题本站不予受理。
- 2.下载的文档,不会出现我们的网址水印。
- 3、该文档所得收入(下载+内容+预览)归上传者、原创作者;如果您是本文档原作者,请点此认领!既往收益都归您。
下载文档到电脑,查找使用更方便
2000 积分 0人已下载
下载 | 加入VIP,交流精品资源 |
- 配套讲稿:
如PPT文件的首页显示word图标,表示该PPT已包含配套word讲稿。双击word图标可打开word文档。
- 特殊限制:
部分文档作品中含有的国旗、国徽等图片,仅作为作品整体效果示例展示,禁止商用。设计者仅对作品中独创性部分享有著作权。
- 关 键 词:
- OBJECTORIENTEDANALYSISANDDESIGNPPT
