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.

Slides:



Advertisements
Similar presentations
Object-Oriented Analysis and Design CHAPTERS 15: UML INTERACTION DIAGRAMS 1.
Advertisements

System Sequence Diagrams
Interaction Diagram Notation From Chapter 15 of Craig Larman, Applying UML and Patterns John Dalesandro.
© 2006 ITT Educational Services Inc. SE350 System Analysis for Software Engineers: Unit 9 Slide 1 Appendix 3 Object-Oriented Analysis and Design.
System Sequence Diagrams (SSD). Recap Concepts of Action, Pins and Activity Description of activity nodes and activity edges New notations – Activity.
Software Engineering COMP 201
THE OBJECT-ORIENTED DESIGN WORKFLOW UML2 Sequence Diagrams.
1 © Wolfgang Pelz UML2 UML Part Two. 2 © Wolfgang Pelz UML2 Chapters Four & Twelve Interaction Diagrams.
Essentials of interaction diagrams Lecture 23 & 24.
Essentials of interaction diagrams Lecture Outline Collaborations Interaction on collaboration diagrams Sequence diagrams Messages from an object.
Unified Modeling Language (UML)
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.
Sequence Diagram. What is Sequence Diagram?  Sequence Diagram is a dynamic model of a use case, showing the interaction among classes during a specified.
Sequence Diagrams By Zvika Gutterman Adam Carmi. Sequence Diagrams2 Agenda Interaction Diagrams A First Look at Sequence Diagrams Objects Messages Control.
SE-565 Software System Requirements More UML Diagrams.
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.
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.
Karolina Muszyńska Based on: S. Wrycza, B. Marcinkowski, K. Wyrzykowski „Język UML 2.0 w modelowaniu SI”
State and Sequence Diagrams Modelling dynamic information So far we have seen: Use Case Diagrams – requirements capture, interface.
INFO 620Lecture #51 Information Systems Analysis and Design Sequence and Collaboration Diagrams INFO 620 Glenn Booker.
CS3773 Software Engineering
UML Collaboration Diagram. Recap System Sequence Diagrams (SSD) UML for SSD Examples.
Object-Oriented Software Engineering Practical Software Development using UML and Java Chapter 8: Modelling Interactions and Behaviour.
Introduction to Interaction Diagrams Used to illustrate the dynamic behaviour of a community of objects that collaborate by passing messages in order to.
SOFTWARE DESIGN AND ARCHITECTURE LECTURE 25. Review Design Level Class Diagram Identifying classes/Operations/Attributes Associations – Simple associations.
1 Sequence Diagrams (Based on Stevens and Pooley (2006, Chapters 9, 10) and Fowler (2004, Chapter 4)) David Meredith Aalborg University.
Practical Object-Oriented Design with UML 2e Slide 1/1 ©The McGraw-Hill Companies, 2004 PRACTICAL OBJECT-ORIENTED DESIGN WITH UML 2e Chapter 9: Interaction.
© 2007 Pearson Education, Inc. Publishing as Pearson Addison-Wesley 1 UML Sequence Diagrams.
1 Modeling interactions and behavior Lecturer Dr. Mai Fadel.
Engineering 5895: Software Design 10/5/01Interaction Diagrams1 Modeling Behaviour Engineering 5895: Software Design.
7 Systems Analysis and Design in a Changing World, Fifth Edition.
Collaboration Diagrams CSIS3600. What is a Collaboration Diagram Collaboration diagrams illustrate interactions between objects The collaboration diagram.
Smith’s Aerospace © P. Bailey & K. Vander Linden, 2005 Interaction and Communication Diagrams Patrick Bailey Keith Vander Linden Calvin College.
M Taimoor Khan Sequence Diagrams Illustrates how objects interacts with each other. Emphasizes time ordering of messages.
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.
Interaction Diagrams Interaction Diagrams allow the designer to show how groups of objects collaborate in some behavior. –Interaction Diagrams will show.
Object-Oriented Software Engineering Practical Software Development using UML and Java Chapter 8: Modelling Interactions and Behaviour UML Sequence Diagram.
Sequence Diagrams CSIS3600. Sequence Diagrams A sequence diagram shows an interaction arranged in time sequence. In particular, it shows the objects participating.
Object Oriented Analysis and Design Sequence Diagrams.
CSCI-383 Object-Oriented Programming & Design Lecture 12.
7. 2Object-Oriented Analysis and Design with the Unified Process Objectives  Detailed Object-Oriented Requirements Definitions  System Processes—A Use.
Karolina Muszyńska Based on: S. Wrycza, B. Marcinkowski, K. Wyrzykowski „Język UML 2.0 w modelowaniu SI”
Systems Analysis and Design in a Changing World, Fourth Edition
Chapter 3: Introducing the UML
 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.
