Вы находитесь на странице: 1из 54

Systems Analysis and

Design
Alan Dennis, Barbara Haley Wixom, and Roberta Roth
John Wiley & Sons, Inc.

Slides by Candace S. Garrod


Red Rocks Community College

PowerPoint Presentation for Dennis, Wixom, & Roth Systems Analysis and Design, 3rd Edition
15 - 1 Copyright 2006 © John Wiley & Sons, Inc. All rights reserved.
The Movement To
Objects
Chapter 15

PowerPoint Presentation for Dennis, Wixom, & Roth Systems Analysis and Design, 3rd Edition
15 - 2 Copyright 2006 © John Wiley & Sons, Inc. All rights reserved.
Key Definitions
Object-oriented techniques view a
system as a collection of self-
contained objects which include both
data and processes.
The Unified Modeling Language
(UML)
the object modeling standard
adds a variety of techniques to the
field of system development.
PowerPoint Presentation for Dennis, Wixom, & Roth Systems Analysis and Design, 3rd Edition
15 - 3 Copyright 2006 © John Wiley & Sons, Inc. All rights reserved.
BASIC CHARACTERISTICS
OF OBJECT-ORIENTED
SYSTEMS

PowerPoint Presentation for Dennis, Wixom, & Roth Systems Analysis and Design, 3rd Edition
15 - 4 Copyright 2006 © John Wiley & Sons, Inc. All rights reserved.
Object Concepts
An object is a person, place, event, or thing
about which we want to capture information.
Each object has properties (or attributes).
The state of an object is defined by the value of
its properties and relations with other objects at
a point in time.
Objects have behaviors -- things that they can
do -- which are described by methods (or
operations).
Objects do not use primary or foreign keys,
instead each instance is assigned a unique
identifier (UID) when it is created.
PowerPoint Presentation for Dennis, Wixom, & Roth Systems Analysis and Design, 3rd Edition
15 - 5 Copyright 2006 © John Wiley & Sons, Inc. All rights reserved.
Classes and Objects

PowerPoint Presentation for Dennis, Wixom, & Roth Systems Analysis and Design, 3rd Edition
15 - 6 Copyright 2006 © John Wiley & Sons, Inc. All rights reserved.
Class
A class is a general template
we use to define and create
specific instances or objects.

PowerPoint Presentation for Dennis, Wixom, & Roth Systems Analysis and Design, 3rd Edition
15 - 7 Copyright 2006 © John Wiley & Sons, Inc. All rights reserved.
Object
An object is an instantiation
of a class.
An object is a person, place,
event, or thing about which
we want to capture
information.

PowerPoint Presentation for Dennis, Wixom, & Roth Systems Analysis and Design, 3rd Edition
15 - 8 Copyright 2006 © John Wiley & Sons, Inc. All rights reserved.
Messages and Methods
Messages are information sent
to objects to trigger methods

PowerPoint Presentation for Dennis, Wixom, & Roth Systems Analysis and Design, 3rd Edition
15 - 9 Copyright 2006 © John Wiley & Sons, Inc. All rights reserved.
Encapsulation and Information
Hiding
Encapsulation is simply the
combination of process and
data into a single entity.
The principle of information
hiding suggests that only the
information required to use a
software module be published
to the user of the module.
15 -
PowerPoint Presentation for Dennis, Wixom, & Roth Systems Analysis and Design, 3rd Edition
10 Copyright 2006 © John Wiley & Sons, Inc. All rights reserved.
Inheritance
Classes are arranged in a hierarchy
Superclasses or general classes are at
the top
Subclasses or specific classes are at the
bottom
Subclasses inherit attributes and
methods from the superclasses above
them
Classes with instances are concrete
classes
15 -
11 Abstract classes only produce templates
PowerPoint Presentation for Dennis, Wixom, & Roth Systems Analysis and Design, 3rd Edition
Copyright 2006 © John Wiley & Sons, Inc. All rights reserved.
Class Hierarchy

15 -
PowerPoint Presentation for Dennis, Wixom, & Roth Systems Analysis and Design, 3rd Edition
12 Copyright 2006 © John Wiley & Sons, Inc. All rights reserved.
Inheritance

