• Sun Certified Programmer for Java 2 Platform (SCJP2)
• IBM Certified Professional for Object Oriented Analysis and Design with UML
• IBM Certified System Administrator for WebSphere Application Server v5.0
• Certified Business Analysis Professional (CBAP®)
Originally posted by Frank Carver:
In Sequence diagrams we can show Synchronous as well as Asynchronous messages. In Collaboration Diagram we can only show Synchronous messages.
I don't see why this should be the case.
A collaboration diagram just shows all the objects of interest and the ways they interact, all in one diagram with no time or situatioanl element.
The soul is dyed the color of its thoughts. Think only on those things that are in line with your principles and can bear the light of day. The content of your character is your choice. Day by day, what you do is who you become. Your integrity is your destiny - it is the light that guides your way. - Heraclitus
In Sequence diagrams we can show Synchronous as well as Asynchronous messages.
In Collaboration Diagram we can only shoy Synchronous messages
Sequence Diagrams are less spatial.
Collaboration Diagram are much spatial
Originally posted by cj jack:
[...]sequence diagrams are valuable in showing concurrent processes. They have the ability to show an asynchronous message. Which is represented as a half-arrowhead symbol. And as far as I know collaboration diagrams do not have this ability.
The soul is dyed the color of its thoughts. Think only on those things that are in line with your principles and can bear the light of day. The content of your character is your choice. Day by day, what you do is who you become. Your integrity is your destiny - it is the light that guides your way. - Heraclitus
The soul is dyed the color of its thoughts. Think only on those things that are in line with your principles and can bear the light of day. The content of your character is your choice. Day by day, what you do is who you become. Your integrity is your destiny - it is the light that guides your way. - Heraclitus
Originally Posted By Frank Carver:
Sequence Diagrams are less spatial. Collaboration Diagram are much spatial.
I don't really understand what you are getting at here
Originally Posted By Frank Carver:
I never thought of that either. In my copy of UML Distilled, Second Edition, which I use as my main UML reference these days, there are diagram examples inside both covers. In the back there is a "half arrow" shown with the Collaboration Diagram example, and labelled "asynchronous message". If you have a copy, check it out!
Originally Posted By Frank Carver:
Can anyone explain why it wouldn't make sense to show anychronous messages in a collaboration diagram ?
• Sun Certified Programmer for Java 2 Platform (SCJP2)
• IBM Certified Professional for Object Oriented Analysis and Design with UML
• IBM Certified System Administrator for WebSphere Application Server v5.0
• Certified Business Analysis Professional (CBAP®)
Originally posted by Vikrama Sanjeeva:
Please mention the page.
First of all i haven't found any notation in UML for showing "asynchronous" messages in collaboration diagram.
Secondly, Sequence diagram is made to see overall flow of system event/s in a use case, in other words you can say the flow of messages, & flow of messages can be syncronous as well as asyncronous, therefore UML has notation for showing asynchronous messages.
On the other hand, Collaboration diagram is made to see intercommunication b/w objects, and at a given instant one object can interact with exactly one object. i.e one object cannot interact with multiple objects at a given instant.Since Asyncronous messages can not be shown or craft in collaboration diagram.Therefore UML has not included notation for showing Asyncronous messages in collaboration diagram(as far as my knowledge is concern).
The soul is dyed the color of its thoughts. Think only on those things that are in line with your principles and can bear the light of day. The content of your character is your choice. Day by day, what you do is who you become. Your integrity is your destiny - it is the light that guides your way. - Heraclitus
In Collaboration Diagram we can only show Synchronous messages.
Sequence diagrams are lousy for representing concurrency no matter what tool
you're using. I recommend you use collaboration diagrams to show concurrency (with sequence numbers).
On the other hand, Collaboration diagram is made to see intercommunication b/w objects, and at a given instant one object can interact with exactly one object. i.e one object cannot interact with multiple objects at a given instant.Since Asyncronous messages can not be shown or craft in collaboration diagram.Therefore UML has not included notation for showing Asyncronous messages in collaboration diagram(as far as my knowledge is concern).
• Sun Certified Programmer for Java 2 Platform (SCJP2)
• IBM Certified Professional for Object Oriented Analysis and Design with UML
• IBM Certified System Administrator for WebSphere Application Server v5.0
• Certified Business Analysis Professional (CBAP®)
this is supposed to be a surprise, but it smells like a tiny ad:
We need your help - Coderanch server fundraiser
https://coderanch.com/wiki/782867/Coderanch-server-fundraiser
|