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