15 -
PowerPoint Presentation for Dennis, Wixom, & Roth Systems Analysis and Design, 3rd Edition
13 Copyright 2006 © John Wiley & Sons, Inc. All rights reserved.
Polymorphism and
Encapsulation

15 -
PowerPoint Presentation for Dennis, Wixom, & Roth Systems Analysis and Design, 3rd Edition
14 Copyright 2006 © John Wiley & Sons, Inc. All rights reserved.
Benefits of an Object
Approach

15 -
PowerPoint Presentation for Dennis, Wixom, & Roth Systems Analysis and Design, 3rd Edition
15 Copyright 2006 © John Wiley & Sons, Inc. All rights reserved.
Your Turn
Are there any risks or costs
associated with the object
approach that you need to be
aware of?

15 -
PowerPoint Presentation for Dennis, Wixom, & Roth Systems Analysis and Design, 3rd Edition
16 Copyright 2006 © John Wiley & Sons, Inc. All rights reserved.
Unified Modeling Language –
UML (Version 2)
Defines a set of fourteen object
diagramming techniques
The key building block is the use
case
Diagrams are tightly integrated
syntactically and conceptually to
represent an integrated whole
Application of UML can vary among
organizations
15 -
PowerPoint Presentation for Dennis, Wixom, & Roth Systems Analysis and Design, 3rd Edition
17 Copyright 2006 © John Wiley & Sons, Inc. All rights reserved.
UML 2.0 Diagram
Summary

15 -
PowerPoint Presentation for Dennis, Wixom, & Roth Systems Analysis and Design, 3rd Edition
18 Copyright 2006 © John Wiley & Sons, Inc. All rights reserved.
Integration of four UML
Diagrams

15 -
PowerPoint Presentation for Dennis, Wixom, & Roth Systems Analysis and Design, 3rd Edition
19 Copyright 2006 © John Wiley & Sons, Inc. All rights reserved.
Adaptation of the Unified
Process Phased Development
Methodology

15 -
PowerPoint Presentation for Dennis, Wixom, & Roth Systems Analysis and Design, 3rd Edition
20 Copyright 2006 © John Wiley & Sons, Inc. All rights reserved.
USE CASE DIAGRAM

PowerPoint Presentation for Dennis, Wixom, & Roth Systems Analysis and Design, 3rd Edition
15 - 21 Copyright 2006 © John Wiley & Sons, Inc. All rights reserved.
Use Case Diagram
Concepts
Summarizes all use cases (for
the part of the system being
modeled) together in one
picture
Typically drawn early in the
SDLC
Shows the associations
15 -
between actors and use cases
PowerPoint Presentation for Dennis, Wixom, & Roth Systems Analysis and Design, 3rd Edition
22 Copyright 2006 © John Wiley & Sons, Inc. All rights reserved.
Use Case Diagram for
Appointment System

15 -
PowerPoint Presentation for Dennis, Wixom, & Roth Systems Analysis and Design, 3rd Edition
23 Copyright 2006 © John Wiley & Sons, Inc. All rights reserved.
Syntax for Use Case
Diagram

15 -
PowerPoint Presentation for Dennis, Wixom, & Roth Systems Analysis and Design, 3rd Edition
24 Copyright 2006 © John Wiley & Sons, Inc. All rights reserved.
Use Case Diagram for
Specialized Actor

15 -
PowerPoint Presentation for Dennis, Wixom, & Roth Systems Analysis and Design, 3rd Edition
25 Copyright 2006 © John Wiley & Sons, Inc. All rights reserved.
Extends and Includes
Associations

15 -
PowerPoint Presentation for Dennis, Wixom, & Roth Systems Analysis and Design, 3rd Edition
26 Copyright 2006 © John Wiley & Sons, Inc. All rights reserved.
Steps in Creating the Use Case
Diagram
1. Identify Use Cases
2. Draw the system boundary
3. Place Use Cases on the diagram
Group Use Cases into packages
Add special Use Case associations
4. Identify the actors
5. Add associations
15 -
PowerPoint Presentation for Dennis, Wixom, & Roth Systems Analysis and Design, 3rd Edition
27 Copyright 2006 © John Wiley & Sons, Inc. All rights reserved.
CLASS DIAGRAM

