hi marklorenz,
thanks for the comment but I still have some questions...
hmm.. should the UML diagrams be applied to all the tiers of the sytem or designated per tier?
That is, should I :
1. design use case diagrams, sequence diagrams, class diagrams and state diagrams per tier
OR
2. design a general use case for the system, general sequence diagram for the system and for each tier; UML class diagrams and state diagrams?
thanks
Main Topics
Browse All Topics





by: marklorenzPosted on 2008-11-29 at 10:13:31ID: 23060374
There are three primary UML diagrams you need:
(1) Class diagram - to document the static relationships between the concepts (classes) in your system.
(2) Sequence diagram - to document the dynamic, time-ordered method calls to carry out a particular use case.
(3) State diagram - to document the various states an object takes and what causes the transitions. These are used much less then (1) and (2) above.
The general order of things is:
(1) Capture requirements in use cases. Each use case details what must be done to satisfy the requirements from one event (user action, timeout, message from another system, ...).
(2) On a use case by use case basis, start the design process. This involves walking through the use cases, simplest path first, and adding messages to your related sequence diagram. As you do this, you will also add classes and methods (and to a lesser degree data) to the class diagram to satisfy the messaging in the sequence.
You can then continue to move the use case design forward into implementation or go on to another use case (or if your team is large enough, work on both in parallel).
The tiers you mention relate to the Model View Controller (MVC) pattern which is fundamental to any well-designed system. Some systems also break out support layers, such as for persistence.