12.2. Reworking the Class Diagram

The process of developing statechart diagrams often reveals the need for additional attributes, associations, and even new classes. It can also reveal errors and inconsistencies in an apparently reasonable class diagram.

We cannot emphasize enough that the process of building Executable UML models is incremental and iterative. Systems are developed incrementally, starting from simple models with limited capabilities; additional capabilities are added incrementally. Within each increment, we iterate over the various models. Writing the statechart diagrams and their state procedures may reveal insufficiencies that can best be corrected by reworking the class diagram.

Do not fall into the trap of trying to build ...

Get Executable UML: A Foundation for Model-Driven Architecture 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.