16
Introduction to Rational Rose 98i v 5.2 Copyright 1993-1999 Rational Software, all rights reserved 1 Introduction to Rational Rose 98i Module 6: Collaboration Diagram

06collaboration

Embed Size (px)

DESCRIPTION

 

Citation preview

Page 1: 06collaboration

Introduction to Rational Rose 98i v 5.2Copyright 1993-1999 Rational Software, all rights reserved 1

Introduction to Rational Rose 98i

Module 6: Collaboration Diagram

Page 2: 06collaboration

Introduction to Rational Rose 98i v 5.2Copyright 1993-1999 Rational Software, all rights reserved 2

Objectives: Collaboration Diagram

You will be able to: Create a collaboration diagram Assign objects in a collaboration diagram to

classes Create links between objects Add messages to links Map messages to operations Create a sequence diagram from a

collaboration diagram

Page 3: 06collaboration

Introduction to Rational Rose 98i v 5.2Copyright 1993-1999 Rational Software, all rights reserved 3

Creating a Collaboration Diagram

Page 4: 06collaboration

Introduction to Rational Rose 98i v 5.2Copyright 1993-1999 Rational Software, all rights reserved 4

Collaboration Diagram Toolbar

Text

Selection Tool

Note

Anchor Note to Item

Object

Link to Self

Data Flow

Class Instance

Reverse Link Message

Reverse Data Flow

Object Link

Link Message

Page 5: 06collaboration

Introduction to Rational Rose 98i v 5.2Copyright 1993-1999 Rational Software, all rights reserved 5

Creating Objects

Actor

Objectonly

Class only

Object and class

Page 6: 06collaboration

Introduction to Rational Rose 98i v 5.2Copyright 1993-1999 Rational Software, all rights reserved 6

Links Between Objects

Page 7: 06collaboration

Introduction to Rational Rose 98i v 5.2Copyright 1993-1999 Rational Software, all rights reserved 7

OR

Creating Messages

Page 8: 06collaboration

Introduction to Rational Rose 98i v 5.2Copyright 1993-1999 Rational Software, all rights reserved 8

Multiple Objects of the Same Class

Page 9: 06collaboration

Introduction to Rational Rose 98i v 5.2Copyright 1993-1999 Rational Software, all rights reserved 9

Reflexive Message

Page 10: 06collaboration

Introduction to Rational Rose 98i v 5.2Copyright 1993-1999 Rational Software, all rights reserved 10

Multiple Messages per Message Arrow

Page 11: 06collaboration

Introduction to Rational Rose 98i v 5.2Copyright 1993-1999 Rational Software, all rights reserved 11

Moving and Inserting Messages

Messages may not be moved or inserted in a Collaboration Diagram

A Sequence Diagram must be used Process

• Switch to the Sequence Diagram• Move and/or insert the needed messages• Switch back to the Collaboration Diagram

Page 12: 06collaboration

Introduction to Rational Rose 98i v 5.2Copyright 1993-1999 Rational Software, all rights reserved 12

Data Flows

Page 13: 06collaboration

Introduction to Rational Rose 98i v 5.2Copyright 1993-1999 Rational Software, all rights reserved 13

Message Synchronization Options

Simple ( ) Synchronous ( ) Balking ( ) Timeout ( ) Asynchronous ( )

Page 14: 06collaboration

Introduction to Rational Rose 98i v 5.2Copyright 1993-1999 Rational Software, all rights reserved 14

Sequence Diagram

Page 15: 06collaboration

Introduction to Rational Rose 98i v 5.2Copyright 1993-1999 Rational Software, all rights reserved 15

Exercise: Collaboration Diagram

Page 16: 06collaboration

Introduction to Rational Rose 98i v 5.2Copyright 1993-1999 Rational Software, all rights reserved 16

Exercise: Sequence Diagram