13.4. Postconditions

Notice that each of the postconditions in the enterItem example included a categorization such as instance creation or association formed. Here is a key point:

The postconditions describe changes in the state of objects in the Domain Model. Domain Model state changes include instances created, associations formed or broken, and attributes changed.

Postconditions are not actions to be performed during the operation; rather, they are declarations about the Domain Model objects that are true when the operation has finished—after the smoke has cleared.

To summarize, the postconditions fall into these categories:

  • Instance creation and deletion.

  • Attribute modification.

  • Associations (to be precise, UML links) formed and broken. ...

Get Applying UML and Patterns: An Introduction to Object-Oriented Analysis and Design and the Unified Process, Second Edition 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.