• 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
  • Tim Cooke
  • paul wheaton
  • Paul Clapham
  • Ron McLeod
Sheriffs:
  • Jeanne Boyarsky
  • Liutauras Vilda
Saloon Keepers:
  • Tim Holloway
  • Carey Brown
  • Roland Mueller
  • Piet Souris
Bartenders:

methods signature in sequence diagram

 
Greenhorn
Posts: 17
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
hello everyone,
I want to know that whether i should show method with signatures or simply use methods name only in sequence diagram
Thanks.
 
Ranch Hand
Posts: 859
IBM DB2 Chrome Java
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
If you overload methods, then you should maybe (for space and visual consideration) use type descriptors.

eg:

method1() -> method1()
method1(String s) -> method1(S)

etc..

This may not work if you Objects (which String is), but for simple types should be understandable.

I have seen many many unwieldy UML diagrams, and usually just ignore them and hit the code.

WP
 
Ranch Hand
Posts: 36
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
The more detail the better, I have included method signature with return type in all of my sequence diagrams, the variable names were similar to object type names.
 
reply
    Bookmark Topic Watch Topic
  • New Topic