Use Case Diagrams.

Slides:



Advertisements
Similar presentations
You have been given a mission and a code. Use the code to complete the mission and you will save the world from obliteration…
Advertisements

Writing Good Use Cases - Instructor Notes
2006 Pearson Education, Inc. All rights reserved Object-Oriented Programming: Inheritance.
Advanced Piloting Cruise Plot.
Sequence Diagrams and Collaboration Diagrams
Requirements Engineering Process
Chapter 1 The Study of Body Function Image PowerPoint
1 Copyright © 2013 Elsevier Inc. All rights reserved. Chapter 1 Embedded Computing.
Copyright © 2011, Elsevier Inc. All rights reserved. Chapter 5 Author: Julia Richards and R. Scott Hawley.
1 Copyright © 2010, Elsevier Inc. All rights Reserved Fig 2.1 Chapter 2.
Document #07-12G 1 RXQ Customer Enrollment Using a Registration Agent Process Flow Diagram (Switch) Customer Supplier Customer authorizes Enrollment.
Document #07-12G 1 RXQ Customer Enrollment Using a Registration Agent Process Flow Diagram (Switch) Customer Supplier Customer authorizes Enrollment.
Business Transaction Management Software for Application Coordination 1 Business Processes and Coordination.
Jeopardy Q 1 Q 6 Q 11 Q 16 Q 21 Q 2 Q 7 Q 12 Q 17 Q 22 Q 3 Q 8 Q 13
Jeopardy Q 1 Q 6 Q 11 Q 16 Q 21 Q 2 Q 7 Q 12 Q 17 Q 22 Q 3 Q 8 Q 13
Title Subtitle.
Exit a Customer Chapter 8. Exit a Customer 8-2 Objectives Perform exit summary process consisting of the following steps: Review service records Close.
Determine Eligibility Chapter 4. Determine Eligibility 4-2 Objectives Search for Customer on database Enter application signed date and eligibility determination.
Child Health Reporting System (CHRS) How to Submit VHSS Data
My Alphabet Book abcdefghijklm nopqrstuvwxyz.
DIVIDING INTEGERS 1. IF THE SIGNS ARE THE SAME THE ANSWER IS POSITIVE 2. IF THE SIGNS ARE DIFFERENT THE ANSWER IS NEGATIVE.
SUBTRACTING INTEGERS 1. CHANGE THE SUBTRACTION SIGN TO ADDITION
MULT. INTEGERS 1. IF THE SIGNS ARE THE SAME THE ANSWER IS POSITIVE 2. IF THE SIGNS ARE DIFFERENT THE ANSWER IS NEGATIVE.
Addition Facts
Year 6 mental test 5 second questions
How To Use OPAC.
Use Cases.
Week 2 The Object-Oriented Approach to Requirements
Requirements Diagrams With UML Models
Designing A Payroll System A Solution Daniel POP, Ph.D.
Text 1 July, 2010 DCMS: Training Manual Campaign Management.
Information Systems Today: Managing in the Digital World
OOAD – Dr. A. Alghamdi Mastering Object-Oriented Analysis and Design with UML Module 3: Requirements Overview Module 3 - Requirements Overview.
Page 1 of 30 To the Create Assignment Request Online Training Course An assignment request is created by an assignor to initiate the electronic assignment.
ABC Technology Project
© Paradigm Publishing, Inc Access 2010 Level 1 Unit 1Creating Tables and Queries Chapter 2Creating Relationships between Tables.
Use Case Diagrams.
Well-Being Icon Refer to Slide 2 for instructions on how to view the full-screen slideshow.Slide 2.
Software Testing and Quality Assurance
Use cases Use-cases are a scenario based technique in the UML which identify the actors in an interaction and which describe the interaction itself A set.
the Entity-Relationship (ER) Model
© 2012 National Heart Foundation of Australia. Slide 2.
Lecture plan Outline of DB design process Entity-relationship model
OBJECT-ORIENTEDNESS. What is Object-Orientedness? model system as a collection of interacting objects O-O Modelling  O-O Programming ► similar conceptual.
Chapter 5 Test Review Sections 5-1 through 5-4.
SIMOCODE-DP Software.
GG Consulting, LLC I-SUITE. Source: TEA SHARS Frequently asked questions 2.
Addition 1’s to 20.
25 seconds left…...
SCIA Special Circumstances Instructional Assistance
REGISTRATION OF STUDENTS Master Settings STUDENT INFORMATION PRABANDHAK DEFINE FEE STRUCTURE FEE COLLECTION Attendance Management REPORTS Architecture.
Week 1.
Sedex: Registration and Account Set Up Instructions
We will resume in: 25 Minutes.
©Brooks/Cole, 2001 Chapter 12 Derived Types-- Enumerated, Structure and Union.
CSCI3170 Introduction to Database Systems
© Copyright 2011 John Wiley & Sons, Inc.
Multimedia & Website Design Use Cases in UML. What’s Up Today? What you’ll learn in this lecture :- Use Case diagrams and their application –Why they.
Object-OrientedMethodologies
Introduction to Sequence Diagrams
Unified Modelling Language UML. Use case Diagram : A use case diagram is “a diagram that shows the relationships among actors and use cases within a system.use.
Faculty of Computer & Information
Use Case Diagrams.
UML (Unified Modeling Language)
بسم الله الرحمن الرحيم اللهم صلي علي احمد السجايا محمد الخصال شفيع البرايا سليم النوايا صادق الاقوال.
Object Oriented Analysis and Design Using the UML
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.
Use case Diagram.
Review By: Reham Lotfi.
Presentation transcript:

