Network

interface Network<ID : Any>

Network interface for the aggregate computation.

Functions

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

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

Link copied to clipboard
abstract fun write(message: OutboundMessage<ID>)

Sends a message of type OutboundMessage to the neighbours.