IT Skills Use Case Diagrams. Objectives Richard Hancock - 20102 Define what a use case is Describe...

14
IT Skills Use Case Diagrams

Transcript of IT Skills Use Case Diagrams. Objectives Richard Hancock - 20102 Define what a use case is Describe...

Page 1: IT Skills Use Case Diagrams. Objectives Richard Hancock - 20102  Define what a use case is  Describe the common elements of a use case diagram  Be.

IT Skills

Use Case Diagrams

Page 2: IT Skills Use Case Diagrams. Objectives Richard Hancock - 20102  Define what a use case is  Describe the common elements of a use case diagram  Be.

Objectives

Richard Hancock - 20102

Define what a use case is Describe the common elements of a use case diagram Be able to draw a use case diagram Differentiate between include and extend relationships

***

Page 3: IT Skills Use Case Diagrams. Objectives Richard Hancock - 20102  Define what a use case is  Describe the common elements of a use case diagram  Be.

What is a Use Case?

Richard Hancock - 20103

A use case describes how a type of user called an actor uses a system to achieve a goal

Example Jisun wants to create a user account for our online photo

application. To do that she goes to our website and sees a hyperlink called “Create Account”. Clicking that she is prompted for her desired username, a password and her email address. After she provides this information, an active account is created and she is logged onto the website.

Three things are needed in order to describe a use case:1. The actor/s involved 2. The system being used3. The goal the actor achieves in using the system (the reason for the

system)

Page 4: IT Skills Use Case Diagrams. Objectives Richard Hancock - 20102  Define what a use case is  Describe the common elements of a use case diagram  Be.

The Actor

Richard Hancock - 20104

The actor describes a role that users play in relation to the system; all we care about is what their relationship to the system is

The actor is external to the system Actors do not have to be people, they can be other

systems The goal must be of value to the actor

***

Page 5: IT Skills Use Case Diagrams. Objectives Richard Hancock - 20102  Define what a use case is  Describe the common elements of a use case diagram  Be.

Use Case Diagram

Richard Hancock - 20105

The purpose of a use case diagram is to show what functions serve an actor

Actor is always outside the system boundary

Page 6: IT Skills Use Case Diagrams. Objectives Richard Hancock - 20102  Define what a use case is  Describe the common elements of a use case diagram  Be.

ATM Example

Richard Hancock - 20106

Page 7: IT Skills Use Case Diagrams. Objectives Richard Hancock - 20102  Define what a use case is  Describe the common elements of a use case diagram  Be.

Relationships - Include

Richard Hancock - 20107

Book Assessment and Book Lesson include Check Availability of Tutors

This means if you book an assessment you must also check availability of tutors

<<include>> should point towards the use case being included

Page 8: IT Skills Use Case Diagrams. Objectives Richard Hancock - 20102  Define what a use case is  Describe the common elements of a use case diagram  Be.

Relationship - Extend

Richard Hancock - 20108

The flow of the extended use case Order Wine is only included under certain conditions

So, Order Food can be extended with Order Wine, meaning you do not have to order wine with your food, it’s optional

<<extend>> should point towards the use case/s being extended, not the extending use case

Page 9: IT Skills Use Case Diagrams. Objectives Richard Hancock - 20102  Define what a use case is  Describe the common elements of a use case diagram  Be.

Applying Use Cases

Richard Hancock - 20109

Identify the actors – who will use the system? Identify their goals – what will they be using the system

to do? In trying to identify goals, what distinct workflows or

outcomes might we need to consider?

***

Page 10: IT Skills Use Case Diagrams. Objectives Richard Hancock - 20102  Define what a use case is  Describe the common elements of a use case diagram  Be.

Summary

Richard Hancock - 201010

Use case diagrams graphically show how a type of user called an actor uses functions in a system to achieve a goal

Diagrams are made up of the actor, the use case, relationships and a system boundary

Actors are always external to the system containing the use cases

<<include>> relationship means to always include <<extend>> relationship means to conditionally include Make sure the arrows are going the right way

<<include>> should point towards the use case being included <<extend>> should point towards the use case/s being extended, not

the extending use case***

Page 11: IT Skills Use Case Diagrams. Objectives Richard Hancock - 20102  Define what a use case is  Describe the common elements of a use case diagram  Be.

Questions…

Richard Hancock - 201011

…are there any?

Page 12: IT Skills Use Case Diagrams. Objectives Richard Hancock - 20102  Define what a use case is  Describe the common elements of a use case diagram  Be.

Resources

Richard Hancock - 201012

Use Case Diagrams More Use Case Diagrams Unified Modelling Language

Page 13: IT Skills Use Case Diagrams. Objectives Richard Hancock - 20102  Define what a use case is  Describe the common elements of a use case diagram  Be.

Exercise

Richard Hancock - 201013

Develop a use case diagram for ordering an item from a catalogue company (e.g. Argos) and paying for it Assume that you are in the store ready to pick up the item Assume the item is in stock Assume the item does not need to be home delivered

1. Think about the different actors involved2. Try to think about their activities in fulfilling the order3. Think about the goals

Page 14: IT Skills Use Case Diagrams. Objectives Richard Hancock - 20102  Define what a use case is  Describe the common elements of a use case diagram  Be.

Richard Hancock - 201014

End!