Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
7 changes: 5 additions & 2 deletions programming/finite-state-machines/simple-fsm-usage.rst
Original file line number Diff line number Diff line change
Expand Up @@ -101,8 +101,11 @@ Simple FSM Usage
To enforce this, you can store ``self.defaultTransitions`` in the FSM's
``__init__()`` method. This should be a map of allowed transitions from each
state. That is, each key of the map is a state name; for that key, the value
is a list of allowed transitions from the indicated state. Any transition not
listed in defaultTransitions is considered invalid. For example:
is a list of allowed transitions from the indicated state. In addition an
enum value for "Any" state can be used by setting ``FSM.EnumStates.ANY`` as
a key or ``[FSM.EnumStates.ANY]`` as value.
Any transition not listed in defaultTransitions is considered invalid.
For example:

.. code-block:: python

Expand Down