SlideShare a Scribd company logo
1 
CCHHAAPPTTEERR 99 
UUssee CCaassee DDiiaaggrraammss 
Software System 
Engineering (260CT)
In This Lecture You Will Learn: 
The purpose of use case diagrams 
The notation of use case diagrams 
How to draw use case diagrams 
How to write use case descriptions 
How prototyping can be used with use 
case modelling 
2
Drawing Use Case Diagrams 
Purpose 
• document the functionality of the system from 
the users’ perspective 
• document the scope of the system 
• document the interaction between the users 
and the system using supporting use case 
descriptions (behaviour specifications) 
3
Notation of Use Case Diagrams 
Communication Use case 
association 
4 
Staff Conta ct 
Change a clien t 
contact 
Actor System or subsystem boundary
Notation of Use Case Diagrams 
Actors 
• drawn as stick people with a name 
• the roles that people, other systems or 
devices take when communicating with a 
particular use case or use cases 
• not the same as job titles or people 
• people with one job title may play the roles of 
several actors 
• one actor may represent several job titles 
5
Notation of Use Case Diagrams 
Use cases 
• drawn as ellipses with a name in or below 
each ellipse 
• describe a sequence of actions that the 
system performs to achieve an observable 
result of value to an actor 
• the name is usually an active verb and a noun 
phrase 
6
Notation of Use Case Diagrams 
Communication associations 
• line drawn between an actor and a use case 
• can have arrow heads to show where the 
communication is initiated (arrow points away 
from the initiator) 
• represent communication link between an 
instance of the use case and an instance of 
the actor 
7
Notation of Use Case Diagrams 
Sub-systems 
• drawn as a rectangle around a group of use 
cases that belong to the same sub-system 
• in a CASE tool, use cases for different sub-system 
are usually placed in separate use 
8 
case diagrams, and the rectangle is 
redundant
Notation of Use Case Diagrams 
Dependencies 
• Extend and Include relationships between use 
cases 
• shown as stereotyped dependencies 
• stereotypes are written as text strings in 
guillemets: «extend» and «include» 
9
Notation of Use Case Diagrams 
 Extend relationship 
• one use case provides additional functionality that 
may be required in another use case 
• there may be multiple ways of extending a use case, 
which represent variations in the way that actors 
interact with the use case 
• extension points show when the extension occurs 
• a condition can be placed next to the dependency 
arrow (Note that it is not put in square brackets, unlike 
conditions in activity diagrams.) 
10
Extension points 
Summary print: system 
displays balance 
«extend» 
user requires 
print-out 
Print campaign 
11 
Campaign 
Manager 
Check campaign 
budget 
summary
Notation of Use Case Diagrams 
Include relationship 
• one use case always includes the 
functionality of another use case 
• a use case may include more than one other 
• can be used to separate out a sequence of 
behaviour that is used in many use cases 
• should not be used to create a hierarchical 
functional decomposition of the system 
12
13 
Campaign 
Manager 
«include» 
Find campaign 
Assign staff to 
work on a 
campaign
Notation of Use Case Diagrams 
Generalization 
• shows that one use case provides all the 
functionality of the more specific use case and 
some additional functionality 
• shows that one actor can participate in all the 
associations with use cases that the more 
specific actor can plus some additional use 
cases 
14
15 
Staff 
Contact 
Record 
completion 
of an advert 
Campaign 
Manager 
Change a 
client 
contact 
Assign 
individual staff 
to work on a 
campaign 
Assign team of 
staff to work on 
a campaign 
Assign staff to 
work on a 
campaign
16 
Use Case Descriptions 
Can be a simple paragraph 
Assign staff to work on a campaign 
• The campaign manager wishes to record 
which staff are working on a particular 
campaign. This information is used to 
validate timesheets and to calculate staff 
year-end bonuses.
17 
Use Case Descriptions 
Can be a step-by-step breakdown of 
interaction between actor and system 
Assign staff to work on a campaign 
Actor Action System Response 
1. The actor enters the client name. 2. Lists all campaigns for that 
client. 
3. Selects the relevant campaign. 4. Displays a list of all staff 
members not already allocated to this campaign. 
5. Highlights the staff members 6.Presents a message confirming 
to be assigned to this campaign. that staff have been allocated. 
Alternative Courses 
Steps 1–3. The actor knows the campaign name and enters it directly.
18 
Use Case Descriptions 
Many projects use templates 
• name of use case 
• pre-conditions 
• post-conditions 
• purpose 
• description 
• alternative courses 
• errors
19 
Behaviour Specifications 
Rather than (or as well as) using text, a 
use case can be linked to another 
diagram that specifies its behaviour 
Typically a Collaboration Diagram, a 
Sequence Diagram or a Statechart 
Diagram
Drawing Use Case Diagrams 
Identify the actors and the use cases 
Prioritize the use cases 
Develop each use case, starting with the 
priority ones, writing a description for 
each 
Add structure to the use case model: 
generalization, include and extend 
relationships and sub-systems 
20
Prototyping 
Use case modelling can be supported 
with prototyping 
Prototypes can be used to help elicit 
requirements 
Prototypes can be used to test out 
system architectures based on the use 
cases in order to meet the non-functional 
requirements 
21
22 
Prototyping 
For user interface prototypes, 
storyboarding can be used with hand-drawn 
designs
Campaign Selection 
23 
Prototyping 
User interface prototypes can be 
implemented using languages other than 
the one that the system will be 
developed in 
OK Quit 
Campaign Selection 
Campaign: 
Holborn Motors 
Lynch Properties 
Yellow Partridge 
Zeta Systems 
Client: 
Spring Jewellery Campaign 1997 
Spring Jewellery Campaign 2001 
Spring Jewellery Campaign 2002 
Summer Collection 1998 
OK Quit 
Campaign Selection 
Campaign: 
Holborn Motors 
Lynch Properties 
Yellow Partridge 
Zeta Systems 
Client: 
Spring Jewellery Campaign 1997 
Spring Jewellery Campaign 2001 
Spring Jewellery Campaign 2002 
Summer Collection 1998 
OK Quit 
Campaign: 
Holborn Motors 
Lynch Properties 
Yellow Partridge 
Zeta Systems 
Client: 
Spring Jewellery Campaign 2002 
Dialogue initialized. User selects Client. Campaigns 
listed. 
User selects Campaign.
Summary 
In this lecture you have learned about: 
The purpose of use case diagrams 
The notation of use case diagrams 
How to draw use case diagrams 
How to write use case descriptions 
How prototyping can be used with use 
case modelling 
24

