5.2. Attributes

Definition: An attribute is the abstraction of a single characteristic possessed by all the entities that were, themselves, abstracted as a class.

The goal is to obtain a set of attributes for a class that is:

  • Complete— They capture all information about the class.

  • Fully factored— Each attribute captures a separate aspect of the class abstraction.

  • Mutually independent— The attributes take on values independently of one another.

5.2.1. Finding Attributes

For each class, start out by asking yourself, “What characteristics do all the things in the domain possess (that we care about)?” Another approach is to go back to the abstraction and ask, “What information is inherent to this abstraction that makes the abstraction what it is?” ...

Get Executable UML: A Foundation for Model-Driven Architecture now with the O’Reilly learning platform.

O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.