Skip to content

nickglazer/python-state-machine-framework

Repository files navigation

Python State Machine Framework

A simple generative state machine framework, inspired by Quantum Leaps QP/C++.

Getting Started

These instructions will get you a copy of the project up and running on your local machine for development and testing purposes.

Running the program

To run an the example, PYTHONPATH=. python3 examples/VideoPlayer/VideoPlayer.py in root.

Example

To use, run VideoPlayer.py.

In our example, the state machine is a video player. To issue a command, type one of the following:

ON_SIG OFF_SIG INSERT_SIG PLAY_SIG PAUSE_SIG STOP_SIG REWIND_SIG FORWARD_SIG

You can use our state diagram to show expected behavior. When you run Automata.py, it will generate a small report of the objects created.

Video Player State Diagram

Authors

  • Nick Glazer

About

A simple state machine framework inspired for a school project by Quantum Leaps QP(TM).

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages