Upload
nguyen-tran
View
477
Download
0
Embed Size (px)
DESCRIPTION
Citation preview
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
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
Introduction to Rational Rose 98i v 5.2Copyright 1993-1999 Rational Software, all rights reserved 3
Creating a Collaboration Diagram
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
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
Introduction to Rational Rose 98i v 5.2Copyright 1993-1999 Rational Software, all rights reserved 6
Links Between Objects
Introduction to Rational Rose 98i v 5.2Copyright 1993-1999 Rational Software, all rights reserved 7
OR
Creating Messages
Introduction to Rational Rose 98i v 5.2Copyright 1993-1999 Rational Software, all rights reserved 8
Multiple Objects of the Same Class
Introduction to Rational Rose 98i v 5.2Copyright 1993-1999 Rational Software, all rights reserved 9
Reflexive Message
Introduction to Rational Rose 98i v 5.2Copyright 1993-1999 Rational Software, all rights reserved 10
Multiple Messages per Message Arrow
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
Introduction to Rational Rose 98i v 5.2Copyright 1993-1999 Rational Software, all rights reserved 12
Data Flows
Introduction to Rational Rose 98i v 5.2Copyright 1993-1999 Rational Software, all rights reserved 13
Message Synchronization Options
Simple ( ) Synchronous ( ) Balking ( ) Timeout ( ) Asynchronous ( )
Introduction to Rational Rose 98i v 5.2Copyright 1993-1999 Rational Software, all rights reserved 14
Sequence Diagram
Introduction to Rational Rose 98i v 5.2Copyright 1993-1999 Rational Software, all rights reserved 15
Exercise: Collaboration Diagram
Introduction to Rational Rose 98i v 5.2Copyright 1993-1999 Rational Software, all rights reserved 16
Exercise: Sequence Diagram