Bai giang-uml-18feb14

13
Use Case Diagram Examples Created by using Visual Paradigm 10.2 1

description

Bài giảng UML cho lớp 55PM1, Khoa Công nghệ thông tin, Đại học Xây Dựng Hà nội, ngày 18 tháng 02 năm 2014

Transcript of Bai giang-uml-18feb14

Page 1: Bai giang-uml-18feb14

1

Use Case Diagram Examples

Created by using Visual Paradigm 10.2

Page 2: Bai giang-uml-18feb14

2

Use Cases Management

●Rank Use Cases● The rank of a Use Case is determined by looking at its

business value

● Ranking Levels: High, Medium, Low

Page 3: Bai giang-uml-18feb14

3

Use Cases Management

●Prioritize Use Cases● Is to determine which Use Case(s) to work on first

● The priority of a Use Case is determined by factors following:● Business Value of Use Case● Availability of developers● Dependency between Use Case● List of risk

Page 4: Bai giang-uml-18feb14

4

Use Cases Management

●Setting Use Cases’ status● The status of a Use Case is about how much the use

case is completed

Page 5: Bai giang-uml-18feb14

5

Use Case Specification

●Flow of Events● Describe the scenarios of Use Case

● Example:● Use Case: Buy Book

1. loop

1.1 Browse book details

1.2 Add the book to shopping cart

until finish shopping

2. Member call check out

3. List out books in shopping cart

extension 3.1 Change quantity of books

3.2 Confirm books to buy

4. Request shipping details …

Page 6: Bai giang-uml-18feb14

6

Use Case Specification

● Keywords for defining flow of events

extension: Enter extension for the selected step.if: Enter conditional situation for the selected step.else if: Insert another situation under If.else: Insert it to control If and Else if.

clear control, go to previous condition and go to end.while: Perform some actions as long as the condition stated in the while clause is valid.for each: Perform some actions by walking through each item as stated by the for each clause.loop until: Perform some actions until condition stated in loop remaining valid.exit: Exit in the middle of loop.jump: Insert jump to manipulate the sub-step after the variable situation happened

Page 7: Bai giang-uml-18feb14

7

UML Diagram

Diagram III

Sequence Diagram

● What is Lifeline? Messages? Combine Fragments?

● Sequence Diagram elements

Page 8: Bai giang-uml-18feb14

8

Sequence Diagram

●A Sequence Diagram models the collaboration of objects based on a time sequence. It shows how the objects interact with others in a particular scenario of a use case.

Page 9: Bai giang-uml-18feb14

9

Sequence Diagram

● Elements

● Lifeline ● A lifeline represents an individual participant in the

interaction. ● A lifeline may represent an Actor, an Object, an

Entity, a Control, a Boundary● Notation:

Page 10: Bai giang-uml-18feb14

10

Sequence Diagram

●Elements● Message

● A message defines a particular communication between Lifelines of an Interaction.

● Types of messages: Send message, Self message, Return message, Call message, etc.

● Notation:

Page 11: Bai giang-uml-18feb14

11

Sequence Diagram

● Elements

● Alternative Combined Fragment ● An alternative combined fragment represents a

choice of behavior. At most one of the operands will be chosen.

● Notation:

Page 12: Bai giang-uml-18feb14

12

Sequence Diagram

● Elements

● Loop Combined Fragment ● A loop combined fragment represents a loop. The

loop operand will be repeated a number of times.● Notation:

Page 13: Bai giang-uml-18feb14

13

Sequence Diagram