29.8. Additional Statechart Diagram Notation

The UML notation for statechart diagrams contains a rich set of features that are not exploited in this introduction. Three significant features are:

  • transition actions

  • transition guard conditions

  • nested states

Transition Actions and Guards

A transition can cause an action to fire. In a software implementation, this may represent the invocation of a method of the class of the statechart diagram.

A transition may also have a conditional guard—or boolean test. The transition only occurs if the test passes.

Figure 29.4. Transition action and guard notation.

Nested States

A state allows nesting to contain ...

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.