UML类图基本元素符号
UML类图基本元素符号
元素名称 | 符号图例 | 含义 |
Class |
包含类的名称、属性和方法定义。 可见性修饰符:
|
|
Interface |
接口名称通常以字母 "I" 开头。 接口定义通常也用于抽象类。 |
|
Note |
任意的描述性文字。 |
|
Package |
将类和接口分组。 |
|
Inheritance Generalization |
B 继承自 A。 B inherits from A. |
|
Realization |
B 实现了 A。 B implements A. |
|
Association |
A 和 B 相互调用和访问对方的元素。 A and B call and access each other’s elements. |
|
Association (one way) |
A 可以调用和访问 B 的元素,但 B 不可以访问 A 的元素。 A can call and access B’s elements, but not vice versa. |
|
Aggregation |
A 中拥有一个 B,但 B 脱离于 A 仍然可以独立存活。 A has a B, and B can outlive A. A "uses" B = Aggregation : B exists independently (conceptually) from A. |
|
Composition |
A 中拥有一个 B,B 脱离 A 后在系统中没有任何存活的意义。 A has a B, and B depends on A. A "owns" B = Composition : B has no meaning or purpose in the system without A. |
|
Dependency |
B 的变化会影响 A,则 A 依赖于 B。 A dependency exists between two elements if changes to the definition of one element (the supplier) may cause changes to the other (the client). |
相关资料
最新文章
- VS2013无法加载JSON格式
- linux rpm问题:怎样查看rpm安装包的安装路径
- ARM启动流程
- TCP回射客户程序:str_cli函数
- raspberry pi 3 截图及查看
- 如何使用for循环连续的实例化多个对象!
- mac os apache 配置方法详细介绍
- SAP HANA中创建分析权限(Analytic Privilege)
- Android 开发使用第三方库出现Crash时处理方案汇总
- git push origin master 上传失败
- PHP提交订单,信息的传递
- WebAPI常见的鉴权方法,及其适用范围
- Spring MVC 请求映射 (二)
- 超简单,Centos7 安装 rabbitMQ
- 网络编程——socket(四十三)
- swift NSdata 转换 nsstring
- Windows程序
- 使用ggbio在R中制作弦图
- linux下查找nginx里的nginx.conf文件地址方法
- Chrome无法播放m3u8格式的直播视频流的问题解决
热门文章
- 【转】Java日期计算之Joda-Time
- empty isset array_key_exists 的区别
- hive中的桶
- 实践一:Linux基础实践
- The certificate used to sign “AppName” has either expired or has been revoked. An updated certificate is required to sign and install the application解决
- 使用C# WinForm窗体制作经理评分项目 ——S2 2.2
- URLConnection 和 HttpClients 发送请求范例
- java多线程详解(6)-线程间的通信wait及notify方法
- 01背包问题:POJ3624
- 多重背包问题:POJ2392