Top Banner
Slide 1 Systems Analysis and Design With UML Systems Analysis and Design With UML 2.0 2.0 An Object An Object- Oriented Approach, Second Edition Oriented Approach, Second Edition Chapter 2: Introduction to Object-Oriented Systems Analysis and Design with the Unified Modeling Language, Version 2.0
30

Systems Analysis and Design With UML 2sparc.nfu.edu.tw/~lyc/oo/OO-ch02-simp.pdf · Systems Analysis and Design with the Unified Modeling Language, Version 2.0. Slide 2 Objectives

May 02, 2020

Download

Documents

dariahiddleston
Welcome message from author
This document is posted to help you gain knowledge. Please leave a comment to let me know what you think about it! Share it to your friends and learn new things together.
Transcript
Page 1: Systems Analysis and Design With UML 2sparc.nfu.edu.tw/~lyc/oo/OO-ch02-simp.pdf · Systems Analysis and Design with the Unified Modeling Language, Version 2.0. Slide 2 Objectives

Slide 1

Systems Analysis and Design With UMLSystems Analysis and Design With UML2.02.0

An ObjectAn Object--Oriented Approach, Second EditionOriented Approach, Second Edition

Chapter 2: Introduction to Object-OrientedSystems Analysis and Design with the UnifiedModeling Language, Version 2.0

Page 2: Systems Analysis and Design With UML 2sparc.nfu.edu.tw/~lyc/oo/OO-ch02-simp.pdf · Systems Analysis and Design with the Unified Modeling Language, Version 2.0. Slide 2 Objectives

Slide 2

Objectives

Understand the basic characteristicsof object-oriented systems.Be familiar with the UnifiedModeling Language (UML), Version2.0.Be familiar with the Unified Process.Understand a minimalist approachto object-oriented systems analysisand design.

Page 3: Systems Analysis and Design With UML 2sparc.nfu.edu.tw/~lyc/oo/OO-ch02-simp.pdf · Systems Analysis and Design with the Unified Modeling Language, Version 2.0. Slide 2 Objectives

Slide 3

Basic Characteristics ofObject Oriented Systems

Classes and ObjectsMethods and MessagesEncapsulation and InformationHidingInheritancePolymorphism and DynamicBinding

Page 4: Systems Analysis and Design With UML 2sparc.nfu.edu.tw/~lyc/oo/OO-ch02-simp.pdf · Systems Analysis and Design with the Unified Modeling Language, Version 2.0. Slide 2 Objectives

Slide 4

Classes and Objects

Class –Template to definespecific instances or objectsObject –Instantiation of a classAttributes –Describes theobjectBehaviors –specify what objectcan do

Page 5: Systems Analysis and Design With UML 2sparc.nfu.edu.tw/~lyc/oo/OO-ch02-simp.pdf · Systems Analysis and Design with the Unified Modeling Language, Version 2.0. Slide 2 Objectives

Slide 5

Classes and Objects

Page 6: Systems Analysis and Design With UML 2sparc.nfu.edu.tw/~lyc/oo/OO-ch02-simp.pdf · Systems Analysis and Design with the Unified Modeling Language, Version 2.0. Slide 2 Objectives

Slide 6

Methods and Messages

Methods implement an object’sbehavior

Analogous to a function orprocedure

Messages are sent to triggermethods

Procedure call from one object tothe next

Page 7: Systems Analysis and Design With UML 2sparc.nfu.edu.tw/~lyc/oo/OO-ch02-simp.pdf · Systems Analysis and Design with the Unified Modeling Language, Version 2.0. Slide 2 Objectives

Slide 7

Messages and Methods

Page 8: Systems Analysis and Design With UML 2sparc.nfu.edu.tw/~lyc/oo/OO-ch02-simp.pdf · Systems Analysis and Design with the Unified Modeling Language, Version 2.0. Slide 2 Objectives

Slide 8

Encapsulation andInformation Hiding

Encapsulationcombination of data and process intoan entity

Information HidingOnly the information required to use asoftware module is published to theuser

Reusability KeyUse an object by calling methods

