Humblebee
A general purpose FiniteStateMachine - industrious as a bee.
Installation
npm install humblebee --save
Usage
var createHumblebeeFsm = ; var { console; }; var { console; }; var { console; }; var { console; }; var turnstyleFsmSpecification = 'states' : 'Locked' : 'initial' : true 'events' : 'insertCoin' : 'transition' : 'Unlocked' 'action' : unlock 'passThrough' : 'transition' : undefined 'action' : alarm 'Unlocked' : 'events' : 'insertCoin' : 'transition' : undefined 'action' : thankYou 'passThrough' : 'transition' : 'Locked' 'action' : lock ; var turnstyleFsm = ; console; turnstyleFsm; console; turnstyleFsm; console; turnstyleFsm; console; turnstyleFsm; console;
Tests
npm test
License
Published under the MIT-License, see LICENSE-MIT.txt file.
Contact
Your feedback is appreciated, please e-mail me at alaarmann@gmx.net
Release History
- 0.1.0 Initial release