1. 程式人生 > >UML的基本圖(二)

UML的基本圖(二)

nbsp conf 宋體 through 主機 concepts 系統 receive react

??

Both sequence diagrams and communication diagrams are kinds of interaction diagrams. An interaction diagram shows an interaction, consisting of a set of objects or roles, including the messages that may be dispatched among them. Interaction diagrams address the dynamic view of a system. A sequence diagram

is an interaction diagram that emphasizes the time-ordering of messages; a communication diagram is an interaction diagram that emphasizes the structural organization of the objects or roles that send and receive messages. Sequence diagrams and communication diagrams represent similar basic concepts, but each diagram emphasizes a different view of the concepts. Sequence diagrams emphasize temporal ordering, and communication diagrams emphasize the data structure through which messages flow. A
timing diagram (not covered in this book) shows the actual times at which messages are exchanged.

序列圖和通信圖都屬於交互圖.交互圖表達的是這樣一個交互:由一組對象和角色組成。消息在它們之間傳遞.交互圖處理系統的動態視圖.序列圖作為交互圖。它更著重消息發送時的時間順序;通信圖作為交互圖。則更著重對象或角色在發送和接收消息時的組織結構.序列圖和通信圖表達的基本概念非常相似,但每一個圖註重的是不同的概念視圖:序列圖著重的是時間順序,而通信圖著重的是消息流的數據結構.時序圖(超出了本書範圍)表達的是消息交換時的實際時間.

A state diagram shows a state machine, consisting of states, transitions, events, and activities. A state diagrams shows the dynamic view of an object. They are especially important in modeling the behavior of an interface, class, or collaboration and emphasize the event-ordered behavior of an object, which is especially useful in modeling reactive systems.

狀態圖表達的是一個狀態機,由狀態,傳輸。事件和活動組成.一個狀態圖顯示對象的動態視圖.在構建接口,類或是交互的行為時它們尤其重要,它註重對象行為所發生的事件順序。這在構建反應系統時特別實用.

An activity diagram shows the structure of a process or other computation as the flow of control and data from step to step within the computation. Activity diagrams address the dynamic view of a system. They are especially important in modeling the function of a system and emphasize the flow of control among objects.

活動圖顯示過程的結構,或是其他計算,如控制流和數據計算過程.活動圖處理系統的動態視圖.在構建系統的功能時尤其重要,重點是對象間的控制流.

A deployment diagram shows the configuration of run-time processing nodes and the components that live on them. Deployment diagrams address the static deployment view of an architecture. A node typically hosts one or more artifacts.

部署圖顯示執行時處理節點的配置和節點中的活動組件.部署圖處理體系結構的靜態部署視圖.一個節點通常指包括有一個或很多其它個產品的主機.

UML的基本圖(二)