Slide 1 Classes and Objects. Slide 2 Messages and Methods.

Post on 21-Jan-2016

213 views 0 download

Transcript of Slide 1 Classes and Objects. Slide 2 Messages and Methods.

Slide 1

Classes and Objects

Slide 2

Messages and Methods

Slide 3

Class Hierarchy

Slide 4

Inheritance

Slide 5

Polymorphish & Encapsulation

Slide 6

UML 2.0 Diagram Summary

Slide 7

Engineering Workflows

Slide 8

Supporting Workflows

Slide 9

Benefits of the Object Approach

Slide 10

MOOSAD Approach

Slide 11

Elements of a Use-Case Description

Use Case Name: ID: Importance Level:

Primary Actor: Use Case Type:

Stakeholders and Interests:

Brief Description:

Trigger:

Relationships: (Association, Include, Extend, Generalization)

Normal Flow of Events:

Subflows:

Alternate/Exceptional Flows:

Slide 12

USE-CASE DIAGRAMS

Slide 13

Syntax for Use-Case Diagram

Slide 14

The Use-Case Diagram for Appointment System

Slide 15

Use-Case Diagram with Specialized Actor

Slide 16

Extend and Include Relationships

Slide 17

A CRC Card

Slide 18

Back of CRC Card

Slide 19

CLASS DIAGRAMS

Slide 20

Example Class Diagram

Slide 21

Class Diagram Syntax

A CLASS

AN ATTRIBUTE

AN OPERATION

AN ASSOCIATION

Class 1

-attribute

+operation ()

Attribute name/derived attribute name

operation name ()

1..* 0..1______verb phrase____

Slide 22

Object Diagrams

Slide 23

Slide 24

Slide 25

Sequence Diagram SyntaxAN ACTOR

AN OBJECT

A LIFELINE

A FOCUS OF CONTROL

A MESSAGE

OBJECT DESTRUCTION

anObject:aClass

aMessage()

x

Slide 26

Normal Flow of Events:

1. Customer submits a search request to the system.2. The system provides the customer a list of recommended CDs.3. The customer chooses one of the CDs to find additional information.4. The system provides the customer with basic information & CD Reviews5. The customer calls the maintain order use case.6. The customer iterates over 3 through 5 until finished shopping.7. The customer executes the checkout use case.8. The customer leaves the website.

Slide 27

Slide 28

Example Collaboration Diagram

Slide 29

Example Sequence Diagram

Actor

Object

Association

Message

Frame

Slide 30

Slide 31

Example Behavioral State Machine Diagram

Slide 32

Behavioral State Machine Diagram Syntax

A STATE

AN INITIAL STATE

A FINAL STATE

AN EVENT

A TRANSITION

A Frame

Slide 33

Slide 34

Syntax for Package Diagram

A PACKAGE Package

A DEPENDENCY RELATIONSHIP

Slide 35

Package Diagram of Dependency Relationships Among Layers

Slide 36

Package Diagram of Appointment System

Slide 37

Package Diagram of the PD Layer for the Appointment System

Slide 38

Slide 39

Levels of Abstraction

Slide 40

Inheritance Conflicts with Multiple Inheritance

Slide 41

Interaction Coupling

Slide 42

Types of Method Cohesion

Slide 43

Types of Class Cohesion

Slide 44

Sample Design Pattern

Slide 45

Revised CD Selections Class Diagram

Slide 46

Back of CD CRC Card

Slide 47

Get Review Method Contract

Slide 48

Revised Package Diagram

Slide 49

Revised CD Selections Class Diagram

Slide 50

Back of CD CRC Card

Slide 51

Get Review Method Contract

Slide 52

Revised Package Diagram