UML The Unified Modeling Language A Practical Introduction Al-Ayham Saleh Aleppo University 22-11-2003.

Slides:



Advertisements
Similar presentations
© 2006 ITT Educational Services Inc. SE350 System Analysis for Software Engineers: Unit 9 Slide 1 Appendix 3 Object-Oriented Analysis and Design.
Advertisements

Copyright © 2012 Pearson Education, Inc. Publishing as Prentice Hall A.1.
Session 18 Modeling the Dynamic View: The Collaboration Diagram Written by Thomas A. Pender Published by Wiley Publishing, Inc. October 20, 2011 Presented.
Lecture 5a: Sequence Interaction Diagrams CSE 111 Copyright W. Howden1.
Copyright W. Howden1 Lecture 4: Sequence Interaction Diagrams.
© 2005 Prentice Hall4-1 Stumpf and Teague Object-Oriented Systems Analysis and Design with UML.
Sequence Diagram. What is Sequence Diagram?  Sequence Diagram is a dynamic model of a use case, showing the interaction among classes during a specified.
Copyright 2004 Prentice-Hall, Inc. Essentials of Systems Analysis and Design Second Edition Joseph S. Valacich Joey F. George Jeffrey A. Hoffer Appendix.
UML Sequence Diagrams Eileen Kraemer CSE 335 Michigan State University.
Blaha and Rumbaugh Sections 7.2 and 8.2
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 Diagrams: Sequence Diagrams The Requirements Model, and The Dynamic Analysis Model Instructor: Dr. Hany H. Ammar Dept. of Computer Science and Electrical.
UML Sequence Diagrams Michael L. Collard, Ph.D. Department of Computer Science Kent State University.
Chapter 7: The Object-Oriented Approach to Requirements
UML Diagrams: Sequence Diagrams The Requirements Model, and The Dynamic Analysis Model Prof. Hany H. Ammar, CSEE, WVU, and Dept. of Computer Science, Faculty.
Karolina Muszyńska Based on: S. Wrycza, B. Marcinkowski, K. Wyrzykowski „Język UML 2.0 w modelowaniu SI”
Sequence diagrams Chapter 5 Sommerville. Sequence diagrams Sequence diagrams are part of the UML and are used to model the interactions between the actors.
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.
Interaction diagrams Sequence and collaboration diagrams.
1 SAD2 - UML 2 nd Lecture Sequence Diagram and other dynamic views Lecturer: Dr Dimitrios Makris
Copyright 2001 Prentice-Hall, Inc. Essentials of Systems Analysis and Design Joseph S. Valacich Joey F. George Jeffrey A. Hoffer Appendix A Object-Oriented.
Copyright 2002 Prentice-Hall, Inc. Modern Systems Analysis and Design Third Edition Jeffrey A. Hoffer Joey F. George Joseph S. Valacich Chapter 20 Object-Oriented.
UML The Unified Modeling Language A Practical Introduction Al-Ayham Saleh Aleppo University
UML Diagrams: Sequence Diagrams The Requirements Model, and The Dynamic Analysis Model Instructor: Dr. Hany H. Ammar Dept. of Computer Science and Electrical.
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.
Copyright 2002 Prentice-Hall, Inc. Chapter 2 Object-Oriented Analysis and Design Modern Systems Analysis and Design Third Edition Jeffrey A. Hoffer Joey.
Software Engineering Prof. Ing. Ivo Vondrak, CSc. Dept. of Computer Science Technical University of Ostrava
©Ian Sommerville 2004Software Engineering, 7th edition. Chapter 14 Slide 1 Object-oriented Design.
ניתוח מערכות מידע 1 Unified Modeling Language (UML) § § The Unified Modeling Language (UML) is the industry-standard language for: Specifying, Visualizing,
Sequence diagram in UML Martin Palkovik. Sequence diagram  It is a graphic representation of system operations based on chronology - a time sequence.
The Unified Modeling Language Part II Omar Meqdadi SE 2730 Lecture 9 Department of Computer Science and Software Engineering University of Wisconsin-Platteville.
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.
UML The Unified Modeling Language A Practical Introduction Al-Ayham Saleh Aleppo University
Object Oriented Analysis and Design Sequence Diagrams.
Karolina Muszyńska Based on: S. Wrycza, B. Marcinkowski, K. Wyrzykowski „Język UML 2.0 w modelowaniu SI”
Dynamic Models Sequence Diagrams Collaboration Diagrams Activity Diagrams.
UML Review of Use case diagrams. 2 Unified Modeling Language The Unified Modeling Language™ (UML) was developed jointly by Grady Booch, Ivar Jacobson,
Karolina Muszyńska Based on: S. Wrycza, B. Marcinkowski, K. Wyrzykowski „Język UML 2.0 w modelowaniu SI”
Copyright © 2009 Pearson Education, Inc. Publishing as Prentice Hall Appendix A Object-Oriented Analysis and Design A.1.
Communication Diagrams Lecture 8. Introduction  Interaction Diagrams are used to model system dynamics  How do objects change state?  How do objects.
 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.
