wood burning stoves 2.0*
The moose likes OO, Patterns, UML and Refactoring and the fly likes How to find the first class in Class diagram? Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login
JavaRanch » Java Forums » Engineering » OO, Patterns, UML and Refactoring
Bookmark "How to find the first class in Class diagram?" Watch "How to find the first class in Class diagram?" New topic
Author

How to find the first class in Class diagram?

jacob deiter
Ranch Hand

Joined: Apr 02, 2008
Posts: 576
How to find the first class in Class diagram?
David Newton
Author
Rancher

Joined: Sep 29, 2008
Posts: 12617

What do you mean by "first"? First in what sense?
Samanthi perera
Ranch Hand

Joined: Jan 08, 2010
Posts: 510
i think he is thinking somekind of flow??
jacob deiter
Ranch Hand

Joined: Apr 02, 2008
Posts: 576


i think he is thinking somekind of flow??



yes you are right
David Newton
Author
Rancher

Joined: Sep 29, 2008
Posts: 12617

By understanding the code, then--there's no "flow" in a class diagrams. Class diagrams show entity relationships.
Sebastian Oliver
Greenhorn

Joined: Nov 19, 2008
Posts: 4

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

Joined: Dec 28, 2002
Posts: 40
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

Joined: Sep 29, 2008
Posts: 12617

(Please note when you're referring to a company you work for, in the interests of full disclosure.)
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: How to find the first class in Class diagram?