Fettle
Fettle copied to clipboard
Hierarchical state machine
(Opening up new issue discussed last time here).
Regarding hierarchical state machines, have a look at how android does it here: https://github.com/android/platform_frameworks_base/blob/master/core/java/com/android/internal/util/StateMachine.java
The code ain't very pretty but the comments at the start of the file indicate expected behaviour.
In the previous issue you suggested embedding this information in the state itself but this looks a bit hackish. It would be great to have a .childOf(...) in each state to more directly show what's going on.
I will look into this.