GeekInterview.com
  I am new, Sign me up!
 
GeekInterview.com  >  Interview Questions  >  Concepts  >  UML
Go To First  |  Previous Question  |  Next Question 
 UML  |  Question 14 of 18    Print  
UML Diagrams
What is the difference between sequence diagram and collaboration diagram? Can a sequence diagram be replaced by collaboration diagram?


  
Total Answers and Comments: 1 Last Update: November 02, 2007     Asked by: Sachin Pawar 
  
 Sponsored Links

 
 Best Rated Answer
Submitted by: Dusan B
 
Sequence Diagrams (Message Sequence Charts) and Collaboration diagrams have a one to one relationship. Given a MSC you can easily convert it into a Collab. diag. and vice versa. However, the form in which you choose to present them offers advantages and disadvantages.

Collaboration Diagrams are useful for short interactions - too many interactions clutter up the diagrams and the diagram just becomes impossible to follow. However, for short interactions they take up less space and can give a more compact view of the system.

MSC are useful for long interactions, because they're not limited in space. If your interactions go on and on, you just keep adding them to the bottom of the diagram. This kind of interaction represented in a collab diagram would be difficult to follow.

So basically, as a general rule, short interactions (a few messages, maybe up to 7-8) are easily and nicely represented in a Collaboration diagram, otherwise, use an MSC.

Above answer was rated as good by the following members:
Neo_TCS
November 02, 2007 12:14:50   #1  
Dusan B        

RE: UML Diagrams
Sequence Diagrams (Message Sequence Charts) and Collaboration diagrams have a one to one relationship. Given a MSC you can easily convert it into a Collab. diag. and vice versa. However the form in which you choose to present them offers advantages and disadvantages.

Collaboration Diagrams are useful for short interactions - too many interactions clutter up the diagrams and the diagram just becomes impossible to follow. However for short interactions they take up less space and can give a more compact view of the system.

MSC are useful for long interactions because they're not limited in space. If your interactions go on and on you just keep adding them to the bottom of the diagram. This kind of interaction represented in a collab diagram would be difficult to follow.

So basically as a general rule short interactions (a few messages maybe up to 7-8) are easily and nicely represented in a Collaboration diagram otherwise use an MSC.

 
Is this answer useful? Yes | NoAnswer is useful 1   Answer is not useful 0Overall Rating: +1    

 Related Questions

What is the difference between sequence diagram and collaboration diagram? Can a sequence diagram be replaced by collaboration diagram? 
Latest Answer : Sequence Diagrams (Message Sequence Charts) and Collaboration diagrams have a one to one relationship. Given a MSC you can easily convert it into a Collab. diag. and vice versa. However, the form in which you choose to present them offers advantages and ...
Read Answers (1) | Asked by : Sachin Pawar

Latest Answer : Use case represent the function which perform by software system and it is initialised by actor. ...
Read Answers (3) | Asked by : sudha

While developing a system we analyse the system in terms of UML diagrams how should we proceed to explain these and draw them accurately. 
Latest Answer : This comes under OOAD :Steps involved :-----------------------------------------------------1. Identifying the Actors2. Identifying Individual Usecases ( Draw usecase diagrams, Which includes Actor participations. This would be the part of requirement ...


 Sponsored Links

 
Related Articles

Concepts of Object-Oriented Programming

Object Oriented JavaScript In this chapter you ll learn about OOP Object Oriented Programming and how it relates to JavaScript As an ASP NET developer you probably have some experience working with objects and you may even be familiar with concepts such as inheritance However unless you re already a
 

SOA Concepts

SOA Concepts Today the concept of Service Oriented Architecture has become ubiquitous Evidence from recent years establish that SOA is not just about hype but a part of every major Business environment The truth is Service Oriented Architecture can be beneficial to Business only when it is utilized
 

The Interview Snafu

How to turn someone else’s mistake to your advantage Your dream job is about to become reality. A recruiter gave you the heads up about the perfect position at Humungous Conglomerate, Inc. You went through five interviews as well as a battery of psychological tests mandated by their HR de
 

Winning a Job Interview with a Winning Resume

Does your resume unlock your potential, take your skills to the highest level and win you the interview and the job you want now? The job market today is highly competitive and even if you think you have what it takes to get an interview you won’t get over the line without a polished, prof
 

WinRunner Programming Concepts

If you want to create WinRunner scripts that are highly efficient, there are important programming concepts that you will want to become familiar with. Understanding these concepts will provide you with a large number of key benefits. In addition to understanding these concepts, you must also learn
 

Importance of Proper English during Job Interview

Importance of Proper English during Job Interview Your job interview is crucially important and it will determine whether or not you will get the job Depending on the type of job you re going for it is very important for you to use proper English In most cases jobs which offer higher salaries will h
 

Web 2.0 Concepts

Web 2 0 Concepts There are a number of important innovations which are expected to play a pivotal role in the introduction of Web 2 0 Some of these innovations are applications that are web based One of the most powerful tools that has allowed this is Ajax mosgoogle Ajax is powerful because it has n
 

HR Interview - HR Interview Mistakes You Will Want To Avoid

HR Interview Mistakes You Will Want To Avoid The job interview can be a stressful process This is especially true for those who are going after a competitive position Your nonverbal communication combined with the answers you give during the interview will determine if you are hired mosgoogle While
 

HR Interview - Behavioral HR Interviews

Behavioral HR Interviews As the name implies a behavioral interview is an interview that is held by a human resources department to determine if an applicant has the behaviors that are appropriate for a job The company must know how an applicant will behave in a certain situations mosgoogle The logi
 

HR Interview - How To Prepare For Your HR Interview

How To Prepare For Your HR Interview Before you begin thinking about how you are going to dress for the interview it is important to do your research first You should learn everything you can about the company you wish to work for When you have detailed information about your employer you will conve
 

About Us -  Privacy Policy -  Terms and Conditions -  Contact -  Ask Question -  Propose Category -  Site Updates 

Copyright © 2005 - 2009 GeekInterview.com. All Rights Reserved

Page copy protected against web site content infringement by Copyscape