01.01.2015 Views

UML Weekend Crash Course™ - To Parent Directory

UML Weekend Crash Course™ - To Parent Directory

UML Weekend Crash Course™ - To Parent Directory

SHOW MORE
SHOW LESS

Create successful ePaper yourself

Turn your PDF publications into a flip-book with our unique Google optimized e-Paper software.

SESSION<br />

10<br />

The Class Diagram: Associations<br />

Session Checklist<br />

✔ Explaining and illustrating the basic notation for all associations<br />

✔ Explaining and illustrating the notations for association classes,<br />

reflexive associations, and qualified associations<br />

Associations between objects are similar to associations between people. In order for<br />

me to work with you, I need to communicate with you. This requires that I have<br />

some way to contact you, such as a phone number or an e-mail address. Further, it is<br />

often necessary to identify why we are associated in order to clarify why we do and do not<br />

participate in certain kinds of communication. For example, if we are associated because<br />

you are a programmer and I am a database administrator, we probably will not discuss<br />

employee benefits as part of our duties.<br />

There would also probably be some limitations placed on our interactions:<br />

We would want to limit the number of participants in the relationship to ensure<br />

efficiency.<br />

We would want to check the qualifications of the participants to ensure we have the<br />

right participants.<br />

We would want to define the roles of the participants so that everyone knows how<br />

to behave.<br />

All these requirements apply equally to objects. The <strong>UML</strong> provides notations to address<br />

them all. I’ll start with the basics and then add a few twists.

Hooray! Your file is uploaded and ready to be published.

Saved successfully!

Ooh no, something went wrong!