More Related Content

Similar to Software System Engineering - Chapter 9

Use Case Diagrams part4
Use Case Diagrams part4Use Case Diagrams part4
Use Case Diagrams part4
DrMohammed Qassim
 
[RPL2] Pertemuan 3 - UML dan USECASE VIEW
[RPL2] Pertemuan 3 - UML dan USECASE VIEW[RPL2] Pertemuan 3 - UML dan USECASE VIEW
[RPL2] Pertemuan 3 - UML dan USECASE VIEW
rizki adam kurniawan
 
Intro to UML - Use Case diagrams
Intro to UML - Use Case diagramsIntro to UML - Use Case diagrams
Intro to UML - Use Case diagramsjsm1979
 
SELECT21.pptx
SELECT21.pptxSELECT21.pptx
SELECT21.pptx
devnasra1
 
Use case modeling
Use case modelingUse case modeling
Use case modeling
Wajahat Hasnain
 
Presentation Use Case Diagram and Use Case Specification.pptx
Presentation Use Case Diagram and Use Case Specification.pptxPresentation Use Case Diagram and Use Case Specification.pptx
Presentation Use Case Diagram and Use Case Specification.pptx
azida3
 
OOAD U1.pptx
OOAD U1.pptxOOAD U1.pptx
OOAD U1.pptx
anguraju1
 
Use Case Diagram.pptx
Use Case Diagram.pptxUse Case Diagram.pptx
Use Case Diagram.pptx
Genta Sahuri
 
Software Requirements Engineering Methodologies
Software Requirements Engineering MethodologiesSoftware Requirements Engineering Methodologies
Software Requirements Engineering MethodologiesKiran Munir
 
usecase (1).pptx
usecase (1).pptxusecase (1).pptx
usecase (1).pptx
Nadir438180
 
CASE Tools lab.ppt
CASE Tools lab.pptCASE Tools lab.ppt
CASE Tools lab.ppt
RAJESH S
 
Workshop on Basics of Software Engineering (DFD, UML and Project Culture)
Workshop on Basics of Software Engineering (DFD, UML and Project Culture)Workshop on Basics of Software Engineering (DFD, UML and Project Culture)
Workshop on Basics of Software Engineering (DFD, UML and Project Culture)
Dr Sukhpal Singh Gill
 