Sequence diagrams Lecture 5. Main terms  Interaction  Life line  Activation  Executable behavior and derived behavior  Messages  Trajectory  Frame.
Systems Analysis and Design in a Changing World, Fourth Edition
Analysis Classes Unit 5.
Sequence Diagrams Mimi Opkins CECS 493 Fall2016
COMP 2710 Software Construction Sequence Diagrams (cont.)
Sequence Diagram.
Business System Development
Sequence Diagrams.
Princess Nourah bint Abdulrahman University
UML Sequence Diagrams.
Object Oriented Analysis and Design
Princess Nourah bint Abdulrahman University
Sequence Diagrams.
IMAT5205 Systems Analysis and Design
Interaction diagrams.
Sequence Diagrams Getting the Message.
Unified Modelling Language
Interaction diagrams Interaction diagrams are models that describe how groups of objects collaborate in some behavior. Typically, an interaction diagram.
Sequence Diagrams.
Appendix 3 Object-Oriented Analysis and Design
Presentation transcript:

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 of phase 2 phase 3 submissions

Review: Class Diagrams Aggregation (Shared Association)

Review: Class Diagrams Composition (Not-Shared Association)

COMP 2710 Software Construction Sequence Diagrams Dr. Xiao Qin Auburn University

Sequence diagrams Purpose – Model interactions between objects – Assist in understanding how a system (i.e., a use case) actually works – Verify that a use case description can be supported by the existing classes – Identify responsibilities/operations and assign them to classes

Sequence Diagram Illustrates the objects that participate in a use case and the messages that pass between them over time for one use case In design, used to distribute use case behavior to classes

Sequence Diagram Syntax

A Sample Sequence Diagram

Sequence Diagram Two major components – Active objects – Communications between these active objects Messages sent between the active objects

Sequence Diagram Active objects – Any objects that play a role in the system – Participate by sending and/or receiving messages – Placed across the top of the diagram – Can be: An actor (from the use case diagram) Object/class (from the class diagram) within the system

Active Objects Object – Can be any object or class that is valid within the system – Object naming Syntax [instanceName][:className] 1.Class name only :Classname 2.Instance name only objectName 3.Instance name and class name together object:Class myBirthdy :Date

Active Objects Actor – A person or system that derives benefit from and is external to the system – Participates in a sequence by sending and/or receiving messages

Sequence Diagram

Communications between Active Objects Messages – Used to illustrate communication between different active objects of a sequence diagram – Used when an object needs to activate a process of a different object to give information to another object

Messages A message is represented by an arrow between the life lines of two objects. – Self calls are allowed A message is labeled at minimum with the message name. – May include arguments and control information (conditions, iteration).

Types of Messages  Synchronous (flow interrupt until the message has completed)  Asynchronous (don ’ t wait for response)  Flat (no distinction between sysn/async)  Return (control flow has returned to the caller)

Synchronous Messages The routine that handles the message is completed before the calling routine resumes execution.

Asynchronous Messages  Calling routine does not wait for the message to be handled before it continues to execute.  As if the call returns immediately  Examples  Notification of somebody or something  Messages that post progress information

Return Values  Optionally indicated using a dashed arrow with a label indicating the return value.  Don’t model a return value when it is obvious what is being returned, e.g. getTotal()  Model a return value only when you need to refer to it elsewhere (e.g. as a parameter passed in another message)  Prefer modeling return values as part of a method invocation, e.g. ok = isValid()

Other Elements of Sequence Diagram  Lifeline  Focus of control (activation box or execution occurrence)  Control information  Condition, repetition

Sequence Diagram

 Lifeline  Denotes the life of actors/objects over time during a sequence  Represented by a vertical line below each actor and object (normally dashed line)  For temporary object  place X at the end of the lifeline at the point where the object is destroyed

Sequence Diagram  Focus of control (activation box)  Means the object is active and using resources during that time period  Denotes when an object is sending or receiving messages  Represented by a thin, long rectangular box overlaid onto a lifeline

Sequence Diagram

Control Information  Condition  syntax: ‘[‘ expression ’]’ message-label  The message is sent only if the condition is true [ok] borrow(member)

Elements of Sequence Diagram message()

Sequence Diagrams message()

Sequence Diagrams Concurrency obj3: Class

Elements of Sequence Diagram  Control information  Iteration  may have square brackets containing a continuation condition (until) specifying the condition that must be satisfied in order to exit the iteration and continue with the sequence  may have an asterisk followed by square brackets containing an iteration (while or for) expression specifying the number of iterations

Control Information  Iteration  syntax: * [ ‘[‘ expression ‘]’ ] message- label  The message is sent many times to possibly multiple receiver objects. *draw()

Control Information  Iteration example

Control Information  The control mechanisms of sequence diagrams suffice only for modeling simple alternatives.  Consider drawing several diagrams for modeling complex scenarios.  Don’t use sequence diagrams for detailed modeling of algorithms (this is better done using activity diagrams, pseudo-code or state-charts).

Creating Objects  Notation for creating an object on- the-fly  Send the > message to the body of the object instance  Once the object is created, it is given a lifeline.  Now you can send and receive messages with this object as you can any other object in the sequence diagram.

Sequence Diagrams  Creation and destruction of an object in sequence diagrams are denoted by the stereotypes > and >

Object Creation  An object may create another object via a > message.

Object Destruction  An object may destroy another object via a > message.  An object may destroy itself.  Avoid modeling object destruction unless memory management is critical.

Exercise: System Sequence Diagram for PRINT a Report