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.
版权声明:本文内容由互联网用户自发贡献,该文观点与技术仅代表作者本人。本站仅提供信息存储空间服务,不拥有所有权,不承担相关法律责任。如发现本站有涉嫌侵权/违法违规的内容, 请发送邮件至 dio@foxmail.com 举报,一经查实,本站将立刻删除。