James<br />SCJP 1.4 - 92%<br />SCJD - 93%<br />SCWCD 1.4 - 95%<br />SCBCD 1.3 - 100%<br />SCEA - 92%
Originally posted by James Turner:
Hi Guys,
Just a quick question about the class diagram.
The class diagram would show all the classes of our system, the components of the system are also classes, does this mean we show them as well?
For example, I have serveral DAO's, a service locator and a business delegate, these are classed as components and so the component diagram is where I have placed them, but they are also just classes, does this mean they also need to be placed in the class diagram?
Also, is it a usual thing to partition the class diagram into subsystems composed of classes that apply to each of the tiers of the system? Or do we keep them all together?
Thank you for any help.
Regards,
James.
Ricardo Ferreira,<br /> <br />Sun Certified Enterprise Architect<br />IBM Certified SOA Solution Designer<br />IBM Certified RUP v7.0 Solution Designer<br />IBM Certified Specialist for RUP v2003
James<br />SCJP 1.4 - 92%<br />SCJD - 93%<br />SCWCD 1.4 - 95%<br />SCBCD 1.3 - 100%<br />SCEA - 92%
Originally posted by Ricardo Ferreira:
James,
Your class diagram should explain the domain model for you application. The domain model is just the entities and your relationships. Any class that provide some 'service' for you application, is not an entity (even being a class), so, it�s not a good idea show them in the class diagram.
The only exception for this, it is the classes that will participate in the business workflow of your application. This business components are the principal key solution of an architecture since they help the system to measure what happens when you send a message to it.
Now, lets go the diference. One stateless session bean that access, updates or creates an customer in the system, could be added to the diagram, since it is the class managing an workflow.
An DAO class (CustomerDAO), that do this job to, can�t be considered an business component, its just an utility class, as ServiceLocator�s, Transfer Objects, Controllers, etc.
But, this are just some tips for you, not a set of rules for UML diagramming. Try to keep your class diagram more simpliest possible, and don�t worry if your class diagram finish only with 15 classes. Could be perfect for the evaluator, if he can understand what you have planned.
best regards,
Frederico Melo<br />--------------<br />Software Architect<br />Sun Certified Enterprise Architect for J2EE<br />IBM Rational Unified Process Specialist
Originally posted by Frederico Melo:
Ricardo,
UML class diagrams cannot be limited to exposing Domain Model. This is usually the first model you construct for an application, to help discovering domain entities. Besides this, analysis and design structural models can be very usefull and necessary depending on your system. Identifying the analysis classes and classifying them according to the three key analysis stereotypes (entity, controller, model) is essencial for a good software design and is part of Robustness Analysis. I didn�t understand why you said it�s not a good idea to include classes wich are no entities on the class diagrams. Is this on the SCEA assignment instructions?
Ricardo Ferreira,<br /> <br />Sun Certified Enterprise Architect<br />IBM Certified SOA Solution Designer<br />IBM Certified RUP v7.0 Solution Designer<br />IBM Certified Specialist for RUP v2003
Originally posted by Kayman:
The only exception for this, it is the classes that will participate in the business workflow of your application. This business components are the principal key solution of an architecture since they help the system to measure what happens when you send a message to it.
==========================
Would a actionservlet controller from a framwork like struts be part of the workflow exception?
Ricardo Ferreira,<br /> <br />Sun Certified Enterprise Architect<br />IBM Certified SOA Solution Designer<br />IBM Certified RUP v7.0 Solution Designer<br />IBM Certified Specialist for RUP v2003
Don't get me started about those stupid light bulbs. |