Page 9: Systems Analysis and Design With UML 2sparc.nfu.edu.tw/~lyc/oo/OO-ch02-simp.pdf · Systems Analysis and Design with the Unified Modeling Language, Version 2.0. Slide 2 Objectives

Slide 9

Inheritance

Superclasses or general classesare at the top of a hierarchy ofclassesSubclasses or specific classesare at the bottomSubclasses inherit attributesand methods from classeshigher in the hierarchy

Page 10: Systems Analysis and Design With UML 2sparc.nfu.edu.tw/~lyc/oo/OO-ch02-simp.pdf · Systems Analysis and Design with the Unified Modeling Language, Version 2.0. Slide 2 Objectives

Slide 10

Class Hierarchy

Page 11: Systems Analysis and Design With UML 2sparc.nfu.edu.tw/~lyc/oo/OO-ch02-simp.pdf · Systems Analysis and Design with the Unified Modeling Language, Version 2.0. Slide 2 Objectives

Slide 11

Inheritance

Page 12: Systems Analysis and Design With UML 2sparc.nfu.edu.tw/~lyc/oo/OO-ch02-simp.pdf · Systems Analysis and Design with the Unified Modeling Language, Version 2.0. Slide 2 Objectives

Slide 12

Polymorphism and DynamicBinding

PolymorphismA message can be interpreteddifferently by different classes ofobjects

Dynamic BindingSometimes called late bindingDelays typing or choosing a method foran object until run-time

Static BindingType of object determined at compiletime

Page 13: Systems Analysis and Design With UML 2sparc.nfu.edu.tw/~lyc/oo/OO-ch02-simp.pdf · Systems Analysis and Design with the Unified Modeling Language, Version 2.0. Slide 2 Objectives

Slide 13

Polymorphish & Encapsulation

Page 14: Systems Analysis and Design With UML 2sparc.nfu.edu.tw/~lyc/oo/OO-ch02-simp.pdf · Systems Analysis and Design with the Unified Modeling Language, Version 2.0. Slide 2 Objectives

Slide 14

The Unified ModelingLanguage, Version 2.0

Structure DiagramsBehavior DiagramsExtension MechanismsDevelopers

Grady BoochIvar JacobsonJames Rumbaugh

Page 15: Systems Analysis and Design With UML 2sparc.nfu.edu.tw/~lyc/oo/OO-ch02-simp.pdf · Systems Analysis and Design with the Unified Modeling Language, Version 2.0. Slide 2 Objectives

Slide 15

Structure Diagram

Structure Diagrams includeClassObjectpackageDeploymentComponentComposite structure diagrams

Page 16: Systems Analysis and Design With UML 2sparc.nfu.edu.tw/~lyc/oo/OO-ch02-simp.pdf · Systems Analysis and Design with the Unified Modeling Language, Version 2.0. Slide 2 Objectives

Slide 16

UML 2.0 Diagram Summary

Page 17: Systems Analysis and Design With UML 2sparc.nfu.edu.tw/~lyc/oo/OO-ch02-simp.pdf · Systems Analysis and Design with the Unified Modeling Language, Version 2.0. Slide 2 Objectives

Slide 17

Structure Diagrams

Classrelationship between classes

ObjectRelationships between objects

PackageGroup UML elements together toform higher level constructs

Page 18: Systems Analysis and Design With UML 2sparc.nfu.edu.tw/~lyc/oo/OO-ch02-simp.pdf · Systems Analysis and Design with the Unified Modeling Language, Version 2.0. Slide 2 Objectives

Slide 18

Structure Diagrams Cont.

DeploymentShows the physical architecture andsoftware components of system

ComponentPhysical relationships among softwarecomponents

Composite StructureIllustrates internal structure of a class

Page 19: Systems Analysis and Design With UML 2sparc.nfu.edu.tw/~lyc/oo/OO-ch02-simp.pdf · Systems Analysis and Design with the Unified Modeling Language, Version 2.0. Slide 2 Objectives

Slide 19

Activity DiagramsActivity

Illustrates business workflowsSequence

Time-based ordering Behavior of objectsactivities in a use case

CommunicationCommunication among a set of collaboratingobjects of an activity

Interaction Overview TimingOverview of flow of control of a process

Page 20: Systems Analysis and Design With UML 2sparc.nfu.edu.tw/~lyc/oo/OO-ch02-simp.pdf · Systems Analysis and Design with the Unified Modeling Language, Version 2.0. Slide 2 Objectives

Slide 20

State Machines

Behavioral State MachineExamines behavior of one class

Protocol State MachineShows dependencies of differentinterfaces of a class

Use-CaseCaptures business requirementsIllustrates interaction between systemand environment

Page 21: Systems Analysis and Design With UML 2sparc.nfu.edu.tw/~lyc/oo/OO-ch02-simp.pdf · Systems Analysis and Design with the Unified Modeling Language, Version 2.0. Slide 2 Objectives

Slide 21

Use Case Diagrams

Captures Business requirementsIllustrates interaction between asystem and its environment

Includes end userAny external system that interacts withits information system

Documents and clarifiesrequirements of system beingmodeled

Page 22: Systems Analysis and Design With UML 2sparc.nfu.edu.tw/~lyc/oo/OO-ch02-simp.pdf · Systems Analysis and Design with the Unified Modeling Language, Version 2.0. Slide 2 Objectives

Slide 22

Object Oriented SystemsAnalysis and Design

• Use-case driven• Architecture Centric• Iterative and Incremental• The Unified Process

Page 23: Systems Analysis and Design With UML 2sparc.nfu.edu.tw/~lyc/oo/OO-ch02-simp.pdf · Systems Analysis and Design with the Unified Modeling Language, Version 2.0. Slide 2 Objectives

Slide 23

Engineering Workflows

Page 24: Systems Analysis and Design With UML 2sparc.nfu.edu.tw/~lyc/oo/OO-ch02-simp.pdf · Systems Analysis and Design with the Unified Modeling Language, Version 2.0. Slide 2 Objectives

Slide 24

Supporting Workflows

Page 25: Systems Analysis and Design With UML 2sparc.nfu.edu.tw/~lyc/oo/OO-ch02-simp.pdf · Systems Analysis and Design with the Unified Modeling Language, Version 2.0. Slide 2 Objectives

Slide 25

A Minimalist Approach

Benefits of Object-OrientedSystems Analysis and DesignExtensions of the UnifiedProcessThe Minimalist Object-OrientedSystems Analysis and DesignApproach

Page 26: Systems Analysis and Design With UML 2sparc.nfu.edu.tw/~lyc/oo/OO-ch02-simp.pdf · Systems Analysis and Design with the Unified Modeling Language, Version 2.0. Slide 2 Objectives

Slide 26

Benefits of the Object Approach

Page 27: Systems Analysis and Design With UML 2sparc.nfu.edu.tw/~lyc/oo/OO-ch02-simp.pdf · Systems Analysis and Design with the Unified Modeling Language, Version 2.0. Slide 2 Objectives

Slide 27

MOOSAD Approach

Page 28: Systems Analysis and Design With UML 2sparc.nfu.edu.tw/~lyc/oo/OO-ch02-simp.pdf · Systems Analysis and Design with the Unified Modeling Language, Version 2.0. Slide 2 Objectives

Slide 28

Basic Characteristics ofObject Oriented Systems

Identifying business valueAnalyze feasibilityDevelop workplanStaff the projectControl and direct projectRequirements determinationFunctional modelingStructural modelingBehavioral modelingMoving on to design

Page 29: Systems Analysis and Design With UML 2sparc.nfu.edu.tw/~lyc/oo/OO-ch02-simp.pdf · Systems Analysis and Design with the Unified Modeling Language, Version 2.0. Slide 2 Objectives

Slide 29

UML Summary

Class and method designData management layer designHuman computer interaction layerdesignPhysical architecture layer designConstructionInstallationOperations and support

Page 30: Systems Analysis and Design With UML 2sparc.nfu.edu.tw/~lyc/oo/OO-ch02-simp.pdf · Systems Analysis and Design with the Unified Modeling Language, Version 2.0. Slide 2 Objectives

Slide 30

Summary

Basic characteristics of anobject oriented systemUnified modeling systemObject oriented SystemsAnalysis and DesignMinimalist approach to Objectoriented systems analysis anddesign with UML