Liking cljdoc? Tell your friends :D

cark.behavior-tree.node-defs.parallel

The :parallel node executes its children in parallel, until it succeeds or fails according to its policy parameter.

parameters :

  • :rerun-children : (default to false) The :success and :failure children are refreshed and rerun while this node is :running
  • :policy : (defaults to :sequence) the policy can be :
    • :sequence : the node will succeed when all children succeed, fail when any fails
    • :select : the node will succeed when any child succeeds, fail when all fail
    • a map of the form {:success <value> :failure <value>} : each value can be
      • :every : every node must have the :success or :failure status
      • :some : some node must have the :success or :failure status
      • an integer : the specified number of children must have this status

Every child node is run before their result is checked against the policy

The :parallel node executes its children in parallel, until it
succeeds or fails according to its policy parameter.

parameters :
- :rerun-children : (default to false) The :success and :failure children are refreshed and rerun while this node is :running
- :policy : (defaults to :sequence) the policy can be :
  - :sequence : the node will succeed when all children succeed, fail when any fails
  - :select : the node will succeed when any child succeeds, fail when all fail
  - a map of the form {:success <value> :failure <value>} : each value can be
     - :every : every node must have the :success or :failure status
     - :some  : some node must have the :success or :failure status
     - an integer : the specified number of children must have this status

Every child node is run before their result is checked against the policy
raw docstring

compile-nodeclj/s

(compile-node tree id tag params children-ids)
source

logclj/s

(log value)
source

parsed-policy->funcclj/s

(parsed-policy->func [type value])
source

registerclj/s

(register)
source

select-policy-funcclj/s

(select-policy-func)
source

sequence-policy-funcclj/s

(sequence-policy-func)
source

value-policy-funcclj/s

(value-policy-func kw [type value])
source

values-policy-funcclj/s

(values-policy-func {:keys [success failure] :as policy})
source

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

× close