Unified Modeling Language Reference Manual, The, Second Edition
by James Rumbaugh, Ivar Jacobson, Grady Booch
State Machine View
A state machine models the possible life histories of an object of a class. A state machine contains states connected by transitions. Each state models a period of time during the life of an object during which it satisfies certain conditions. When an event occurs, it may cause the firing of a transition that takes the object to a new state. When a transition fires, an effect (action or activity) attached to the transition may be executed. State machines are shown as state machine diagrams.
Figure 3-7 shows a state machine diagram for the history of a ticket to a performance. The initial state of a ticket (shown by the black dot) is the Available state. Before the season starts, seats for season subscribers are assigned. Individual ...
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