Liking cljdoc? Tell your friends :D

clara.rules.memory

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

fast-token-compareclj

(fast-token-compare compare-fn token other-token)
source

IdentityComparablecljprotocol

using-token-identity!clj

(using-token-identity! this bool)
source

IMemoryReadercljprotocol

get-tokens-allclj

(get-tokens-all memory node)

get-tokensclj

(get-tokens memory node bindings)

get-tokens-mapclj

(get-tokens-map memory node)

get-activationsclj

(get-activations memory)

get-alphas-fnclj

(get-alphas-fn memory)

get-accum-reduced-completeclj

(get-accum-reduced-complete memory node)

get-elementsclj

(get-elements memory node bindings)

get-rulebaseclj

(get-rulebase memory)

get-accum-reduced-allclj

(get-accum-reduced-all memory node join-bindings)

get-accum-reducedclj

(get-accum-reduced memory node join-bindings fact-bindings)

get-insertions-allclj

(get-insertions-all memory node)

get-insertionsclj

(get-insertions memory node token)

get-elements-allclj

(get-elements-all memory node)
source

IPersistentMemorycljprotocol

to-transientclj

(to-transient memory)
source

ITransientMemorycljprotocol

to-persistent!clj

(to-persistent! memory)

remove-tokens!clj

(remove-tokens! memory node join-bindings tokens)

add-elements!clj

(add-elements! memory node join-bindings elements)

remove-elements!clj

(remove-elements! memory node elements join-bindings)

remove-activations!clj

(remove-activations! memory production activations)

add-activations!clj

(add-activations! memory production activations)

add-tokens!clj

(add-tokens! memory node join-bindings tokens)

clear-activations!clj

(clear-activations! memory)

pop-activations!clj

(pop-activations! memory count)

add-insertions!clj

(add-insertions! memory node token facts)

remove-accum-reduced!clj

(remove-accum-reduced! memory node join-bindings fact-bindings)

add-accum-reduced!clj

(add-accum-reduced! memory node join-bindings accum-result fact-bindings)

remove-insertions!clj

(remove-insertions! memory node token)

next-activation-groupclj

(next-activation-group memory)
source

local-memoryclj

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

remove-first-of-eachclj

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

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

× close