The State Diagram

Of the UML diagrams, the state diagram has probably been around the longest. Its initial uses had nothing to do with object-oriented concepts. In the design and development of complex integrated circuits, a model was needed that minimized the complexity of the various states in which the system could exist at any specified moment in time. More importantly, the model needed to show the events to which the system responded when in a given state, and the type of work to be performed when the system changed states.

The state diagram can be a valuable tool. Today we use state diagrams to model the lifecycles of one class (although UML also supports the notion of sending events to other classes while modeling a class as to state). ...

Get Developing Applications with Java™ and UML 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.