The Unified Modeling Language Part II Omar Meqdadi SE 2730 Lecture 9 Department of Computer Science and Software Engineering University of Wisconsin-Platteville.

Slides:



Advertisements
Similar presentations
Modeling Main issues: What do we want to build How do we write this down.
Advertisements

UML Diagrams Jung Woo. What is UML? Standard language for specifying, visualizing, constructing, and documenting the artifacts of software systems, business.
ZEIT2301 Design of Information Systems Behavioural Design: State Machines School of Engineering and Information Technology Dr Kathryn Merrick.
Modeling Main issues: What do we want to build How do we write this down ©2008 John Wiley & Sons Ltd. vliet.
Copyright © 2012 Pearson Education, Inc. Publishing as Prentice Hall A.1.
Chapter 22 Object-Oriented Systems Analysis and Design and UML Systems Analysis and Design Kendall and Kendall Fifth Edition.
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.
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.
Unified Modeling Language Sequence Diagrams Chapter 2 (JIA)
Unified Modeling Language UML Jonathan I. Maletic, Ph.D. Department of Computer Science Kent State University.
Introduction To System Analysis and Design
Systems Analysis and Design in a Changing World, Fourth Edition
L4-1-S1 UML Overview © M.E. Fayad SJSU -- CmpE Software Architectures Dr. M.E. Fayad, Professor Computer Engineering Department, Room #283I.
Introduction to UML Part 2 Behavioral Modeling. Sequence (event) diagram Describes object interaction Typically captures behavior of a single use case.
COST G9 - Work group 2 Cadastral science meeting Aalborg, Dk Modeling methodology for real estate transactions Radoš Šumrada Faculty.
Copyright W. Howden1 Lecture 4: Sequence Interaction Diagrams.
University of Toronto Department of Computer Science © Steve Easterbrook. This presentation is available free for non-commercial use with attribution.
Modified from Sommerville’s originalsSoftware Engineering, 7th edition. Chapter 8 Slide 1 System models.
C++ Training Datascope Lawrence D’Antonio Lecture 11 UML.
Copyright 2004 Prentice-Hall, Inc. Essentials of Systems Analysis and Design Second Edition Joseph S. Valacich Joey F. George Jeffrey A. Hoffer Appendix.
THE OBJECT-ORIENTED DESIGN WORKFLOW Statechart Diagrams.
UML Sequence Diagrams Eileen Kraemer CSE 335 Michigan State University.
SE-565 Software System Requirements More UML Diagrams.
An Introduction to Rational Rose Real-Time
Unified Modeling Language
The Unified Modeling Language (UML) Class Diagrams.
UML Sequence Diagrams Michael L. Collard, Ph.D. Department of Computer Science Kent State University.
UML Collaboration Diagram. Recap System Sequence Diagrams (SSD) UML for SSD Examples.
©Ian Sommerville 2000 Software Engineering, 6th edition. Chapter 7 Slide 1 System models l Abstract descriptions of systems whose requirements are being.
The Unified Modeling Language Part I Omar Meqdadi SE 2730 Lecture 6 Department of Computer Science and Software Engineering University of Wisconsin-Platteville.
Interaction diagrams Sequence and collaboration diagrams.
1 Object-Oriented Modeling Using UML (2) CS 3331 Fall 2009.
State diagrams Interaction diagrams –Sequence diagrams –Collaboration diagrams Object orientation Part 4: Dynamic Modeling.
Copyright 2001 Prentice-Hall, Inc. Essentials of Systems Analysis and Design Joseph S. Valacich Joey F. George Jeffrey A. Hoffer Appendix A Object-Oriented.
Unified Modeling Language, Version 2.0
1 Devon M. Simmonds University of North Carolina, Wilmington CSC450 Software Engineering WorkFlow Modeling with Activity Diagrams.
Sommerville 2004,Mejia-Alvarez 2009Software Engineering, 7th edition. Chapter 8 Slide 1 System models.
Requirements as Usecases Capturing the REQUIREMENT ANALYSIS DESIGN IMPLEMENTATION TEST.
UML diagrams What is UML UML diagrams –Static modeoing –Dynamic modeling 1.
©Ian Sommerville 2004Software Engineering, 7th edition. Chapter 14 Slide 1 Object-oriented Design.
Lecture 18: Object-Oriented Design – Interaction and State Diagrams Anita S. Malik Adapted from Schach (2004) Chapter 12.
ניתוח מערכות מידע 1 Unified Modeling Language (UML) § § The Unified Modeling Language (UML) is the industry-standard language for: Specifying, Visualizing,
Fall 2010 CS4310 Requirements Engineering A Brief Review of UML & OO Dr. Guoqiang Hu Department of Computer Science UTEP 1.
Course Instructor: Kashif Ihsan 1. Chapter # 3 2.
OMT Modeling 1. Object Model : presented by the object model and the data dictionary. 2. Dynamic Model: presented by the state diagrams and event flow.
Dynamic Models Sequence Diagrams Collaboration Diagrams Activity Diagrams.
Lecture 9-1 : Intro. to UML (Unified Modeling Language)
1 Technical & Business Writing (ENG-715) Muhammad Bilal Bashir UIIT, Rawalpindi.
UML The Unified Modeling Language A Practical Introduction Al-Ayham Saleh Aleppo University
1 Unified Modeling Language, Version 2.0 Chapter 2.
Copyright © 2011 Pearson Education, Inc. Publishing as Prentice Hall Object-Oriented Systems Analysis and Design Using UML Systems Analysis and Design,
Communication Diagrams Lecture 8. Introduction  Interaction Diagrams are used to model system dynamics  How do objects change state?  How do objects.
Basic Characteristics of Object-Oriented Systems
ITEC1301 Object-Oriented Systems Construction Lecture Notes #4 1.
CompSci 280 S Introduction to Software Development
Systems Analysis and Design in a Changing World, Fourth Edition
UML Diagrams By Daniel Damaris Novarianto S..
Main issues: • What do we want to build • How do we write this down
Object-Oriented Analysis and Design
Unified Modeling Language
Object-Oriented Systems Analysis and Design Using UML
University of Central Florida COP 3330 Object Oriented Programming
UML Diagrams Jung Woo.
Introduction to UML Introduction to UML Shiyuan Jin September,23,2002
Interactions.
Classification of UML Diagrams
Unified Modeling Language
IMAT5205 Systems Analysis and Design
Week 12: Activity & Sequence Diagrams
Lecture 4: Sequence Interaction Diagrams
Presentation transcript:

