I have to recall my discrete mathematics to solve a very complecate problem around status and transition. So I read my dusty textbook and research the some infomation from Google. Usually I wrote “Switch” to implement the Finite State Machine. Now I found a set of tools can help me generate the code and GUI base grahpic. It’s free. :)

Finite state machine Wiki

Finite state machine editor

The State Machine Compiler

UniMod (My favorite tool)

Plus bonus: Free UML Tools