This week's book giveaway is in the Programmer Certification forum.
We're giving away four copies of OCP Oracle Certified Professional Java SE 21 Developer Study Guide: Exam 1Z0-830 and have Jeanne Boyarsky & Scott Selikoff on-line!
See this thread for details.
  • 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
  • Liutauras Vilda
  • Jeanne Boyarsky
  • paul wheaton
Sheriffs:
  • Ron McLeod
  • Devaka Cooray
  • Henry Wong
Saloon Keepers:
  • Tim Holloway
  • Stephan van Hulst
  • Carey Brown
  • Tim Moores
  • Mikalai Zaikin
Bartenders:
  • Frits Walraven

Part II Class/Sequence diagrams general question

 
Greenhorn
Posts: 15
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Hello friends!
I have quite simple question regarding Class and Sequence diagrams. Do we need to specify methods arguments/return types in aforementioned diagrams? I have tried doing so, and diagrams started to looking overcrowded with information. Classes boxes became huge. I wonder, do fine-grained methods arguments/returns types are mandatory, or they can be omitted if method name clearly states what it's intended to? E.g. searchProduct() method, it doesn't really matters which arguments this method takes and what it returns, IMHO...
Also, should we show generic arguments in Class attributes? E.g., I have a class with argument of type Map<Integer, Renderer>. How to correctly specify it in Class diagram?
Thanks a lot!
 
Sergej Logis
Greenhorn
Posts: 15
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Anyone?
 
Ranch Hand
Posts: 462
Scala jQuery Java
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
I showed them for the important methods and if they are in your sequence diagram then they must be in your class diagram. I didn't show getters and setters or any methods that were outside the scope oif the use cases.

** I have not had my score back yet so this may be wrong but it's basically what it says in Cade's book **
 
Sergej Logis
Greenhorn
Posts: 15
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Thanks for reply.
However, my question is not about showing methods, but about showing arguments and return types of methods shown.
Adding them makes Sequence Diagram covered with text and Class Diagram to contain huge class boxes...
 
Will Myers
Ranch Hand
Posts: 462
Scala jQuery Java
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
I showed both.

I trimmed down some of the names I called them for this very reason
 
Sergej Logis
Greenhorn
Posts: 15
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
I see... I would like them to be optional, that would make diagrams much more clear...
Any other opinions?
 
Won't you be my neighbor? - Fred Rogers. tiny ad:
Gift giving made easy with the permaculture playing cards
https://coderanch.com/t/777758/Gift-giving-easy-permaculture-playing
reply
    Bookmark Topic Watch Topic
  • New Topic