betfsm.betfsm.Compute

Bases: Generator

__init__(name, location, cb)

State that performs some computations using a callback function and places the results in a predetermined location in the blackboard.

Parameters:
  • name (str) –

    name of this node

  • location (List[str]) –

    location in the blackboard, given as a list of strings. Should point to a dictionary.

  • cb (Callable) –

    callback function with signature def cb(blackboard)->dict. The dictionary contents will be inserted in the given location