Unified Modeling Language Reference Manual, The, Second Edition
by James Rumbaugh, Ivar Jacobson, Grady Booch
assertion
A combined fragment in an interaction indicating that the behavior described by the contents is the only valid behavior at that point in the execution. Any other behavior contradicts the meaning.
Semantics
In general, an interaction is a specification of permissible behavior, which does not include all possible behavior. An assertion is a statement that the specified behavior of the assertion region is the only possible behavior at that point in the execution. Note, however, that the ignore and consider operators can be used to filter the behavior under consideration. If certain kinds of events are explicitly ignored, their occurrence or nonoccurrence will not affect an assertion.
For example, use an assertion fragment containing a ...
Become an O’Reilly member and get unlimited access to this title plus top books and audiobooks from O’Reilly and nearly 200 top publishers, thousands of courses curated by job role, 150+ live events each month,
and much more.
Read now
Unlock full access