Skip to main content

symplehfsm - hierarchical finite state machine framework - 2.0.2.0

state machines made easy


DR0ID
(dr0id)
The symplehfsm module provides following features of a state machine:

  • guard action
  • entry and exit actions
  • transition action
  • external and local transitions
  • hierarchically nested states
  • testable
  • clear defined events interface
  • clear defined actions interface
  • execution speed optimization (transitions are converted to lookup's in a dictionary, even for a hierarchical structure)
  • memory efficient because state machine structure can be shared by all instances


Take a look at the examples how to use it.

dependencies:
python 2.6+ (python 2.5 and older might work if you emulate the methodcaller)

license: New BSD license

Changes

Links

Home Page
http://dr0id.bitbucket.org/symplehfsm/index.html
Source
http://dr0id.bitbucket.org/symplehfsm/index.html

Releases

symplehfsm - hierarchical finite state machine framework 2.0.2.0 — 1 May, 2012

symplehfsm - hierarchical finite state machine framework 1.0.3.0 — 4 Apr, 2012

Pygame.org account Comments

  • John Schumacher 2014-12-23 20:13

    Very cool. I've used a QHSM implementation for C++ in the past, and it saved me a lot of hair pulling. Thanks a lot for implementing and posting this.