Questions tagged [communication-diagram]

17 questions
11
votes
5 answers

What is the difference between sequence diagram and communication diagram?

Could anyone explain me what is the difference between sequence diagram and communication diagram?
Quang Huynh
  • 345
  • 1
  • 4
  • 13
9
votes
4 answers

What is the difference between collaboration diagram and communication diagram in UML?

What is the difference between collaboration diagram and communication diagram in UML? Are they the same diagram?
masoud ramezani
  • 22,228
  • 29
  • 98
  • 151
2
votes
1 answer

Drawing collaboration diagram using piece of code in Java

I have to write collaboration diagram for this piece of code: public static void main(String[] args){ Playlist list = new Playlist(); list.add(new mp3("song1",5)); list.add(new wav("song2",6)); list.add(new mp3("song3",7)); list.play(); Where mp3…
Marc
  • 45
  • 5
2
votes
1 answer

How to change the order of "messages" in starUML in a communication diagram?

Changing the order of messages in a communication diagram in starUML seems impossible. Up until now I've been deleting all the messages and adding them back in the right order. This seems quite a lot of trouble (even for starUML) for a relatively…
1
vote
1 answer

Relations between objects involved in an UML communication diagram

In short In an UML communication diagram, the objects that interact with each other are visually connected with lines along which sequenced messages can circulate in both directions. Lines between objects usually represent links, i.e. instances of…
1
vote
1 answer

Can I use a communication diagram for a high-level view?

Is it correct to use a communication diagram to model communication between packages rather than communication between objects? I would like to model communication at a higher level, but I would not like to misuse the diagram. As an example, I show…
1
vote
1 answer

How do you show multiple function calls to the same class?

For my deposit use case in the communication diagram below: I make 3 successive calls to the Account class which contains isPreferred(), isCardHolder(), and updateBalance(). I don't know if the looping symbol I used above Account is a way to display…
S. Coughing
  • 176
  • 1
  • 11
1
vote
3 answers

How to express loops in Communication Diagrams?

I'd like to know how to express in a Communication Diagram something like: foreach (User user in UsersCatalog) { list.add(user.getId()); } I actually have something like the following alt text…
devoured elysium
  • 101,373
  • 131
  • 340
  • 557
1
vote
2 answers

Enterprise Architect Communication Diagrams question

I want to achieve something like this in Enterprise Architect's Communication Diagrams: start() ---------------- 1. create() ------------ ------------> | RGController | ---------------> | U : User | ---------------- …
devoured elysium
  • 101,373
  • 131
  • 340
  • 557
1
vote
2 answers

how represent include/extends for communication diagram in UML

I know how show extends or include and other stuff for sequence diagram but did not find anything to show include/extends in communication diagram? is there any method for it or I should repeat every include for all of my use cases? and also what…
mohsenJsh
  • 2,048
  • 3
  • 25
  • 49
0
votes
1 answer

Does Collaboration/Communication Diagram have "OPT" fragment?

I have an OPT (Optional) fragment in my sequence diagram and I wanted to draw it on my collaboration diagram but unsure if there is such a thing as OPT fragmnet in collaboration? I googled and couldn't find any solutions. One of my friends told me…
0
votes
1 answer

Interface depictions in communication diagram or System sequence diagram?

I was searching around for a simple example depiction on how it would look if class Professor and Class Student would both implement and interface from Class Person in a communication diagram or System sequence diagram. I think its depicted as this…
EliiTryToLearn
  • 125
  • 1
  • 11
0
votes
1 answer

Sequence Diagram to Communication Diagram

I have created a Sequence Diagram that I wish to convert to a Communication/Collaboration Diagram. I understand the conversion and the numbering process but I am wondering since my Sequence diagram have loops that are under the alt fragment, how is…
0
votes
0 answers

Sending conditional messages in a uml communication diagram

I want to represent the following pseudo-code in a communication diagram: A::someoperation(collection) Begin Foreach elem in collection: if condition_1 then: create B; else if condition_2 then: create C; else if…
0
votes
2 answers

How to signal object instantiation in a Collaboration/Communication Diagram?

I'd like to know how to translate the following line of code to a Collaboration Diagram: Food food = new Food("abc", 123); I know that I can call an Food's method using the following notation: MyStaticMethod() ----------------------> -------- …
devoured elysium
  • 101,373
  • 131
  • 340
  • 557
1
2