• Post Reply Bookmark Topic Watch Topic
  • New Topic

methods signature in sequence diagram  RSS feed

 
serzeel khan
Greenhorn
Posts: 17
  • Mark post as helpful
  • send pies
  • 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.
 
William P O'Sullivan
Ranch Hand
Posts: 859
Chrome IBM DB2 Java
  • Mark post as helpful
  • send pies
  • 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
 
shekar hari
Ranch Hand
Posts: 36
  • Mark post as helpful
  • send pies
  • 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.
 
It is sorta covered in the JavaRanch Style Guide.
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!