Systems Analysis & Design 7 th Edition Chapter 5.
-
Upload
cecil-stafford -
Category
Documents
-
view
213 -
download
0
Transcript of Systems Analysis & Design 7 th Edition Chapter 5.
![Page 1: Systems Analysis & Design 7 th Edition Chapter 5.](https://reader035.fdocuments.in/reader035/viewer/2022062720/56649f005503460f94c16b11/html5/thumbnails/1.jpg)
Systems Analysis & Design
7th Edition
Chapter 5
![Page 2: Systems Analysis & Design 7 th Edition Chapter 5.](https://reader035.fdocuments.in/reader035/viewer/2022062720/56649f005503460f94c16b11/html5/thumbnails/2.jpg)
2
Chapter Objectives
Explain how object-oriented analysis can be used to describe an information system
Define object modeling terms and concepts, including objects, attributes, methods, messages, classes, and instances
Explain relationships among objects and the concept of inheritance
![Page 3: Systems Analysis & Design 7 th Edition Chapter 5.](https://reader035.fdocuments.in/reader035/viewer/2022062720/56649f005503460f94c16b11/html5/thumbnails/3.jpg)
3
Chapter Objectives
Draw an object relationship diagram Describe Unified Modeling Language
(UML) tools and techniques, including use cases, use case diagrams, class diagrams, sequence diagrams, state transition diagrams, and activity diagrams
Explain the advantages of using CASE tools in developing the object model
Explain how to organize an object model
![Page 4: Systems Analysis & Design 7 th Edition Chapter 5.](https://reader035.fdocuments.in/reader035/viewer/2022062720/56649f005503460f94c16b11/html5/thumbnails/4.jpg)
4
Introduction
You will learn about object-oriented analysis, which is another way to view and model system requirements
You will learn how to use object-oriented methods to document, analyze, and model an information system
![Page 5: Systems Analysis & Design 7 th Edition Chapter 5.](https://reader035.fdocuments.in/reader035/viewer/2022062720/56649f005503460f94c16b11/html5/thumbnails/5.jpg)
5
Object-Oriented Terms and Concepts
Object-oriented (O-O) analysis Object Object-oriented analysis is a
popular approach that sees a system from the viewpoint of the objects themselves as they function and interact
Object model
![Page 6: Systems Analysis & Design 7 th Edition Chapter 5.](https://reader035.fdocuments.in/reader035/viewer/2022062720/56649f005503460f94c16b11/html5/thumbnails/6.jpg)
6
Object-Oriented Terms and Concepts
Overview of O-O Analysis– Unified Modeling Language (UML)– Attributes– Methods– Message– Class– Instance
![Page 7: Systems Analysis & Design 7 th Edition Chapter 5.](https://reader035.fdocuments.in/reader035/viewer/2022062720/56649f005503460f94c16b11/html5/thumbnails/7.jpg)
7
Objects
Object-Oriented Terms and Concepts
![Page 8: Systems Analysis & Design 7 th Edition Chapter 5.](https://reader035.fdocuments.in/reader035/viewer/2022062720/56649f005503460f94c16b11/html5/thumbnails/8.jpg)
8
Objects
Object-Oriented Terms and Concepts
![Page 9: Systems Analysis & Design 7 th Edition Chapter 5.](https://reader035.fdocuments.in/reader035/viewer/2022062720/56649f005503460f94c16b11/html5/thumbnails/9.jpg)
9
Object-Oriented Terms and Concepts
Objects
![Page 10: Systems Analysis & Design 7 th Edition Chapter 5.](https://reader035.fdocuments.in/reader035/viewer/2022062720/56649f005503460f94c16b11/html5/thumbnails/10.jpg)
10
Object-Oriented Terms and Concepts
Objects
![Page 11: Systems Analysis & Design 7 th Edition Chapter 5.](https://reader035.fdocuments.in/reader035/viewer/2022062720/56649f005503460f94c16b11/html5/thumbnails/11.jpg)
11
Object-Oriented Terms and Concepts
Attributes– If objects are similar to nouns,
attributes are similar to adjectives that describe the characteristics of an object
– Some objects might have a few attributes; others might have dozens
– State
![Page 12: Systems Analysis & Design 7 th Edition Chapter 5.](https://reader035.fdocuments.in/reader035/viewer/2022062720/56649f005503460f94c16b11/html5/thumbnails/12.jpg)
12
Object-Oriented Terms and Concepts
Methods– A method defines specific tasks
that an object can perform– Just as objects are similar to nouns
and attributes are similar to adjectives, methods resemble verbs that describe what and how an object does something
![Page 13: Systems Analysis & Design 7 th Edition Chapter 5.](https://reader035.fdocuments.in/reader035/viewer/2022062720/56649f005503460f94c16b11/html5/thumbnails/13.jpg)
13
Object-Oriented Terms and Concepts
Messages– Polymorphism– Black box– Encapsulation
![Page 14: Systems Analysis & Design 7 th Edition Chapter 5.](https://reader035.fdocuments.in/reader035/viewer/2022062720/56649f005503460f94c16b11/html5/thumbnails/14.jpg)
14
Object-Oriented Terms and Concepts
Messages– Systems analysts can save time
and avoid errors by using modular objects, and programmers can translate the designs into code, working with reusable program modules that have been tested and verified
![Page 15: Systems Analysis & Design 7 th Edition Chapter 5.](https://reader035.fdocuments.in/reader035/viewer/2022062720/56649f005503460f94c16b11/html5/thumbnails/15.jpg)
15
Object-Oriented Terms and Concepts
Classes– An object belongs to a group or
category called a class– All objects within a class share
common attributes and methods– Subclasses– Superclass
![Page 16: Systems Analysis & Design 7 th Edition Chapter 5.](https://reader035.fdocuments.in/reader035/viewer/2022062720/56649f005503460f94c16b11/html5/thumbnails/16.jpg)
16
Object-Oriented Terms and Concepts
Classes
![Page 17: Systems Analysis & Design 7 th Edition Chapter 5.](https://reader035.fdocuments.in/reader035/viewer/2022062720/56649f005503460f94c16b11/html5/thumbnails/17.jpg)
17
Relationships Among Objects and Classes
Relationships describe what objects need to know about each other
Inheritance Child Parent
![Page 18: Systems Analysis & Design 7 th Edition Chapter 5.](https://reader035.fdocuments.in/reader035/viewer/2022062720/56649f005503460f94c16b11/html5/thumbnails/18.jpg)
18
Relationships Among Objects and Classes
Object Relationship Diagram
![Page 19: Systems Analysis & Design 7 th Edition Chapter 5.](https://reader035.fdocuments.in/reader035/viewer/2022062720/56649f005503460f94c16b11/html5/thumbnails/19.jpg)
19
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 system analysis and to develop object models
![Page 20: Systems Analysis & Design 7 th Edition Chapter 5.](https://reader035.fdocuments.in/reader035/viewer/2022062720/56649f005503460f94c16b11/html5/thumbnails/20.jpg)
20
Object Modeling with the Unified Modeling Language
Use Case Modeling– Actor– Symbol for a use
case is an oval with a label that describes the action or event
– Use cases also can interact with other use cases
![Page 21: Systems Analysis & Design 7 th Edition Chapter 5.](https://reader035.fdocuments.in/reader035/viewer/2022062720/56649f005503460f94c16b11/html5/thumbnails/21.jpg)
21
Object Modeling with the Unified Modeling Language
Use Case Modeling– When the outcome of one use case
is incorporated by another use case, we say that the second case uses the first case
– Use case description– When you identify use cases, try to
group all the related transactions into a single use case
![Page 22: Systems Analysis & Design 7 th Edition Chapter 5.](https://reader035.fdocuments.in/reader035/viewer/2022062720/56649f005503460f94c16b11/html5/thumbnails/22.jpg)
22
Object Modeling with the Unified Modeling Language
Use Case Diagrams– After you identify
the system boundary, you place the use cases on the diagram, add the actors, and show the relationships
![Page 23: Systems Analysis & Design 7 th Edition Chapter 5.](https://reader035.fdocuments.in/reader035/viewer/2022062720/56649f005503460f94c16b11/html5/thumbnails/23.jpg)
23
Object Modeling with the Unified Modeling Language
Class Diagrams– Evolves into a physical model and
finally becomes a functioning information system
– Each class appears as a rectangle, with the class name at the top, followed by the class’s attributes and methods
– Cardinality
![Page 24: Systems Analysis & Design 7 th Edition Chapter 5.](https://reader035.fdocuments.in/reader035/viewer/2022062720/56649f005503460f94c16b11/html5/thumbnails/24.jpg)
24
Object Modeling with the Unified Modeling Language
Class Diagrams
![Page 25: Systems Analysis & Design 7 th Edition Chapter 5.](https://reader035.fdocuments.in/reader035/viewer/2022062720/56649f005503460f94c16b11/html5/thumbnails/25.jpg)
25
Object Modeling with the Unified Modeling Language
Sequence Diagrams– Sequence diagram– Include
• Classes
• Lifelines
• Messages
• Focuses
![Page 26: Systems Analysis & Design 7 th Edition Chapter 5.](https://reader035.fdocuments.in/reader035/viewer/2022062720/56649f005503460f94c16b11/html5/thumbnails/26.jpg)
26
Object Modeling with the Unified Modeling Language
State Transition Diagrams– A state transition diagram shows
how an object changes from one state to another, depending on events that affect the object
![Page 27: Systems Analysis & Design 7 th Edition Chapter 5.](https://reader035.fdocuments.in/reader035/viewer/2022062720/56649f005503460f94c16b11/html5/thumbnails/27.jpg)
27
Object Modeling with the Unified Modeling Language
Activity Diagrams– Show the order in which the actions
take place and identify the outcomes
– Also can display multiple use cases in the form of a grid, where classes are shown as vertical bars and actions appear as horizontal arrows
![Page 28: Systems Analysis & Design 7 th Edition Chapter 5.](https://reader035.fdocuments.in/reader035/viewer/2022062720/56649f005503460f94c16b11/html5/thumbnails/28.jpg)
28
Object Modeling with the Unified Modeling Language
Activity Diagrams
![Page 29: Systems Analysis & Design 7 th Edition Chapter 5.](https://reader035.fdocuments.in/reader035/viewer/2022062720/56649f005503460f94c16b11/html5/thumbnails/29.jpg)
29
Object Modeling with the Unified Modeling Language
Activity Diagrams– Sequence diagrams, state
transition diagrams, and activity diagrams are dynamic modeling tools that can help a systems analyst understand how objects behave and interact with the system
![Page 30: Systems Analysis & Design 7 th Edition Chapter 5.](https://reader035.fdocuments.in/reader035/viewer/2022062720/56649f005503460f94c16b11/html5/thumbnails/30.jpg)
30
Object Modeling with the Unified Modeling Language
CASE Tools– Object modeling requires many types
of diagrams to represent the proposed system
– Creating the diagrams by hand is time- consuming and tedious, so systems analysts rely on CASE tools to speed up the process and provide an overall framework for documenting the system components
![Page 31: Systems Analysis & Design 7 th Edition Chapter 5.](https://reader035.fdocuments.in/reader035/viewer/2022062720/56649f005503460f94c16b11/html5/thumbnails/31.jpg)
31
Organizing the Object Model
Organizing the Object Model– You should organize your use cases
and use case diagrams so they can be linked to the appropriate class, state transition, sequence, and activity diagrams
– It is much easier to repair a diagram now than to change the software later
![Page 32: Systems Analysis & Design 7 th Edition Chapter 5.](https://reader035.fdocuments.in/reader035/viewer/2022062720/56649f005503460f94c16b11/html5/thumbnails/32.jpg)
32
Chapter Summary
This toolkit introduces object modeling, which is a popular technique that describes a system in terms of objects
The Unified Modeling Language (UML) is a widely used method of visualizing and documenting an information system
At the end of the object modeling process, you organize your use cases and use case diagrams and create class, sequence, state transition, and activity diagrams
![Page 33: Systems Analysis & Design 7 th Edition Chapter 5.](https://reader035.fdocuments.in/reader035/viewer/2022062720/56649f005503460f94c16b11/html5/thumbnails/33.jpg)
33
Chapter Summary
Chapter 5 complete