2005年7月27日,周三。今天有兴趣拜读了一下《OMG Unified Modeling Language Specification》。在看的过程中,感觉有些东西需要做一下笔记,以便以后学习、研究。
1、UML的定义
The Unified Modeling Language (UML) is a language for specifying, visualizing, constructing,
and documenting the artifacts of software systems, as well as for business modeling and other
non-software systems.
2、UML所包括的graphcial digrams
In terms of the views of a model, the UML defines the following graphical diagrams:
• use case diagram
• class diagram
• behavior diagrams:
• statechart diagram
• activity diagram
• interaction diagrams:
• sequence diagram
• collaboration diagram
• implementation diagrams:
• component diagram
• deployment diagram
以上的8个模型图,是OMG的标准名称。这些 图提供了系统的多个视角。 (These diagrams provide multiple perspectives of the system under analysis or development.)
这些模型图是建模者能看见的主要产物,虽然UML以及UML的支持工具还提供了很多其他的不同视图。(These diagrams, along with supporting documentation, are the primary artifacts that a modeler sees, although the UML and supporting tools will provide for a number
of derivative views.)
很多人会问,我们以前经常用的数据流图(DFD),为什么没有在UML包括进去? 这主要是因为,DFD以及其他没有被包括进UML的图表,不满足纯OO的模型图的要求。其实UML中的活动图和协作图完成了大部分DFD的功能。活动图对于工作流的建模也是很有用处的。(A frequently asked question has been: Why doesn’t UML support data-flow diagrams? Simply put, data-flow and other diagram types that were not included in the UML do not fit as cleanly into a consistent object-oriented paradigm. Activity diagrams and collaboration iagrams
accomplish much of what people want from DFDs, and then some. Activity diagrams are alsouseful for modeling workflow.)