Special symbol to denote that the transition matches any signal
Special symbol to denote that the transition matches any signal
(apply-guards fsm signal)
Accepts a FSM and a signal, resolves all transitions that are possible with given
signal, returns seq of tuples of [transition guard-results]
, where guard-results
is
a seq of results reported by guards, each result is a map with :tilakone.core/allow?
(boolean indicating guard verdict), :tilakone.core/guard
(the guard data from fsm), and
:tilakone.core/result
(the return value of guard, or an exception).
Accepts a FSM and a signal, resolves all transitions that are possible with given signal, returns seq of tuples of `[transition guard-results]`, where `guard-results` is a seq of results reported by guards, each result is a map with `:tilakone.core/allow?` (boolean indicating guard verdict), `:tilakone.core/guard` (the guard data from fsm), and `:tilakone.core/result` (the return value of guard, or an exception).
(apply-signal fsm signal)
Accepts a FSM (Finite State Machine) and a signal, applies the signal to the FSM and returns (possibly) updated FSM.
Accepts a FSM (Finite State Machine) and a signal, applies the signal to the FSM and returns (possibly) updated FSM.
(transfers-to fsm signal)
Accepts a FSM and a signal, returns the name of the state the signal would
transfer the FSM if applied. Returns nil
if signal is not allowed.
Accepts a FSM and a signal, returns the name of the state the signal would transfer the FSM if applied. Returns `nil` if signal is not allowed.
cljdoc is a website building & hosting documentation for Clojure/Script libraries
× close