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

Activationclj/s

source

fast-token-compareclj

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

IdentityComparablecljprotocol

using-token-identity!clj

(using-token-identity! this bool)
source

IMemoryReaderclj/sprotocol

get-tokens-allclj/s

(get-tokens-all memory node)

get-tokensclj/s

(get-tokens memory node bindings)

get-activationsclj/s

(get-activations memory)

get-alphas-fnclj/s

(get-alphas-fn memory)

get-accum-reduced-completeclj/s

(get-accum-reduced-complete memory node)

get-elementsclj/s

(get-elements memory node bindings)

get-rulebaseclj/s

(get-rulebase memory)

get-accum-reduced-allclj/s

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

get-accum-reducedclj/s

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

get-insertions-allclj/s

(get-insertions-all memory node)

get-insertionsclj/s

(get-insertions memory node token)

get-elements-allclj/s

(get-elements-all memory node)
source

IPersistentMemoryclj/sprotocol

to-transientclj/s

(to-transient memory)
source

ITransientMemoryclj/sprotocol

to-persistent!clj/s

(to-persistent! memory)

remove-tokens!clj/s

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

add-elements!clj/s

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

remove-elements!clj/s

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

remove-activations!clj/s

(remove-activations! memory production activations)

add-activations!clj/s

(add-activations! memory production activations)

add-tokens!clj/s

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

clear-activations!clj/s

(clear-activations! memory)

add-insertions!clj/s

(add-insertions! memory node token facts)

remove-accum-reduced!clj/s

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

add-accum-reduced!clj/s

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

remove-insertions!clj/s

(remove-insertions! memory node token)

next-activation-groupclj/s

(next-activation-group memory)

pop-activation!clj/s

(pop-activation! memory)
source

local-memoryclj/s

(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

PersistentLocalMemoryclj/s

source

remove-first-of-eachclj/s

(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

TransientLocalMemorycljs

source

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

× close