THE OBJECT-ORIENTED DESIGN WORKFLOW UML2 Sequence Diagrams.

Slides:



Advertisements
Similar presentations
Prof. Dr. Nizamettin AYDIN
Advertisements

Interaction Diagram Notation From Chapter 15 of Craig Larman, Applying UML and Patterns John Dalesandro.
1 Behavioral Modeling Chapter 8. 2 Key Ideas Behavioral models describe the internal dynamic aspects of an information system that supports business processes.
Chapter 6: Behavioral Modeling
© 2006 ITT Educational Services Inc. SE350 System Analysis for Software Engineers: Unit 9 Slide 1 Appendix 3 Object-Oriented Analysis and Design.
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,
Slide 1 Systems Analysis & Design CS183 Spring Semester Dr. Jonathan Y. Clark Course Website:
1 © Wolfgang Pelz UML2 UML Part Two. 2 © Wolfgang Pelz UML2 Chapters Four & Twelve Interaction Diagrams.
Essentials of interaction diagrams Lecture Outline Collaborations Interaction on collaboration diagrams Sequence diagrams Messages from an object.
© 2005 Prentice Hall4-1 Stumpf and Teague Object-Oriented Systems Analysis and Design with UML.
Object Collaborations. Objectives: Object Interaction (cont.) You will be able to:  Use sequence diagrams to detail object interactions.
Sequence Diagrams By Zvika Gutterman Adam Carmi. Agenda Interaction Diagrams A First Look at Sequence Diagrams Objects Messages Control Information Examples.
Dynamic modeling using UML
Sequence Diagrams By Zvika Gutterman Adam Carmi. Sequence Diagrams2 Agenda Interaction Diagrams A First Look at Sequence Diagrams Objects Messages Control.
Slide 1 Chapter 8 Behavioral Modeling. Slide 2 Key Ideas Behavioral models describe the internal dynamic aspects of an information system that supports.
Sequence Diagrams By Zvika Gutterman Adam Carmi. Sequence Diagrams2 Agenda Interaction Diagrams A First Look at Sequence Diagrams Objects Messages Control.
Slide 1 Use Case Sequence Diagram. Slide 2 Interaction Diagrams l Interaction diagrams model the behavior of use cases by describing the way groups of.
SEQUENCE DIAGRAM Prepared by: T. Fatimah Alageel.
CS3773 Software Engineering
UML Collaboration Diagram. Recap System Sequence Diagrams (SSD) UML for SSD Examples.
Interactions. 2 Objects communicate with each other by sending messages. Sending a message is another name for a member function call. –Some C++ examples.
Class, Sequence and UML Model.  Has actors and use cases.
Introduction to Interaction Diagrams Used to illustrate the dynamic behaviour of a community of objects that collaborate by passing messages in order to.
High-Level Design With Sequence Diagrams COMP314 (based on original slides by Mark Hall)
SOFTWARE DESIGN AND ARCHITECTURE LECTURE 25. Review Design Level Class Diagram Identifying classes/Operations/Attributes Associations – Simple associations.
1 On to Object Design Chapter 14 Applying UML and Patterns.
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.
Discovering object interaction. Use case realisation The USE CASE diagram presents an outside view of the system. The functionality of the use case is.
Drawing System Sequence Diagrams
Interaction Diagrams Interaction Diagrams allow the designer to show how groups of objects collaborate in some behavior. –Interaction Diagrams will show.
Object-Oriented Analysis and Design 1 Mira Balaban & Arnon Sturm Object-Oriented Analysis and Design Session 3a: Behavioral Modeling - Interactions.
Sequence Diagrams CSIS3600. Sequence Diagrams A sequence diagram shows an interaction arranged in time sequence. In particular, it shows the objects participating.
Behavioral Modeling Chapter 8
CSCI-383 Object-Oriented Programming & Design Lecture 12.
CS212: Object Oriented Analysis and Design Lecture 34: UML Activity and Collaboration diagram.
PowerPoint Presentation for Dennis, Wixom, & Tegarden Systems Analysis and Design with UML, 3rd Edition Copyright © 2009 John Wiley & Sons, Inc. All rights.
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.
 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.
