+ All Categories
Home > Technology > Chapter5

Chapter5

Date post: 12-Nov-2014
Category:
Upload: dang-tuan
View: 1,158 times
Download: 1 times
Share this document with a friend
Description:
 
Popular Tags:
19
Session 5 Object Model Development
Transcript
Page 1: Chapter5

Session 5

Object Model Development

Page 2: Chapter5

OOAD with UML / Session 5 / 2 of 19

Review A class icon is a rectangle with three sections within it

An object is represented as a rectangle with an underlined name

Constraints are represented as strings enclosed in braces and placed near the element the constraint applies to

A comment is a graphical symbol containing information Relationships provide a pathway for communication

between objects

Page 3: Chapter5

OOAD with UML / Session 5 / 3 of 19

Objectives

Explain use case and use case diagram Explain the three key elements of use

case diagram Elaborate the relationship amongst use

cases Define the role of use case diagram in

software development Explain the use case model with

examples

Page 4: Chapter5

OOAD with UML / Session 5 / 4 of 19

What is Use Case?-1 Use Case diagrams help to

Focus on possible users of the system Find out the roles that users are going

to play while interacting with the system

Find out what fundamental services (use cases) the users in respective roles, expect from the system

Depict the interactions between each user or role and the services it expects from the system

Page 5: Chapter5

OOAD with UML / Session 5 / 5 of 19

What is Use Case?-2

A Use Case is a sequence of actions a system performs that yield an observable result of value to a particular actor

Page 6: Chapter5

OOAD with UML / Session 5 / 6 of 19

What is Use Case?-2 Uses Cases represent the specified

requirements as a series of interactions between the system and one or more actors.

The interactions help in describing the proposed functionality of the system to the users.

In the case of a complex system, use cases also provide a starting point for the analysis of the system in terms of what needs to be built.

The use cases provide a source for services provided by the system and help to determine the classes that the system must implement.

Page 7: Chapter5

OOAD with UML / Session 5 / 7 of 19

Use Case Diagram-1

<<Actor>>Actor Name

ActorSystem Boundary Actor Class

Page 8: Chapter5

OOAD with UML / Session 5 / 8 of 19

Use Case Diagram-2

USE CASE Name << >>

Stereotypes

Use Case

Page 9: Chapter5

OOAD with UML / Session 5 / 9 of 19

Use Case Diagram-3

Page 10: Chapter5

OOAD with UML / Session 5 / 10 of 19

Use Case Diagram

Page 11: Chapter5

OOAD with UML / Session 5 / 11 of 19

Relationship amongstUse cases-1

Extends

Page 12: Chapter5

OOAD with UML / Session 5 / 12 of 19

Relationship amongstUse cases-2

Extends

Page 13: Chapter5

OOAD with UML / Session 5 / 13 of 19

Relationship amongstUse cases-3

Use

Page 14: Chapter5

OOAD with UML / Session 5 / 14 of 19

Role of Use Case Diagram during development

Requirements workflow Analysis and Design, use cases are

realized in a design model Implementation in terms of design

classes Constitute the basis for identifying test

cases and test procedures Basis for planning Foundation for what is described in user

manuals Definition of ordering units

Page 15: Chapter5

OOAD with UML / Session 5 / 15 of 19

Apply use case model-1

Defining the problem

Defining the bounds of the problem

Understanding the vocabulary associated with the problem domain

Page 16: Chapter5

OOAD with UML / Session 5 / 16 of 19

Apply use case model-2

Bank of Aptech wants to computerize its operations. This bank will provide Retail Services to its customers. The services are defined in terms of products the bank offers. These are:

Savings Account Current Account Fixed Deposit Account of three types viz., short, medium, and long term ATM

Page 17: Chapter5

OOAD with UML / Session 5 / 17 of 19

Apply use case model-3

Deposit money

Withdraw money

Check balance

Process transaction

Print receipt

Page 18: Chapter5

OOAD with UML / Session 5 / 18 of 19

Apply use case model-4

Customer ATM

Page 19: Chapter5

OOAD with UML / Session 5 / 19 of 19

Summary Use cases provide the basic ground to find out

the classes in the model

Use case diagrams exhibit the relation between the actors and system functions in the model

Most of the time, use case diagrams are the first diagram while drawing the model of a system

Use case diagrams give the broad overview of the model


Recommended