Win a copy of Mesos in Action this week in the Cloud/Virtualizaton forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

How to find the first class in Class diagram?

 
jacob deiter
Ranch Hand
Posts: 584
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
How to find the first class in Class diagram?
 
David Newton
Author
Rancher
Posts: 12617
IntelliJ IDE Ruby
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
What do you mean by "first"? First in what sense?
 
Samanthi perera
Ranch Hand
Posts: 510
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
i think he is thinking somekind of flow??
 
jacob deiter
Ranch Hand
Posts: 584
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator


i think he is thinking somekind of flow??



yes you are right
 
David Newton
Author
Rancher
Posts: 12617
IntelliJ IDE Ruby
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
By understanding the code, then--there's no "flow" in a class diagrams. Class diagrams show entity relationships.
 
Sebastian Oliver
Greenhorn
Posts: 4
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator

A class diagram is a hierarchical vision of the domain in terms of dumb data structures.
How you do know what is a root class in that diagram really depends on the use case.
Client entity might be the first (ROOT) class for the use case of a Client Moving from Address A to Address B.
 
Vlad Varnica
Ranch Hand
Posts: 40
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
The trick I use to immediately see the behavior of my class diagram is a good reverse engineering.
If you display the project dependencies then you can see from which classes are coming dependencies .
I found this image of a dependencies detection: http://www.forum-omondo.com/documentation_eclipseuml_2008/reverse/reverse/open_existing_diagram.png
sometimes you only have one class and hundred of dependencies going out from the same class then it is easier to identify the central class
 
David Newton
Author
Rancher
Posts: 12617
IntelliJ IDE Ruby
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
(Please note when you're referring to a company you work for, in the interests of full disclosure.)
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic