22 August, 2007Information System Design IT60105, Autumn 2007 Information System Design IT60105 Lecture 8 Use Case Diagrams.

Slides:



Advertisements
Similar presentations
155 CONCEPTUAL DESIGN: PURPOSE, ACTORS, FEATURES, AND UML USE CASES.
Advertisements

Use Case & Use Case Diagram
© 2010 Bennett, McRobb and Farmer1 Use Case Description Supplementary material to support Bennett, McRobb and Farmer: Object Oriented Systems Analysis.
Karolina Muszyńska Based on:
Use Case Model. C-S 5462 Use case model describes what the user expects the system to do –functional requirements may describe only the functionalities.
Use Case Modeling SJTU. Unified Modeling Language (UML) l Standardized notation for object-oriented development l Needs to be used with an analysis and.
OOAD Using the UML - Use-Case Analysis, v 4.2 Copyright  Rational Software, all rights reserved 1/18 Use Case Analysis – continued Control Classes.
Use Case Diagram © copyright 2001 SNU OOPSLA Lab..
Object-Oriented Analysis and Design
Use-case Modeling.
Lecture 12: Chapter 22 Topics: UML (Contd.) –Relationship Structural Behavioral –Diagram Structural Behavioral.
Use Case Modelling.
C++ Training Datascope Lawrence D’Antonio Lecture 11 UML.
Use Case Modeling.
Use Case Modeling. Kendall & Kendall© 2005 Pearson Prentice Hall18-2 Commonly Used UML Diagrams The most commonly used UML diagrams are: – Use case diagram,
Use Case Analysis – continued
UFCEPM-15-M Object-oriented Design and Programming Jin Sa.
Unified Modeling Language
IS0514 Lecture Week 3 Use Case Modelling.
Use case diagrams A use case diagram is UML’s notation for showing the relationships among a set of use cases and actors A use case diagram can help the.
USE Case Model.
® IBM Software Group © 2006 IBM Corporation Rational Software France Object-Oriented Analysis and Design with UML2 and Rational Software Modeler 06. Requirements.
SOFTWARE ENGINEERING BIT-8 APRIL, 16,2008 Introduction to UML.
Intro: Use Case and Use Case Diagram Documentation.
1 Chapter 2 (Cont.) The BA’s Perspective on Object Orientation.
Faculty of Computer & Information Software Engineering Third year
SOFTWARE DESIGN AND ARCHITECTURE LECTURE 20. Review Software Requirements Requirements Engineering Process.
USE CASE Bayu Adhi Tama, MTI Faculty of Computer Science, University of Sriwijaya Slides are adapted from Petrus Mursanto
Requirements Analysis Visual Modeling] Lab 02 Visual Modeling (from Visual Modeling with Rational Rose and UML) A way of thinking about problems using.
Copyright 2002 Prentice-Hall, Inc. Chapter 2 Object-Oriented Analysis and Design Modern Systems Analysis and Design Third Edition Jeffrey A. Hoffer Joey.
Faculty of Computer & Information
Kyung Hee University System Functional Model OOSD 담당조교 석사과정 이정환.
UML diagrams What is UML UML diagrams –Static modeoing –Dynamic modeling 1.
UML Use Case Diagramming Guidelines. What is UML? The Unified Modeling Language (UML) is a standard language for specifying, visualizing, constructing,
1 Object-Oriented Modeling Using UML CS 3331 Section 2.4 Modeling Requirements with Use Cases.
Faculty of Applied Engineering and Urban Planning Software Engineering Department Software Engineering Lab Use Cases Faculty of Information system Technology.
©Ian Sommerville 2004Software Engineering, 7th edition. Chapter 4 Slide 1 Slide 1 Use Case Diagrams.
Carmen David, Senior BA Business Analysis Carmen David, Senior BA Business Analysis Foundation in Business Analysis Session 7 MODELLING REQUIREMENTS.
Use Cases, Part I Understanding the Business Dynamics  Understand the business workflow  Identify system support points the system 'use cases'
1 System Analysis and Design Using UML INSTRUCTOR: Jesmin Akhter Lecturer, IIT, JU.
Discovering object interaction. Use case realisation The USE CASE diagram presents an outside view of the system. The functionality of the use case is.
Use Cases Use Cases are employed to describe the functionality or behavior of a system. Each use case describes a different capability that the system.
Use Case Model Use case diagram.
Use Case Diagram The purpose is to communicate the system’s functionality and behaviour to the customer or end user. Mainly used for capturing user requirements.
Use Case Model Use case diagram. Relevant Requirements Artifacts Use-Case Model Supplementary Specification Use-Case Specifications... Glossary Actors.
CS212: Object Oriented Analysis and Design Lecture 32: Use case and Class diagrams.
Scenario A scenario is a sequence of steps describing an interaction between a user and a system. Use case is a set of scenarios tied together by a common.
Sept Ron McFadyen1 Use Cases Introduced by Ivar Jacobson in 1986 literal translation from Swedish ”usage case” Used to capture and describe.
New Perspective Based on how the system is used. What Is a Use Case? A case of how the system is used. –A behaviourally related sequence of interactions.
UML (Unified Modeling Language)
 What to do if you want to build a new house? › Buy a bunch of wood and nails and start immediately. › Or, put some blueprints to follow, and plan of.
