Chapter 7 Appendix A&B (Lect4)

You might also like

Download as pdf or txt
Download as pdf or txt
You are on page 1of 37

Modern Systems Analysis

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.)

 Extend relationship is an association


between two use cases where one adds
new behaviors or actions to the other.
 Extends a use case by adding new behavior
or actions
 Specialized use case extends the general use
case.

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.)

 The include relationship is used to show


that a use case includes the functionality
of another use case. This means that the
use case being included is a part of the
main use case and cannot be used on its
own.

Chapter 7 Appendix A Copyright © 2014 Pearson Education, Inc. Publishing as Prentice Hall 17
Definitions and Symbols (Cont.)

 Include relationship is an association


between two use cases where one use
case uses the functionality contained in
the other.
 Indicates a use case that is used (invoked) by
another use case
 Links to general purpose functions, used by
many other use cases

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

 Five suggested levels (Cockburn)


summary
1. White – as seen from clouds
2. Kite – “birds-eye view”
3. Blue – sea-level view
4. Fish – below sea-level
5. Black – bottom of the sea detail

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.

Chapter 7 Appendix B © 2014 Pearson Education, Inc. Publishing as Prentice Hall 31


Use Activity Diagrams to:
 Depict the flow of control from activity to
activity.
 Help in use case analysis to understand what
actions need to take place.
 Help in identifying extensions in a use case.
 Model work flow and business processes.
 Model the sequential and concurrent steps in a
computation process.

Chapter 7 Appendix B © 2014 Pearson Education, Inc. Publishing as Prentice Hall 32


33
3/16/2024Chapter 7
Appendix B © 2014 Pearson Education, Inc. Publishing as Prentice Hall 34
FIGURE 7-36
Activity diagram for a
customer order
process

Chapter 7 Appendix B © 2014 Pearson Education, Inc. Publishing as Prentice Hall 35


Process Modeling: Activity
Diagrams (Cont.)
 Elements of Activity Diagrams:
 Activity: a behavior that an object
carries out while in a particular state
 Branch: a diamond symbol containing a
condition whose results provide
transitions to different paths of activities
 Merge: a circular symbol where different
paths converge
Chapter 7 Appendix B © 2014 Pearson Education, Inc. Publishing as Prentice Hall 36
Process Modeling: Activity
Diagrams (Cont.)
Fork: the beginning of parallel
activities
Join: the end of parallel activities
Swimlanes: columns representing
different organizational units of the
system

Chapter 7 Appendix B © 2014 Pearson Education, Inc. Publishing as Prentice Hall 37

You might also like