This namespace is for internal use and may move in the future. Specification and default implementation of working memory
This namespace is for internal use and may move in the future. Specification and default implementation of working memory
(get-tokens-all memory node)
(get-tokens memory node bindings)
(get-activations memory)
(get-alphas-fn memory)
(get-accum-reduced-complete memory node)
(get-elements memory node bindings)
(get-rulebase memory)
(get-accum-reduced-all memory node join-bindings)
(get-accum-reduced memory node join-bindings fact-bindings)
(get-insertions-all memory node)
(get-insertions memory node token)
(get-elements-all memory node)
(to-persistent! memory)
(remove-tokens! memory node join-bindings tokens)
(add-elements! memory node join-bindings elements)
(remove-elements! memory node elements join-bindings)
(remove-activations! memory production activations)
(add-activations! memory production activations)
(add-tokens! memory node join-bindings tokens)
(clear-activations! memory)
(add-insertions! memory node token facts)
(remove-accum-reduced! memory node join-bindings fact-bindings)
(add-accum-reduced! memory node join-bindings accum-result fact-bindings)
(remove-insertions! memory node token)
(next-activation-group memory)
(pop-activation! memory)
(local-memory rulebase activation-group-sort-fn activation-group-fn alphas-fn)
Creates an persistent local memory for the given rule base.
Creates an persistent local memory for the given rule base.
(remove-first-of-each remove-seq coll)
Remove the first instance of each item in the given remove-seq that appears in the collection. This also tracks which items were found and removed. Returns a tuple of the form: [items-removed coll-with-items-removed items-not-removed] This function does so eagerly since the working memories with large numbers of insertions and retractions can cause lazy sequences to become deeply nested.
Remove the first instance of each item in the given remove-seq that appears in the collection. This also tracks which items were found and removed. Returns a tuple of the form: [items-removed coll-with-items-removed items-not-removed] This function does so eagerly since the working memories with large numbers of insertions and retractions can cause lazy sequences to become deeply nested.
cljdoc is a website building & hosting documentation for Clojure/Script libraries
× close