BlackboardHistory
dendron.decorators.blackboard_history.BlackboardHistory
Bases: DecoratorNode
The Blackboard history node keeps track of a blackboard entry
related to a child node. Every time this node is ticked, it
examines the blackboard and records the value stored at the
child_key
before tick()
ing the child.
The history is itself stored in the blackboard, by default at the key "{child_node.name}/{child_key}/history".
Parameters:
Name | Type | Description | Default |
---|---|---|---|
name |
`str`
|
The given name of this node. |
required |
child |
`dendron.tree_node.TreeNode`
|
The child node whose blackboard history we want to track. |
required |
child_key |
`str`
|
The blackboard key we want to record values for. |
'in'
|
Source code in src/dendron/decorators/blackboard_history.py
reset()
set_blackboard(bb)
Assign a new blackboard for history tracking.
Parameters:
Name | Type | Description | Default |
---|---|---|---|
bb |
`dendron.blackboard.Blackboard`
|
The new blackboard to track. |
required |
Source code in src/dendron/decorators/blackboard_history.py
tick()
Record the value stored in the blackboard at child_key
and
then instruct the child node to execute its tick()
function.