Zicomi Systems Logo Zicomi Site Banner
uml examples  |  home  |  contact us  |  your privacy
Company
Services
Products
Support
Resources
  OMG Standards
OMG Logo
  Have You Heard?
UML Diagrams
Zicomi Systems publishes some UML example diagrams online from the world famous UML dictionary.
more...
Version 2.5 Released
Zicomi Systems is delighted to announce that version 2.5 of Zicomi Mentor is released. With support for UML 2.0 and all thirteen UML diagrams
more...
Zicomi Systems' Director
speaks about the UML at Objects by Design - an informative interview
more...
Partner Programme
Zicom Systems is delighted to announce a new world wide partner programme, become a partner today.
more...
OMG Member
Zicom Systems is made a member of the OMG!
Composite
Composite  
The value of composite for the aggregation property of an association end signifies a whole-part relationship between two classifiers where the whole has responsibility for the parts. An association, with one of its ends specifying a value of composite, is commonly called a composition relationship. It is stronger than an unadorned association end, adding the concept of whole (filled diamond end) and part relationship. It is also stronger than an aggregate, because the classifier at the whole end has responsibility for the lifetime of any parts. Only one end of a binary association can be adorned with a composition symbol. Formally it is one of three values that can be set for the aggregation property of an association end the others being none and aggregate.

This is alternative content.

Explanation

A composition relationship is a strong type of whole-part association, where the element at the solid diamond has responsibility for the element or elements at the other end of the relationship.

Important Points

The instance on the whole end is responsible for the lifetime of the instances on the part end. The whole (with the diamond) is responsible for the lifetime of its parts (without the diamond). This includes their creation; their destruction and their propagation; if the whole is copied so are all its parts.
The part can only "belong" to one whole at a given point in time. The whole is responsible for its parts and as such a part cannot be a part in another composite relationship, otherwise the responsibility of the whole would be compromised.
This is the strongest form of association, and implies the whole has responsibility for the part. If a whole is destroyed it does not necessarily imply that the part must be destroyed. The whole must take responsibility for the part, but it has a number of options it can destroy the part or pass on the responsibility to another instance.
When a whole is copied the parts are also copied. Whenever the whole is copied or propagated the parts are always copied as well. In accordance with the principle that the whole is responsible for the lifetime of the parts which make it up.

Related Entries

Aggregate
Aggregate  Graphically Similar
An aggregation is a type of association that is weaker, or that has less responsibility than the weaker composition The aggregation adornment is used when the whole part (hollow diamond end) is composed of one or more parts (tail end).
Association
Association  Graphically Similar,  More Specific
An association is the base type of relationship to which the aggregation adornment is added. The association indicates no whole and part relationship, which is added by the aggregation.
Attribute
Attribute  Similar Usage
An attribute is related to a composite in that a classifier with an attribute, whose type is a classifier, has the same meaning as a classifier connected to another classifier with an adornment of composite. They are alternate notations one showing the structural nature of the relationship the other showing the contents of the classifier.

back to the index...
Unified Modeling Language and UML are either registered

trademarks or trademarks of Object Management Group, Inc. in the

United States and/or other countries.