Finishing the Static Model - Associations - Attribute and Role Adornments

7 important questions on Finishing the Static Model - Associations - Attribute and Role Adornments

What does the grey "author" means?

On the left in Fig. 10.14, we show in grayed text the author attribute that means the same thing.

Normally, we do not use both formats for the same property because it can get confusing (and redundant).

What can we see in figure 10.15 ?

In Fig. 10.15, we added the properties of {ordered} and {readOnly} to the role name.

A Book has a read-only, ordered set of many authors who are Persons
or

A Book has an ordered set of many Persons in the role of authors

Most everything we can place on a attribute we can place on a ...

Most everything that we can place on an attribute, we can place on an association end.

In Table 10.2, we show almost all the possible adornments for an Attribute.

So a 0..1 is an optional field, 0 is a field that cannot appear


0..* indicates the notation can appear as often as you need.

The order shown is the approximate order that they can appear.
  • Higher grades + faster learning
  • Never study anything twice
  • 100% sure, 100% understanding
Discover Study Smart

Most everything that we can place on an attribute, we can place on an association end. In Table 10.2, we show almost all the possible adornments for an Attribute.

We have covered each of these properties except for the inherited flag (^), so consider this an opportunity to review.

Compare Table 10.2 with Table 10.3. In Table 10.3, we show the properties that we can assign to an association end

Most of the properties are the same for both attributes and associations, except for the following:

• AggregationKind (normally shown only on an association), which we cover later

• Qualifiers (normally shown only on an association), but are not on the first exam

• Multiplicity brackets (used on attributes but not on an association)

• Default value (normally only on an attribute)

Why would modelers use the association format over the attribute format?

Associations have the advantage of the ability to characterize both directions of a relationship between a class and its property.

Using the association form is most common when the property is a class (rather than a datatype).

The individual classes (or dataTypes) now can be further connected to classes, and the diagrams indicate a fuller picture of their relationships

You can also add attributes, operations, and receptions to both sides.

What do we see in the figure?


For example:
the Person Class can have a forename, a surname, and a date span

Moreover, a Person Class can have relationships of their own.

See Fig. 10.16. In this example, a Person can also be both a composer of a Score and an author of a Book

The question on the page originate from the summary of the following study material:

  • A unique study and practice tool
  • Never study anything twice again
  • Get the grades you hope for
  • 100% sure, 100% understanding
Remember faster, study better. Scientifically proven.
Trustpilot Logo