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
.png)
The diagram illustrates the following terms:
The domain model (everything inside the dotted line).
A domain class.
Another domain class.
The domain relationship between the two classes.
A multiplicity indicator (*). (In this domain model, a library can have many members.)
Another multiplicity indicator (1). (In this domain model, each person can be a member of only one library.)
A source role.
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.