Liking cljdoc? Tell your friends :D

stately.graph.node


accept-nodeclj

source

AcceptNodeclj

source

action-nodeclj

(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)
sourceraw docstring

bootstrap-nodeclj

(bootstrap-node node-name)

Bootstraps the State Machine.

Bootstraps the State Machine.
sourceraw docstring

decision-nodeclj

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

expiring-nodeclj

(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
sourceraw docstring

IEventNodecljprotocol

Protocol for nodes that will receive events

Protocol for nodes that will receive events

send-inputclj

(send-input this data)
(send-input this data event)

Deliver input

Deliver input
sourceraw docstring

INodecljprotocol

Basic protocols necessary to constitute a node

Basic protocols necessary to constitute a node

accept?clj

(accept? this)

is this an accept state? (terminal?)

is this an accept state? (terminal?)

reject?clj

(reject? this)

is this a reject stat? (terminal...?)

is this a reject stat? (terminal...?)

successorsclj

(successors this)

Return set of successor names

Return set of successor names
sourceraw docstring

ITimeoutNodecljprotocol

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-inclj

(expire-in this data)

Return a wait time (in milliseconds) based on data

Return a wait time (in milliseconds) based on data

send-timeoutclj

(send-timeout this data)

Deliver timeout

Deliver timeout
sourceraw docstring

Nodeclj

source

reject-nodeclj

source

RejectNodeclj

source

StartNodeclj

source

terminal-node?clj

(terminal-node? node)
source

wait-nodeclj

(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
sourceraw docstring

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

× close