aspose file tools*
The moose likes OO, Patterns, UML and Refactoring and the fly likes Object Diagram to Class Diagram transformation 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 "Object Diagram to Class Diagram transformation" Watch "Object Diagram to Class Diagram transformation" New topic
Author

Object Diagram to Class Diagram transformation

Raman Ghai
Ranch Hand

Joined: Jan 01, 2012
Posts: 51
Hi there ,
I have to create a class diagram from an object diagram that involves various geometrical figures such as ellipse , circle , square etc. I must use generalization in my approach to create a class diagram . So I am thinking of creating a class diagram that involves 1D, 2D etc as superclass and ellipse , circle , square etc as subclass. So , the question arises here that do I have to use every class of my class diagram when transforming it to an object diagram (here referring to superclasses 1D , 2D etc).
Any info about resources/software on UML will be appreciated . Thanks..
Raman Ghai
Ranch Hand

Joined: Jan 01, 2012
Posts: 51
I found out that it is not a required to use every class. Guess , my question was too naive .
Mohamed Sanaulla
Saloon Keeper

Joined: Sep 08, 2007
Posts: 3071
    
  33

Object diagram shows the objects and their relationships at a certain snapshot of time. In class diagram you would have a generalisation, aggregation and other relationships. But in object diagram there may be only instance of one of the Sub classes or you would show how many instances are part of the aggregation.
Hope this is what even you found out.

Mohamed Sanaulla | My Blog
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: Object Diagram to Class Diagram transformation