SE_Lec 08_UML Use Cases
SE_Lec 08_UML Use CasesSE_Lec 08_UML Use Cases
SE_Lec 08_UML Use Cases
Amr E. Mohamed
 
6. ch 5-understanding requirements
6. ch 5-understanding requirements6. ch 5-understanding requirements
6. ch 5-understanding requirements
Delowar hossain
 
Requirements Are Optional, Right?
Requirements Are Optional, Right?Requirements Are Optional, Right?
Requirements Are Optional, Right?
thomstrat
 
Use case diagrams
Use case diagramsUse case diagrams
Use case diagramsMir Majid
 
M azhar
M azharM azhar
M azhar
Mazhar Saleem
 
Use case diagram
Use case diagramUse case diagram
Use case diagram
City University
 

Similar to Software System Engineering - Chapter 9 (20)

Ooad quest and ans
Ooad quest and ansOoad quest and ans
Ooad quest and ans
 
Use Case Diagrams part4
Use Case Diagrams part4Use Case Diagrams part4
Use Case Diagrams part4
 
[RPL2] Pertemuan 3 - UML dan USECASE VIEW
[RPL2] Pertemuan 3 - UML dan USECASE VIEW[RPL2] Pertemuan 3 - UML dan USECASE VIEW
[RPL2] Pertemuan 3 - UML dan USECASE VIEW
 
Intro to UML - Use Case diagrams
Intro to UML - Use Case diagramsIntro to UML - Use Case diagrams
Intro to UML - Use Case diagrams
 
SELECT21.pptx
SELECT21.pptxSELECT21.pptx
SELECT21.pptx
 
Use case modeling
Use case modelingUse case modeling
Use case modeling
 
Presentation Use Case Diagram and Use Case Specification.pptx
Presentation Use Case Diagram and Use Case Specification.pptxPresentation Use Case Diagram and Use Case Specification.pptx
Presentation Use Case Diagram and Use Case Specification.pptx
 
Jar chapter 3
Jar chapter 3Jar chapter 3
Jar chapter 3
 
OOAD U1.pptx
OOAD U1.pptxOOAD U1.pptx
OOAD U1.pptx
 
Use Case Diagram.pptx
Use Case Diagram.pptxUse Case Diagram.pptx
Use Case Diagram.pptx
 
Software Requirements Engineering Methodologies
Software Requirements Engineering MethodologiesSoftware Requirements Engineering Methodologies
Software Requirements Engineering Methodologies
 
usecase (1).pptx
usecase (1).pptxusecase (1).pptx
usecase (1).pptx
 
CASE Tools lab.ppt
CASE Tools lab.pptCASE Tools lab.ppt
CASE Tools lab.ppt
 
Workshop on Basics of Software Engineering (DFD, UML and Project Culture)
Workshop on Basics of Software Engineering (DFD, UML and Project Culture)Workshop on Basics of Software Engineering (DFD, UML and Project Culture)
Workshop on Basics of Software Engineering (DFD, UML and Project Culture)
 
SE_Lec 08_UML Use Cases
SE_Lec 08_UML Use CasesSE_Lec 08_UML Use Cases
SE_Lec 08_UML Use Cases
 
6. ch 5-understanding requirements
6. ch 5-understanding requirements6. ch 5-understanding requirements
6. ch 5-understanding requirements
 
Requirements Are Optional, Right?
Requirements Are Optional, Right?Requirements Are Optional, Right?
Requirements Are Optional, Right?
 
Use case diagrams
Use case diagramsUse case diagrams
Use case diagrams
 
M azhar
M azharM azhar
M azhar
 
Use case diagram
Use case diagramUse case diagram
Use case diagram
 

More from Fadhil Ismail

Common Law Presentation (22034)
Common Law Presentation (22034)Common Law Presentation (22034)
Common Law Presentation (22034)
Fadhil Ismail
 
Kertas Kerja Tenis
Kertas Kerja TenisKertas Kerja Tenis
Kertas Kerja Tenis
Fadhil Ismail
 
Contoh Borang Soal Selidik Poligami
Contoh Borang Soal Selidik PoligamiContoh Borang Soal Selidik Poligami
Contoh Borang Soal Selidik Poligami
Fadhil Ismail
 
Frontpage vs dreamweaver
Frontpage vs dreamweaverFrontpage vs dreamweaver
Frontpage vs dreamweaver
Fadhil Ismail
 
