Network

interface Network

Network interface for the aggregate computation.

Functions

Link copied to clipboard
abstract fun read(): Collection<InboundMessage>

Returns a set of InboundMessages representing the received messages from the neighbours.

Link copied to clipboard
abstract fun write(messages: OutboundMessage)

Sends a set of messages of type OutboundMessage to the neighbours.