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

Slides:



Advertisements
Similar presentations
UML Diagrams Jung Woo. What is UML? Standard language for specifying, visualizing, constructing, and documenting the artifacts of software systems, business.
Advertisements

Use Case Modeling SJTU. Unified Modeling Language (UML) l Standardized notation for object-oriented development l Needs to be used with an analysis and.
A Brief Introduction. Acknowledgements  The material in this tutorial is based in part on: Concurrency: State Models & Java Programming, by Jeff Magee.
Object-Oriented Analysis and Design
UML: Use Cases Michael L. Collard, Ph.D. Department of Computer Science Kent State University.
Unified Modeling Language
CS3773 Software Engineering Lecture 03 UML Use Cases.
Use Case Diagram © copyright 2001 SNU OOPSLA Lab..
Object-Oriented Analysis and Design
Unified Modeling Language UML Jonathan I. Maletic, Ph.D. Department of Computer Science Kent State University.
Unified Modeling Language (UML) Fawzi Emad Chau-Wen Tseng Department of Computer Science University of Maryland, College Park.
C++ Training Datascope Lawrence D’Antonio Lecture 11 UML.
© Copyright Eliyahu Brutman Programming Techniques Course.
Unified Modeling Language (UML)
UML Sequence Diagrams Eileen Kraemer CSE 335 Michigan State University.
Unified Modeling Language
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
2005/05/25 Unified Modeling Lanauage 1 Introduction to Unified Modeling Language (UML) – Part One Ku-Yaw Chang Assistant Professor.
CMIS 470 Structured Systems Design
SOFTWARE ENGINEERING BIT-8 APRIL, 16,2008 Introduction to UML.
Unified Modeling Language, Version 2.0
Programming in Java Unit 3. Learning outcome:  LO2:Be able to design Java solutions  LO3:Be able to implement Java solutions Assessment criteria: 
UML Diagrams: Sequence Diagrams The Requirements Model, and The Dynamic Analysis Model Instructor: Dr. Hany H. Ammar Dept. of Computer Science and Electrical.
Copyright 2002 Prentice-Hall, Inc. Chapter 2 Object-Oriented Analysis and Design Modern Systems Analysis and Design Third Edition Jeffrey A. Hoffer Joey.
1 Devon M. Simmonds University of North Carolina, Wilmington CSC450 Software Engineering WorkFlow Modeling with Activity Diagrams.
UML diagrams What is UML UML diagrams –Static modeoing –Dynamic modeling 1.
1 Structuring Systems Requirements Use Case Description and Diagrams.
The Unified Modeling Language Part II Omar Meqdadi SE 2730 Lecture 9 Department of Computer Science and Software Engineering University of Wisconsin-Platteville.
1 System Analysis and Design Using UML INSTRUCTOR: Jesmin Akhter Lecturer, IIT, JU.
2 2009/10 Object Oriented Technology 1 Topic 2: Introduction to Object-Oriented Approach Reference: u Ch.16 Current Trends in System Development (Satzinger:
Business Analysis with For PG MDI, Gurgaon Kamna Malik, Ph.D.
UML as a Specification Language for Embedded Systems. By, Mir Ahmed Ali, Asst. Professor, ECM department, SNIST. By, Prof. Narsiah sir, Director of School.
Logical view –show classes and objects Process view –models the executables Implementation view –Files, configuration and versions Deployment view –Physical.
Introduction to UML CS A470. What is UML? Unified Modeling Language –OMG Standard, Object Management Group –Based on work from Booch, Rumbaugh, Jacobson.
R R R CSE870: Advanced Software Engineering: UML-- Use Cases1 Use Cases and Scenarios.
©2007 · Georges Merx and Ronald J. NormanSlide 1 Chapter 15 The Unified Modeling Language: a Primer.
Lecture 9-1 : Intro. to UML (Unified Modeling Language)
12/24/2015B.Ramamurthy1 Analysis and Design with UML: Discovering Classes Bina Ramamurthy.
1 Technical & Business Writing (ENG-715) Muhammad Bilal Bashir UIIT, Rawalpindi.
Week 04 Object Oriented Analysis and Designing. What is a model? A model is quicker and easier to build A model can be used in simulations, to learn more.
1 Unified Modeling Language, Version 2.0 Chapter 2.
Analysis Yaodong Bi. Introduction to Analysis Purposes of Analysis – Resolve issues related to interference, concurrency, and conflicts among use cases.
UML (Unified Modeling Language)
UML Review of Use case diagrams. 2 Unified Modeling Language The Unified Modeling Language™ (UML) was developed jointly by Grady Booch, Ivar Jacobson,
UML - Development Process 1 Software Development Process Using UML.
UML Course Instructor: Rizwana Noor. Overview  Modeling  What is UML?  Why UML?  UML Diagrams  Use Case  Components  Relationships  Notations.
Chapter 6: System Models Omar Meqdadi SE 273 Lecture 6 Department of Computer Science and Software Engineering University of Wisconsin-Platteville.
Fall 2007 Week 9: UML Overview MSIS 670: Object-Oriented Software Engineering.
1 BTS330 Visual Modeling. What is Visual Modeling? 2 Copyright © 1997 by Rational Software Corporation Computer System Business Process Order Item Ship.
Use Case, Component and Deployment Diagrams University of Sunderland.
Unified Modeling Language. What is UML? Standard language for specifying, visualizing, constructing, and documenting the artifacts of software systems,
Slide 1 Unified Modeling Language, Version 2.0 Object-Oriented SAD.
Introduction to UML.
UML(Unified Modeling Language)
UML Diagrams By Daniel Damaris Novarianto S..
Use Cases and Scenarios
Object-Oriented Analysis and Design
Department of Computer Science
Systems Analysis and Design With UML 2
Unified Modeling Language
UML Use Case Diagrams.
University of Central Florida COP 3330 Object Oriented Programming
UML Diagrams Jung Woo.
Software Architecture & Design Pattern
Unified Modeling Language
Design and Implementation
Software Design Lecture : 15.
Uml diagrams In ooad.
Presentation transcript:

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

2 Topics covered Introduction to UML Overview and Background Modeling Requirements Use Cases Scenarios

3 Objectives of UML UML is a general purpose notation that is used to visualize, specify, construct, and document the artifacts of a software systems.

4 Background UML is the result of an effort to simplify and consolidate the large number of OO development methods and notations Main groups: Booch [91], Rumbaugh [91], Jacobson [92] Object Management Group –

5 Types of Diagrams Structural Diagrams – focus on static aspects of the software system  Class, Object, Component, Deployment Behavioral Diagrams – focus on dynamic aspects of the software system  Use-case, Interaction, State Chart, Activity

6 Structural Diagrams Class Diagram – set of classes and their relationships. Describes interface to the class (set of operations describing services) Object Diagram – set of objects (class instances) and their relationships Component Diagram – logical groupings of elements and their relationships Deployment Diagram - set of computational resources (nodes) that host each component.

7 Behavioral Diagram Use Case Diagram – high-level behaviors of the system, user goals, external entities: actors Sequence Diagram – focus on time ordering of messages Collaboration Diagram – focus on structural organization of objects and messages State Chart Diagram – event driven state changes of system Activity Diagram – flow of control between activities

8 Analysis & Design Process Requirements elicitation – High level capture of user/system requirements  Use Case Diagram Identify major objects and relationships  Object and class diagrams Create scenarios of usage  Class, Sequence and Collaboration diagrams Generalize scenarios to describe behavior  Class, State and Activity Diagrams Refine and add implementation details  Component and Deployment Diagrams

9 UML Driven Process

10 UML Driven Process Model

11 Work Products Functional Model – Use Case diagrams Analysis Object Model – simple object/class diagram Dynamic Model – State and Sequence diagrams Object Design Model – Class diagrams Implementation Model – Deployment, and Activity diagrams

12 Use Case Diagrams Describes a set of sequences. Each sequence represents the interactions of things outside the system (actors) with the system itself (and key abstractions) Use cases represent the functional requirements of the system (non-functional requirements must be given elsewhere)

13 Use case Each use case has a descriptive name Describes what a system does but not how it does it. Use case names must be unique within a given package Examples: withdraw money, process loan

14 Actor Actors have a name An actor is a set of roles that users of use cases play when interacting with the system They are external entities They may be external an system or DB Examples: Customer, Loan officer

15 What is a Use Case Use case captures some user-visible functionality Granularity of functionality depends on the level of detail in your model Each use case achieves a discrete goal for the user Use Cases are generated through requirements elicitation

16 Goals vs. Interaction Goals – something the user wants to achieve  Format a document  Ensure consistent formatting of two documents Interaction – things the user does to achieve the goal  Define a style  Change a style  Copy a style from one doc to the next

17 Developing Use Cases Understand what the system must do – capture the goals Understand how the user must interact to achieve the goals – capture user interactions Identify sequences of user interactions Start with goals and refine into interactions

18 Example

19 Refining Use Cases Separate internal and external issues Describe flow of events in text, clearly enough for customer to understand  Main flow of events  Exceptional flow of events Show common behaviors with includes Describe extensions and exceptions with extends

20 Extend and Include

21 System Boundary

22 Use Case – Buy Item Actors: Customer (initiator), Cashier Type: Primary Description: The costumer arrives at the checkout with items to purchase. Cashier records purchases and collects payment. Customer leaves with items

23 Example (generalization)

24 Example: Weather Monitoring Station This system shall provide automatic monitoring of various weather conditions. Specifically, it must measure:  wind speed and direction  temperature  barometric pressure  humidity The system shall also proved the following derived measurements:  wind chill  dew point temperature  temperature trend  barometric pressure trend

25 Weather Monitoring System Requirements The system shall have the means of determining the current time and date so that it can report the highest and lowest values for any of the four primary measurements during the previous 24 hour period. The system shall have a display that continuously indicates all eight primary and derived measurements, as well as current time and date. Through he use of a keypad the user may direct the system to display the 24 hour low or high of any one primary measurement, with the time of the reported value. The system shall allow the user to calibrate its sensors against known values, and set the current time and date.

26 Hardware Requirements Use a single board computer (486?) Time and date are supplied by an on-board clock accessible via memory mapped I/O Temperature, barometric pressure, and humidity are measured by on board circuits with remote sensors. Wind direction and speed are measure from a boom encompassing a wind vane (16 directions) and cups (which advance a counter every revolution) User input is provided through an off the shelf keypad, managed by onboard circuit supplying audible feed back for each key press. Display is off the self LCD with a simple set of graphics primitives. An onboard timer interrupts the computer every 1/60 second.

27 Display and Keypad LCDDisplay – Values and current system state (Running, Calibrating, Selecting, Mode)  Operations: drawtext, drawline, drawcircle, settextsize, settextstyle, setpensize Keypad allows user input and interaction  Operations: last key pressed  Attributes: key Date: Time: Temp: Pressure: Humidity: N S EW TempHumPress WindTimeDate SelectCalMode

28 Use Diagrams

29 Scenario: Powering Up 1. Power is turned on 2. Each sensor is constructed 3. User input buffer is initialized 4. Static elements of display are drawn 5. Sampling of sensors is initialized The past high/low values of each primary measurement is set to the value and time of their first sample. The temperature and Pressure trends are flat. The input manager is in the Running state

30 Scenario: Setting Time and Date 1. User presses Select key 2. System displays selecting 3. User presses any one of the keys Time or Date. Any other key is ignored except Run 4. System flashes the corresponding label 5. Users presses Up or Down to change date or time. 6. Control passes back to step 3 or 5 User may press Run to abandon the operation.

31 Scenario: Display highest and lowest 1. User presses Select key 2. System displays selecting 3. User presses any one of the keys (Wind, Temp, Humidity, Pressure). Any other key is ignored except Run 4. System flashes the corresponding label 5. Users presses Up or Down to select display of highest or lowest in 24 hour period. Any other key press is ignored except for Run 6. System displays value with time of occurrence 7. Control passes back to step 3 or 5 User may press Run to abandon the operation.

32 Use Diagrams

33 Summary A well structured use case:  Names a single identifiable and reasonably atomic behavior of the system  Factors common behavior by pulling such behavior from other use cases that include it  Factors variants by pushing such behavior into other uses cases that extend it  Describes events clearly  Described in a minimal set of scenarios