Liking cljdoc? Tell your friends :D

tilakone.core


_clj/s

Special symbol to denote that the transition matches any signal

Special symbol to denote that the transition matches any signal
raw docstring

apply-guardsclj/s

(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).
raw docstring

apply-signalclj/s

(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.
raw docstring

transfers-toclj/s

(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.
raw docstring

cljdoc is a website building & hosting documentation for Clojure/Script libraries

× close