加入收藏 | 设为首页 | 会员中心 | 我要投稿 李大同 (https://www.lidatong.com.cn/)- 科技、建站、经验、云计算、5G、大数据,站长网!
当前位置: 首页 > 百科 > 正文

深入理解UML中的依赖和关联

发布时间:2020-12-13 19:56:16 所属栏目:百科 来源:网络整理
导读:An Association implies two model elements have a relationship,usually implemented as an instance variable in one Class. This connector can include named roles at each end,multiplicity,direction and constraints. Association is the general r

An Association implies two model elements have a relationship,usually implemented as an instance variable in one Class. This connector can include named roles at each end,multiplicity,direction and constraints. Association is the general relationship type between elements. To connect more than two elements in an association,you can use the N-Ary Association element.

When code is generated for Class diagrams,Associations become instance variables in the target Class. The relationship is also used in Package,Object,Communication, Data Modeling and Deployment diagrams.

Dependency relationships are used to model a wide range of dependent relationships between model elements in Use Case, Activity and Structural diagrams,and even between models themselves. You can create the Dependency from the Common page of the Enterprise Architect UML Toolbox. The Dependencies package as defined in UML 2.1 has many derivatives,such as Realization, Deployment and Use. Once you create a Dependency you can further refine its meaning by applying a specialized stereotype.

(编辑:李大同)

【声明】本站内容均来自网络,其相关言论仅代表作者个人观点,不代表本站立场。若无意侵犯到您的权利,请及时与联系站长删除相关内容!

    推荐文章
      热点阅读