Sequence Models.

Slides:



Advertisements
Similar presentations
Use cases Use-cases are a scenario based technique in the UML which identify the actors in an interaction and which describe the interaction itself A set.
Advertisements

System Sequence Diagrams
© 2006 ITT Educational Services Inc. SE350 System Analysis for Software Engineers: Unit 9 Slide 1 Appendix 3 Object-Oriented Analysis and Design.
1 Chapter 4 Dynamic Modeling and Analysis (Part I) Object-Oriented Technology From Diagram to Code with Visual Paradigm for UML Curtis H.K. Tsang, Clarence.
Sequence Diagrams. Introduction A Sequence diagram depicts the sequence of actions that occur in a system. The invocation of methods in each object, and.
1 Chapter 4 Dynamic Modeling and Analysis (Part I) Object-Oriented Technology From Diagram to Code with Visual Paradigm for UML Curtis H.K. Tsang, Clarence.
Interaction Diagrams Activity Diagram State Machine Diagram
Assess A Claim Object Interaction Diagrams. Object sequence Diagrams - Use case Sequence of events that occur during one particular execution of a system.
Conversation Form l One path through a use case that emphasizes interactions between an actor and the system l Can show optional and repeated actions l.
Drawing System Sequence Diagrams
Systems Analysis and Design in a Changing World, Fourth Edition
Summary Class responsibility cards can be used to help allocate responsibilities between different classes. The use of stereotype classes, such as entity,
January Ron McFadyen1 Ch 9. Use-case model: drawing System Sequence Diagrams Elaboration Iteration 1: a simple cash-only success scenario of.
© 2005 Prentice Hall4-1 Stumpf and Teague Object-Oriented Systems Analysis and Design with UML.
PowerPoint Presentation for Dennis, Wixom & Tegarden Systems Analysis and Design Copyright 2001 © John Wiley & Sons, Inc. All rights reserved. Slide 1.
Object Collaborations. Objectives: Object Interaction (cont.) You will be able to:  Use sequence diagrams to detail object interactions.
NJIT Drawing System Sequence Diagrams Chapter 10 Applying UML and Patterns Craig Larman Presented by Anuradha Dharani.
Modern Systems Analysis and Design Fifth Edition Jeffrey A
 What is Interaction Modelling What is Interaction Modelling  Use Case Models Use Case Models Actor Use cases Use Case Diagram Symbols Use case Diagram.
Slide 1 Chapter 8 Behavioral Modeling. Slide 2 Key Ideas Behavioral models describe the internal dynamic aspects of an information system that supports.
Intro to Business.  Captain - Coordinates the efforts of entire team including team activities, maintaining password, making final decisions, and checking.
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.
LECTURE 5 SEQUENCE DIAGRAM 1. INTRODUCTION – SYSTEM SEQUENCE DIAGRAM A system sequence diagram is a fast and easily created artifact that illustrates.
TK2023 Object-Oriented Software Engineering CHAPTER 6 SYSTEM SEQUENCE DIAGRAMS.
User Interface Theory & Design
Interaction Modeling. Sequence Models  There are two kinds of sequence models: scenarios and sequence diagrams  A scenario is a sequence of events that.
Lecture 6 Unified Modeling Language (UML)
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.
Interaction diagrams Sequence and collaboration diagrams.
Interaction Modeling Interaction model describes how objects interact to produce useful results. Interactions can be modeled at different levels of abstraction:
Interaction Modeling. Overview The class model describes the objects in a system and their relationships, the state model describes the life cycles of.
Interaction Modeling. Introduction (1) Third leg of the modeling tripod. It describes interaction within a system. The class model describes the objects.
Copyright 2002 Prentice-Hall, Inc. Chapter 2 Object-Oriented Analysis and Design Modern Systems Analysis and Design Third Edition Jeffrey A. Hoffer Joey.
Interaction Modeling Extracted from textbook:
Interaction Models (2): Sequence Diagrams Extracted from textbook: Object Oriented Modeling and Design with UML M. Blaha, J. Rumbaugh 1.
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.
Systems Analysis & Design 7 th Edition Chapter 5.
User Interface Theory & Design Lecture 6a 1.  User interface is everything the end user comes into contact with while using the system  To the user,
Sequence diagram in UML Martin Palkovik. Sequence diagram  It is a graphic representation of system operations based on chronology - a time sequence.
Discovering object interaction. Use case realisation The USE CASE diagram presents an outside view of the system. The functionality of the use case is.
Information Systems Engineering Interaction Diagrams: Sequence Diagram Collbortion Diagram.
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.
COMP-350 Object-Oriented Analysis and Design Drawing System Sequence Diagrams Reference: Larman, Chapter 9.
(c) Addison Wesley Copyright © 2000 by Addison Wesley Version 1.0
Requirements Management with Use Cases Module 10: Requirements Across the Product Lifecycle Requirements Management with Use Cases Module 10: Requirements.
CSCI-383 Object-Oriented Programming & Design Lecture 12.
CS212: Object Oriented Analysis and Design Lecture 34: UML Activity and Collaboration diagram.
Scenario A scenario is a sequence of steps describing an interaction between a user and a system. Use case is a set of scenarios tied together by a common.
Systems Analysis and Design in a Changing World, Fourth Edition
CMSC 345 Use Cases. u Describes the system’s behavior under various conditions as the system responds to a request from one of the stakeholders, called.
Copyright © 2011 Pearson Education, Inc. Publishing as Prentice Hall Object-Oriented Systems Analysis and Design Using UML Systems Analysis and Design,
Sequence Diagram SAD ::: Fall 2015 Sabbir Muhammad Saleh.
Use Case Diagrams. Introduction In the previous Lecture, you saw a brief review of the nine UML diagrams. Now that you have the clear, you'll start to.
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.
Appendix Object-Oriented Analysis and Design: Use Cases and Sequence Diagrams Modern Systems Analysis and Design Fifth Edition Jeffrey A. Hoffer Joey F.
SYSTEM-LEVEL SEQUENCE DIAGRAMS Sys466. System-Level Sequence Diagrams  Use cases describe how external actors interact with the software system…  An.
PowerPoint Presentation for Dennis, Wixom, & Tegarden Systems Analysis and Design with UML, 5th Edition Copyright © 2015 John Wiley & Sons, Inc. All rights.
1 7 Systems Analysis and Design in a Changing World, 2 nd Edition, Satzinger, Jackson, & Burd Chapter 7 The Object-Oriented Approach to Requirements.
More on UML 1. 1.Use-case diagram 2.Class diagram [Object diagram] (static) 1.1 Domain/analysis model – of reality 1.2 Design model – of decisions 3.
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.
Systems Analysis and Design in a Changing World, Fourth Edition
Chapter 4: Business Process and Functional Modeling, continued
UML Modeling Sequence diagram
Subject Name: Object oriented Modeling and Design
Interaction diagrams.
Presentation transcript:

