• Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

Too many classes in the diagram!!! Am I wrong?

 
Jamy Wang
Ranch Hand
Posts: 83
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
There are about 36 classes in my class diagram! I heard that most guy only have about 25 classes. Why I have so many classes? Am I wrong?

I think some reasons make my classes diagram so big:

1) I apply the filter pattern between the web client and front controller, so I have to show some classes about it, such as filtermanager, filterchain. But in fact, it can be implemented by application server, should I show them?

2) I use context object and application controller patterns.
3) I use command pattern. So I even have ten more classes, such as LoginCommand, SearchItineraryCommand, ...

Could someone give me some advice? Did I make a mistake?

Thanks.
Best Regards.
 
Rashmi Razdan
Ranch Hand
Posts: 70
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Jamy,

Thats not the method people have generally used for class dig, but its not that easy to say u are wrong as well.
I haven't yet cleared part2, im appearing for it and my class dig is having aproxly 18 classes or so.I haven't used patterns etc in my class dig as i didnt see that method followed anywhere in the links and books i studied.
I understand it as the extention of BDM, with detailed associations and at broader level.


As an advice, I would suggest,
1)if u are doing so, has any book especilly the Sun recommended ones, followed that approach, if not then u are at risk.
2) And it may be advisable to read the definiton/ or purpose of class dig from pure UML book to back ur design and if convinced specify the same in documentation to back it up.
3) and U can go ahead with this design if u are comfortable to get the full view of proj out of that.


hope that helps.
rashmi
 
Deepak Pant
Ranch Hand
Posts: 446
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Originally posted by Jamy Wang:
There are about 36 classes in my class diagram! I heard that most guy only have about 25 classes. Why I have so many classes? Am I wrong?

I think some reasons make my classes diagram so big:

1) I apply the filter pattern between the web client and front controller, so I have to show some classes about it, such as filtermanager, filterchain. But in fact, it can be implemented by application server, should I show them?

2) I use context object and application controller patterns.
3) I use command pattern. So I even have ten more classes, such as LoginCommand, SearchItineraryCommand, ...

Could someone give me some advice? Did I make a mistake?

Thanks.
Best Regards.


Jamy,

Your class diagram should be "Technology & Design Pattern" neutral.

It should depicts the classes that you think mainly fall under "Business Object" category.

Your component diagram should depict all the "Tech Specific" classes.

Search for Parag Doshi's notes on class diagram

regards,
Deepak
 
Jamy Wang
Ranch Hand
Posts: 83
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Could you give me the link of Parag Doshi's notes on class diagram?
I can find them exactly.
 
Deepak Pant
Ranch Hand
Posts: 446
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Originally posted by Jamy Wang:
Could you give me the link of Parag Doshi's notes on class diagram?
I can find them exactly.


Check Parag's responses to various ranchers...you will find your answer:

http://www.coderanch.com/t/152921/java-Architect-SCEA/certification/Cleared-Part-II-III
 
Jamy Wang
Ranch Hand
Posts: 83
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
I have read the thread you mentioned.
And you mean that we should not show any pattern relationed class in the class diagram? And how ccould I describe the whole relations between classes?
I'm confused

someone help me?
 
Deepak Pant
Ranch Hand
Posts: 446
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
James,

Check this link:
http://java.sun.com/blueprints/patterns/CompositeEntity.html

See how the relationships have been shown between Customer and related classes.

regards,
Deepak
 
Jamy Wang
Ranch Hand
Posts: 83
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
But I want to know if I could show some pattern classes in the class diagram, such as bussiness delegate, session facade, controller etc..
 
Consider Paul's rocket mass heater.
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic