PHÂN TÍCH THIẾT KẾ HƯỚNG ĐỐI TƯỢNG

Slides:



Advertisements
Similar presentations
Behavioral Modeling: State Diagrams CIS 4800 Kannan Mohan Department of CIS Zicklin School of Business, Baruch College Copyright © 2009 John Wiley & Sons,
Advertisements

System Sequence Diagrams
Prof. Dr. Nizamettin AYDIN
1 Behavioral Modeling Chapter 8. 2 Key Ideas Behavioral models describe the internal dynamic aspects of an information system that supports business processes.
ZEIT2301 Design of Information Systems Behavioural Design: State Machines School of Engineering and Information Technology Dr Kathryn Merrick.
Chapter 6: Behavioral Modeling
Slide 1 Systems Analysis & Design CS183 Spring Semester Dr. Jonathan Y. Clark Course Website:
THE OBJECT-ORIENTED DESIGN WORKFLOW UML2 Sequence Diagrams.
PowerPoint Presentation for Dennis & Haley Wixom, Systems Analysis and Design Copyright 2000 © John Wiley & Sons, Inc. All rights reserved. Slide 1 The.
PowerPoint Presentation for Dennis, Wixom & Tegarden Systems Analysis and Design Copyright 2001 © John Wiley & Sons, Inc. All rights reserved. Slide 1.
PowerPoint Presentation for Dennis, Wixom & Tegarden Systems Analysis and Design Copyright 2001 © John Wiley & Sons, Inc. All rights reserved. Slide 1.
1 UML Component and Deployment Diagrams. Models, Views, and Diagrams Use Case Diagrams Use Case Diagrams Use Case Diagrams Scenario Diagrams Scenario.
UML Sequence Diagrams Eileen Kraemer CSE 335 Michigan State University.
Slide 1 Chapter 8 Behavioral Modeling. Slide 2 Key Ideas Behavioral models describe the internal dynamic aspects of an information system that supports.
1 Lab Beginning Analysis and Design 4 Completion of first version of use case diagram initiates the processes of analysis and design. 4 UML provides.
UML. Overview of UML Diagrams Structural : element of spec. irrespective of time Class Component Deployment Object Composite structure Package Behavioral.
UML Sequence Diagrams Michael L. Collard, Ph.D. Department of Computer Science Kent State University.
Class, Sequence and UML Model.  Has actors and use cases.
Object-Oriented Software Engineering Practical Software Development using UML and Java Chapter 8: Modelling Interactions and Behaviour.
Dynamic Modeling Chapter 11 Part of Analysis Modeling Designing Concurrent, Distributed, and Real-Time Applications with UML Hassan Gomaa (2001)
Slide 1 Systems Analysis and Design with UML Version 2.0, Second Edition Alan Dennis, Barbara Wixom, and David Tegarden Chapter 8: Behavioral Modeling.
Behavioral Modeling Chapter 8.
ניתוח מערכות מידע 1 Unified Modeling Language (UML) § § The Unified Modeling Language (UML) is the industry-standard language for: Specifying, Visualizing,
7 Systems Analysis and Design in a Changing World, Fifth Edition.
Drawing System Sequence Diagrams
Slide 1 Systems Analysis and Design with UML Version 2.0, Second Edition Alan Dennis, Barbara Wixom, and David Tegarden Chapter 8: Behavioral Modeling.
Behavioral Modeling Chapter 8
UML Diagrams CSC 422 Kutztown University Dr. Daniel Spiegel.
CSCI-383 Object-Oriented Programming & Design Lecture 12.
Systems Analysis and Design in a Changing World, Fourth Edition
Interaction Diagram An interaction diagram is a graphical representation of interactions between objects. Sequence diagram: shows the sequence in which.
PowerPoint Presentation for Dennis, Wixom, & Tegarden Systems Analysis and Design with UML, 3rd Edition Copyright © 2009 John Wiley & Sons, Inc. All rights.
Slide 1 Classes and Objects. Slide 2 Messages and Methods.
Practical Object-Oriented Design with UML 2e Slide 1/1 ©The McGraw-Hill Companies, 2004 PRACTICAL OBJECT-ORIENTED DESIGN WITH UML 2e Chapter 10: Statecharts.
Chapter 3: Introducing the UML
PowerPoint Presentation for Dennis, Wixom, & Tegarden Systems Analysis and Design with UML, 5th Edition Copyright © 2015 John Wiley & Sons, Inc. All rights.
Slide 1 Systems Analysis and Design with UML Version 2.0, Second Edition Alan Dennis, Barbara Wixom, and David Tegarden Chapter 8: Behavioral Modeling.
 The Sequence Diagram models the collaboration of objects based on a time sequence.  It shows how the objects interact with others in a particular scenario.