Isu-isu Kekeluargaan - Poligami
Isu-isu Kekeluargaan - PoligamiIsu-isu Kekeluargaan - Poligami
Isu-isu Kekeluargaan - Poligami
Fadhil Ismail
 
Software System Engineering - Chapter 15
Software System Engineering - Chapter 15Software System Engineering - Chapter 15
Software System Engineering - Chapter 15
Fadhil Ismail
 
Software System Engineering - Chapter 14
Software System Engineering - Chapter 14Software System Engineering - Chapter 14
Software System Engineering - Chapter 14
Fadhil Ismail
 
Software System Engineering - Chapter 13
Software System Engineering - Chapter 13Software System Engineering - Chapter 13
Software System Engineering - Chapter 13
Fadhil Ismail
 
Software System Engineering - Chapter 12
Software System Engineering - Chapter 12Software System Engineering - Chapter 12
Software System Engineering - Chapter 12
Fadhil Ismail
 
Software System Engineering - Chapter 11
Software System Engineering - Chapter 11Software System Engineering - Chapter 11
Software System Engineering - Chapter 11
Fadhil Ismail
 
Software System Engineering - Chapter 10
Software System Engineering - Chapter 10Software System Engineering - Chapter 10
Software System Engineering - Chapter 10
Fadhil Ismail
 
Software System Engineering - Chapter 8
Software System Engineering - Chapter 8Software System Engineering - Chapter 8
Software System Engineering - Chapter 8
Fadhil Ismail
 
Software System Engineering - Chapter 7
Software System Engineering - Chapter 7Software System Engineering - Chapter 7
Software System Engineering - Chapter 7
Fadhil Ismail
 
Software System Engineering - Chapter 6
Software System Engineering - Chapter 6Software System Engineering - Chapter 6
Software System Engineering - Chapter 6
Fadhil Ismail
 
Software System Engineering - Chapter 5
Software System Engineering - Chapter 5Software System Engineering - Chapter 5
Software System Engineering - Chapter 5
Fadhil Ismail
 
Software System Engineering - Chapter 4
Software System Engineering - Chapter 4Software System Engineering - Chapter 4
Software System Engineering - Chapter 4
Fadhil Ismail
 
Software System Engineering - Chapter 3
Software System Engineering - Chapter 3Software System Engineering - Chapter 3
Software System Engineering - Chapter 3
Fadhil Ismail
 
Software System Engineering - Chapter 2
Software System Engineering - Chapter 2Software System Engineering - Chapter 2
Software System Engineering - Chapter 2
Fadhil Ismail
 
Software System Engineering - Chapter 1
Software System Engineering - Chapter 1Software System Engineering - Chapter 1
Software System Engineering - Chapter 1
Fadhil Ismail
 
Hubungan Etnik Bab 3
Hubungan Etnik Bab 3Hubungan Etnik Bab 3
Hubungan Etnik Bab 3
Fadhil Ismail
 

More from Fadhil Ismail (20)

Common Law Presentation (22034)
Common Law Presentation (22034)Common Law Presentation (22034)
Common Law Presentation (22034)
 
Kertas Kerja Tenis
Kertas Kerja TenisKertas Kerja Tenis
Kertas Kerja Tenis
 
Contoh Borang Soal Selidik Poligami
Contoh Borang Soal Selidik PoligamiContoh Borang Soal Selidik Poligami
Contoh Borang Soal Selidik Poligami
 
Frontpage vs dreamweaver
Frontpage vs dreamweaverFrontpage vs dreamweaver
Frontpage vs dreamweaver
 
Isu-isu Kekeluargaan - Poligami
Isu-isu Kekeluargaan - PoligamiIsu-isu Kekeluargaan - Poligami
Isu-isu Kekeluargaan - Poligami
 
Software System Engineering - Chapter 15
Software System Engineering - Chapter 15Software System Engineering - Chapter 15
Software System Engineering - Chapter 15
 
Software System Engineering - Chapter 14
Software System Engineering - Chapter 14Software System Engineering - Chapter 14
Software System Engineering - Chapter 14
 
Software System Engineering - Chapter 13
Software System Engineering - Chapter 13Software System Engineering - Chapter 13
Software System Engineering - Chapter 13
 
Software System Engineering - Chapter 12
Software System Engineering - Chapter 12Software System Engineering - Chapter 12
Software System Engineering - Chapter 12
 
Software System Engineering - Chapter 11
Software System Engineering - Chapter 11Software System Engineering - Chapter 11
Software System Engineering - Chapter 11
 