Sequence Models

Topics to be Discuss Sequence Models Scenarios Sequence Diagram Guidelines for Sequence Models

Sequence Models The sequence model elaborates the themes of use cases. There are two kind of sequence models: 1. Scenarios 2. Sequence diagram

Figure 2.1-Scenario for a session with an online stock broker Scenarios A scenario is a sequence of events that occurs during one particular execution of a system, such as for a use case. A scenario can be displayed as a list of text statements. Consider a scenario for a session with an online stock broker system: John Doe logs in. System establishes secure communications. System displays portfolio information. John Doe enters a buy order for 100 shares of GE at the market price. System verifies sufficient funds for purchase. System displays confirmation screen with estimated cost. John Doe confirms purchase. System places order on securities exchange. System displays transaction tracking number. John Doe logs out. System establishes insecure communication. System displays good-bye screen. Securities exchange reports results of trade. Figure 2.1-Scenario for a session with an online stock broker

Cont…. A scenario contains messages between objects as well as activities performed by objects. Each message transits information from one object to another. For example, John Doe logs in transmits a message from John Doe to the broker system. The first step of writing a scenario is to identify the objects exchanging messages. Then you must determine the sender and receiver of each message, as well as the sequence of the messages. Finally, you can add activities for internal computations as scenarios are reduced to code. Problem:- A text format is convenient for writing, but it does not clearly show the sender and receiver of each message, especially if there are more than two objects. BACK

Sequence Diagram A sequence diagram shows the participants in an interaction and the sequence of messages among them. A sequence diagram shows the interaction of a system with its actors to perform all or part of a use case. Each actor as well as the system is represented by a vertical line called a lifeline and each message by a horizontal arrow from the sender to receiver. Each use case requires one or more sequence diagrams to describes its behavior.

insecure communication :Customer :StockBrokerSystem :SecuritiesExchange Log in {verify customer} Secure communication Display portfolio Enter purchase data {verify funds} Request confirmation Confirm purchase Place order Display order number Log out insecure communication {execute order} Display good bye Report result of trade Figure 2.2-sequence diagram for a session with an online stock broker

Cont…. Sequence diagrams can show large-scale interactions, such as an entire session with the stock broker system as shown in previous figure. Some times such interactions contain many independent tasks that can be combined in various way. Rather than repeating information, you can draw a separate sequence diagram for each task. For Example, figure 2.3 and figure 2.4 in next slide shows an order to purchase a stock and a request for a quote on a stock.

Figure 2.3 Sequence diagram for a stock purchase :Customer :StockBrokerSystem :SecuritiesExchange Enter purchase data {verify funds} Request confirmation Confirm purchase Display order number Place order {execute order} Report result of trade Figure 2.3 Sequence diagram for a stock purchase

Figure 2.4 Sequence diagram for a stock purchase :Customer :StockBrokerSystem :SecuritiesExchange Enter stock symbol Request stock data Report stock data Display quote Figure 2.4 Sequence diagram for a stock purchase

Figure 2.5 Sequence diagram for a stock purchase You should also prepare a sequence diagram for each exception condition with in the Use case as shown in below figure 2.4. :Customer :StockBrokerSystem :SecuritiesExchange Enter purchase data {verify funds: Insufficient} Reject purchase Cancel purchase Figure 2.5 Sequence diagram for a stock purchase BACK

Guidelines for Sequence Models The sequence model adds detail and elaborates the informal themes of use cases. The following guidelines will help you with sequence models:- Prepare at least one scenario per use case. Abstract the scenarios into sequence diagram. Divide complex interactions. Prepare a sequence diagram for each error condition. BACK

THANKS BACK