Which State Machine execution frameworks for C++ implement UML semantics?

theDmi picture theDmi · Sep 20, 2010 · Viewed 7k times · Source

I'm looking for a framework that provides execution of hierarchical state machines (HSMs).

These are the requirements for the framework:

  • Conforms to UML state machine semantics (as much as possible)
  • Supports at least
    • run-to-completion semantics
    • hierarchical states
    • entry and exit actions
    • transition actions
    • guards
    • events with custom parameters
  • Is object-oriented or does at least not prohibit OO designs

The target platform is an medium- to large-sized embedded system with an OS.

Do you know a framework that fulfills the above requirements? What are the pros and cons of your framework?

Answer

Andreas Magnusson picture Andreas Magnusson · Sep 20, 2010

You should go and check out Boost MSM, it's new for Boost 1.44 but seems quite complete. I have not yet tried it out myself but it looks quite promising.