Unified Modeling Language Reference Manual, The, Second Edition
by James Rumbaugh, Ivar Jacobson, Grady Booch
State Machine
A state machine is a graph of states and transitions. Usually a state machine is attached to a class and describes the response of an instance of the class to events that it receives. State machines may also be attached to behaviors, use cases, and collaborations to describe their execution.
A state machine is a model of all possible life histories of an object of a class. The object is examined in isolation. Any external influence from the rest of the world is summarized as an event. When the object detects an event, it responds in a way that depends on its current state. The response may include the execution of an effect and a change to a new state. State machines can be structured to share transitions, and they can model concurrency. ...
Become an O’Reilly member and get unlimited access to this title plus top books and audiobooks from O’Reilly and nearly 200 top publishers, thousands of courses curated by job role, 150+ live events each month,
and much more.
Read now
Unlock full access