• Post Reply Bookmark Topic Watch Topic
  • New Topic
programming forums Java Mobile Certification Databases Caching Books Engineering Micro Controllers OS Languages Paradigms IDEs Build Tools Frameworks Application Servers Open Source This Site Careers Other Pie Elite all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Campbell Ritchie
  • Jeanne Boyarsky
  • Ron McLeod
  • Paul Clapham
  • Liutauras Vilda
Sheriffs:
  • paul wheaton
  • Rob Spoor
  • Devaka Cooray
Saloon Keepers:
  • Stephan van Hulst
  • Tim Holloway
  • Carey Brown
  • Frits Walraven
  • Tim Moores
Bartenders:
  • Mikalai Zaikin

Are there too many classes?

 
Ranch Hand
Posts: 215
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Hi,

I have rectified Busniess domain model and now my class diagram already has 20 classes. I have yet to show any EJB's etc.
I think it is getting too heavy.

Any opinions?
 
Ranch Hand
Posts: 86
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Don't show EJB's or maybe just facades. Keep it simple. (my opinion)

Tomi
 
Ranch Hand
Posts: 317
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Yeah, I agree with Tomi. Just stick to the core business model, dont show any implementation specific classes (controllers, delegators,facades,daos etc). If you are still inclined to show the entities and session, show them as <<stereotypes>> in your class diagram. eg. Customer can have a <<entity>> stereotype attached to it.
The only thing I am very tempted to show are the adapters to the outside system. Am trying to figure out where they would fit in the class diagram, or I might just show them standing alone in some corner of the class diagram

parag
 
Ranch Hand
Posts: 1327
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
i dont think should have more than 30 classes
 
Ranch Hand
Posts: 199
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Hi guys
My class diagram contains only 10 classes .
I�m showing only the core business model classes. None EJB, only the entities and their relationships...
Am I wrong or missing something???

Bye
 
Parag Doshi
Ranch Hand
Posts: 317
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator

Originally posted by Eduardo Rodrigues:
Hi guys
My class diagram contains only 10 classes .
I�m showing only the core business model classes. None EJB, only the entities and their relationships...
Am I wrong or missing something???

Bye



Eduardo,
I dont think the number of the classes matter. If your model meets the requirements of the system, then you are fine. Keeping the model simple should be your main priority.

Parag
 
D. Rose
Ranch Hand
Posts: 215
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
I was also inclined not to show any EJBs etc on class diagram as I think class diagram should purely represent domain and not the framework (J2ee in our case) we want to use. I was confused because lot of people here discussed putting enity/sessions/managers/controllers etc on the diagram.

Assignment only says about one class diagram in delverables. I would have liked to draw two diagrams really- one purely domain/business view and other design view.
Are there any guidelines for this?

Eduardo you need not worry about actual number of classes but make sure you have cpatured all the business model neatly.
 
Eduardo Rodrigues
Ranch Hand
Posts: 199
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Thank you so much guys!
I will keep my class diagram without 'technology classes'.. Only the business model...
 
Consider Paul's rocket mass heater.
reply
    Bookmark Topic Watch Topic
  • New Topic