summaryrefslogtreecommitdiff
path: root/examples/statemachine/trafficLightDemo.py
Commit message (Collapse)AuthorAgeFilesLines
* Fine tuning of statemachine example, moving InvalidStateTransition ↵Paul McGuire2019-05-271-1/+1
| | | | declaration inside generated class; added video state machine demo; added vending machine state machine demo showing how to using statemachine without importing a .pystate file
* Refactor generated State code to use overridden transition methods instead ↵Paul McGuire2019-04-151-10/+2
| | | | of overriding getattr; add generation of state-managing mixin class to delegate to _state instance variable, and reworked demos to use mixin instead of replicating state code
* Add enumerated place holders for strings that invoke str.format(), for Py2 ↵ptmcg2019-01-091-2/+2
| | | | compatibility
* Add document signoff and library book state examples;ptmcg2018-12-311-3/+2
|
* Update statemachine demo code to Py3Paul McGuire2018-12-311-7/+30
|
* Fix partial named results when And embedded in named MatchFirst or Orptmcg2018-12-281-0/+12