30
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

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

  • Upload
    others

  • View
    4

  • Download
    0

Embed Size (px)

Citation preview

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

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.

Slide 3

Basic Characteristics ofObject Oriented Systems

Classes and ObjectsMethods and MessagesEncapsulation and InformationHidingInheritancePolymorphism and DynamicBinding

Slide 4

Classes and Objects

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

Slide 5

Classes and Objects

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

Slide 7

Messages and Methods

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

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

Slide 10

Class Hierarchy

Slide 11

Inheritance

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

Slide 13

Polymorphish & Encapsulation

Slide 14

The Unified ModelingLanguage, Version 2.0

Structure DiagramsBehavior DiagramsExtension MechanismsDevelopers

Grady BoochIvar JacobsonJames Rumbaugh

Slide 15

Structure Diagram

Structure Diagrams includeClassObjectpackageDeploymentComponentComposite structure diagrams

Slide 16

UML 2.0 Diagram Summary

Slide 17

Structure Diagrams

Classrelationship between classes

ObjectRelationships between objects

PackageGroup UML elements together toform higher level constructs

Slide 18

Structure Diagrams Cont.

DeploymentShows the physical architecture andsoftware components of system

ComponentPhysical relationships among softwarecomponents

Composite StructureIllustrates internal structure of a class

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

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

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

Slide 22

Object Oriented SystemsAnalysis and Design

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

Slide 23

Engineering Workflows

Slide 24

Supporting Workflows

Slide 25

A Minimalist Approach

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

Slide 26

Benefits of the Object Approach

Slide 27

MOOSAD Approach

Slide 28

Basic Characteristics ofObject Oriented Systems

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

Slide 29

UML Summary

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

Slide 30

Summary

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