State Transitions
摘要
Among the most powerful tools available to a software developer is the finite state machine. This mechanism – sometimes illustrated as a state transition diagram – describes a multistep process. The machine moves from one state to the next as it encounters input. Each unit of input determines which arc of the graph the state machine follows. That arc decides how the input is processed and what state the machine finds itself in to receive the next unit.