Chapter 7 Behavioral Modeling Brandon A. Jones Stand and Deliver ITEC March 6, 2011.
PowerPoint Presentation for Dennis, Wixom & Tegarden Systems Analysis and Design Copyright 2001 © John Wiley & Sons, Inc. All rights reserved. Slide 1.
1 Systems Analysis and Design Behavioral Modeling Chapter 8 (Last one before the Midterm!)
Engineering Quality Software Week02 J.N.Kotuba1 SYST Engineering Quality Software.
Systems Analysis and Design in a Changing World, Fourth Edition
UML Diagrams By Daniel Damaris Novarianto S..
Roberta Roth, Alan Dennis, and Barbara Haley Wixom
The Movement To Objects
Systems Analysis and Design with UML Version 2.0, Second Edition
Systems Analysis and Design
TIM 58 Chapter 6, continued: Behavioral Modeling
Systems Analysis and Design With UML 2
INFS 6225 Object-Oriented Analysis & Design
Dynamic Modeling of Banking System Case Study - II
Object-Oriented Systems Analysis and Design Using UML
Sequence and Collaboration Diagrams
Systems Analysis and Design
Behavioral Modeling.
UML dynamic Modeling (Behavior Diagram)
Dynamic Modeling: Defining Classes
Sequence Diagrams.
Object-Oriented Analysis
Princess Nourah bint Abdulrahman University
Interactions.
UML Overview Part 2.
Unified Modeling Language
Week 12: Activity & Sequence Diagrams
UML Diagrams: Sequence Diagrams Dynamic Analysis Model
PHÂN TÍCH THIẾT KẾ HƯỚNG ĐỐI TƯỢNG
Engineering Quality Software
CIS 375 Bruce R. Maxim UM-Dearborn
Appendix 3 Object-Oriented Analysis and Design
Presentation transcript:

PHÂN TÍCH THIẾT KẾ HƯỚNG ĐỐI TƯỢNG TRƯỜNG ĐẠI HỌC BÁCH KHOA HÀ NỘI VIỆN ĐIỆN TỬ VIỄN THÔNG PHÂN TÍCH THIẾT KẾ HƯỚNG ĐỐI TƯỢNG CHƯƠNG 3 Phân tích (tiếp theo và hết) Bộ môn Điện tử Kỹ thuật máy tính

Chương 3. Phân tích 3.1. Xác định rõ yêu cầu 3.2. Mô hình hóa chức năng 3.3. Mô hình hóa cấu trúc 3.4. Mô hình hóa hoạt động May 18 OOD - DEI.FET.HUT

Introduction Last two chapters: This Chapter (how the system behaves) Use Case  External Behavior (how the system is used) Structural Model  Static View of system (how the system is structured) This Chapter Behavioral Model (how the system behaves) Internal behavior Dynamic view of the information system May 18 OOD - DEI.FET.HUT

Introduction We'll look at two types of Behavioral Models: For Business Processes Sequence and collaboration diagrams For Changes in underlying data Statechart diagrams May 18 OOD - DEI.FET.HUT

Key Ideas Behavioral models describe the internal dynamic aspects of an information system that supports business processes in an organization Key UML behavioral models: Sequence Diagrams Communication Diagrams State Machine Diagrams May 18 OOD - DEI.FET.HUT

Behavioral Models Purpose of Behavioral Models Show how objects in the structural model collaborate to support each use case Depict the internal view of the business process To show the effects of varied processes on the system To be used to verify and modify functional and structure models Types of Behavioral Models Interaction Diagrams Behavioral state machine diagram May 18 OOD - DEI.FET.HUT

Interaction Diagrams Interaction Diagrams sequence diagrams communication diagrams Interaction Diagram Components Objects Instantiation of a class Has attributes that describe an object Operations Send and receive messages Messages Tell object to execute a behavior May 18 OOD - DEI.FET.HUT

Sequence Diagrams Illustrate the objects that participate in a use-case Show the messages that pass between objects for a particular use-case May 18 OOD - DEI.FET.HUT

Elements of Sequence Diagram May 18 OOD - DEI.FET.HUT

Elements of Sequence Diagram May 18 OOD - DEI.FET.HUT

