小学UML

来源:互联网 发布:linux系统编程手册chm 编辑:程序博客网 时间:2024/04/26 13:16

今天看了http://www.ivencia.com/softwarearchitect/chapter1/chapter1.htm,写的不错,简单的描述了UML的一些典型用法

看图说话

Use Case

1

 activity diagram

2 1213

The state diagram is visually similar to an activity diagram, except the activity diagram displays units of work, and the statechart models the states of a dynamically changing system.

 state diagram >

3

Class 

4

Boundary classes are used to specify interfaces between systems, control classes are used as objects to control other class actions, and entity classes are typically data stores

5

接口: 6

7

The relationships between practice and employee shows that a practice has one or more members. It shows how a practice can have no manager (if the last one left and has not been replaced), one manager (as is normal), or two managers, in the rare case of joint heads of practice. Manager is identified as a subset of member, implying that a manager is also a member, and defined as a {subset} of member.

OBJECT:实例化的类 

8

Collaboration Diagram

9

时序图

1011

The component diagram shows dependencies between components in a software system, and the deployment diagram shows the deployment and configuration of the components on physical nodes of the networked computer system

 

 UML里面实际上没有layer的概念,,部署图中实际上反映的是tier的概念

Here is a typical layered design for a business system.

14

Lets take a look at those layers drawn as a UML equivalent.

15