Software System Engineering - Chapter 10
Software System Engineering - Chapter 10Software System Engineering - Chapter 10
Software System Engineering - Chapter 10
 
Software System Engineering - Chapter 8
Software System Engineering - Chapter 8Software System Engineering - Chapter 8
Software System Engineering - Chapter 8
 
Software System Engineering - Chapter 7
Software System Engineering - Chapter 7Software System Engineering - Chapter 7
Software System Engineering - Chapter 7
 
Software System Engineering - Chapter 6
Software System Engineering - Chapter 6Software System Engineering - Chapter 6
Software System Engineering - Chapter 6
 
Software System Engineering - Chapter 5
Software System Engineering - Chapter 5Software System Engineering - Chapter 5
Software System Engineering - Chapter 5
 
Software System Engineering - Chapter 4
Software System Engineering - Chapter 4Software System Engineering - Chapter 4
Software System Engineering - Chapter 4
 
Software System Engineering - Chapter 3
Software System Engineering - Chapter 3Software System Engineering - Chapter 3
Software System Engineering - Chapter 3
 
Software System Engineering - Chapter 2
Software System Engineering - Chapter 2Software System Engineering - Chapter 2
Software System Engineering - Chapter 2
 
Software System Engineering - Chapter 1
Software System Engineering - Chapter 1Software System Engineering - Chapter 1
Software System Engineering - Chapter 1
 
Hubungan Etnik Bab 3
Hubungan Etnik Bab 3Hubungan Etnik Bab 3
Hubungan Etnik Bab 3
 

Recently uploaded

block diagram and signal flow graph representation
block diagram and signal flow graph representationblock diagram and signal flow graph representation
block diagram and signal flow graph representation
Divya Somashekar
 
Architectural Portfolio Sean Lockwood
Architectural Portfolio Sean LockwoodArchitectural Portfolio Sean Lockwood
Architectural Portfolio Sean Lockwood
seandesed
 
The Benefits and Techniques of Trenchless Pipe Repair.pdf
The Benefits and Techniques of Trenchless Pipe Repair.pdfThe Benefits and Techniques of Trenchless Pipe Repair.pdf
The Benefits and Techniques of Trenchless Pipe Repair.pdf
Pipe Restoration Solutions
 
J.Yang, ICLR 2024, MLILAB, KAIST AI.pdf
J.Yang,  ICLR 2024, MLILAB, KAIST AI.pdfJ.Yang,  ICLR 2024, MLILAB, KAIST AI.pdf
J.Yang, ICLR 2024, MLILAB, KAIST AI.pdf
MLILAB
 
H.Seo, ICLR 2024, MLILAB, KAIST AI.pdf
H.Seo,  ICLR 2024, MLILAB,  KAIST AI.pdfH.Seo,  ICLR 2024, MLILAB,  KAIST AI.pdf
H.Seo, ICLR 2024, MLILAB, KAIST AI.pdf
MLILAB
 
ethical hacking in wireless-hacking1.ppt
ethical hacking in wireless-hacking1.pptethical hacking in wireless-hacking1.ppt
ethical hacking in wireless-hacking1.ppt
Jayaprasanna4
 
ethical hacking-mobile hacking methods.ppt
ethical hacking-mobile hacking methods.pptethical hacking-mobile hacking methods.ppt
ethical hacking-mobile hacking methods.ppt
Jayaprasanna4
 
space technology lecture notes on satellite
space technology lecture notes on satellitespace technology lecture notes on satellite
space technology lecture notes on satellite
ongomchris
 
weather web application report.pdf
weather web application report.pdfweather web application report.pdf
weather web application report.pdf
Pratik Pawar
 
MCQ Soil mechanics questions (Soil shear strength).pdf
MCQ Soil mechanics questions (Soil shear strength).pdfMCQ Soil mechanics questions (Soil shear strength).pdf
MCQ Soil mechanics questions (Soil shear strength).pdf
Osamah Alsalih
 
Student information management system project report ii.pdf
Student information management system project report ii.pdfStudent information management system project report ii.pdf
Student information management system project report ii.pdf
Kamal Acharya
 
Sachpazis:Terzaghi Bearing Capacity Estimation in simple terms with Calculati...
Sachpazis:Terzaghi Bearing Capacity Estimation in simple terms with Calculati...Sachpazis:Terzaghi Bearing Capacity Estimation in simple terms with Calculati...
Sachpazis:Terzaghi Bearing Capacity Estimation in simple terms with Calculati...
Dr.Costas Sachpazis
 
