Skip to content
This repository has been archived by the owner on Jul 12, 2021. It is now read-only.

Latest commit

 

History

History
18 lines (13 loc) · 614 Bytes

README.md

File metadata and controls

18 lines (13 loc) · 614 Bytes

gstatem

The state machine for Haxe.

The steps to make a new state machie, and please check test example for reference.

  1. draw the UML with WhiteStarUml, and export with xmi format.
  2. define the class extend the sm.SM.Context, which holds the state.
  3. define the class extend the sm.SM.Msg, which holds the event.
  4. import the xmi file as resource in hxml.

Note:

  1. the event will be autobuilt with sm.SMBuilder.buildEvent.
  2. the state will be autobuilt with sm.SMBuilder.buildState.
  3. the state machine will be autobuilt with sm.SMBuilder.buildSM.

License: this project follows the Apache V2 license.