https://github.com/possen/statemachine
A simple state machine implementation, in Swift, which models a coffee machine. Each state knows where it can go next based upon the results of the actions after async operation. To use this you would probably want to have an update method to notify the UI layer of the state changes. To run it, use the Unit Test.
https://github.com/possen/statemachine
Last synced: 3 months ago
JSON representation
A simple state machine implementation, in Swift, which models a coffee machine. Each state knows where it can go next based upon the results of the actions after async operation. To use this you would probably want to have an update method to notify the UI layer of the state changes. To run it, use the Unit Test.
- Host: GitHub
- URL: https://github.com/possen/statemachine
- Owner: possen
- Created: 2018-10-18T20:16:35.000Z (over 6 years ago)
- Default Branch: master
- Last Pushed: 2018-10-18T21:57:48.000Z (over 6 years ago)
- Last Synced: 2025-01-06T02:24:15.843Z (5 months ago)
- Language: Swift
- Homepage:
- Size: 28.3 KB
- Stars: 0
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# CoffeeStateMachine
A simple state machine implementation, in Swift, which imitates a coffee machine. Each state knows where it can go next based upon the results of the actions after async operation. To run it, use the Unit Test.[State Diagram](StateMachine/StateMachine.pdf)