Forward Sending Messaging (forward_sending_messaging)¶
- class pypint.communicators.forward_sending_messaging.ForwardSendingMessaging(*args, **kwargs)[source]¶
Bases: pypint.communicators.i_communication_provider.ICommunicationProvider
A linear forward-directed communication pattern
- link_solvers(*args, **kwargs)[source]¶
Links the given communicators with this communicator
Parameters: - previous (ForwardSendingMessaging) – communicator of the previous solver
- next (ForwardSendingMessaging) – communicator of the next solver
Raises: ValueError – if one of the two communicators of the specified type is not given
- receive(*args, **kwargs)[source]¶
Returns this communicator’s buffer
Returns: message Return type: Message
- send(*args, **kwargs)[source]¶
Sends given message to the next communicator
See also
- ICommunicationProvider.write_buffer()
- for allowed arguments