Overview of Domain Models

A domain model contains domain classes and domain relationships. Domain classes represent the different types of objects in the domain, and domain relationships represent information about a relationship between two domain classes.

Several terms refer to the parts of a domain model, as shown in the following illustration. For more information about this domain model, see Overview of Library.dsl.

A Domain Model
domain model

The diagram illustrates the following terms:

  1. The domain model (everything inside the dotted line).

  2. A domain class.

  3. Another domain class.

  4. The domain relationship between the two classes.

  5. A multiplicity indicator (*). (In this domain model, a library can have many members.)

  6. Another multiplicity indicator (1). (In this domain model, each person can be a member of only one library.)

  7. A source role.

  8. A target role.

This domain model defines a Library domain class, a Person domain class, and a relationship between them. The relationship is called LibraryHasMembers, and it shows that one library can be associated with any number of people.

See Also

Concepts

Domain-Specific Language Tools Glossary