Entanglement Protocol
Entanglement protocol definition (abstract)
- class sequence.entanglement_management.entanglement_protocol.EntanglementProtocol(owner: Node, name: str)
Class for all entanglement management protocols.
Provides an interface for rule attachment, protocol pairing, and memory management.
- name
Name of the protocol instance
- Type:
str
- abstractmethod is_ready() bool
Method to check if protocol is ready to start (abstract).
- Returns:
if protocol is ready or not.
- Return type:
bool
- abstractmethod memory_expire(memory: Memory) None
Method to receive a memory expiration event (abstract).
- release() None
Method to release attached memories.
- abstractmethod set_others(remote_protocol: str, remote_node: str, memories: list[str]) None
Method to set other entanglement protocol instance.
- Parameters:
remote_protocol (str) – other protocol name.
remote_node (str) – other node name.
memories (list[str]) – the list of memory names used on other node.
- abstractmethod start() None
Method to start entanglement protocol process (abstract).