An Example of Sequence Diagrams May 18 OOD - DEI.FET.HUT

Building a Sequence Diagram Determine the context of the SD A system, use case, use case scenario, or class method Identify the participating objects Developed in structural model Set the lifeline for each object (dotted lines) Add messages (horizontal arrows) Place the focus of control on each object’s lifeline (when the classes send/receive) Validate the sequence diagram May 18 OOD - DEI.FET.HUT

Application Example: CD Selections Normal Flow of Events: 1. Customer submits a search request to the system. 2. The system provides the customer a list of recommended CDs. 3. The customer chooses one of the CDs to find additional information. 4. The system provides the customer with basic (market) information & CD Reviews 5. The customer calls the maintain order use case. 6. The customer iterates over 3 through 5 until finished shopping. 7. The customer executes the checkout use case. 8. The customer leaves the website. May 18 OOD - DEI.FET.HUT

Application Example: CD Selections May 18 OOD - DEI.FET.HUT

Collaboration/ Communication Diagrams

Collaboration Diagrams Essentially an object diagram that shows Message passing relationships Associations with other objects Emphasize The flow of messages among objects Rather than timing and ordering of messages May 18 OOD - DEI.FET.HUT

Example Collaboration Diagram May 18 OOD - DEI.FET.HUT

Elements of a Collaboration Diagram Actor Object Association Message May 18 OOD - DEI.FET.HUT

Building Collaboration Diagrams 1. Set the context. 2. Identify which objects (actors) and the associations between the objects participate in the collaboration. 3. Layout the communication diagram. 4. Add messages. 5. Validate the communication diagram. May 18 OOD - DEI.FET.HUT

Technique to Identify Collaborations between Objects - “CRUD” Analysis What is “CRUD” analysis: identifying the processes to Create, Read or Reference, Update or Delete objects based on use cases The process of each use case is represented by “CRUD” matrix: a class-by-class matrix in which each cell in the matrix represents the interaction between instances of the classes May 18 OOD - DEI.FET.HUT

“CRUD” Analysis Example May 18 OOD - DEI.FET.HUT

Application Example: CD Selections Normal Flow of Events: 1. Customer submits a search request to the system. 2. The system provides the customer a list of recommended CDs. 3. The customer chooses one of the CDs to find additional information. 4. The system provides the customer with basic (market) information & CD Reviews 5. The customer calls the maintain order use case. 6. The customer iterates over 3 through 5 until finished shopping. 7. The customer executes the checkout use case. 8. The customer leaves the website. May 18 OOD - DEI.FET.HUT

Application Example: CD Selections May 18 OOD - DEI.FET.HUT

Behavioral State Machines Diagrams

Behavioral State Machines The behavioral state machine is a dynamic model that shows this The behavioral state machine shows The different states of an object The events That cause the object to change from one state to another May 18 OOD - DEI.FET.HUT

Example Behavioral State Machine Diagram May 18 OOD - DEI.FET.HUT

Elements of Behavioral State Machine Diagram May 18 OOD - DEI.FET.HUT

Elements of Behavioral State Machine Diagram Transitions: A transition indicates a movement from one state to the next one, denoted by lines with arrowheads. A transition has a label in the form of three parts: Event [guard]/activity. All three parts are optional. Event or Trigger: the signal event that triggers a potential change of state Guard: If presented, is a Boolean condition that must be true in order for the trigger to cause the transition Action or Activity: is some behaviour that has executed during the transition Event [guard]/activity state transition May 18 OOD - DEI.FET.HUT

Building Behavioral State Machine Diagrams Set the context Identify the initial, final, and stable states of the object Determine the order in which the object will pass through stable states Identify the events, actions, and guard conditions associated with the transitions Validate the state machine diagram May 18 OOD - DEI.FET.HUT

Application Example: CD Selections The Life of an Order Object: May 18 OOD - DEI.FET.HUT

CD Selections Application Example: May 18 OOD - DEI.FET.HUT

Summary Sequence diagrams illustrate the classes that participate in a use case and the messages that pass between them. Communication diagrams provide a dynamic view of the object-oriented system and accentuate message passing between collaborating actors and objects. Behavioral State Machine diagrams show the different states that a single class passes through in response to events. May 18 OOD - DEI.FET.HUT

May 18 OOD - DEI.FET.HUT

References http://www.cs.gordon.edu/courses/cs211/ATMExample/index.html http://www.cs.gordon.edu/courses/cs211/AddressBookExample/index.html May 18 OOD - DEI.FET.HUT