kosmos.protocols.protocol¶
Classes¶
- class Protocol(config: kosmos.protocols.config.protocol.ProtocolConfig, network: kosmos.topology.net.Network)¶
Bases:
abc.ABCBase class for all protocols.
Initialize the protocol.
- Parameters:
config (ProtocolConfig) – Protocol configuration.
network (Network) – The network topology.
Methods
- execute() kosmos.protocols.protocol_result.ProtocolResult¶
Execute the protocol.
- Returns:
Result of the protocol execution.
- Return type: