Velocity Reviews - Computer Hardware Reviews

Velocity Reviews > Newsgroups > Programming > Python > Re: Finite state machine in python

Thread Tools

Re: Finite state machine in python

Tim Chase
Posts: n/a
> I have see some discussion on the implementation of finite
> state machine in python. Can somebody point to me the best way
> in implenting an FSM in python?

To offer a "best way" requires knowing more about what you're
trying to accomplish. Are you looking for just some fixed
states? are you looking to dynamically adjust the available
states? Is this workflow for a single user, or is it for
multiple users? A FSM merely involves a list of states and the
transitions between them. You can augment the states and/or the
transitions with additional metadata. You can store your states
in fixed internal hard-coded structures, or you can store them in
a file/database that can grow external.

I posted information on doing this with a SQL-ish database
(whether sqlite or whatever) a while back, so you can see a more
"complex" version of tracking this info:

Hope this gives you some ideas from which to choose an option
that's "best" for your needs.


Reply With Quote

Thread Tools

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are Off

Similar Threads
Thread Thread Starter Forum Replies Last Post
Finite state machine in python Peng Yu Python 1 09-13-2009 04:58 AM
Finite State Machine GUI editor in python? Hendrik van Rooyen Python 5 12-18-2007 06:27 AM
Safe finite state machine design SomeDude VHDL 3 08-14-2006 12:47 PM
Looking for Python Finite State Machine Implementations Leonard J. Reder Python 0 06-24-2005 05:22 PM
HELP PLEASE!! - Finite State Machine - Automaton - Microprogrammed System deejayfred VHDL 0 10-02-2003 01:23 AM