File:Turnstile state machine colored.svg
Summary
Transition diagram for a <a href="https://en.wikipedia.org/wiki/finite_state_machine" class="extiw" title="w:finite state machine">finite state machine</a> modeling a turnstile, a common introductory example used to explain state machines. The turnstile has two states, Locked and Unlocked. There are two inputs effecting the state: depositing a coin in the turnstile, coin, and pushing on the turnstile's bar, push. The turnstile bar is initially locked, and pushing on it has no effect. Putting a coin in changes the state to Unlocked unlocking the bar so it can turn. A customer pushing through the turnstile changes the state back to Locked so additional customers can't get through until another coin is deposited. The arrow into the Locked node from the black dot indicates it is the initial state.
Licensing
Lua error in package.lua at line 80: module 'strict' not found.
File history
Click on a date/time to view the file as it appeared at that time.
Date/Time | Thumbnail | Dimensions | User | Comment | |
---|---|---|---|---|---|
current | 03:28, 5 January 2017 | 790 × 343 (13 KB) | 127.0.0.1 (talk) | Transition diagram for a <a href="https://en.wikipedia.org/wiki/finite_state_machine" class="extiw" title="w:finite state machine">finite state machine</a> modeling a turnstile, a common introductory example used to explain state machines. The turnstile has two states, <i><b>Locked</b></i> and <i><b>Unlocked</b></i>. There are two inputs effecting the state: depositing a coin in the turnstile, <i><b>coin</b></i>, and pushing on the turnstile's bar, <i><b>push</b></i>. The turnstile bar is initially locked, and pushing on it has no effect. Putting a coin in changes the state to <i><b>Unlocked</b></i> unlocking the bar so it can turn. A customer pushing through the turnstile changes the state back to <i><b>Locked</b></i> so additional customers can't get through until another coin is deposited. The arrow into the <i><b>Locked</b></i> node from the black dot indicates it is the initial state. |
- You cannot overwrite this file.
File usage
The following page links to this file: