Some UML Discussions

Source: Internet
Author: User

Association vs. Dependency vs. Aggregation vs. composition

https://nirajrules.wordpress.com/2011/07/15/association-vs-dependency-vs-aggregation-vs-composition/

An useful comment:

I Always view association as something to being used in a early stage of analysis. Once a model has been created, the associations indicate potential dependencies. It then becomes a exercise in reducing dependencies to decrease coupling and increase orthogonality. The next stage would then is to determine whether an object needs a member reference to the object it depends on or if it is just transient for a particular method or methods. An exercise in managing dependency injection I guess:) If It was decided that the reference needs to be a member of the DEP Endent object, then the dependency becomes an aggregation. Then if the dependent object needs to own the object that it depends on and control its lifetime then the aggregation Beco Mes a composition. So I guess I See all the relationships as extension of each other. Composition extends Aggregation, Aggregation extends Dependency and Dependency extends association.

UML Class diagram:association, Aggregation and composition

Http://aviadezra.blogspot.com/2009/05/uml-association-aggregation-composition.html

Dependency in UML

Http://www.uml-diagrams.org/dependency.html

Some UML Discussions

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.