Chapter 6: Structuring Requirements: Use Case Description and Diagrams Object-Oriented Systems Analysis and Design Joey F. George, Dinesh Batra, Joseph.
1 BTS330 Visual Modeling. What is Visual Modeling? 2 Copyright © 1997 by Rational Software Corporation Computer System Business Process Order Item Ship.
Use Case Diagrams. Introduction In the previous Lecture, you saw a brief review of the nine UML diagrams. Now that you have the clear, you'll start to.
PowerPoint Presentation for Dennis, Wixom, & Tegarden Systems Analysis and Design with UML, 5th Edition Copyright © 2015 John Wiley & Sons, Inc. All rights.
Chapter 3: Software Design –Use case Diagram Nouf Alghanmi.
Unified Modeling Language. What is UML? Standard language for specifying, visualizing, constructing, and documenting the artifacts of software systems,
Ondřej Přibyl Faculty of Transportation Sciences, CTU DESIGN OF ITS SYSTEMS Project support 1 3 PROJECT SUPPORT Use cases.
Object-Orientated Analysis, Design and Programming
Business Process and Functional Modeling
UML Diagrams By Daniel Damaris Novarianto S..
Lec-5 : Use Case Diagrams
Use Case Model.
Unified Modeling Language
Use Case Model Use case diagram.
UML Use Case Diagrams.
UML Diagrams Jung Woo.
Object Oriented Analysis and Design
IS0514 Lecture Week 3 Use Case Modelling.
Use Case Model Use case diagram – Part 2.
Presentation transcript:

22 August, 2007Information System Design IT60105, Autumn 2007 Information System Design IT60105 Lecture 8 Use Case Diagrams

22 August, 2007Information System Design IT60105, Autumn 2007 Lecture #8 What is a use-case diagram? Example: On-line purchase (OLP) system Use-case diagram of OLP system Different components in a use-case diagram and their notations A use-case and its corresponding scenario How to create a use case diagram? Use case relationships Use case packaging

22 August, 2007Information System Design IT60105, Autumn 2007 What is a Use Case Diagram? The use case diagram is a diagram to model the use case view of a system. The behavior of the system under development (i.e. what functionality must be provided by the system) is documented in a use case diagram Use case diagram illustrates the systems intended functions, its surroundings and relationship between the functions and surroundings Example: –On-line purchase (OLP) system

22 August, 2007Information System Design IT60105, Autumn 2007 On-Line Purchase (OLP) System Intended functions –Search items –Place order –Process order –Control inventory –Help on-line Its surroundings –Customer –Manager –Payment processor

22 August, 2007Information System Design IT60105, Autumn 2007 Use Case Diagram of OLP System

22 August, 2007Information System Design IT60105, Autumn 2007 Usage of Use Case Diagrams 1.Use case diagram depicts the desirable functionalities (dynamic aspects) of an information system 2.Use case diagram very much resembles with the function oriented concepts (functional decomposition) of a system 3.Use case diagram is considered as the central part of the system model and provides vehicle used by the customer (or end users) and the developer discuss the system’s functionality and the behavior

22 August, 2007Information System Design IT60105, Autumn 2007 Different Components in the Use Case Diagram Basic components in a use case diagram are –Use cases –Actors –Associations –System boundary boxes (optional) –Packages (optional)

22 August, 2007Information System Design IT60105, Autumn 2007 Use Case in Use Case Diagram Use case –A use case describes a functionality provided by the system. The collection of use-cases for a system constitute all the defined ways the system may be used Formal definition A use case is a sequence of transactions performed by the system that yields a measurable result of values for a particular user (actor) Notation: A use case is represented by an oval

22 August, 2007Information System Design IT60105, Autumn 2007 Actor in Use Case Diagram Actor –An actor is a person, organization, or external system that plays a role in one or more interaction with the system Note: Actors are not part of the system; they represent any one or any thing that interact with the system Notation: Actor can be represented as a stick man

22 August, 2007Information System Design IT60105, Autumn 2007 Association in Use Case Diagram Association –Associations between actors and use cases are indicated in use case diagrams by solid lines. An association exists whenever actor involved with an interaction described by the use case –Associations are modeled as lines connecting use cases and actor to one another, with optional arrowhead on one end of the line. The arrowhead is used to indicating the direction of the relationship or to indicate the primary actor within the use case Notation