1 Kyung Hee University Interaction Diagrams Spring 2001.
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.
ITEC1301 Object-Oriented Systems Construction Lecture Notes #4 1.
Project 2: Phase 1 Submission 7 Late submissions 10% 10 No submissions 14% Better than project 1 phase 3 submissions 10-point bonus: If you catch the deadline.
1 Systems Analysis and Design Behavioral Modeling Chapter 8 (Last one before the Midterm!)
Interactions.
TIM 58 Chapter 6, continued: Behavioral Modeling
Sequence Diagrams.
COMP 2710 Software Construction Sequence Diagrams (cont.)
Behavioral Modeling.
Sequence Diagrams.
Activity Diagrams Activity diagrams describe the workflow behavior of a system.  The diagrams describe the state of activities by showing the sequence.
Sequence Diagrams.
Interactions.
Object Oriented Analysis and Design
Sequence Diagrams.
Week 12: Activity & Sequence Diagrams
Interaction diagrams.
UML Diagrams: Sequence Diagrams Dynamic Analysis Model
CIS 375 Bruce R. Maxim UM-Dearborn
Unified Modelling Language
Chapter 9: Sequence Diagrams Chapter 5 in Software Engineering Book
Interaction diagrams Interaction diagrams are models that describe how groups of objects collaborate in some behavior. Typically, an interaction diagram.
UML Interaction diagrams
Sequence Diagrams.
Chapter 9: Sequence Diagrams Chapter 5 in Software Engineering Book
CIS 375 Bruce R. Maxim UM-Dearborn
Chapter 4 Sequence Diagrams
Presentation transcript:

THE OBJECT-ORIENTED DESIGN WORKFLOW UML2 Sequence Diagrams

Behavioral Models l Behavior models describe the internal dynamic aspects of an information system that supports the business processes in an organization. l Behavioral models describe what the internal logic of the processes is without specifying how the processes are to be implemented. l One of the primary purposes of behavioral models is to show how the underlying objects of the problem domain will collaborate to support each of the use cases.

The Sequence Diagram l Illustrates the objects that participate in a use case and the messages that pass between them over time for one use case. l Is a dynamic model that shows the explicit sequence of messages that are passes between objects in a defined interaction. l Since sequence diagrams emphasize the time- based ordering of the activity that takes place among a set of objects, they are very helpful for understanding real-time specifications and complex use cases.

The Sequence Diagram

Guidelines for Building Sequence Diagrams l Determine the context of the sequence diagram. –The context of a diagram can be a system, a use case, a scenario of a use case, or an operation of a class. –The context of the diagram is depicted as a labeled frame around the diagram. –Most commonly, it is one use case scenario. l Identify the objects that participate in the sequence being modeled – that is, the objects that interact with each other during the use case scenario. –The objects are identified during the development of the structural model (class diagram). –These are the classes on which the objects of the sequence diagram for this scenario will be based. Set the lifeline for each object. To do this, you need to draw a vertical dotted line below each class to represent the class’s existence during the sequence. An “X” should be placed below the object at the point on the lifeline where the object goes out of existence.

Guidelines for Building Sequence Diagrams l Add messages to the diagram. –The arrows should be placed in order from the first message (at the top) to the last (at the bottom) to show time sequence. –Any parameters passed along with the messages should be placed in parentheses next to the message’s name. –If a message is expected to be returned as a response to a message, then the return message either can be or not be shown on the diagram. l Place the execution occurrence of each object’s lifeline by drawing a narrow rectangle box over the top of the lifelines to represent when the classes are sending and receiving messages.

Guidelines for Building Sequence Diagrams l Finally, validate the sequence diagram. –The purpose of this step is to guarantee that the sequence diagram completely represents the underlying processes. –This is done by guaranteeing that the diagram depicts all the steps in the process. –You should refer back to the scenario’s use case details and your static class diagram. –NOTE: All methods on the class diagram should be shown as messages on the sequence diagram.

More Guidelines – Sequence Diagrams l Strive for Left-To-Right ordering of messages l Name actors consistently with your use case diagrams l Name classes consistently with your class diagrams l An actor can have the same name as a class l Place human and organizational actors on the left- most side of your diagram l Place reactive system actors on the right-most side of your diagram

Guidelines for Messages l Justify message names beside the arrowhead l Create objects directly l Use prose for messages involving human and organization actors l Prefer names over types for parameters l Indicate types as parameter placeholders l Apply the > stereotype for use case invocations

Guidelines for Return Values l Do NOT model a return value when it is obvious what is being returned l Model a return value only when you need to refer to it elsewhere l Justify return values beside the arrowhead l Indicate types as return value placeholders l Explicitly indicate the actual value for simple values

Loops

Nested Activity (Includes)

Branching or Alternatives

Sequence Diagram Resources l IBM: – 128.ibm.com/developerworks/rational/library/3101.htmlhttp://www- 128.ibm.com/developerworks/rational/library/3101.html l Agile Modeling: – htmhttp:// htm – mhttp:// m