I am new to laying out design documents. I have a service class that calls a method in a factory which will return 1 of three classes. The 3 classes are extended from an abstract class which provides the interface. The factory will return 1 of the 3 subclasses depending on what is passed to it. The usual factory setup. The problem is I'm not sure how to show this in a uml design document. If anyone has experience in writing uml design docs, I would appreciate some advice.
I'm familiar with the development process(Design, Coding, Testing), but my knowledge about creating and implementing UML(Class Diagrams, Object Diagrams, Sequence Diagrams, State Chart Diagrams) is lax, as I am taking a summer class to introduce me to these fundamental concepts.
Could someone please post a URL for a site that will properly instruct me as to their creation and usage when programming?
PS - These forums are great, though the use of 'Search' should be relied upon more heavily, as most questions have already been answered.
We send many people to Scott Ambler's http://www.AgileModeling.com site. Search around the articles - there are several with samples of all the models. Post whatever helps you back here so we'll know what's good! Cheers!
A good question is never answered. It is not a bolt to be tightened into place but a seed to be planted and to bear more seed toward the hope of greening the landscape of the idea. John Ciardi
The soul is dyed the color of its thoughts. Think only on those things that are in line with your principles and can bear the light of day. The content of your character is your choice. Day by day, what you do is who you become. Your integrity is your destiny - it is the light that guides your way. - Heraclitus
Joined: Jun 05, 2001
What I have been looking for is an example of a sequence diagram where the class diagram is using a factory pattern to create 1 of 3 possible sub-classes of a base class.