communication-diagram

What is the difference between sequence diagram and communication diagram?

陌路散爱 提交于 2020-01-12 05:22:10
问题 Could anyone explain me what is the difference between sequence diagram and communication diagram? 回答1: Both diagrams give the same information, but the sequence diagram emphasizes time in its layout and the communication diagram emphasizes the objects that are communicating in its layout. Time is implicit in sequence diagrams (it is inferred by vertical position), while it is given explicitly in communication diagrams (via numbers). To quote Scott Ambler The main difference between

How to express loops in Communication Diagrams?

筅森魡賤 提交于 2019-12-11 11:35:51
问题 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 http://img691.imageshack.us/img691/9213/semttuloyc.png (Utilizador = User) but as you'll notice it does not represent well the fact that I am doing something like a loop. How can I accomplish this? 回答1: Just define getId() : int with an asterisk(*): 1.4 *getId() for the given example. 回答2: Why don't you