Chapter 22. State Machines
In this chapter
- States, transitions, and activities
- Modeling the lifetime of an object
- Creating well-structured algorithms
Using an interaction, you can model the behavior of a society of objects that work together. Using a state machine, you can model the behavior of an individual object. A state machine is a behavior that specifies the sequences of states an object goes through during its lifetime in response to events, together with its responses to those events.
Interactions are discussed in Chapter 16; objects are discussed in Chapter 13 . |
Classes are discussed in Chapters 4 and 9; use cases are discussed in Chapter 17; systems are discussed in Chapter 32; activity diagrams are discussed in Chapter 20; state diagrams are discussed in Chapter 25 . |