Chap 1 UML vs Thinking in Objects! – Visual modeling Learning UML – Look at the book examples...

10
Chap 1 • UML vs Thinking in Objects! – Visual modeling • Learning UML – Look at the book examples – Alan Holub’s UML reference card – Use library resources

Transcript of Chap 1 UML vs Thinking in Objects! – Visual modeling Learning UML – Look at the book examples...

Page 1: Chap 1 UML vs Thinking in Objects! – Visual modeling Learning UML – Look at the book examples – Alan Holub’s UML reference card – Use library resources.

Chap 1

• UML vs Thinking in Objects!– Visual modeling

• Learning UML– Look at the book examples– Alan Holub’s UML reference card– Use library resources

Page 2: Chap 1 UML vs Thinking in Objects! – Visual modeling Learning UML – Look at the book examples – Alan Holub’s UML reference card – Use library resources.

Fig. 1.1

Topics and Skills

UML notation

Requirements analysis

Principles and guidelines

Patterns

Iterative development with an agile Unified

Process

OOA/D

Page 3: Chap 1 UML vs Thinking in Objects! – Visual modeling Learning UML – Look at the book examples – Alan Holub’s UML reference card – Use library resources.

Object Design

• Responsibilities– Assigning responsibilities to objects!

• Patterns

Page 4: Chap 1 UML vs Thinking in Objects! – Visual modeling Learning UML – Look at the book examples – Alan Holub’s UML reference card – Use library resources.

OOAD

• OO Analysis – find and describe objects– Concepts from the domain

• OO Design– Define software objects (classes)

• Implementation– Make design concrete in a programming langauge

Page 5: Chap 1 UML vs Thinking in Objects! – Visual modeling Learning UML – Look at the book examples – Alan Holub’s UML reference card – Use library resources.

Use Cases

• Describe in text• Interaction of a user and the system• Be careful of implementation vs specification!

Page 6: Chap 1 UML vs Thinking in Objects! – Visual modeling Learning UML – Look at the book examples – Alan Holub’s UML reference card – Use library resources.

UML

• UML as a sketch• UML as a blueprint• UML as a programming language

Page 7: Chap 1 UML vs Thinking in Objects! – Visual modeling Learning UML – Look at the book examples – Alan Holub’s UML reference card – Use library resources.

Fig. 1.4

Page 8: Chap 1 UML vs Thinking in Objects! – Visual modeling Learning UML – Look at the book examples – Alan Holub’s UML reference card – Use library resources.

UML Prespectives

• Conceptual– Real world concepts– Domain model

• Specification• Implementation

– Both of these deal with software

Page 9: Chap 1 UML vs Thinking in Objects! – Visual modeling Learning UML – Look at the book examples – Alan Holub’s UML reference card – Use library resources.

Fig. 1.5

2

Die

faceValue : int

getFaceValue() : introll()

DiceGame

die1 : Diedie2 : Die

play()

1

Page 10: Chap 1 UML vs Thinking in Objects! – Visual modeling Learning UML – Look at the book examples – Alan Holub’s UML reference card – Use library resources.

Fig. 1.6Conceptual Perspective

(domain model)

Raw UML class diagram notation used to visualize real-world concepts.

Specification or Implementation

Perspective(design class diagram)

Raw UML class diagram notation used to visualize software elements.

2

Die

faceValue : int

getFaceValue() : introll()

DiceGame

die1 : Diedie2 : Die

play()

DiceGame Die

faceValue

Includes 21