PowerPoint Presentation for Dennis, Wixom, & Roth Systems Analysis and Design, 3rd Edition
15 - 28 Copyright 2006 © John Wiley & Sons, Inc. All rights reserved.
Elements of a Class
Diagram
A static model that shows the
classes and relationships among
classes that remain constant in the
system over time
Resembles the ERD, but depicts
classes which include both
behaviors and states, while entities
in the ERD include only attributes
15 -
Scope not system wide, but
pertaining to a single Use Case
PowerPoint Presentation for Dennis, Wixom, & Roth Systems Analysis and Design, 3rd Edition
29 Copyright 2006 © John Wiley & Sons, Inc. All rights reserved.
Class Diagram for Manage
Appointment

15 -
PowerPoint Presentation for Dennis, Wixom, & Roth Systems Analysis and Design, 3rd Edition
30 Copyright 2006 © John Wiley & Sons, Inc. All rights reserved.
Class Diagram Syntax

15 -
PowerPoint Presentation for Dennis, Wixom, & Roth Systems Analysis and Design, 3rd Edition
31 Copyright 2006 © John Wiley & Sons, Inc. All rights reserved.
Operation Types
Constructor operation: create
new instances of a class
Similar to relationships in ERDs
Multiplicity shows how an
instance of an object can be
associated with other instances

15 -
PowerPoint Presentation for Dennis, Wixom, & Roth Systems Analysis and Design, 3rd Edition
32 Copyright 2006 © John Wiley & Sons, Inc. All rights reserved.
Multiplicity

15 -
PowerPoint Presentation for Dennis, Wixom, & Roth Systems Analysis and Design, 3rd Edition
33 Copyright 2006 © John Wiley & Sons, Inc. All rights reserved.
Steps in Creating a Class
Diagram
1. Identify classes
2. Identify attributes and
operations
3. Draw associations between
classes

15 -
PowerPoint Presentation for Dennis, Wixom, & Roth Systems Analysis and Design, 3rd Edition
34 Copyright 2006 © John Wiley & Sons, Inc. All rights reserved.
Initial Attributes for Class
Diagrams

15 -
PowerPoint Presentation for Dennis, Wixom, & Roth Systems Analysis and Design, 3rd Edition
35 Copyright 2006 © John Wiley & Sons, Inc. All rights reserved.
Revised Attributes and
Associations

15 -
PowerPoint Presentation for Dennis, Wixom, & Roth Systems Analysis and Design, 3rd Edition
36 Copyright 2006 © John Wiley & Sons, Inc. All rights reserved.
Final Class Diagram

15 -
PowerPoint Presentation for Dennis, Wixom, & Roth Systems Analysis and Design, 3rd Edition
37 Copyright 2006 © John Wiley & Sons, Inc. All rights reserved.
SEQUENCE DIAGRAM

PowerPoint Presentation for Dennis, Wixom, & Roth Systems Analysis and Design, 3rd Edition
15 - 38 Copyright 2006 © John Wiley & Sons, Inc. All rights reserved.
Sequence Diagram
Concepts
Illustrates the classes that participate in
a use case
Shows the messages that pass between
classes over time for one Use Case
Can be a generic sequence diagram, but
more frequently one is drawn for a single
scenario within the use case
Design diagrams are implementation
specific -- database objects or specific
15 -
GUI components serve as classes
PowerPoint Presentation for Dennis, Wixom, & Roth Systems Analysis and Design, 3rd Edition
39 Copyright 2006 © John Wiley & Sons, Inc. All rights reserved.
Sequence Diagram

15 -
PowerPoint Presentation for Dennis, Wixom, & Roth Systems Analysis and Design, 3rd Edition
40 Copyright 2006 © John Wiley & Sons, Inc. All rights reserved.
Steps in Creating a
Sequence Diagram
1. Identify classes
2. Add messages
3. Place lifeline and focus of
control

15 -
PowerPoint Presentation for Dennis, Wixom, & Roth Systems Analysis and Design, 3rd Edition
41 Copyright 2006 © John Wiley & Sons, Inc. All rights reserved.
Syntax for Sequence
Diagram

