The state machine for Haxe.
The steps to make a new state machie, and please check test example for reference.
- draw the UML with WhiteStarUml, and export with xmi format.
- define the class extend the sm.SM.Context, which holds the state.
- define the class extend the sm.SM.Msg, which holds the event.
- import the xmi file as resource in hxml.
Note:
- the event will be autobuilt with sm.SMBuilder.buildEvent.
- the state will be autobuilt with sm.SMBuilder.buildState.
- the state machine will be autobuilt with sm.SMBuilder.buildSM.
License: this project follows the Apache V2 license.