• 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

Fly By Night assignment - to small class diagram?

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

After reading all the use cases I've prepared the first draft of the class diagram for Fly By Night assignment. I've based my diagram on BDM, added some classes that wasn't present in BDM (Payment and Credit Card), and added some statless session beans as processors/managers (my diagram is "Cade-style"). I believe that the diagram is fully sufficient for all the requirements mentioned in the assignment.

But while reading the posts found in this forum I've found that many people mentioned that their class diagrams were much bigger than mine. Many people claim that they have much more that 20 classes, whereas my diagram has a little bit more than 10. Because of such significant difference I'm starting to worry if I'm missing some important issues. I'm thinking about adding User base abstract class and two inheriting classes for InternetUser and TravelAgent, but I can't figure out any other classes to add - as I said, IMO my class diagram is perfectly sufficient for the requirements.

Could you give me some clues? What else should I consider and what other classes can I add?

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

You can add JSP, Servlets, JavaBeans, EJBS in your class diagram. Make it as elaborate as possible.

Thanks

-- Ravi
 
maciej kwiatkowski
Greenhorn
Posts: 3
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
"You can add JSP, Servlets, JavaBeans, EJBS in your class diagram. Make it as elaborate as possible."

I believe that such components should go into the Component Diagram, not into Class Diagram. Am I right?
 
Greenhorn
Posts: 24
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Class diagrams should only contain classes - not JSPs. And while Servlets (and JSPs) are really Java classes, they are rarely included on class diagrams and instead are more appropriate on Component diagrams.

Worried about the number of classes on your class diagram? Don't worry about it - if your class diagram allows your solution to meet the requirements of the system, then it is complete for your specific solution. Just ensure that you are meeting all of the requirements!
 
Greenhorn
Posts: 6
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Hi Maciek

I suggest you to focus on requirements and maybe ORM issues.
Quantity does not always means quality

BR
Artur
 
Sheriff
Posts: 67746
173
Mac Mac OS X IntelliJ IDE jQuery TypeScript Java iOS
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
"Artur J.",

There aren't many rules that you need to worry about here on the Ranch, but one that we take very seriously regards the use of proper names. Please take a look at the JavaRanch Naming Policy and adjust your display name to match it.

In particular, your display name must be a first and a last name separated by a space character, and must not be obviously fictitious.

Thanks!
bear
JavaRanch Sheriff
 
Don't get me started about those stupid light bulbs.
reply
    Bookmark Topic Watch Topic
  • New Topic