22 August, 2007Information System Design IT60105, Autumn 2007 System Boundary Box in Use Case Diagram System boundary boxes –It is an optional thing in a use case diagram to draw a rectangle around the use cases and to indicate the scope of the system Notation

22 August, 2007Information System Design IT60105, Autumn 2007 Packages in Use Case Diagram Packages –Packages enable to organize model elements into groups Notation Packages are depicted as a file folders and can be used on any of the UML diagrams, including both use case diagrams, class diagrams etc. Note: Usually package can be used when a UML diagram is quite large and can not be accommodated on a single page, or organize a large diagram into smaller ones

22 August, 2007Information System Design IT60105, Autumn 2007 Packages in Use Case Diagram Example

22 August, 2007Information System Design IT60105, Autumn 2007 Scenario and Use Case Scenario –A scenario is a sequence of steps describing an interaction between a user and system –Corresponding to a use case, there is a number of scenarios. All scenario are described by means of a textual description or other artifacts

22 August, 2007Information System Design IT60105, Autumn 2007 Example: Scenario and Use Case Example: In OLP system Some scenarios are 1.Customer browses though a catalog and select the items 2.Customer options for check out 3.Customer fills shipping information ( address, date of delivery, , etc.) 4.System present full pricing information, date of delivery, etc. 5.Customer fills credit card information 6.System authorizes purchase 7.System confirms sales immediately 8.System confirm sale by sending by customer Note: From one scenario, another scenario can arise. For example: at 3 incomplete information, at 6 authorization fails etc.

22 August, 2007Information System Design IT60105, Autumn 2007 How to Create a Use Case Diagram? Three steps 1. Identify all actors 2. Identify all use cases 3. All associations between actors and use cases Study carefully the requirement analysis and specification (SRS) to identify all these

22 August, 2007Information System Design IT60105, Autumn 2007 Identifying all Actors The following questions may be used to help identify the actors for a system –Who will use the system? –Where in the organization in the system used? –Who will supply, use, update the information in the system? –Who will support and maintain the system? –Does the system use external resource? –Does one person play several roles? –Does several persons play several roles ? ….. etc.

22 August, 2007Information System Design IT60105, Autumn 2007 Identifying all Use Cases The following questions may be used to help identify the actors for a system –What are the functional requirements? –What are the tasks of each actor? –Will any actor create, change, store, remove, or read information in the system? –What use case will accomplish the actors requirements? ….etc.

22 August, 2007Information System Design IT60105, Autumn 2007 Identifying all Associations There will be an association between an actor and a use case, if there is –any correspondence/communication between the two –information storing/updating ….etc.

22 August, 2007Information System Design IT60105, Autumn 2007 Use Case Relationships In addition to association relationship ( which may exist between an actor and use-case) to represents a communication between an actor and a use-case, there are other three types of relationships may exist between use-cases –Include –Extend –Generalization

22 August, 2007Information System Design IT60105, Autumn 2007 Include Relationship A use case in UML is same as the function in structured design Like structured design a use case can be decomposed into sub use cases –Include To represent that a use case is composed of (reuse)

22 August, 2007Information System Design IT60105, Autumn 2007 Include Relationship Further –Multiple use cases may share a piece of some common functionality. This functionality is placed in a separate use case rather than documenting it in every use case that needs it –Include relationships are created between the new use case and any other use case that “uses” its functionality

22 August, 2007Information System Design IT60105, Autumn 2007 Example: Include Relationship

22 August, 2007Information System Design IT60105, Autumn 2007 Extend Relationship –The extended relationship is used to describe a variation on normal behavior and one wish to use the more controlled form. Usually extended relationship is considered to depict the following situations Optional behavior Behavior that run only under certain consideration Several control flows may be run based on actor selection

22 August, 2007Information System Design IT60105, Autumn 2007 Example: Extend Relationship

22 August, 2007Information System Design IT60105, Autumn 2007 Example: Extend Relationship

22 August, 2007Information System Design IT60105, Autumn 2007 Generalization Relationship Generalization relationship is very similar to the inheritance relationship as in classes Inheritance relationship is used to model generalization/ specialization of use case or actors

22 August, 2007Information System Design IT60105, Autumn 2007 Generalization Relationship The generalization relationship can also be extended to actor

22 August, 2007Information System Design IT60105, Autumn 2007 Use Case Packaging Packaging is the mechanism in UML to manage complexity When there are too many use cases in the use case diagram, it is better to package the related use cases so that it can be better documented

22 August, 2007Information System Design IT60105, Autumn 2007 Example: Use Case Packaging

22 August, 2007Information System Design IT60105, Autumn 2007 Problems to Ponder Draw the use case diagram for –Library Information System –Bank ATM