What is UML? Unified Modeling Language, a language, is used for software design of a language.
In fact, the birth of a language is not great, so that most people use is great enough. UML is a great language, because the only language currently designed for software is it.
UML is still relatively simple, just a few graphics, then a few patterns, but because he is the only language, so the design ability of people can easily understand what you say, this is his great place.
I say a few of the most commonly used in software design, and my experience:
- Use case diagrams, which are very effective in understanding the user's needs, are used only to describe the functionality that the system needs to provide, in itself without order, and not to describe the process. Note Use extensions and inclusions. That villain can be a user or other system.
- Class diagram, which is the true meaning of object-oriented design, do not confuse with the ER graph, a class diagram is used to describe the class and the interaction between classes, itself can not have any attributes. Of course there are many properties, but do not use the idea of designing a database to design class diagrams. Class diagrams are only used to reflect the reality that when designing a class diagram, you can think of the data as stored in a DB or stored in XML or stored in a file, not to consider storage.
- Object graph, not too much to use
- Sequence diagrams, which describe the order of interactions between objects, focus on the chronological order of message passing between objects, which is useful, but not difficult.
- State diagram, state machine is it, when you are confused by the complexity of the state, use it to draw clearly, realize the use of State mode, perfect.
- An activity diagram, which is important, but not difficult, to represent the process control process between two or more objects while they are working on an activity.
Other I use is not much, learning this language is really important, please pay attention to. After mastering him, learning design patterns will be more handy!
Copyright NOTICE: This article for Bo Master original article, without Bo Master permission not reproduced.
Architect Express 6.7-design development ideas-UML