首页 > 代码库 > UML的基本图(二)

UML的基本图(二)



Both sequence diagrams and communication diagrams are kinds of interaction diagrams. Aninteraction diagramshows 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 diagramis an interaction diagram that emphasizes the time-ordering of messages; acommunication 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.

 

序列图和通信图都属于交互图.交互图表达的是这样一个交互:由一组对象和角色组成,消息在它们之间传递.交互图处理系统的动态视图.序列图作为交互图,它更着重消息发送时的时间顺序;通信图作为交互图,则更着重对象或角色在发送和接收消息时的组织结构.序列图和通信图表达的基本概念很相似,但每个图注重的是不同的概念视图:序列图着重的是时间顺序,而通信图着重的是消息流的数据结构.时序图(超出了本书范围)表达的是消息交换时的实际时间.

 

Astate 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.

 

状态图表达的是一个状态机,由状态,传输,事件和活动组成.一个状态图显示对象的动态视图.在构建接口,类或是交互的行为时它们尤其重要,它注重对象行为所发生的事件顺序,这在构建反应系统时特别有用.

 

Anactivity 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.

 

活动图显示过程的结构,或是其它计算,如控制流和数据计算过程.活动图处理系统的动态视图.在构建系统的功能时尤其重要,重点是对象间的控制流.

 

Adeployment 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.

 

部署图显示运行时处理节点的配置和节点中的活动组件.部署图处理体系结构的静态部署视图.一个节点通常指包含有一个或更多个产品的主机.