yasmin.blackboard module

class yasmin.blackboard.Blackboard(init: Dict[str, Any] = None)

Bases: object

A thread-safe storage for key-value pairs of varying types.

The Blackboard class allows storing, retrieving, and managing values associated with string keys in a thread-safe manner using a recursive mutex.

Attributes:

_data (Dict[str, Any]): Storage for key-value pairs. __lock (Lock): Mutex for thread safety. __remapping (Dict[str, str]): Storage for key remappings.

property remappings: Dict[str, str]

Get the remapping of the blackboard.

Returns:

Dict[str, str]: The remapping of the blackboard.