Solved

UML - reading for the empty diamond and solid diamond arrows

Posted on 2004-09-28
2
1,524 Views
Last Modified: 2012-08-14
What is the "reading" of those arrows with diamonds on the end?

For empty diamond, A <>-----> B is it "A can contain B" or "B can be a part of A"?
                                   
And for solid diamond A<->-----> B is it "A must contain B" or "B is a (necessary) component of A"?

I'm having trouble with the difference between solid and clear diamond. So if I could get the readings for these symbols, it would be helpful.

0
Comment
Question by:rfr1tz
2 Comments
 
LVL 4

Expert Comment

by:gdrnec
ID: 12173921
Composition and Aggregation
Composition is a special type of aggregation that denotes a strong ownership between Class A, the whole, and Class B, its part. Illustrate composition with a filled diamond.
Use a hollow diamond to represent a simple aggregation relationship, in which the "whole" class plays a more important role than the "part" class, but the two classes are not dependent on each other. The diamond end in both a composition and aggregation relationship points toward the "whole" class or the aggregate.
0
 
LVL 55

Accepted Solution

by:
Jaime Olivares earned 250 total points
ID: 12174015
I like to use these simple terms:
When diamond is filled, the pointed object is a part of the pointing object as a leg is to a person
When diamong is empty, the pointed object is related but not a part of pointed object as a shoe to a person
0

Featured Post

Is Your Active Directory as Secure as You Think?

More than 75% of all records are compromised because of the loss or theft of a privileged credential. Experts have been exploring Active Directory infrastructure to identify key threats and establish best practices for keeping data safe. Attend this month’s webinar to learn more.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Here we come across an interesting topic of coding guidelines while designing automation test scripts. The scope of this article will not be limited to QTP but to an overall extent of using VB Scripting for automation projects. Introduction Now…
Displaying an arrayList in a listView using the default adapter is rarely the best solution. To get full control of your display data, and to be able to refresh it after editing, requires the use of a custom adapter.
With the power of JIRA, there's an unlimited number of ways you can customize it, use it and benefit from it. With that in mind, there's bound to be things that I wasn't able to cover in this course. With this summary we'll look at some places to go…
In this seventh video of the Xpdf series, we discuss and demonstrate the PDFfonts utility, which lists all the fonts used in a PDF file. It does this via a command line interface, making it suitable for use in programs, scripts, batch files — any pl…

867 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question

Need Help in Real-Time?

Connect with top rated Experts

19 Experts available now in Live!

Get 1:1 Help Now