Use Case Diagrams

Introduction Getting started is the most difficulty part of any new process. In software modelling, the first thing you need to do is understand what are you going to model and ultimately develop. Creating a highest form details about a system--use case diagram--is an almost natural point of origin for the software design. A use case diagram is an excellent way to communicate to management, customers, and other non-development people what a system will do when it is completed.

University Record System (URS) A University record system should keep information about its students and academic staff. Records for all university members are to include their id number, surname, given name, email, address, date of birth, and telephone number. Students and academic staff each have their own unique ID number: studN (students), acadN (academic employee), where N is an integer (N>0). In addition to the attributes mentioned above: Students will also have a list of subjects they are enrolled in. A student cannot be enrolled in any more than 10 subjects. Academic employees will have a salary, and a list of subjects they teach. An academic can teach no more than 3 subjects.

Some Actions Supported by URS The system should be able to handle the following commands. Add and remove university members (students, and academic staff) Add and Delete subjects Assign and Un-assign subjects to students Assign and Un-assign subjects to academic staff.

Use Case Diagrams Use Case diagrams show the various activities the users can perform on the system. System is something that performs a function. They model the dynamic aspects of the system. Provides a user’s perspective of the system.

Use Case Diagram - URS System add member del member system user academic add subject del subject assg subject unass subject student enrol subject unenrol subject

Use Case Diagrams A set of ACTORS : roles users can play in interacting with the system. An actor is used to represent something that users our system. A set of USE CASES: each describes a possible kind of interaction between an actor and the system. Uses cases are actions that a user takes on a system A number of RELATIONSHIPS between these entities (Actors and Use Cases). Relationships are simply illustrated with a line connecting actors to use cases.

Use Case Diagrams - Actors An actor is a user of the system playing a particular role. Actor is shown with a stick figure. employer employee client

Use Case Diagrams – Use Cases Use case is a particular activity a user can do on the system. Is represented by an ellipse. Following are two use cases for a library system. Borrow Reserve

Use Case Diagram – Example1 (Library) library system borrow client employee reserve Order title Fine payment supervisor A Library System.

Use Case Diagram for Student Assessment Management System Grade system Record grades Student View grades Teacher Distribute Report cards Create report cards Printing administrator

Use Case Vs Scenarios Each use case is one or more scenarios. Add Subject Use Case : Scenario 1 : Subject gets added successfully. Scenario 2 : Adding the subject fails since the subject is already in the database. Enroll Subject Use Case: Scenario 1 : Student is enrolled for the subject. Scenario 2 : Enrollment fails since the student is already enrolled in the subject. Each scenario has a sequence of steps.

Scenarios Each scenario has a sequence of steps. Scenario 1 : Student is enrolled for the subject. Student chooses the “enroll subject” action. Check the student has enrolled in less than 10 subjects. Check if the subject is valid. Assign the subject to the student.

Scenarios Each scenario has a sequence of steps. Scenario 2 : Enrolling fails since the student is already enrolled in 10 subjects. Student chooses the “enroll subject” action. Check the student has enrolled in less than 10 subjects. Return an error message to the student.

Use Case Diagrams - Relationships Inclusion Inclusion enables to reuse one use case's steps inside another use case. Extension Allows creating a new use case by adding steps to existing use cases Generalization Allows child use cases to inherit behavior from parent use cases

Use Case – Example (self service machine) Buy a product Self service machine customer Collect Money Collector Self service machine Restock Supplier

Use Case – Example (self service machine – includes relationship) Open Machine Restock Close Machine <<includes>> <<includes>> Open Machine Collect Close Machine <<includes>>

Use Case – Example (self service machine – extends relationship) Restock Close Machine Open Machine <<includes>> Restock According to Sales <<extends>>

Use Case – Example (self service machine – generalize relationship): Actor-to-Actor relationship generalized actor Supplier Agent specialized actor Restocker Collector

Use Case – Example (self service machine – generalize relationship): Actor-to-Actor relationship – example 2 generalized actor Cook specialized actor Mom Cook Father Cook

Use Case – Example (self service machine) Buy a product Self Service Machine <<includes>> Open Machine customer Restock Close Machine <<includes>> Restock according to sales <<includes>> Open Machine Collect <<includes>> supplier Close Machine

From Use Case to Classes

Identify Classes (Extract Nouns) A University record system should keep information about its students and academic staff. Records for all university members are to include their id number, surname, given name, email, address, date of birth, and telephone number. Students and academic staff each have their own unique ID number: studN (students), acadN (academic employee), where N is an integer (N>0). In addition to the attributes mentioned above: Students will also have a list of subjects they are enrolled in. A student cannot be enrolled in any more than 10 subjects. Academic employees will have a salary, and a list of subjects they teach. An academic can teach no more than 3 subjects.

Nouns which are potential classes A University record system should keep information about its students and academic staff. Records for all university members are to include their id number, surname, given name, email, address, date of birth, and telephone number. Students and academic staff each have their own unique ID number: studN (students), acadN (academic employee), where N is an integer (N>0). In addition to the attributes mentioned above: Students will also have a list of subjects they are enrolled in. A student cannot be enrolled in any more than 10 subjects. Academic employees will have a salary, and a list of subjects they teach. An academic can teach no more than 3 subjects.

Classes identified in the first pass UniversityRecordSystem - URS Student Academic Staff UniversityMembers Subject

URS - High Level Class Diagram URSDataBase 1 1 * has has * UniversityMember Subject 0…10 0..3 AcademicStaff Student * takes 1 teaches