The previous chapters described the mechanics of state machines in terms of statechart diagrams and state transition tables. This chapter presents some suggestions and techniques for how to go about formulating these models effectively. Here we describe a set of techniques for forming individual lifecycles and refactoring them so they are each simple to understand. Refactoring statechart diagrams, as well as simply understanding them better, can lead to a need to iterate the class diagram, creating classes for special purposes and to house various kinds of behavior. |