Fundamentals of Electric Drives and its applications.pptx
Fundamentals of Electric Drives and its applications.pptxFundamentals of Electric Drives and its applications.pptx
Fundamentals of Electric Drives and its applications.pptx
manasideore6
 
RAT: Retrieval Augmented Thoughts Elicit Context-Aware Reasoning in Long-Hori...
RAT: Retrieval Augmented Thoughts Elicit Context-Aware Reasoning in Long-Hori...RAT: Retrieval Augmented Thoughts Elicit Context-Aware Reasoning in Long-Hori...
RAT: Retrieval Augmented Thoughts Elicit Context-Aware Reasoning in Long-Hori...
thanhdowork
 
WATER CRISIS and its solutions-pptx 1234
WATER CRISIS and its solutions-pptx 1234WATER CRISIS and its solutions-pptx 1234
WATER CRISIS and its solutions-pptx 1234
AafreenAbuthahir2
 
The role of big data in decision making.
The role of big data in decision making.The role of big data in decision making.
The role of big data in decision making.
ankuprajapati0525
 
power quality voltage fluctuation UNIT - I.pptx
power quality voltage fluctuation UNIT - I.pptxpower quality voltage fluctuation UNIT - I.pptx
power quality voltage fluctuation UNIT - I.pptx
ViniHema
 
在线办理(ANU毕业证书)澳洲国立大学毕业证录取通知书一模一样
在线办理(ANU毕业证书)澳洲国立大学毕业证录取通知书一模一样在线办理(ANU毕业证书)澳洲国立大学毕业证录取通知书一模一样
在线办理(ANU毕业证书)澳洲国立大学毕业证录取通知书一模一样
obonagu
 
Hybrid optimization of pumped hydro system and solar- Engr. Abdul-Azeez.pdf
Hybrid optimization of pumped hydro system and solar- Engr. Abdul-Azeez.pdfHybrid optimization of pumped hydro system and solar- Engr. Abdul-Azeez.pdf
Hybrid optimization of pumped hydro system and solar- Engr. Abdul-Azeez.pdf
fxintegritypublishin
 
Industrial Training at Shahjalal Fertilizer Company Limited (SFCL)
Industrial Training at Shahjalal Fertilizer Company Limited (SFCL)Industrial Training at Shahjalal Fertilizer Company Limited (SFCL)
Industrial Training at Shahjalal Fertilizer Company Limited (SFCL)
MdTanvirMahtab2
 

Recently uploaded (20)

block diagram and signal flow graph representation
block diagram and signal flow graph representationblock diagram and signal flow graph representation
block diagram and signal flow graph representation
 
Architectural Portfolio Sean Lockwood
Architectural Portfolio Sean LockwoodArchitectural Portfolio Sean Lockwood
Architectural Portfolio Sean Lockwood
 
The Benefits and Techniques of Trenchless Pipe Repair.pdf
The Benefits and Techniques of Trenchless Pipe Repair.pdfThe Benefits and Techniques of Trenchless Pipe Repair.pdf
The Benefits and Techniques of Trenchless Pipe Repair.pdf
 
J.Yang, ICLR 2024, MLILAB, KAIST AI.pdf
J.Yang,  ICLR 2024, MLILAB, KAIST AI.pdfJ.Yang,  ICLR 2024, MLILAB, KAIST AI.pdf
J.Yang, ICLR 2024, MLILAB, KAIST AI.pdf
 
H.Seo, ICLR 2024, MLILAB, KAIST AI.pdf
H.Seo,  ICLR 2024, MLILAB,  KAIST AI.pdfH.Seo,  ICLR 2024, MLILAB,  KAIST AI.pdf
H.Seo, ICLR 2024, MLILAB, KAIST AI.pdf
 
ethical hacking in wireless-hacking1.ppt
ethical hacking in wireless-hacking1.pptethical hacking in wireless-hacking1.ppt
ethical hacking in wireless-hacking1.ppt
 
ethical hacking-mobile hacking methods.ppt
ethical hacking-mobile hacking methods.pptethical hacking-mobile hacking methods.ppt
ethical hacking-mobile hacking methods.ppt
 
space technology lecture notes on satellite
space technology lecture notes on satellitespace technology lecture notes on satellite
space technology lecture notes on satellite
 
weather web application report.pdf
weather web application report.pdfweather web application report.pdf
weather web application report.pdf
 
