Professional Documents
Culture Documents
Chapter 7 Appendix A&B (Lect4)
Chapter 7 Appendix A&B (Lect4)
Chapter 7 Appendix A&B (Lect4)
and Design
Jeffrey A. Hoffer
Joey F. George
Joseph S. Valacich
Chapter 7 Appendix A
Object-Oriented Analysis and Design:
Use Cases
Learning Objectives
Explain use cases and use case
diagrams and how they can be used
to model system functionality.
Present the basic aspects of how to
create written use cases.
Discuss process modeling with use
cases for electronic commerce
application.
Chapter 7 Appendix A Copyright © 2014 Pearson Education, Inc. Publishing as Prentice Hall 2
Overview of Object-Oriented
Analysis
Object-oriented analysis is a popular
approach that sees a system from the
viewpoint of the objects themselves as
they function and interact.
the project manager must define the
project as a set of components
3/8/2024Chapter 7 Appendix
A Copyright © 2014 Pearson Education, Inc. Publishing as Prentice Hall 3
Object Modeling with the Unified
Modeling Language
The UML uses a set of symbols to
represent graphically the various
components and relationships within a
system
It mainly is used to support object-oriented
systems analysis and to develop object
models
3/8/2024Chapter 7 Appendix
A Copyright © 2014 Pearson Education, Inc. Publishing as Prentice Hall 4
Use Cases
A use case is a depiction of a system’s
behavior or functionality under various
conditions as the system responds to
requests from users.
An actor is an external entity that interacts
with the system.
Chapter 7 Appendix A Copyright © 2014 Pearson Education, Inc. Publishing as Prentice Hall 5
Use Cases (Cont.)
FIGURE 7-26
A use case diagram for a university registration system
Chapter 7 Appendix A Copyright © 2014 Pearson Education, Inc. Publishing as Prentice Hall 6
Use Cases (Cont.)
Most actors represent user roles, but actors can
also be external systems.
An actor is a role, not a specific user; one user
may play many roles, and an actor may
represent many users.
A use case model consists of actors and use
cases.
Chapter 7 Appendix A Copyright © 2014 Pearson Education, Inc. Publishing as Prentice Hall 7
Use Cases diagrams
Use case diagram: a picture showing
system behavior along with the key actors
that interact with the system
Abstract use case is when a use case is
initiated by another use case.
A use case represents complete
functionality.
Chapter 7 Appendix A Copyright © 2014 Pearson Education, Inc. Publishing as Prentice Hall 8
Definitions and Symbols
Use Case
Actor
Boundary
Connection
<<include>> Include relationship
Extend relationship <<extend>>
Chapter 7 Appendix A Copyright © 2014 Pearson Education, Inc. Publishing as Prentice Hall 9
Definitions and Symbols (Cont.)
Actor is a role, not an individual, Individuals are
instances of actors
Involved with the functioning of the system at some
basic level
Represented by stick figures
Use case represents a single system function.
Represented as an eclipse
The name of the use case can be listed inside the ellipse
or just below it.
Chapter 7 Appendix A Copyright © 2014 Pearson Education, Inc. Publishing as Prentice Hall 10
Definitions and Symbols (Cont.)
System boundary includes all the
relevant use cases.
A boundary is the dividing line between the
system and its environment.
Use cases are within the boundary.
Actors are outside of the boundary.
Represented as a box
Chapter 7 Appendix A Copyright © 2014 Pearson Education, Inc. Publishing as Prentice Hall 11
Definitions and Symbols (Cont.)
Connection is an association between an
actor and a use case.
Depicts a usage relationship
Connection does not indicate data flow
Actors are connected to use cases with lines.
Use cases are connected to each other with
arrows.
Chapter 7 Appendix A Copyright © 2014 Pearson Education, Inc. Publishing as Prentice Hall 12
•Extend relationship: The use case is optional
and comes after the base use case.
• It is represented by a dashed arrow in the
direction of the base use case with the notation
<<extend>>.
•Include relationship: The use case is
mandatory and part of the base use case.
•It is represented by a dashed arrow in the
direction of the included use case with the
notation <<include>>.
3/9/2024Chapter 7 Appendix
A Copyright © 2014 Pearson Education, Inc. Publishing as Prentice Hall 13
Definitions and Symbols (Cont.)
The extend relationship is used to show
that a use case can be extended by
another use case. This means that the
main use case can be enhanced by
adding the functionality of the other use
case. However, the extended use case is
not required for the main use case to be
complete.
Chapter 7 Appendix A Copyright © 2014 Pearson Education, Inc. Publishing as Prentice Hall 14
Definitions and Symbols (Cont.)
Chapter 7 Appendix A Copyright © 2014 Pearson Education, Inc. Publishing as Prentice Hall 15
Definitions and Symbols (Cont.)
Chapter 7 Appendix A Copyright © 2014 Pearson Education, Inc. Publishing as Prentice Hall 16
Definitions and Symbols (Cont.)
Chapter 7 Appendix A Copyright © 2014 Pearson Education, Inc. Publishing as Prentice Hall 17
Definitions and Symbols (Cont.)
Chapter 7 Appendix A Copyright © 2014 Pearson Education, Inc. Publishing as Prentice Hall 18
Definitions and Symbols (Cont.)
Chapter 7 Appendix A Copyright © 2014 Pearson Education, Inc. Publishing as Prentice Hall 19
3/9/2024Chapter 7 Appendix
A Copyright © 2014 Pearson Education, Inc. Publishing as Prentice Hall 20
3/8/2024Chapter 7 Appendix
A Copyright © 2014 Pearson Education, Inc. Publishing as Prentice Hall 21
Definitions and Symbols (Cont.)
FIGURE 7-27
A use case diagram featuring an include relationship
Chapter 7 Appendix A Copyright © 2014 Pearson Education, Inc. Publishing as Prentice Hall 22
Figure7-28
Use case diagram for Hoosier Burger
Chapter 7 Appendix A Copyright © 2014 Pearson Education, Inc. Publishing as Prentice Hall 23
Written Use Cases
Document containing detailed
specifications for a use case
Contents can be written as simple text or
in a specified format
Step-by-step description of what must
occur in a successful use case
Chapter 7 Appendix A Copyright © 2014 Pearson Education, Inc. Publishing as Prentice Hall 24
Figure 7-29
A template for writing use cases
(Source: Cockburn, Alistair, Writing
Effective Use Cases, 1st ed., ©
2001. Reprinted and Electronically
reproduced by permission of
Pearson Education, Inc. Upper
Saddle River, New Jersey.)
Chapter 7 Appendix A Copyright © 2014 Pearson Education, Inc. Publishing as Prentice Hall 25
Figure 7-31
A use case diagram for a reservation
system
26
Figure 7-33
WebStore use case diagram
27
Level of Use Case
Refers to degree of detail in the use case
description
Chapter 7 Appendix A Copyright © 2014 Pearson Education, Inc. Publishing as Prentice Hall 28
Summary
In Appendix A you learned how to:
Explain use cases and use case
diagrams and how they can be used to
model system functionality.
Present the basic aspects of how to
create written use cases.
Discuss process modeling with use cases
for electronic commerce application.
Chapter 7 Appendix A Copyright © 2014 Pearson Education, Inc. Publishing as Prentice Hall 29
Chapter 7 Appendix B
Object-Oriented Analysis and
Design: Activity Diagrams
3/16/2024Chapter 7
Appendix A Copyright © 2014 Pearson Education, Inc. Publishing as Prentice Hall 30
Process Modeling: Activity
Diagrams
Activity Diagrams
Show the conditional logic for the sequence of
system activities needed to accomplish a
business process.
Clearly show parallel and alternative
behaviors.
Can be used to show the logic of a use case.