For those who don't know, a hierarchical state machine is basically a reorganization of the finite state machine so that each state becomes, in effect, its own fsm. State machine fundamentals this page has interactive examples to help you learn about statesmith state machines. Introduction the basic idea is to design your state machine graphically in plantuml and then use the plantuml input file also as an input file for flohsm.py to generate c++ code.
Was a cover story article about hierarchical state machines in c and c++ published originally in embedded systems programming magazine. As described in section state machines, qm provides extensive support for modern hierarchical state machines (hsms)↑ (uml statecharts). The examples use real code generated by statesmith from the.
The specification integration tests read a diagram file, generate executable state machine code, then compile and execute that code in another process and ensure that the state machine. From the code engineering point of view, state.