MCQ Soil mechanics questions (Soil shear strength).pdf
MCQ Soil mechanics questions (Soil shear strength).pdfMCQ Soil mechanics questions (Soil shear strength).pdf
MCQ Soil mechanics questions (Soil shear strength).pdf
 
Student information management system project report ii.pdf
Student information management system project report ii.pdfStudent information management system project report ii.pdf
Student information management system project report ii.pdf
 
Sachpazis:Terzaghi Bearing Capacity Estimation in simple terms with Calculati...
Sachpazis:Terzaghi Bearing Capacity Estimation in simple terms with Calculati...Sachpazis:Terzaghi Bearing Capacity Estimation in simple terms with Calculati...
Sachpazis:Terzaghi Bearing Capacity Estimation in simple terms with Calculati...
 
Fundamentals of Electric Drives and its applications.pptx
Fundamentals of Electric Drives and its applications.pptxFundamentals of Electric Drives and its applications.pptx
Fundamentals of Electric Drives and its applications.pptx
 
RAT: Retrieval Augmented Thoughts Elicit Context-Aware Reasoning in Long-Hori...
RAT: Retrieval Augmented Thoughts Elicit Context-Aware Reasoning in Long-Hori...RAT: Retrieval Augmented Thoughts Elicit Context-Aware Reasoning in Long-Hori...
RAT: Retrieval Augmented Thoughts Elicit Context-Aware Reasoning in Long-Hori...
 
WATER CRISIS and its solutions-pptx 1234
WATER CRISIS and its solutions-pptx 1234WATER CRISIS and its solutions-pptx 1234
WATER CRISIS and its solutions-pptx 1234
 
The role of big data in decision making.
The role of big data in decision making.The role of big data in decision making.
The role of big data in decision making.
 
power quality voltage fluctuation UNIT - I.pptx
power quality voltage fluctuation UNIT - I.pptxpower quality voltage fluctuation UNIT - I.pptx
power quality voltage fluctuation UNIT - I.pptx
 
在线办理(ANU毕业证书)澳洲国立大学毕业证录取通知书一模一样
在线办理(ANU毕业证书)澳洲国立大学毕业证录取通知书一模一样在线办理(ANU毕业证书)澳洲国立大学毕业证录取通知书一模一样
在线办理(ANU毕业证书)澳洲国立大学毕业证录取通知书一模一样
 
Hybrid optimization of pumped hydro system and solar- Engr. Abdul-Azeez.pdf
Hybrid optimization of pumped hydro system and solar- Engr. Abdul-Azeez.pdfHybrid optimization of pumped hydro system and solar- Engr. Abdul-Azeez.pdf
Hybrid optimization of pumped hydro system and solar- Engr. Abdul-Azeez.pdf
 
Industrial Training at Shahjalal Fertilizer Company Limited (SFCL)
Industrial Training at Shahjalal Fertilizer Company Limited (SFCL)Industrial Training at Shahjalal Fertilizer Company Limited (SFCL)
Industrial Training at Shahjalal Fertilizer Company Limited (SFCL)
 

