Markus Zolliker c2596a9629 implement a state machine
a quite simple, but powerful state machine

There is not need to subclass StateMachine, but use an instance
of it. The code typically lives on methods of an other class.

Features:
- store any variables (except already defined attributes) on the state
- actions handle the conditions to stay or initiate a transition
  by calling the state machines goto method
- a state machine might run endlessly or finish in a None action.
- it may be started or restarted
- a cleanup function for handling exceptions and for stop or restart
- support for time dependent features

Change-Id: I86b86ed1f25d04e305237edb99206912b068aedf
Reviewed-on: https://forge.frm2.tum.de/review/c/sine2020/secop/playground/+/27593
Tested-by: Jenkins Automated Tests <pedersen+jenkins@frm2.tum.de>
Reviewed-by: Enrico Faulhaber <enrico.faulhaber@frm2.tum.de>
Reviewed-by: Markus Zolliker <markus.zolliker@psi.ch>
2022-02-23 18:20:23 +01:00
2021-04-30 08:08:22 +02:00
2020-04-09 17:04:09 +02:00
2022-02-23 18:20:23 +01:00
2021-02-24 08:44:13 +01:00
2022-02-23 17:04:06 +01:00
2022-02-23 18:20:23 +01:00
2020-01-15 08:15:35 +01:00
2021-02-24 08:44:13 +01:00
2021-05-29 14:46:25 +02:00
2020-04-09 17:04:09 +02:00
Description
PSI local frappy repo, probably ahead of git/gerrit at MLZ
4.7 MiB
Languages
Python 99.9%