• Post Reply Bookmark Topic Watch Topic
  • New Topic
programming forums Java Mobile Certification Databases Caching Books Engineering Micro Controllers OS Languages Paradigms IDEs Build Tools Frameworks Application Servers Open Source This Site Careers Other Pie Elite all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Campbell Ritchie
  • Jeanne Boyarsky
  • Ron McLeod
  • Paul Clapham
  • Liutauras Vilda
Sheriffs:
  • paul wheaton
  • Rob Spoor
  • Devaka Cooray
Saloon Keepers:
  • Stephan van Hulst
  • Tim Holloway
  • Carey Brown
  • Frits Walraven
  • Tim Moores
Bartenders:
  • Mikalai Zaikin

sequence diagram question from UML beginner

 
Ranch Hand
Posts: 59
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
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
 
ranger
Posts: 17347
11
Mac IntelliJ IDE Spring
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
I believe you have an arrow going back to Class A.
Mark
 
Ranch Hand
Posts: 782
Python Chrome Ubuntu
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
The mutual dependency between class A and C worries me. Are these entity objects ?
Pho
 
Ranch Hand
Posts: 193
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
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.
 
reply
    Bookmark Topic Watch Topic
  • New Topic