Software System Engineering - Chapter 9

  • 1. 1 CCHHAAPPTTEERR 99 UUssee CCaassee DDiiaaggrraammss Software System Engineering (260CT)
  • 2. In This Lecture You Will Learn: The purpose of use case diagrams The notation of use case diagrams How to draw use case diagrams How to write use case descriptions How prototyping can be used with use case modelling 2
  • 3. Drawing Use Case Diagrams Purpose • document the functionality of the system from the users’ perspective • document the scope of the system • document the interaction between the users and the system using supporting use case descriptions (behaviour specifications) 3
  • 4. Notation of Use Case Diagrams Communication Use case association 4 Staff Conta ct Change a clien t contact Actor System or subsystem boundary
  • 5. Notation of Use Case Diagrams Actors • drawn as stick people with a name • the roles that people, other systems or devices take when communicating with a particular use case or use cases • not the same as job titles or people • people with one job title may play the roles of several actors • one actor may represent several job titles 5
  • 6. Notation of Use Case Diagrams Use cases • drawn as ellipses with a name in or below each ellipse • describe a sequence of actions that the system performs to achieve an observable result of value to an actor • the name is usually an active verb and a noun phrase 6
  • 7. Notation of Use Case Diagrams Communication associations • line drawn between an actor and a use case • can have arrow heads to show where the communication is initiated (arrow points away from the initiator) • represent communication link between an instance of the use case and an instance of the actor 7
  • 8. Notation of Use Case Diagrams Sub-systems • drawn as a rectangle around a group of use cases that belong to the same sub-system • in a CASE tool, use cases for different sub-system are usually placed in separate use 8 case diagrams, and the rectangle is redundant
  • 9. Notation of Use Case Diagrams Dependencies • Extend and Include relationships between use cases • shown as stereotyped dependencies • stereotypes are written as text strings in guillemets: «extend» and «include» 9
  • 10. Notation of Use Case Diagrams  Extend relationship • one use case provides additional functionality that may be required in another use case • there may be multiple ways of extending a use case, which represent variations in the way that actors interact with the use case • extension points show when the extension occurs • a condition can be placed next to the dependency arrow (Note that it is not put in square brackets, unlike conditions in activity diagrams.) 10
  • 11. Extension points Summary print: system displays balance «extend» user requires print-out Print campaign 11 Campaign Manager Check campaign budget summary
  • 12. Notation of Use Case Diagrams Include relationship • one use case always includes the functionality of another use case • a use case may include more than one other • can be used to separate out a sequence of behaviour that is used in many use cases • should not be used to create a hierarchical functional decomposition of the system 12
  • 13. 13 Campaign Manager «include» Find campaign Assign staff to work on a campaign
  • 14. Notation of Use Case Diagrams Generalization • shows that one use case provides all the functionality of the more specific use case and some additional functionality • shows that one actor can participate in all the associations with use cases that the more specific actor can plus some additional use cases 14
  • 15. 15 Staff Contact Record completion of an advert Campaign Manager Change a client contact Assign individual staff to work on a campaign Assign team of staff to work on a campaign Assign staff to work on a campaign
  • 16. 16 Use Case Descriptions Can be a simple paragraph Assign staff to work on a campaign • The campaign manager wishes to record which staff are working on a particular campaign. This information is used to validate timesheets and to calculate staff year-end bonuses.
  • 17. 17 Use Case Descriptions Can be a step-by-step breakdown of interaction between actor and system Assign staff to work on a campaign Actor Action System Response 1. The actor enters the client name. 2. Lists all campaigns for that client. 3. Selects the relevant campaign. 4. Displays a list of all staff members not already allocated to this campaign. 5. Highlights the staff members 6.Presents a message confirming to be assigned to this campaign. that staff have been allocated. Alternative Courses Steps 1–3. The actor knows the campaign name and enters it directly.
  • 18. 18 Use Case Descriptions Many projects use templates • name of use case • pre-conditions • post-conditions • purpose • description • alternative courses • errors
  • 19. 19 Behaviour Specifications Rather than (or as well as) using text, a use case can be linked to another diagram that specifies its behaviour Typically a Collaboration Diagram, a Sequence Diagram or a Statechart Diagram
  • 20. Drawing Use Case Diagrams Identify the actors and the use cases Prioritize the use cases Develop each use case, starting with the priority ones, writing a description for each Add structure to the use case model: generalization, include and extend relationships and sub-systems 20
  • 21. Prototyping Use case modelling can be supported with prototyping Prototypes can be used to help elicit requirements Prototypes can be used to test out system architectures based on the use cases in order to meet the non-functional requirements 21
  • 22. 22 Prototyping For user interface prototypes, storyboarding can be used with hand-drawn designs
  • 23. Campaign Selection 23 Prototyping User interface prototypes can be implemented using languages other than the one that the system will be developed in OK Quit Campaign Selection Campaign: Holborn Motors Lynch Properties Yellow Partridge Zeta Systems Client: Spring Jewellery Campaign 1997 Spring Jewellery Campaign 2001 Spring Jewellery Campaign 2002 Summer Collection 1998 OK Quit Campaign Selection Campaign: Holborn Motors Lynch Properties Yellow Partridge Zeta Systems Client: Spring Jewellery Campaign 1997 Spring Jewellery Campaign 2001 Spring Jewellery Campaign 2002 Summer Collection 1998 OK Quit Campaign: Holborn Motors Lynch Properties Yellow Partridge Zeta Systems Client: Spring Jewellery Campaign 2002 Dialogue initialized. User selects Client. Campaigns listed. User selects Campaign.
  • 24. Summary In this lecture you have learned about: The purpose of use case diagrams The notation of use case diagrams How to draw use case diagrams How to write use case descriptions How prototyping can be used with use case modelling 24