Win a copy of The Little Book of Impediments (e-book only) this week in the Agile and Other Processes forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

Part II Question? Class versus Component

 
Anonymous
Ranch Hand
Posts: 18944
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Q1)
I see in the posts that people generate 1 Class Diagram with 10 to 30 classes.

Actually I generated 4 class diagrams: 1 Class Diagram which contain all Session Beans(SF or SL), another Class Diagram that contains only Entity Beans, another one that contains the Swing side classes, being another last one the Web JSP Pages and classes(Actually Web and Swing use the same interface to interact with the business.)
Is this acceptable that they appear in different files?

Q2)
3 to 4 Component Diagrams people usually create...
Since the class diagrams depict how the architecture works quite detailed, can I happen to be assuming to be creating the component Diagram some way highly abstracted is appropriate? I mean, without much detail...
 
Giri Alwar
Ranch Hand
Posts: 37
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
R�stem-� Zal�,
Your understanding of the class diagram is incorrect. The class diagram builds upon the BDM and contains the main entities in your solution. The component diagram contains the main components in your solution and their dependencies. A component is typically much more coarse-grained than a class and it will usually consist of several classes.
I would strongly recommend that you read the case study in the book from Cade-Roberts "Sun Certified Enterprise Architect for J2EE Technology" to gain an understanding of what a class diagram and a component diagram should look like. Also try not to get hung up on the number of class/component diagrams. I had only one of each in my solution. The main point is to capture all that is required so that a lead developer can implement your solution.
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic