Originally posted by chao cai:
Did someone think the cart class will be included the class diagram? Is there anybody pass the exam without draw the cart class in the class diagram?
My view on a class diagram is that it should give a broader view of the BDM. I start from the idea that
you should be able to draw the required sequence diagrams (for about 70%) with the classes on your class diagram. So that means that you will create 30% of custom classes for the sequences which are not displayed on the class diagram (UI components for example).
About the SSB's and all; I think that if you have a class that acts as a service (its a facade doing some delegation) then you can just leave of the SSB stereotype if you want to make your diagram technology independed. If you want to make it technology depended, you add the stereotype. There is nothing more to it I guess.
Things I would leave of a high level class diagram would certainly be implementation specific elements. Factories, TO's etc. Why ?
- They clutter the diagram
- They do not add any value at this level. Who cares that your service uses a factory to lookup a certain class it uses ? Thats a low level implementation decision. At this point it is intersting to know that class A uses class B.
Anyway, thats what I think of it, could be wrong ofcourse
