20
UML Use Cases Systems Development

02 use cases

Embed Size (px)

DESCRIPTION

 

Citation preview

Page 1: 02 use cases

UML Use Cases

Systems Development

Page 2: 02 use cases

Unified Modeling Language

Page 3: 02 use cases

What is the UML?

• A language for – Specifying– Visualising– Constructing– Documenting

• Artifacts of software-intensive system• Grady Booch, Ivar Jacobson, Jim Rumbaugh

Page 4: 02 use cases

Objective of UML

• “Provide a common vocabulary of object-oriented terms and diagramming techniques that is rich enough to model any systems development project from analysis through implementation.”

Dennis, Wixom and Tegarden 2005

Page 5: 02 use cases

Sample of UML Diagrams

• Use case diagram• Class diagram • Sequence diagram• Statechart diagram• Activity diagram• Component diagram• Deployment diagram

Page 6: 02 use cases

Use-Case Modelling

Page 7: 02 use cases

Key Ideas

• A use case illustrates the activities that are performed by users of a system.

• It identifies the Actors involved in an interaction and names the type of interaction.

• It illustrates the functionality of the system.• Use cases are logical models -- they describe the activities

of a system without specifying how the activities are implemented.

Page 8: 02 use cases

USE-CASE DESCRIPTIONS

Page 9: 02 use cases

UML model of functional requirements

Use-Case-Model Survey- survey description - list of all actors- list of all use cases

Use Case 2 Report- brief description- flow of events

Use Case 3 Report- brief description- flow of events

Actor 1

Use Case 2

Use Case 3

The System

Use Case 1

Actor 2

Actor 3

Use Case 1 Report- brief description - flow of events

Page 10: 02 use cases

What are Use-Case Descriptions?

• Describe basic functions of the system– What the user can do– How the system responds

• Use cases are building blocks for continued design activities.

Page 11: 02 use cases

How Are Use-Cases Created?

• Two steps:– Write text-based case descriptions– Translate descriptions into diagrams

• Describes one and only one function, but may have multiple paths.

• Developed working with users for content.

Page 12: 02 use cases

Elements of a Use-Case DescriptionUse Case Section

Description

Name An appropriate name for the use case

Brief Description

A brief description of the use case’s role and purpose.

Flow of Events

A textual description of what the system does with regard to the use case (not how specific problems are solved by the system). The description should be understandable to the customer.

Special Requirements

A textual description that collects all requirements, such as non-functional requirements, on the use case, that are not considered in the use-case model, but that need to be taken care of during design or implementation.

Preconditions A textual description that defines any constraints on the system at the time the use case may start.

Post conditions

A textual description that defines any constraints on the system at the time the use case will terminate.

Page 13: 02 use cases

Basic and alternate flow of events

Page 14: 02 use cases

USE-CASE DIAGRAMS

Page 15: 02 use cases

Syntax for Use-Case Diagram

Page 16: 02 use cases

The Use-Case Diagram for Appointment System

Page 17: 02 use cases

Use-Case Diagram with Specialized Actor

Page 18: 02 use cases

Extend and Include Relationships

Page 19: 02 use cases

Summary

• Use-case descriptions are the basis for further analysis and design.

• Use-case diagrams present a graphical overview of the main functionality of a system.

Page 20: 02 use cases

Expanding the Domain

• Additional resources regarding use-cases and many other object-oriented development topics can be found at:

• http://www.omg.org