simplehsm(C) Documentation


simplehsm is designed to be a very simple implementation of a hierarchical state machine.


In conventional state machine design, all states are considered at the same level. 
The design does not capture the commonality that exists among states. In real life, 
many states handle most  messages in similar fashion and differ only in handling of 
few key messages. Even when the actual handling differs, there is still some 
commonality. Hierarchical state machine design captures the commonality by organizing 
the states as a hierarchy. The states at the higher level in hierarchy perform the 
common message handling, while the lower level states inherit the commonality from 
higher level ones and perform the state specific functions.

A nice helpful overview like:

Generated on Thu Feb 4 09:32:56 2010 for simplehsm(C) by  doxygen 1.5.9