mirror of
https://github.com/avatao-content/baseimage-tutorial-framework
synced 2024-11-22 10:51:32 +00:00
Add note on step_next trigger to LinearFSM
This commit is contained in:
parent
3d3328f835
commit
8df196f258
@ -12,7 +12,8 @@ class LinearFSM(FSMBase):
|
||||
This is a state machine for challenges with linear progression, consisting of
|
||||
a number of steps specified in the constructor. It automatically sets up 2
|
||||
actions (triggers) between states as such:
|
||||
(0) -- step_1 --> (1) -- step_2 --> (2) -- step_3 --> (3) ... and so on
|
||||
(0) -- step_1 --> (1) -- step_2 --> (2) -- step_3 --> (3) ...
|
||||
(0) -- step_next --> (1) -- step_next --> (2) -- step_next --> (3) ...
|
||||
"""
|
||||
def __init__(self, number_of_steps):
|
||||
self.states = [State(name=str(index)) for index in range(number_of_steps)]
|
||||
|
Loading…
Reference in New Issue
Block a user