Liking cljdoc? Tell your friends :D

aido.compile


assign-auto-idclj/s

(assign-auto-id mo)

Given a map object, if it does not have a value for key :id then assign an auto-id value.

Given a map object, if it does not have a value for key :id then assign an auto-id value.
sourceraw docstring

compileclj/s

(compile tree)
(compile tree opt-fns)
source

next-auto-idclj/s

(next-auto-id)

Return next sequential id.

Return next sequential id.
sourceraw docstring

realise-optionsclj/s

(realise-options db [node-type options & children])

Given an options map where some options may represent dynamic function values (see replace-fn-options) 'realise' those dynamic values and pass them instead.

Given an options map where some options may represent dynamic function values (see replace-fn-options)
'realise' those dynamic values and pass them instead.
sourceraw docstring

replace-dynamic-optionclj/s

(replace-dynamic-option do-fns opts [opt val])

Given an option opt val where val is of the form [:aido/... ...] perform a dynamic replacement.

Given an option opt val where val is of the form [:aido/... ...] perform a dynamic replacement.
sourceraw docstring

replace-dynamic-optionsclj/s

(replace-dynamic-options fns opts)

Given a map of options replace-fn-options replaces those that are intended to be dynamic. A dynamic option is an option whose value is a vector of the form [:fn/name ...] or [:fn*/name ...]. In this case 'name' should be the name of a function passed to the compile function. Where the name is in the 'fn' namespace the replacement is a function call. Where the name is in the 'fn*' namespace the replacement is the result of calling the function. Hence [:fn*/name ...] does a dymamic replacement at compile time and [:fn/name ...] does a dynamic replacement each time the behaviour tree is walked.

Note that, in order that behaviour trees can be serialised to EDN where a dynamic replacement is created the function is added as metadata to the value. This means that the function will need to be regenerated each time the tree is deserialised. Compile time replacements are replacements by values that can be serialised.

Given a map of options replace-fn-options replaces those that are intended to be dynamic. A dynamic
option is an option whose value is a vector of the form [:fn/name ...] or [:fn*/name ...]. In this
case 'name' should be the name of a function passed to the compile function. Where the name is in
the 'fn' namespace the replacement is a function call. Where the name is in the 'fn*' namespace the
replacement is the result of calling the function. Hence [:fn*/name ...] does a dymamic replacement
at compile time and [:fn/name ...] does a dynamic replacement each time the behaviour tree is walked.

Note that, in order that behaviour trees can be serialised to EDN where a dynamic replacement is
created the function is added as metadata to the value. This means that the function will need to
be regenerated each time the tree is deserialised. Compile time replacements are replacements by
values that can be serialised.
sourceraw docstring

verify-childrenclj/s

(verify-children node required actual)
source

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

× close