(action-node next-node)
(action-node successors next-node)
(action-node successors interrupt-node next-node)
Action Node State Machine will immediately execute handle-state fn and move to next node, unless input interrupts. Interrupt node can be self referencing as well (pipe node back to this node)
Action Node State Machine will immediately execute handle-state fn and move to next node, unless input interrupts. Interrupt node can be self referencing as well (pipe node back to this node)
(bootstrap-node node-name)
Bootstraps the State Machine.
Bootstraps the State Machine.
(decision-node successors decision-fn)
Decision node. decision-fn definition MUST handle [data] AND [data event] arg vectors decision nodes are the 'routers' of our state machines.
Decision node. decision-fn definition MUST handle [data] AND [data event] arg vectors decision nodes are the 'routers' of our state machines.
(expiring-node successors interrupt-node expire-fn expire-in-fn)
Expiring Node Will wait for the time designated by expire-in-fn and execute timeout-fn. any input into the machine before expire will go to the interrupt-node
Expiring Node Will wait for the time designated by expire-in-fn and execute timeout-fn. any input into the machine before expire will go to the interrupt-node
Protocol for nodes that will receive events
Protocol for nodes that will receive events
(send-input this data)
(send-input this data event)
Deliver input
Deliver input
Basic protocols necessary to constitute a node
Basic protocols necessary to constitute a node
(accept? this)
is this an accept state? (terminal?)
is this an accept state? (terminal?)
(reject? this)
is this a reject stat? (terminal...?)
is this a reject stat? (terminal...?)
(successors this)
Return set of successor names
Return set of successor names
protocols for nodes that will expire, that is are bound by time
protocols for nodes that will expire, that is are bound by time
(expire-in this data)
Return a wait time (in milliseconds) based on data
Return a wait time (in milliseconds) based on data
(send-timeout this data)
Deliver timeout
Deliver timeout
(wait-node successors decision-fn expire-node)
(wait-node successors decision-fn expire-node expire-in-fn)
Wait node. Sometimes we just need to wait indefinitely for some kind of input. This node will do exactly that. It waits for either a time given by a fn passed in or indefinitely for input, should you so desire
Wait node. Sometimes we just need to wait indefinitely for some kind of input. This node will do exactly that. It waits for either a time given by a fn passed in or indefinitely for input, should you so desire
cljdoc is a website building & hosting documentation for Clojure/Script libraries
× close