The Unified Modeling Language Part II Omar Meqdadi SE 2730 Lecture 9 Department of Computer Science and Software Engineering University of Wisconsin-Platteville

2 Topics covered Modeling Behavior Interaction Diagrams State Chart Diagrams Activity Diagrams

Refining the object model Typically, only very simplistic object models can be directly derived from use cases. A better understanding of the behavior of each use case is necessary (i.e., analysis) Use interaction diagrams to specify and detail the behavior of use cases This helps to identify and refine key abstractions and relationships Operations, attributes, and messages are also identified during this process

Interaction diagrams There is one (or more) Interaction diagram per use case  Represent a sequence of interactions  Made up of objects, links, and messages Sequence diagrams  Models flow of control by time ordering  Emphasizes passing messages with time  Shows simple iteration and branching Collaboration diagrams  Models flow of control by organization  Structural relationships among instances in the interaction  Shows complex iteration and branching

Sequence diagrams X-axis is objects  Object that initiates interaction is left most  Object to the right are increasingly more subordinate Y-axis is time  Messages sent and received are ordered by time Object life lines represent the existence over a period of time Activation (double line) is the execution of the procedure.

Properties of sequence diagrams Initiator is leftmost object (boundary object) Next is typically a control object Then comes entity objects

Message passing Send – sends a signal (message) to an object Return – returns a value to a caller Call – invoke an operation Stereotypes  >

Example: UML sequence diagram

Example

Collaboration diagrams Emphasizes the organization of the objects that participate in an interaction Classifier roles Association Messages, flow, and sequencing

Example: collaboration diagram

Example: collaboration diagrams User Catalog Reservations start 1: look up 2: title data 3 : [not available] reserve title 4 : title returned 5 : hold title 6 : borrow title 6: remove reservation 5: title available

Collaboration vs Sequence The two diagrams really show the same information Collaboration diagrams show more static structure (however, class diagrams are better at this) Sequence diagrams clearly highlight the orderings and very useful for multi-tasking

State diagrams Finite state machines (i.e., automata, Mealy/Moore, state transition) Used to describe the behavior of one object (or sometimes an operator) for a number of scenarios that affect the object They are not good for showing interaction between objects (use interaction diagrams) Only use when the behavior of a object is complex and more detail is needed

State diagram features Event – something that happens at a specific point  Alarm goes off Condition – something that has a duration  Alarm is on  Fuel level is low State – an abstraction of the attributes and relationships of an object (or system)  The fuel tank is in a too low level when the fuel level is below level x for n seconds

Example: On/Off Switch

Using guards and actions trigger event guard action

Activity diagrams (Flow charts) Special form of a state machine (flow chart) – intended to model computations and workflows States of the executing the computation not the states of an object Flow between activity states is caused by the end of a computation rather then an event

Why activity diagrams Flowcharts (abet a bit glorified) are not very amiable to OO Not part of any previous notations Suitable for modeling the business activities OO and UML is becoming very prevalent in business applications Introduced to help sell products?

Activity diagrams: branching

Example: ATM system