15 -
PowerPoint Presentation for Dennis, Wixom, & Roth Systems Analysis and Design, 3rd Edition
42 Copyright 2006 © John Wiley & Sons, Inc. All rights reserved.
Steps of the Customer
Places Order Scenario

15 -
PowerPoint Presentation for Dennis, Wixom, & Roth Systems Analysis and Design, 3rd Edition
43 Copyright 2006 © John Wiley & Sons, Inc. All rights reserved.
Sequence Diagram for Customer
Places Order Scenario

15 -
PowerPoint Presentation for Dennis, Wixom, & Roth Systems Analysis and Design, 3rd Edition
44 Copyright 2006 © John Wiley & Sons, Inc. All rights reserved.
BEHAVIORAL STATE
MACHINE DIAGRAM

PowerPoint Presentation for Dennis, Wixom, & Roth Systems Analysis and Design, 3rd Edition
15 - 45 Copyright 2006 © John Wiley & Sons, Inc. All rights reserved.
Behavioral State Machine
Concepts
A dynamic model showing
changes of state of a single
class over time in response to
events along with its responses
and actions
Typically not used for all
classes, but just to help simplify
15 -
the design of algorithms for
46
methods of complex classes
PowerPoint Presentation for Dennis, Wixom, & Roth Systems Analysis and Design, 3rd Edition
Copyright 2006 © John Wiley & Sons, Inc. All rights reserved.
Behavioral State Machine
Diagram for a Hospital
Patient

15 -
PowerPoint Presentation for Dennis, Wixom, & Roth Systems Analysis and Design, 3rd Edition
47 Copyright 2006 © John Wiley & Sons, Inc. All rights reserved.
Behavioral State Machine
Syntax

15 -
PowerPoint Presentation for Dennis, Wixom, & Roth Systems Analysis and Design, 3rd Edition
48 Copyright 2006 © John Wiley & Sons, Inc. All rights reserved.
The Life of an Order

15 -
PowerPoint Presentation for Dennis, Wixom, & Roth Systems Analysis and Design, 3rd Edition
49 Copyright 2006 © John Wiley & Sons, Inc. All rights reserved.
Steps for Creating a
Behavioral State Machine
Diagram
1. Identify the states
2. Identify the transitions

15 -
PowerPoint Presentation for Dennis, Wixom, & Roth Systems Analysis and Design, 3rd Edition
50 Copyright 2006 © John Wiley & Sons, Inc. All rights reserved.
Behavioral State Machine
Diagram for a Special Order

15 -
PowerPoint Presentation for Dennis, Wixom, & Roth Systems Analysis and Design, 3rd Edition
51 Copyright 2006 © John Wiley & Sons, Inc. All rights reserved.
Summary
Many organizations are moving to
the use of object-oriented
techniques
Objects are grouped into classes
that share common properties and
methods and arranged in a
hierarchy
Objects communicate by sending
15 -
messages which trigger methods
PowerPoint Presentation for Dennis, Wixom, & Roth Systems Analysis and Design, 3rd Edition
52 Copyright 2006 © John Wiley & Sons, Inc. All rights reserved.
Summary
Major object-oriented modeling
techniques include:
Use Case diagrams
Class diagrams
Sequence diagrams
Statechart diagrams

15 -
PowerPoint Presentation for Dennis, Wixom, & Roth Systems Analysis and Design, 3rd Edition
53 Copyright 2006 © John Wiley & Sons, Inc. All rights reserved.
Copyright © 2006
John Wiley & Sons, Inc.
All rights reserved. Reproduction or translation
of this work beyond that permitted in Section
117 of the 1976 United States Copyright Act
without the express written permission of the
copyright owner is unlawful.
Request for further information should be
addressed to the Permissions Department, John
Wiley & Sons, Inc.
The purchaser may make back-up copies for
his/her own use only and not for redistribution
or resale.
15 - The Publisher assumes no responsibility for
errors, omissions, orCopyright damages, caused by reserved.
the
PowerPoint Presentation for Dennis, Wixom, & Roth Systems Analysis and Design, 3rd Edition
54 2006 © John Wiley & Sons, Inc. All rights

Вам также может понравиться