jQuery in Action, 2nd edition
The moose likes OO, Patterns, UML and Refactoring and the fly likes sequence diagram question from UML beginner Big Moose Saloon
  Search | Java FAQ | Recent Topics
Register / Login
JavaRanch » Java Forums » Engineering » OO, Patterns, UML and Refactoring
Reply Bookmark "sequence diagram question from UML beginner" Watch "sequence diagram question from UML beginner" New topic
Author

sequence diagram question from UML beginner

mike zhang
Ranch Hand

Joined: Feb 26, 2002
Posts: 59
suppose I have Class_A calls Class_B, then class_B calls class_C, and class_C calls class_A, and so on. In sequence diagram, I already have 3 obj for Class_A, Class_B, Class_C. To interpret that Class_C calls Class_A, should I draw an arrow back from Class_C object to the Class_A or should I draw another new Class_A object next to Class_C obj and add an arrow from Class_C obj to the new Class_A obj ?
Thanks,
Mike
Mark Spritzler
ranger
Sheriff

Joined: Feb 05, 2001
Posts: 17224
    
    1

I believe you have an arrow going back to Class A.
Mark


Perfect World Programming, LLC - Two Laptop Bag - Tube Organizer
How to Ask Questions the Smart Way FAQ
Pho Tek
Ranch Hand

Joined: Nov 05, 2000
Posts: 757

The mutual dependency between class A and C worries me. Are these entity objects ?
Pho


Regards,

Pho
Graeme Brown
Ranch Hand

Joined: Oct 13, 2000
Posts: 193
In sequence diagram you have instances of classes. So if instance of class C calls back to the original instance of class A then draw the line back. If C calls a new instance of A then add a second A.
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: sequence diagram question from UML beginner
 
Similar Threads
association relation in class diagram
Synchornized Block..
UML / Sequence Diagram
Class change under same window
I can create only one web service in EJB module. Why?