progress.pqnet.messages
This module contains the messages that are used at the NET level for module-to-module communication and for controller-device communication.
- class progress.pqnet.messages.InterModuleMessage(sender_device, sender_id, destination_device, destination_id, inner_message, topology_id=0)[source]
Bases:
Message
A message that is used to communicate between modules.
- property destination_device
The id of the device that the message is intended for.
- Returns:
- int
- property destination_id
The id of the module that the message is intended for.
- Returns:
- int
- property inner_message
The message that is being sent.
- Returns:
netsquid.components.Message
- property sender_device
The id of device that sent the message.
- Returns:
- int
- property sender_id
The id of the module that sent the message.
- Returns:
- int
- property topology_id
The current topology id of the network. If it does not match the current topology id of the device, the message is discarded. This is used to prevent messages from being sent to device that are not yet up to date with the current topology (they must receive a new DAG).
- Returns:
- int
- class progress.pqnet.messages.ReplaceDAGMessage(destination_device, dag_factory, topology_id=0)[source]
Bases:
Message
A message used by the controller to update the DAG of a device
- property dag_factory
The DAG factory that is used to create the new DAG.
- Returns:
DAGFactory
- property destination_device
The id of the device that the message is intended for.
- Returns:
- int
- property topology_id
The new topology id of the network.
- Returns:
- int