ACO 101: Use cases What do the users do?. When building a system You begin with the Use Case Analysis – When looking at the system as a whole, Use Case.

Slides:



Advertisements
Similar presentations
Writing Good Use Cases - Instructor Notes
Advertisements

Use case tutorial examples.
Generalizable Element Namespace Model Element name visibility isSpecification Classifier isRoot Constraint Body Use Cases CS/SWE 421 Introduction to Software.
Use Case Diagrams Damian Gordon.
Data Flow Diagramming Rules Processes –a process must have at least one input –a process must have at least one output –a process name (except for the.
Use Case & Use Case Diagram
Karolina Muszyńska Based on:
Information System Engineering
CS3773 Software Engineering Lecture 03 UML Use Cases.
Use Case Diagrams - UML (Thanks to Helen Albanese for the starting point for this brief presentation)
Use Case Diagram © copyright 2001 SNU OOPSLA Lab..
Conversation Form l One path through a use case that emphasizes interactions between an actor and the system l Can show optional and repeated actions l.
SwE 313 Case Study Registration System.
Close Registration Brief Description
Use Cases & Requirements Analysis By: Mostafa Elbarbary.
Documenting Requirements using Use Case Diagrams
Use Case Modeling.
1 Business Models Modeling. 2 Why Model the Business Business modeling is a technique to help answer critical questions, such as: What do the workers.
Page 1 R Copyright © 1997 by Rational Software Corporation Analysis and Design with UML.
Use Case Diagram.
A Student Guide to Object- Orientated Development
USE Case Model.
Ellucian / Colleague Student Planning Instructions for Students October 2014.
CMIS 470 Structured Systems Design
UML REVIEW –PART1 1. Introduction What is UML visual modelling language UML is a language not a methodology? Q: why is this distinction important? UML.
® IBM Software Group © 2006 IBM Corporation Rational Software France Object-Oriented Analysis and Design with UML2 and Rational Software Modeler 06. Requirements.
Page 1 What is the UML? UML stands for Unified Modeling Language The UML combines the best of the best from – Data Modeling concepts (Entity Relationship.
Chapter 7 Structuring System Process Requirements
Use Case modelling 1. Objectives  Document user requirements with a model  Describe the purpose of an actor and a use case  Construct a use case model.
Page 1  Copyright © 1997 by Rational Software Corporation Computer System Business Process Order Item Ship via “ Modeling captures essential parts of.
Use Cases 1. Last week  Introduction to software engineering  How is it different from traditional engineering?  Introduction to specification  Operational.
Faculty of Computer & Information Software Engineering Third year
Requirements Artifacts Precursor to A & D. Objectives: Requirements Overview  Understand the basic Requirements concepts and how they affect Analysis.
Use Cases Week 8 CMIS570. Refresher – Class Diagrams Appointment scheduling example Car Rental example E-Commerce example.
Requirements Analysis Visual Modeling] Lab 02 Visual Modeling (from Visual Modeling with Rational Rose and UML) A way of thinking about problems using.
REQUIREMENTS CAPTURE 1 ASU Course Registration System Use-case Model Actor.
Copyright 2002 Prentice-Hall, Inc. Chapter 2 Object-Oriented Analysis and Design Modern Systems Analysis and Design Third Edition Jeffrey A. Hoffer Joey.
1 CMPT 275 Software Engineering Requirements Analysis Phase Requirements Analysis activity Janice Regan,
1 Object-Oriented Modeling Using UML CS 3331 Section 2.4 Modeling Requirements with Use Cases.
1 Objectives  Define key concepts of use-case modeling.  List the benefits of use-case modeling.  Find actors and use cases.  Describe their relationships.
1 Use Case Diagrams Use Case Actor Use case description Use case realization (Scenario) Use case relationships –Extends –Uses.
1 Structuring Systems Requirements Use Case Description and Diagrams.
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 Diagram The purpose is to communicate the system’s functionality and behaviour to the customer or end user. Mainly used for capturing user requirements.
1 Modeling System Requirements with Use Cases. 2 Why Do We Need Use Cases? Primary challenge in a system design process –ability to elicit correct and.
REQUIREMENTS CAPTURE 1 ASU Course Registration System Use-case Model.
1 Version /05/2004 © 2004 Robert Oshana Requirements Engineering Use cases.
Sept Ron McFadyen1 Use Cases Introduced by Ivar Jacobson in 1986 literal translation from Swedish ”usage case” Used to capture and describe.
Generalizable Element Namespace Model Element name visibility isSpecification Classifier isRoot Constraint Body Use Cases CS/SWE 421 Introduction to Software.
Page 1  Copyright © 1997 by Rational Software Corporation Putting the UML to Work The ESU University wants to computerize their registration system –
Essentials of Visual Modeling w/ UML Instructor Notes
22 August, 2007Information System Design IT60105, Autumn 2007 Information System Design IT60105 Lecture 8 Use Case Diagrams.
USE CASE Pertemuan 7 Matakuliah: Konsep object-oriented Tahun: 2009.
UML - Development Process 1 Software Development Process Using UML.
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.
Appendix Object-Oriented Analysis and Design: Use Cases and Sequence Diagrams Modern Systems Analysis and Design Fifth Edition Jeffrey A. Hoffer Joey F.
Page 1  Copyright © 1997 by Rational Software Corporation Putting the UML to Work The ESU University wants to computerize their registration system –
Requirements capture: Using UML Use Cases David Millard and Yvonne Howard {dem,
Auburn University COMP 2710 Software Construction Use Case Analysis – Examples and Exercises Dr. Xiao Qin Auburn University.
Using Use Case Diagrams
UML Use Case Diagrams.
UML SEQUENCE AND CLASS DIAGRAMS
Auburn University COMP 2710 Software Construction Use Case Analysis and Exercises (Part 2) Dr. Xiao Qin Auburn University.
SAD ::: Spring 2018 Sabbir Muhammad Saleh
Object Oriented Analysis and Design
Software Design Lecture : 15.
Using Use Case Diagrams
Presentation transcript:

ACO 101: Use cases What do the users do?

When building a system You begin with the Use Case Analysis – When looking at the system as a whole, Use Case Analysis identifies all the major uses of the system. It is a set of functional descriptions of the entire system. – What do the users do? Each individual functional description is a Use Case

Use Cases are the main tasks performed by the users of the system describe the behavioral aspects of the system are used to identify how the system will be used are a convenient way to document the functions that the system must support are used to identify the components (classes) of the system

Examples of Use Cases Clerk prints a sales receipt for a video rental. Person spell checks a typed document. Receptionist schedules an appointment. Advisor registers student for classes.

Two important concepts in these analyses are A person is involved. (In UML, the person involved is called an actor) The actor uses the system.

UML Use Case Formal Definitions Actor – A role that a user can play. Examples: instructor, advisor, student. – Actors do not have to be human. An actor such as a sensor may cause a system reaction. – An actor is always outside of the system boundary, an external entity.

UML Use Case Formal Definitions Use Cases – Actions on a system initiated by an actor. – These are the main tasks performed by each actor. Use cases represent complete functionality of a task. – Example: Register for course.

UML Use Case Formal Definitions User – Someone who uses the system. – The same user can play multiple roles. Example Prof. John Doe plays the role of an instructor and the role of an advisor. – A user is an instance of an actor.

UML Use Case Formal Definitions Views – Two or more actors interacting with a use case. – Example Register for Course involves both the Student registering for the course and the Bursar's office sending out a bill for it. – Each actor views this task from a different perspective.

Use Case Symbols

Why use Use Case modeling diagrams They offer a disciplined way to develop a system and deal with its complexity. They are great test cases for the system. They provide quantifiable progress. They provide a strong base for formulation of other models.

Scenario A use case is only a high-level description of an activity that will be performed on a system. It may require a sequence of individual steps to carry out the use case. There could be different sequences of individual steps for the same use case. – These are called scenarios. – For example, use case register for classes may have two scenarios, one for registering through an advisor and one for online registration.

Relationship types and symbols

Relationships Use cases may be related to other use cases. A use case that is a variation on normal behavior of another use case describes a generalization relationship. – These generalization use case relationships can be used to describe actions when an alternative behavior must be carried out for some reason. – Example: A use case Prerequisites Not Met describes a use case that is an alternative action for use case Register for Course.

Relationship: include A use case may include another use case. A use case that is included is generally a common behavior that many use cases may need. One use case will use the services of another use case. Example: Review Transcript Data use case is used by the Register for Course use case to be sure the student has met the course's prerequisites Review Transcript Data use case is also used by Graduate Student use case to be sure that all program requirements have been met for graduation.

Relationship: extend A use case may extend a use case by adding new actions to it. – Example: Use case Register for Distance Course may extend use case Register for Course. Additional actions must be performed when a student registers for a distance course.

Documentation of the task Describe each use case, actor and relationship. Describe how the use case interacts with the actor as opposed to how it will perform its task. – Example: Register for Course can be described as Student completes a registration by entering the course number, section, term and year. The student's advisor indicates approval. A course registration printout of the classes this student is registered for prints. A bill for the course prints in the Bursar's office. – This is just like the problems in Wiley Plus

A use case diagram is: A diagram used to capture the functional requirements of a system by identifying actors and use cases.

Development of a Use Case Diagram 1.Identify all of the actors who will use the system. 2.Interview these actors to identify the functions that they need to perform. (use cases) 3.Identify scenarios (sequence of steps to accomplish a use case). 4.Identify common steps within the different scenarios. Separate them into different use cases so that they can easily be included in other scenarios. 5.Identify relationships between use cases.

Use Case Diagram Example for College Registration System A student may register for classes during a specified registration period. To register, a student must see their advisor. The advisor will use the registration system to determine if the student has met the course prerequisites, is in good academic standings and is eligible to register. If the advisor approves the courses, the advisor enters the student's college id into the course registration system. The course registration number for each course is entered. The course description, course number and section for those courses will automatically display. The system will check for schedule conflicts before saving the registrations. A bill for the courses will print in the Bursar's office. The student should proceed to pick it up. Faculty can use the registration system to check enrollments in their classes, get a classlist, check a student's transcript, look up a student's phone number and other such student information. The registrar can use the registration system to enter new classes for an upcoming semester, cancel a class, and check conflicts in classroom/faculty assignments. Admissions use the registration system to add new students. Enrollment services use the registration system to report on retention, update student information, and check fulfillment of graduation requirements for those students planning to graduate.

Priority Process high priority use cases first. High priority use cases: – Use cases that are the primary element of the business functionality. – Use cases that contain high risk factors (time critical, technology intensive, new technology) – Use cases that promise high level of progress for least amount of effort. – Use cases that promise lower operating costs or increased revenue.

Use Case Diagram to Class Diagram Develop a class diagram from the nouns that are used in the use cases. Develop the class diagram from the highest priority use cases first.

Example Use Case: Register Student for Course A student may register for classes during a specified registration period. To register, a student must see their advisor. The advisor must approve each course that the student has selected. The advisor will use the registration system to determine if the student has met the course prerequisites, is in good academic standings and is eligible to register. If the advisor approves the courses, the advisor enters the student's college id into the course registration system. The course registration number for each course is entered. The course description, course number and section for those courses will automatically display. The system will check for schedule conflicts before saving the registrations. A bill for the courses will print in the Bursar's office. The student should proceed to pick it up.

To find the classes = Identify the nouns A student may register for classes during a specified registration period. To register, a student must see their advisor. The advisor must approve each course that the student has selected. The advisor will use the registration system to determine if the student has met the course prerequisites, is in good academic standings and is eligible to register. If the advisor approves the courses, the advisor enters the student's college id into the course registration system. The course registration number for each course is entered. The course description, course number and section for those courses will automatically display. The system will check for schedule conflicts before saving the registration. A bill for the courses will print in the Bursar's office. The student should proceed to pick it up.

The Nouns = each of these will be a class Student Course Advisor Schedule Bill Prerequisites Registration

Create a class diagram for each noun. List all attributes[fields], operations[methods] and relationship[one to many, one to one, zero to many, etc] for each class.