Lecturer: Eng. Mohamed Adam Isak PH.D Researcher in CS M.Sc. and B.Sc. of Information Technology Engineering, Lecturer in University of Somalia and Mogadishu.
ITEC1301 Object-Oriented Systems Construction Lecture Notes #4 1.
Sequence diagrams Lecture 5. Main terms  Interaction  Life line  Activation  Executable behavior and derived behavior  Messages  Trajectory  Frame.
Appendix 3 Object-Oriented Analysis and Design
Instructor: Dr. Hany H. Ammar
Object-Oriented Analysis and Design
Object-Oriented Systems Analysis and Design Using UML
Sequence Diagram.
Sequence Diagram.
Business System Development
Dynamic Modeling: Defining Classes
Interactions.
Object Oriented Analysis and Design
Unified Modeling Language
University of Houston-Clear Lake
Lecture 4: Sequence Interaction Diagrams
UML Diagrams: Sequence Diagrams Dynamic Analysis Model
Chapter 20 Object-Oriented Analysis and Design
Appendix A Object-Oriented Analysis and Design
Chapter 9: Sequence Diagrams Chapter 5 in Software Engineering Book
UML Interaction diagrams
Copyright 2007 Oxford Consulting, Ltd
Chapter 9: Sequence Diagrams Chapter 5 in Software Engineering Book
Appendix A Object-Oriented Analysis and Design
Appendix A Object-Oriented Analysis and Design
Appendix 3 Object-Oriented Analysis and Design
Uml diagrams In ooad.
Presentation transcript:

UML The Unified Modeling Language A Practical Introduction Al-Ayham Saleh Aleppo University

UML Diagrams Use Case diagrams Class diagrams Object diagrams Sequence diagrams Collaboration diagrams State chart diagrams Activity diagrams Component diagrams Deployment diagrams

Object Diagrams Useful when you model reflexive associations Represent Data, or samples of data Object Diagrams are static Underline means an object

Sequence Diagrams Detail how operations are carried out Dynamic Diagrams Organized according to time –The time progresses as you go down the page –The objects involved in the operation are listed from left to right according to when they take part in the message sequence. Create a sequence diagram for each scenario

Sequence Diagrams

Sequence diagrams show how instance exchange messages. An instance can be: –An object, not a class –An actor

Sequence Diagrams Messages can be Simple –One object sends a message to a passive object –The sender does not care what happens to the message –Useful when the recipient can not be controlled

Sequence Diagrams Messages can be Synchronous –The sender sends the message –The recipient accepts the message, and notifies the sender with a message result. –The sender accepts the message result. If the sender does not accept the message result, then the whole operation will not continue. Synchronous messages are useful to represent procedure calls or modal dialogs.

Sequence Diagrams Messages can be Asynchronous –The sender sends the message –The sender does not wait for the return of the message, it immediately continues execution. –The recipient may or may not send a reply. Asynchronous messages are useful to model – Multithreading –Windows hooks –Windows sub-classing –Exception Handling –Modeless dialogs

Sequence Diagrams Messages can be Timeouts –The sender sends the message –The sender awaits for the return of the message for some time. –Execution continues when the recipient replies, or after the timeout period if the recipient does not reply –The recipient may or may not send a reply. Timeout messages are useful to model – System Calls –Cross-component calls

Sequence Diagrams Messages can be Return messages –Results of procedure calls

Sequence Diagrams Messages can be Constructors –The message creates the recipient

Sequence Diagrams Messages can be Destructors –The message destroys the recipient

Sequence Diagrams Messages have sequence numbers –The numbers represent the order of interaction

Sequence Diagrams Messages have sequence numbers –Sequence number can be hierarchical

Sequence Diagrams Messages have a specific format [Condition]Sequence Number.Return value := MessageName(Arguments) [Condition]Sequence Number.Return value := MessageName(Arguments) * [iteration]

When to use Sequence Diagrams To specify how instances interact To show what happens before the other To show the relationships/dependencies between interactions To clarify each object requirements for all the possible scenarios of the system

Effective Sequence Diagrams Use only instances and actors Concentrate on actions, not on instance static details Imaging as much real time scenarios as you can, and model them Keep in mind that a programmer will read your design, so make it as clear as possible.

Collaboration Diagrams Represent Object roles in a scenario of interactions Are synonymous to sequence diagrams Use the same message formats

Collaboration Diagrams

Used to understand the structure of a scenario Used to concentrate on what happens to each instance as a whole. Can be converted to sequence scenarios

Static Modeling Diagrams –Use Case Diagrams –Class Diagrams –Object Diagrams Represent a static view of the system Represent what happens, and who participates

Interaction Modeling Diagrams –Sequence Diagrams –Collaboration Diagrams Represent how things happen –Conditions –Flow of interactions –Flow of events –Flow of information

Workshop Expand the previous workshop with the necessary interaction models –Collaboration diagrams for each scenario –Sequence diagram for each scenario