package
Version:
v0.0.0-...-8c2d49f
Opens a new window with list of versions in this module.
Published: Jul 29, 2023
License: MIT
Opens a new window with license information.
Imports: 0
Opens a new window with list of imports.
Imported by: 0
Opens a new window with list of known importers.
Documentation
¶
FSM represents a finite state machine with a current state and list of
valid state transitions.
New creates a new state machine, with the initial state
and state transitions provided.
Current returns the current state of the machine
Is returns if the machine is in the state provided.
State sets the current state to that provided, assuming that the
state transition is valid.
State represents a signel state and the states that are allowed to
transition to this state.
States a list of states with the valid transitions
Source Files
¶
Click to show internal directories.
Click to hide internal directories.